客户资料变更推送

注意:事件推送请求默认都为post,接收到平台推送后,需要返回json格式,{"code": "200"}, 否则都视为推送失败,会有重推逻辑,共重推5次。

1.新增客户资料推送

接口详解:
本接口是将在客服系统中创建的用户以一个 json array对象的方式推送给您系统,其中每一个json对象对应一个用户资料信息。
  • 请求方式:POST
  • 编码方式:UTF-8
json示例:
{ "eventUniqueId": "736762361592123392", "eventType": "customerCreate", "data": [ { "_id": "736754250988027904", "createMethod": "INSERT", "customerStatus":"客户状态", "customerOrigin":"客户来源", "memo": "备注内容", "resolveStatus": "pending", "createAgent": "6000", "customerStatus": "ordinary", "customerOrigin": "busOpportunity", "updateAgent": "6000", "owner": "6000", "mobile": [ { "value": "18582599309" }, { "value": "02120775542" } ], "wechat": [ { "memo": "微信备注内容" } ], "firstOwner": "6000", "updateTime": "2023-11-14 15:34:10", "customerName": "客户名字", "firstAssignTime": "2023-11-14 15:30:42", "accountId": "1090", "createTime": "2023-11-14 15:30:42", "assignTime": "2023-11-14 15:30:42", "firstCallTime": "2023-11-13 17:49:03", "firstCallUser": "6000", "lastCallTime": "2023-11-14 15:33:36", "lastCallUser": "6000" } ] }

2.修改客户资料推送

  • 请求方式:POST
  • 编码方式:UTF-8 
json示例:
{ "eventUniqueId": "736762361592123392", "eventType": "customerUpdate", "data": [ { "_id": "736754250988027904", "gender": "", "createMethod": "INSERT", "memo": "备注内容", "customerStatus":"客户状态", "customerOrigin":"客户来源", "resolveStatus": "pending", "createAgent": "6000", "customerLabel": [], "customerStatus": "ordinary", "customerOrigin": "busOpportunity", "updateAgent": "6000", "email": [], "owner": "6000", "qq": [], "mobile": [ { "value": "18582599309" }, { "value": "02120775542" } ], "wechat": [ { "memo": "不看把接口" } ], "firstOwner": "6000", "updateTime": "2023-11-14 15:34:10", "customerName": "你看见", "firstAssignTime": "2023-11-14 15:30:42", "accountId": "1090", "createTime": "2023-11-14 15:30:42", "region": [], "assignTime": "2023-11-14 15:30:42", "firstCallTime": "2023-11-13 17:49:03", "firstCallUser": "6000", "lastCallTime": "2023-11-14 15:33:36", "lastCallUser": "6000" } ] }
示例参数解析: 其中多行文本、单行文本、单选框、复选框、下拉框、日期为自定义字段。公司名称、描述、联系人电话、联系人邮箱、微信、省、市、公司地址、公司网站为固定字段。

3.删除客户资料接口推送

  • 请求方式:POST
  • 编码方式:UTF-8 
{ "eventType":"delete", "eventUniqueId":"736762361592123392", "data":["736738729326354432"]" }
示例参数解析: 其中data里的数据为用户资料主键ID,eventType为当前事件的类型。
2023-11-16