- 开发指南
- 基础接口
- 客户设置
- 消息推送
- 客户&线索&待分配
- 客户查询
- 客户导入
- 客户
- 线索&待分配
- 商机
- 个人客户转企业客户
- 企业客户联系人
- 客户旅程
- 客户操作
- 按企微员工id列出企微好友客户详情POST
- 公海
- 企微组织架构
- 企微标签库
- 企业
- 合同
- 电商平台
- 营销
- 数据统计
- 内容访客
- 电销手机
- SOP任务
- 群发消息
- 管控
- 工单
- 素材
- 应用通知
- 附录
- 群数据
- 店主活码
- 通话列表
查询商机配置
POST
/api/v3/opportunity/config/get
客户&线索&待分配/商机
请求参数
Header 参数
appId
string
应用 appId
示例值:
{{appId}}
timestamp
string
请求时间戳
示例值:
{{timestamp}}
sign
string
请求消息签名值
示例值:
{{sign}}
appKey
string
应用 appKey
示例值:
{{appKey}}
示例代码
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/config/get' \
--header 'appId: {{appId}}' \
--header 'appId;' \
--header 'timestamp: {{timestamp}}' \
--header 'timestamp;' \
--header 'sign: {{sign}}' \
--header 'sign;' \
--header 'appKey: {{appKey}}' \
--header 'appKey;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
array [object {10}]
必需
typeName
string
类型名称
typeId
integer
类型id
defaultType
boolean
是否是默认类型
allowSkip
boolean
是否允许跨阶段跳转
allowGoBack
boolean
是否允许回退
stages
array [object {10}]
阶段列表
fields
array [object {10}]
商机字段
allowInvalidGoBack
boolean
允许输单/无效阶段回退
allowDeleteOpportunity
boolean
仅允许员工删除商机
deleteOpportunityDate
integer
允许删除天数
示例
{
"code": 0,
"message": "string",
"data": [
{
"typeName": "string",
"typeId": 0,
"defaultType": true,
"allowSkip": true,
"allowGoBack": true,
"stages": [
{
"id": 0,
"name": "string",
"rank": 0,
"possibility": 0,
"requirement": "string",
"remind": true,
"remindAfterDays": [
"string"
],
"children": [
{
"id": 0,
"name": "string",
"rank": 0,
"possibility": 0,
"requirement": "string",
"remind": true,
"remindAfterDays": [
"string"
],
"children": [
"string"
],
"customerFields": null,
"requiredOppTypeFields": null
}
],
"customerFields": [
{
"fieldId": 0,
"name": "string",
"type": 0
}
],
"requiredOppTypeFields": [
{
"name": "string",
"required": true,
"rank": 0,
"type": 0,
"maxUnicode": 0,
"id": 0,
"options": [
{
"id": 0,
"name": "string"
}
],
"scale": 0
}
]
}
],
"fields": [
{
"id": 0,
"name": "string",
"required": true,
"type": 0,
"options": [
{
"id": 0,
"name": "string"
}
],
"scale": 0,
"maxUnicode": 0,
"minUnicode": null,
"pattern": null,
"rank": 0
}
],
"allowInvalidGoBack": true,
"allowDeleteOpportunity": true,
"deleteOpportunityDate": 0
}
]
}
修改于 2023-06-09 07:45:32