# 确认其他联系人为客户

[异步回调]调用该接口将机器人的其他联系人确认为客户。

请求方式:POST

请求地址:https://$basehost/gateway/qopen/ConfirmAsCustomer

body参数

{
    "robot_id": "机器人id",
    "customer_list": ["其他联系人id"]
}
字段 类型 必填 说明
robot_id string 机器人id
customer_list array 其他联系人id数组

返回值:

{
    "data": {
        "serial_no": "",
        "failed_list": ["",""]
    },
    "errcode": 0,
    "errmsg": "",
    "hint": ""
}

返回说明

字段 类型 说明
errcode int 状态码,0为正常,非0代表错误
errmsg string 错误信息
data json json返回值
   serial_no string 请求序列号
   failed_list array 查询失败的其他联系人id数组
hint string 请求日志ID

处理结果,异步返回值:

{
    "event_type": 200017,
    "serial_no": "操作序列号",
    "err_code": 0,
    "err_msg": "success",
    "robot_id": "机器人id",
    "data": {
        "customer_list": [
            "其他联系人id"
        ]
    }
}

返回说明

字段 类型 说明
event_type int 事件类型,200017
serial_no string 操作序列号
err_code int 状态码,0为正常,非0代表错误
err_msg string 错误信息
robot_id string 机器人id
data object 返回数据
data.customer_list array 其他联系人id数组

完整请求示例:

curl -X POST \
  https://$basehost/gateway/qopen/ConfirmAsCustomer \
  -H 'Content-Type: application/json; charset=UTF-8' \
  -H 'Token: c2NdxDHKXIJ5j1zrhJeq2eJEHjh9xxx' \
  -d '{
    "robot_id": "机器人id",
    "customer_list": ["其他联系人id"]
}'
最后更新时间: 2023/5/24 10:48:59