# 成为好友后,新客户通知 - 20001
该回调用于新增客户通知
encoding_content解密后的结构:
{
"event_type": 20001,
"robot_id": "机器人id",
"account_id": "客户id",
"account_type": 2,
"mark_id_list": "调用api加好友时传入的标识字段,多次请求会记录多个(手机号加好友仅会保存最后一个)",
"profile": {
"name": "姓名",
"avatar": "头像url",
"union_id": "微信union_id,只有微信客户才有",
"external_user_id": "微信external_user_id",
"phone": "客户手机号",
"gender": "性别",
"state_code": "企微联系我自定义的state参数",
"channel_name": "state_code关联的渠道名称"
}
}
说明
字段 | 类型 | 说明 |
---|---|---|
event_type | int | 事件类型,20001 |
robot_id | string | 机器人id |
account_id | string | 客户id |
account_type | int | 客户类型:0:客户类型未知,1=员工,2=微信外部联系人,3=企业微信外部联系人 |
mark_id_list | array | 调用api加好友时传入的标识字段,多次请求会记录多个(手机号加好友仅会保存最后一个) |
profile | object | 详细信息 |
profile说明
字段 | 类型 | 说明 |
---|---|---|
name | string | 姓名 |
avatar | string | 头像url |
union_id | string | 微信union_id,只有微信客户才有 |
external_user_id | string | 微信external_user_id |
phone | string | 客户手机号 |
gender | int | 性别 1:男,2:女 |
state_code | string | 企微联系我自定义的state参数 |
channel_name | string | state_code关联的渠道名称 |