获取在职继承已分配的客户群结果列表
最后更新:2024/11/29企业可通过此接口获取客户群分配结果列表
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/customer/inherit/allocated_group_page?access_token=x
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"chat_id_ids": ["wrDkH9EAAA-IZOZfeYY79zD9HdgCJ65g","wrDkH9EAAAi36wfjdwnM2IqK1gJReeug"],
"handover_userids": ["woDkH9EAAAGDB95Ta7Vga9RwEnCZPcjw"],
"takeover_userids": ["woDkH9EAAAT86NTv4dxtVM3CfT4pfmxw"],
"start_time" : 1681807920,
"end_time" : 1681807920,
"state" : 1,
"allocated_user_ids": [],
"current_index": 1,
"page_size": 100
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
chat_id_ids | String[] | 否 | 分配客户群ids |
handover_userids | String[] | 否 | 原群主的userids |
takeover_userids | String[] | 否 | 接替群主的userids |
start_time | long | 否 | 分配开始时间 |
end_time | long | 否 | 分配结束时间 |
state | int | 否 | 分配状态 (1:接替完毕 2:等待接替, 99:接替失败) |
allocated_user_ids | String[] | 否 | 分配人员id列表 |
current_index | int | 否 | 页码。默认值为1 |
page_size | int | 否 | 列表返回长度。默认值为20,最大值为100 |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total": 2,
"records": [
{
"allocate_id": "1805441101281133570",
"chat_id": "wrDkH9EAAA3dbquR9NRNpPux7pgqwQcg",
"state": "1",
"handover_owner": "woDkH9EAAAGDB95Ta7Vga9RwEnCZPcjw",
"takeover_owner": "woDkH9EAAAh9kjAPNxsx3SYdteMGQGbA",
"transferTime": "2023-04-18 16:52",
"allocatedUserId": "woDkH9EAAAGDB95Ta7Vga9RwEnCZPcjw"
}
]
},
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 分页对象 |
total | long | 总条数 |
records | object[] | 数据列表 |
allocate_id | string | 分配记录id |
chat_id | string | 群id |
state | int | 转接状态 1:接替完毕 2:等待接替, 99:接替失败 |
handover_owner | string | 原群主 |
takeover_owner | string | 新群主 |
transfer_time | string | 转接时间(yyyy-mm-dd hh24:mi:ss) |
allocated_userId | string | 分配人员id |
state_desc | string | 转接状态描述,state!=1时,有值 |
sub_code | string | 业务服务异常码 |