新增预约单事件
请求参数名 | 类型 | 说明 |
---|---|---|
data | Object | 消息体 |
data.id | String | 事件id |
data.event | String | 事件主类型(固定:CRM_CONTACT) |
data.action | String | 事件子类型(MALL_APPOINTMENT_ORDER_CREATE_OPENAPI) |
data.body.user_id | String | 操作人ID |
data.body.order_num | String | 预约单编号 |
data.body.order | OrderInfo | 预约单详细信息 |
参数名 | 类型 | 说明 |
---|---|---|
order_id | String | 预约单id |
order_num | String | 预约单编号 |
order_status | Int | 预约单状态码:10 待确认;20 待到店;30 取消;40 已失约;50 已完成 |
order_status_value | String | 预约单状态名称:10 待确认;20 待到店;30 取消;40 已失约;50 已完成 |
order_create_time | String | 预约单创建时间 |
order_create_user_id | String | 预约单创建人id,指员工uid |
order_create_user_name | String | 预约单创建人姓名,指员工姓名 |
network_id | String | 网点id |
network_name | String | 网点名称 |
arrival_time | String | 到店时间 |
person_id | String | 人员id |
person_name | String | 人员姓名 |
project_id | String | 项目id |
project_name | String | 项目名称 |
service_duration | Int | 服务时长,单位:分钟 |
appointment_user_name | String | 到店顾客名称 |
appointment_user_phone | String | 到店顾客手机号 |
customer_id | String | 联系人id |
customer_name | String | 联系人名称 |
sign_in_status | Int | 到店状态码: 10 正常到店 ;20 异常到店 |
sign_in_status_value | Int | 到店状态名称: 10 正常到店 ;20 异常到店 |
sign_in_distance | Int | 到店距门店距离 |
sign_in_location | String | 到店定位地址 |
customer_wx_avatar | String | 签到客户微信头像 |
customer_wx_nickname | String | 签到客户微信昵称 |
service_person_has_removed | Bool | true:预约单服务人员已被删除 |
customer_field_list | Object[] | 预约单自定义字段信息 |
customer_field_list.field_id | String | 自定义字段id |
customer_field_list.complete_value | String | 字段枚举结构,如果是多级联选,将会返回完整的选项id和name |
customer_field_list.field_type | String | 自定义字段类型。字段类型(与自定义字段配置相同),date日期 datetime日期时间 single单行文本 multi多行文本 number数字 radio单选 checkbox多选 cascade多级下拉框 file附件 |
customer_field_list.field_value | String | 自定义字段值,根据字段类型不同,值内容会不同。 |
customer_field_list.field_name | String | 自定义字段名称 |
remark | String | 备注 |
service_end_time | String | 服务结束时间:仅当预约单选择了服务时长时才会计算结束时间,否则该字段为空 |
//明文信息推送
{
"id": "995c220f-289b-4f69-a7c6-933db8b0dce3",
"event": "CRM_CONTACT",
"action": "CRM_CONTACT_CREATE",
"body": {
"account": "W00000000516",
"order": {
"appointment_user_name": "张杨",
"appointment_user_phone": "_hidden_5bc2c26b_",
"arrival_time": "2024-10-15 18:30:00",
"customer_field_list": [
{
"complete_value": "{\"id\":\"459059510902239232\",\"numVal\":0,\"strVal\":\"ss\",\"valType\":\"single\",\"aryVal\":[],\"cascadingValue\":null}",
"field_id": 459059510902239200,
"field_name": "自定义单行文本",
"field_type": "single",
"field_value": "\"ss\""
},
{
"complete_value": "{\"id\":\"459059651885830144\",\"numVal\":0,\"strVal\":\"\",\"valType\":\"checkbox\",\"aryVal\":[\"三室一厅\"],\"cascadingValue\":null}",
"field_id": 459059651885830140,
"field_name": "户型",
"field_type": "checkbox",
"field_value": "[\"三室一厅\"]"
},
{
"complete_value": "{\"id\":\"459059704675971072\",\"strVal\":\"\",\"valType\":\"number\",\"aryVal\":[],\"cascadingValue\":null}",
"field_id": 459059704675971100,
"field_name": "自定义数字",
"field_type": "number",
"field_value": ""
},
{
"complete_value": "{\"id\":\"505410070535507968\",\"strVal\":\"\",\"valType\":\"number\",\"aryVal\":[],\"cascadingValue\":null}",
"field_id": 505410070535508000,
"field_name": "测试2",
"field_type": "number",
"field_value": ""
},
{
"complete_value": "{\"id\":\"509418179456368640\",\"numVal\":0,\"strVal\":\"可以\",\"valType\":\"radio\",\"aryVal\":[],\"cascadingValue\":null}",
"field_id": 509418179456368640,
"field_name": "这是一个需要删除的字段",
"field_type": "radio",
"field_value": "\"可以\""
},
{
"complete_value": "{\"id\":\"509421603771396096\",\"numVal\":0,\"strVal\":\"1\",\"valType\":\"radio\",\"aryVal\":[],\"cascadingValue\":null}",
"field_id": 509421603771396100,
"field_name": "是否",
"field_type": "radio",
"field_value": "\"1\""
},
{
"complete_value": "{\"id\":\"510449227470262272\",\"strVal\":\"\",\"valType\":\"number\",\"aryVal\":[],\"cascadingValue\":null}",
"field_id": 510449227470262300,
"field_name": "1",
"field_type": "number",
"field_value": ""
},
{
"complete_value": "{\"id\":\"565910685028335616\",\"strVal\":\"\",\"valType\":\"number\",\"aryVal\":[],\"cascadingValue\":null}",
"field_id": 565910685028335600,
"field_name": "灯管",
"field_type": "number",
"field_value": ""
}
],
"customer_id": "c91eeabd-8612-11ef-8949-be10542b60e7",
"network_id": "00048f52-b2f5-4ccb-8975-4a3dbed92d45",
"network_name": "会话1测试373",
"order_create_time": "2024-10-15 18:05:53",
"order_create_user_id": "468",
"order_id": 634089652327989200,
"order_num": "Y634089652417560576",
"order_status": 10,
"person_id": 527440092860506100,
"person_name": "王珂医生",
"project_id": 524955570422575100,
"project_name": "维修服务",
"remark": "",
"service_duration": 120,
"service_end_time": "2024-10-15 20:30:00",
"union_id": ""
},
"order_num": "Y634089652417560576",
"user_id": "468"
}
}
//信息加密推送
{
"id": "902e9918-ca15-4876-bd1e-7b0341587c5f",
"event": "CRM_CONTACT",
"action": "MALL_APPOINTMENT_ORDER_CREATE_OPENAPI",
"body": {
"encrypt": "XOKphmyMEcuW94gYtL/5Nj4ueFcfjaEFecC507QGzXbnDmavLp7I+s7K5BI4Qjt+Ayy/mNbw9bUE2x0HkSWm9h57VKJc9VLBghTjALWJcJduBDC7L6doORsZdaNlfVJU6DJ0VLyd1NojW9PfrzS01eQ7GW/dgaO3tkXQP2AOrGTn3Ca8haZQiwEJDYN/NUjW1/9T+gIcBu8LbmZGyokwrOD+ZGy7uky37yq8w8SGpis1WR2pIlZUOo+QdmWnMY1kJ9bHelH9h3ERemmNRIh/oMZp7QvFaNl/iCgUVAkh14tOV0nniE9Ld29GxyIEFz0nxD5+s4AG4cvq+xl+FXhu0A==",
"msgSignature": "d64cc4a02b22b725a6b50a9843ebf9c0fd7ca70f",
"timeStamp": "1661233174",
"nonce": "9ZvYhI4aFmR7wUNl"
}
}
响应参数名 | 类型 | 说明 |
---|---|---|
code | Int | 响应码:状态码 0 失败,1 成功 |
msg | String | 响应提示 |
{
"code": 1,
"msg": "成功"
}
{
"code": 0,
"msg": "处理失败"
}
修改于 2024-10-17 08:52:53