- OpenAPI基本介绍
- 错误码参考 表
- 访问频率和并发限制
- 消息订阅
- 获取访问凭据
- 员工管理
- 自定义订单管理
- 客户管理
- 客户积分管理
- 客户标签管理
- 客户画像管理
- 标签库管理
- 群聊管理
- 工单管理
- 销售过程管理
- 聊天记录管理
- 拉新排行榜
- 群裂变
- 群打卡
- 企微任务宝
- 拉新排行榜
- 自定义表单
- 客户转化
- 员工个人群发记录管理
- 渠道码管理
- 素材库管理
- 互动雷达管理
- 自定义侧边栏身份校验
- 有赞订单管理
- 小鹅通订单管理
- 项目管理
- 门店信息
- 人群包
- 客户群发
- 企微朋友圈
- 个人SOP
- 部门管理
- 群标签管理
- 话术库
- 企微数据专区
获取商机详情
GET
/open-api/opportunity/one
错误码 | 说明 |
---|---|
22201 | 未找到商机记录 |
22203 | id和serial_number至少填写一个 |
调用此接口需购买销售席位。 |
请求参数
Query 参数
serial_number
string
商机编码
id
string
商机id
access_token
string
调用接口凭证
默认值:
{{access_token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://open.weibanzhushou.com/open-api/opportunity/one?serial_number=&id=&access_token='
返回响应
🟢200成功
application/json
Body
errcode
integer
必需
errmsg
string
必需
opportunity
object
必需
bind_order_status
boolean
必需
chat_list
array[string]
必需
corp_id
string
必需
created_at
integer
必需
creator_id
integer
必需
deleted
boolean
必需
department_ext_id
string
必需
department_id
integer
必需
end_time
null
必需
eu_remark
array[string]
必需
eu_staff_relation_id
null
必需
expect_amount
integer
必需
expect_date
null
必需
fail_reason
array[string]
必需
goods_list
array[string]
必需
help_staff_list
array[string]
必需
help_user_list
array[string]
必需
id
integer
必需
name
string
必需
organization
object
必需
organization_id
integer
必需
property_list
array [object {15}]
必需
remark
string
必需
serial_number
string
必需
sku_list
array[string]
必需
staff
object
必需
staff_ext_id
string
必需
staff_id
integer
必需
stage
object
必需
stage_group_id
integer
必需
stage_group_name
string
必需
stage_id
integer
必需
stage_update_time
integer
必需
status
integer
必需
updated_at
integer
必需
user
object
必需
user_type
string
必 需
示例
{
"errcode": 0,
"errmsg": "string",
"opportunity": {
"bind_order_status": true,
"chat_list": [
"string"
],
"corp_id": "string",
"created_at": 0,
"creator_id": 0,
"deleted": true,
"department_ext_id": "string",
"department_id": 0,
"end_time": null,
"eu_remark": [
"string"
],
"eu_staff_relation_id": null,
"expect_amount": 0,
"expect_date": null,
"fail_reason": [
"string"
],
"goods_list": [
"string"
],
"help_staff_list": [
"string"
],
"help_user_list": [
"string"
],
"id": 0,
"name": "string",
"organization": {
"corp_id": "string",
"created_at": 0,
"creator_id": null,
"customer_level": "string",
"deleted": true,
"id": 0,
"map_id": 0,
"name": "string",
"owner": "string",
"parent_id": 0,
"staff_ext_id": "string",
"staff_id": 0,
"tyc_id": null,
"updated_at": 0
},
"organization_id": 0,
"property_list": [
{
"corp_id": "string",
"created_at": 0,
"creator_id": null,
"deleted": true,
"enabled": true,
"field_name": "string",
"field_type": "string",
"group_id": null,
"id": 0,
"options": [
"string"
],
"property_type": "string",
"required": true,
"sort_order": 0,
"updated_at": 0,
"value": null
}
],
"remark": "string",
"serial_number": "string",
"sku_list": [
"string"
],
"staff": {
"address": null,
"alias": "string",
"avatar": "string",
"corp_id": "string",
"created_at": 0,
"email": "string",
"enable": true,
"english_name": null,
"ext_id": "string",
"extattr": "string",
"external_contact_able": true,
"external_position": null,
"external_profile": "string",
"external_user_count": 0,
"gender": 0,
"ia_authorized": true,
"ia_authorized_at": 0,
"id": 0,
"is_root": true,
"ma_authorized": true,
"ma_authorized_at": null,
"mobile": "string",
"moment_address": null,
"moment_cover": null,
"name": "string",
"new_ext_id": null,
"oa_authorized": true,
"oa_authorized_at": 0,
"openid": null,
"position": "string",
"qr_code": "string",
"signature": null,
"status": 0,
"telephone": "string",
"unionid": null,
"user_id": null,
"usertype": 0
},
"staff_ext_id": "string",
"staff_id": 0,
"stage": {
"comments": null,
"corp_id": "string",
"created_at": 0,
"creator_id": null,
"days": null,
"deleted": true,
"group_id": 0,
"id": 0,
"index": 0,
"is_end": true,
"is_start": true,
"name": "string",
"property_ids": null,
"success_rate": 0,
"updated_at": 0
},
"stage_group_id": 0,
"stage_group_name": "string",
"stage_id": 0,
"stage_update_time": 0,
"status": 0,
"updated_at": 0,
"user": {
"avatar": null,
"corp_id": "string",
"created_at": 0,
"creator_id": 0,
"deleted": true,
"ext_id": null,
"external_user_ext_id": null,
"external_user_type": null,
"gender": null,
"ia_ext_id": null,
"ia_unionid": null,
"id": 0,
"leads_id": 0,
"name": "string",
"oa_ext_id": null,
"oa_unionid": null,
"organization_correlation_time": 0,
"organization_id": 0,
"phone": "string",
"position": null,
"qw_corp_full_name": null,
"qw_corp_name": null,
"qw_external_profile": null,
"unionid": null,
"updated_at": 0
},
"user_type": "string"
}
}
🟢200正常返回
修改于 2024-03-05 07:16:27