| 异常码 | 异常消息 | 异常解决方案 |
|---|---|---|
| -1 | 不支持的类型 | remark_type传递有误,不在允许的范围内 |
| -1 | 备注内容不能为空 | content传递为空 |
| -1 | lead_id and company_id and opportunity_id is empty | lead_id 与company_id 与 opportunity_id ,需要传递其中某一项 |
//新增客户写跟进
{
"company_id": 5202566012,
"lead_id": "",
"remark_type":102,
"content": "测试内容"
}
//新增线索写跟进
{
"company_id": "",
"lead_id": 52025660142,
"remark_type":103,
"content": "测试内容"
}
//新增商机写跟进
{
"opportunity_id": 34545645767,
"company_id": "",
"lead_id": "",
"remark_type":104,
"content": "测试内容"
}
curl --location --request POST 'https://api-sandbox.xiaoman.cn/v1/dynamic/trail/push' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '//新增客户写跟进
{
"company_id": 5202566012,
"lead_id": "",
"remark_type":102,
"content": "测试内容"
}
//新增线索写跟进
{
"company_id": "",
"lead_id": 52025660142,
"remark_type":103,
"content": "测试内容"
}
//新增商机写跟进
{
"opportunity_id": 34545645767,
"company_id": "",
"lead_id": "",
"remark_type":104,
"content": "测试内容"
}'{
"code": 200,
"message": "success",
"now": "2019-10-12 14:47:33",
"data": {
"trail_id": 1101090505
}
}