- 对接说明
- 全局异常码
- 联系人合并接口迁移说明
- 一、获取访问凭据
- 二、通讯录管理
- 三、企微好友管理🚀🚀🚀
- 四、线索管理(即将废弃)
- 五、企业管理🚀🚀🚀
- 六、智能码
- 七、三方ID转换
- 八、跟进记录🚀🚀🚀
- 九、旅程动态🚀🚀🚀
- 十、商机🚀🚀 🚀
- 十一、资料库
- 十二、标签管理🚀🚀🚀
- 十三、营销组件
- 十四、消息推送
- 十五、群相关
- 十六、自定义字段🚀🚀🚀
- 十七、外呼相关
- 十八、个微人脉管理
- 十九、联系人🚀🚀🚀
- 二十、活动管理
- 事件回调🚀🚀🚀
10.3 商机新增-新版
POST
https://openapi.weiling.cn/openapi/v2/business/create
请求参数
Query 参数
access_token
string
可选
Body 参数application/json
business_name
string
商机名称
stage
integer
商机阶段值
company_id
string
企业id
related_customers
array [object {2}]
可选
type
integer
0-联系人
ids
array[string]
对象的id列表
user_ids
array[string]
商机协作人
except_amount
integer
预计赢单金额
except_date
string
预计赢单日期
winning_amount
integer
赢单金额
winning_date
string
赢单日期
create_user_id
string
创建人
create_time
number
必需
update_time
number
更新时间
process_id
string
流程id
business_custom
object
可选
(key为apiName , value为传参 ;
是日期类型: 13位时间戳 ;
是单选类型: 选项的label值(number) ;
是多选类型: 选项的label值的集合(Array of number) );
apiName通过https://www.apifox.cn/apidoc/shared/19699d3b-8e70-434a-b516-ce35107d2094/api-249167310 接口获取;
如没有,请联系小微配置。
示例
{
"business_name": "string",
"stage": 0,
"company_id": "string",
"related_customers": [
{
"type": 0,
"ids": [
"string"
]
}
],
"user_ids": [
"string"
],
"except_amount": 0,
"except_date": "string",
"winning_amount": 0,
"winning_date": "string",
"create_user_id": "string",
"create_time": 0,
"update_time": 0,
"process_id": "string",
"business_custom": {
"api_name": "value"
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.weiling.cn/openapi/v2/business/create?access_token' \
--header 'Content-Type: application/json' \
--data-raw '{
"business_name": "string",
"stage": 0,
"company_id": "string",
"related_customers": [
{
"type": 0,
"ids": [
"string"
]
}
],
"user_ids": [
"string"
],
"except_amount": 0,
"except_date": "string",
"winning_amount": 0,
"winning_date": "string",
"create_user_id": "string",
"create_time": 0,
"update_time": 0,
"process_id": "string",
"business_custom": {
"api_name" : "value"
}
}'
返回响应
🟢200成功
application/json
Body
code
string
可选
msg
string
可选
data
object
可选
business_id
string
商机id
示例
{
"code": "string",
"msg": "string"
}
修改于 2025-04-25 07:28:20