- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 客户查询
- 客户导入
- 客户
- 线索&待 分配
- 商机
- 个人客户转企业客户
- 企业客户联系人
- 客户旅程
- 客户操作
- 按企微员工id列出企微好友客户详情POST
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
修改客户商机
POST
/api/v3/opportunity/update
请求参数
Header 参数
appId
string
应用 appId
默认值:
{{appId}}
timestamp
string
请求时间戳
默认值:
{{timestamp}}
sign
string
请求消息签名值
默认值:
{{sign}}
appKey
string
应用 appKey
默认值:
{{appKey}}
Body 参数application/json
salesId
integer
销售id
customerId
integer
客户id
name
string
商机名称
stage
integer
销售阶段id
expectedDealTime
string
预计成交时间
expectedDealAmount
integer
预计成交金额
fields
array [object {2}]
客户商机字段
fieldId
string
字段id
value
string
字段值
commodities
array [object {11}]
客户商机关联商品
id
string
关联id
banner
string
可选
spuId
integer
必需
spuTitle
string
可选
skuId
integer
必需
skuDetail
string
可选
unitPriceOrigin
number
可选
unitPriceSale
number
必需
count
integer
必需
totalAmount
integer
可选
totalAmountFinal
integer
可选
customerOpportunityId
integer
客户商机id
示例
{
"salesId": 0,
"customerId": 0,
"name": "string",
"stage": 0,
"expectedDealTime": "string",
"expectedDealAmount": 0,
"fields": [
{
"fieldId": "string",
"value": "string"
}
],
"commodities": [
{
"id": "string",
"banner": "string",
"spuId": 0,
"spuTitle": "string",
"skuId": 0,
"skuDetail": "string",
"unitPriceOrigin": 0,
"unitPriceSale": 0,
"count": 0,
"totalAmount": 0,
"totalAmountFinal": 0
}
],
"customerOpportunityId": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v3/opportunity/update' \
--header 'appId;' \
--header 'timestamp;' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"salesId": 0,
"customerId": 0,
"name": "string",
"stage": 0,
"expectedDealTime": "string",
"expectedDealAmount": 0,
"fields": [
{
"fieldId": "string",
"value": "string"
}
],
"commodities": [
{
"id": "string",
"banner": "string",
"spuId": 0,
"spuTitle": "string",
"skuId": 0,
"skuDetail": "string",
"unitPriceOrigin": 0,
"unitPriceSale": 0,
"count": 0,
"totalAmount": 0,
"totalAmountFinal": 0
}
],
"customerOpportunityId": 0
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
null
必需
示例
{
"code": 0,
"message": "success",
"data": null
}
修改于 2023-06-09 03:31:58