商机详情
最后更新:2025/02/07企业可通过此接口查询商机详情
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/crm/saleOpportunity/detail
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"id_list": [
"123123123123"
]
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
id_list | string[] | 是 | 商机ID |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": [
{
"id": "1887707880627376897",
"name": "商机名称",
"remark": "商机备注",
"amount": 3998,
"discount": null,
"priority": "高",
"intention": "高",
"competitor": "竞争对手名称",
"endTime": "1970-01-01 08:00:00",
"reason": null,
"contact": {
"name": "联系人0207",
"owner": "woDkH9EAAALaUpfS5UqkDUOvLLkBu1Dg",
"company_name": "0207企业1",
"cooper_id_list": null,
"coop_id": null
},
"user_id": "woDkH9EAAALaUpfS5UqkDUOvLLkBu1Dg",
"contact_id": "1887687526362172930",
"company_id": "1887687525284236801",
"discount_amount": 1999,
"phase_id": "1866308619805444291",
"phase_name": "需求确定",
"phase_time": "2025-02-07 11:40:05",
"expected_time": "2025-02-19 00:00:00",
"reason_id": null,
"field_map": {
"mf_opportunity_2": "55555555",
"mf_opportunity_54": [
{
"name": "分类2",
"id": "1866383356501969923"
}
],
"mf_opportunity_53": [
{
"name": "选项1",
"id": "1866383356128676865"
},
{
"name": "选项2",
"id": "1866383356128676866"
}
],
"mf_opportunity_1": "22222222222",
"mf_opportunity_101": 1739376000000,
"mf_opportunity_102": 1740672000000,
"mf_opportunity_52": [
{
"name": "选项2",
"id": "1866383355507919874"
}
],
"mf_opportunity_51": "231"
},
"create_time": "2025-02-07 11:40:06",
"follow_time": "2025-02-07 11:39:58",
"goods_list": [
{
"id": 1887707881474626305,
"goods_type": 1,
"mall_goods": {
"count": 2,
"goods_id": 1866048739286752450,
"name": "测试商品好看的短袖上衣2234234",
"pic_urls": [
"https://pubres-test.wshoto.com/mall-8e83ef9e-8716-4c2a-84c6-eeaf600e7206.jpeg"
],
"sku_id": "1866048739341278402",
"select_attr_val": "颜色: 红色",
"price": 1999
},
"custom_goods": null
}
],
"last_follow_time": "2025-02-07 11:39:58"
}
],
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 结果 |
total | long | 总条数 |
records | object[] | 商机信息 |
id | string | 商机ID |
user_id | string | 员工ID |
contact_id | string | 联系人ID |
company_id | string | 企业ID |
name | string | 商机名称 |
remark | string | 商机备注 |
amount | long | 商机金额 |
discount_amount | long | 折后价 |
discount | string | 折扣 |
phase_id | string | 商机阶段ID |
phase_name | string | 商机阶段名称 |
phase_time | string | 阶段变更时间 |
priority | string | 优先级 |
intention | string | 意向度 |
expected_time | string | 预计成交日期 |
competitor | string | 竞争对手 |
end_time | string | 结束时间 |
reason_id | string | 原因ID |
reason | string | 输单原因 |
field_map | map | 自定义字段 |
create_time | string | 创建时间 |
follow_time | string | 商机变更时间 |
last_follow_time | string | 最后跟进时间 |
goods_list | object[] | 商品列表 |
goods_type | int | 商品类型:1 商城商品 2 自定义商品 |
mall_goods | object | 商城商品 |
goods_id | long | 商城商品ID |
name | string | 商城商品名称 |
pic_urls | string[] | 商城商品图片 |
sku_id | string | 商城skuId |
select_attr_val | string | 商城商品规格描述 |
price | long | 商城商品价格 |
count | int | 商城商品数量 |
custom_goods | object | 自定义服务 |
name | string | 自定义服务名称 |
price | long | 商城商品价格 |
content | string | 自定义服务内容 |
files | object[] | 自定义服务附件 |
material_id | string | 素材ID |
contact | object | 联系人信息 |
name | string | 联系人名称 |
company_name | string | 企业名称 |
owner | string | 负责人 |
cooper_id_list | string[] | 协作人ID列表 |
coop_id | string | 协作ID |