谱蓝云 OpenAPI
  1. 商机管理
谱蓝云 OpenAPI
  • 接入指南
    • 基本概念介绍
    • 开发前必读
    • 获取 access_token
      GET
  • 回调通知
    • 客户
    • 组织架构
    • 商机
  • 获客拉新
    • 渠道活码
    • 加微任务
  • 客户管理
    • 企微客户
      • 获取客户商机记录
      • 更新客户资料
      • 更新客户标签
      • 创建客户动态
      • 获取客户标签数据
      • 获取客户资料信息
      • 获取客户关系与所在群聊
      • 开发中心-客户业务线归属
      • 搜索客户列表
      • 更新同步客户信息
    • 客户群
      • 客户群分页查询
    • 标签任务
  • 客户运营
    • 客户群发
    • 企微朋友圈
    • 群群发
      • 创建群群发任务
  • 营销活动
    • 营销 SOP
    • 直播管理
  • 内容中心
    • 基础素材
      • 创建基础素材
    • 自定义表单
      • 获取指定表单数据
  • 销售管理
    • 线索管理
      • 创建线索
    • 商机管理
      • 创建商机
        POST
      • 跟进商机
        POST
    • 工作日历
      • 创建日程
  • 会话存档
    • 聊天记录
      • 查询员工与客户的记录
  • 数据中心
    • 客户联系统计
  • 组织架构
  • 应用通知
    • 创建应用通知
  • 内部标签
    • 获取企业内部标签库
    • 添加内部标签
    • 编辑内部标签
    • 删除内部标签
    • 给线索打标签
    • 移除线索身上的标签
    • 给客户打标签
    • 移除客户身上的标签
  1. 商机管理

创建商机

开发中
POST
/open-api/customer/biz-submit/create-business
最后修改时间:2024-11-07 10:14:09
该接口用于通过应用创建商机/服务对象
注意
customerId 和 prospectId 不能同时为空,只需要填写一个,当两者都存在时,根据 source 获取:
当 source 为 1 时,customerId 必填;
当 source 为 2 时,prospectId 必填;
当 source 为 3 时,prospectId 和prospectFollowLineId 必填;
nextContactTime 为空时,不会创建日程

请求参数

Query 参数
access_token
string 
可选
应用调用 API 的凭证
示例值:
{{access_token}}
Header 参数
Authorization
string 
可选
默认值:
Bearer {{auth_token}}
Body 参数application/json
lineId
integer 
业务线id
必需
processId
integer 
商机流程id
必需
nextTime
object (NextTime) 
可选
scheduleName
string 
日历名称
可选
nextContactTime
string 
下次沟通时间
可选
nextTimeLength
integer 
下次沟通时长
可选
单位(分钟)
nextRemindLength
integer 
下次沟通提醒时间
可选
单位(分钟)
customerId
integer 
客户id
可选
prospectId
integer 
线索id
可选
prospectFollowLineId
integer 
线索跟进id
可选
userId
integer 
跟进人id
必需
source
enum<integer> 
来源
必需
枚举值:
123
示例
{
  "lineId": 10,
  "processId": 10,
  "nextTime": {
    "scheduleName": "xx日程",
    "nextContactTime": "2024-08-08T14:00:00Z",
    "nextTimeLength": 60,
    "nextRemindLength": 30
  },
  "customerId": 100,
  "prospectId": 200,
  "prospectFollowLineId": 300,
  "userId": 500,
  "source": 1
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/open-api/customer/biz-submit/create-business?access_token={{access_token}}' \
--header 'Authorization: Bearer {{auth_token}}' \
--header 'Content-Type: application/json' \
--data-raw '{
  "lineId": 10,
  "processId": 10,
  "nextTime": {
    "scheduleName": "xx日程",
    "nextContactTime": "2024-08-08T14:00:00Z",
    "nextTimeLength": 60,
    "nextRemindLength": 30
  },
  "customerId": 100,
  "prospectId": 200,
  "prospectFollowLineId": 300,
  "userId": 500,
  "source": 1
}'

返回响应

🟢200成功
application/json
Body
code
integer 
状态码
必需
0 表示成功,非 0 表示失败
msg
string 
状态码描述
必需
示例
{
    "code": 0,
    "msg": "string"
}
上一页
创建线索
下一页
跟进商机
Built with