创建跟进记录
通过此接口可创建线索、客户和商机跟进记录
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/crm/follow/create?access_token=x
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
参数示例:
{
"type":2,
"id":"1532234063232437057",
"user_id":"chen-di",
"contact_type":"企微联系",
"follow_content":"跟进一下客户",
"location_lat":"",
"location_lng":"",
"location_name":"",
"stage_id":1531601499997297665,
"attachment":[
{
"cos_url":"https://javatest-1253767630.cos.ap-shanghai.myqcloud.com/appww078fe5f69b4761f6/2022/06/920068e6-6895-4175-83b5-faec6c82c809.pdf",
"file_extension":"pdf"
}
],
"field_map":{}
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
type | string | 是 | 类型:0:为线索创建跟进记录,1:为客户创建跟进记录,2:为商机创建跟进记录 |
id | string | 是 | type=0,线索id type=1,客户id type=2,商机id |
user_id | string | 是 | 员工id |
contact_type | string | 是 | 跟进方式 系统: 拜访、企微联系、电话联系、其他跟进、线上会议、打电话、加好友(企微加好友)、加好友(发短信加好友) 自定义字段:传递企业配置的自定义字段 |
follow_content | string | 是 | 跟进内容 |
location_lat | string | 否 | 拜访位置纬度 |
location_lng | string | 否 | 拜访地址经度 |
location_name | string | 否 | 拜访位置名称 |
stage_id | long | 否 | 商机阶段id(当type=2时此字段必填) |
field_map | map | 否 | 自定义字段 |
attachment | object | 否 | 本地附件,最多支持9个附件 |
cos_url | string | 否 | 文件路径 |
file_extension | string | 否 | 文件后缀(pdf,xls,xlsx,doc,docx,ppt,pptx) |
name | string | 否 | 文件名 |
type | string | 否 | 文件类型(web,file,video,image) |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": 1539134210387191809
}
返回说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 出错返回码,为0表示成功,非0表示调用失败 |
msg | string | 返回码描述 |
data | long | 跟进id |