查询在职继承已分配的客户结果列表
最后更新:2024/11/29企业可通过此接口查询已分配的成员列表,仅支持获取在本应用内操作分配的数据(在企业微信里操作分配的数据不支持获取)
请求方式: POST(HTTPS)
请求地址: https://open.wshoto.com/openapi/customer/inherit/allocated_customers_page?access_token=x
Query参数:
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | string | 是 | 调用接口凭证 |
Body参数:
{
"customer_name": "customer_name",
"handover_userids": [
"handover_userid"
],
"takeover_userids": [
"takeover_userid"
],
"state": 1,
"auth_user_list": [
"auth_user"
],
"external_user_ids": [
"external_user"
],
"current_index": 1,
"page_size": 100,
"start_time": 123456789,
"end_time": 123456789
}
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
customer_name | str | 否 | 客户名称 |
handover_userids | str[] | 否 | 原跟进成员的userid |
takeover_userids | str[] | 否 | 接替成员的userid |
state | int | 否 | 接替状态 |
auth_user_list | str[] | 否 | 权限userid |
external_user_ids | str[] | 否 | 客户id |
current_index | int | 否 | 页码。默认值为1 |
page_size | int | 否 | 列表返回长度。默认值为20,最大值为100 |
start_time | long | 否 | 转接开始时间,格式:时间戳,精度:秒.最大值:4102415999L.开始时间和结束时间必须同时不传或者同时传入.如果开始时间大于结束时间,则无法查询到对应业务数据 |
end_time | long | 否 | 转接结束时间,格式:时间戳,精度:秒.最大值:4102415999L.开始时间和结束时间必须同时不传或者同时传入. |
返回值:
{
"code": 0,
"msg": "请求成功",
"data": {
"total": 2,
"records": [
{
"state": null,
"operator": null,
"type": "1",
"remark": "ccc",
"handover_userid": "xiaopeng",
"takeover_userid": "xiaopeng",
"external_userid": "xiaopeng",
"transfer_time": "2023-05-16 15:07:15",
"state_desc": "2023-05-17 15:07:15 接替",
"customer_name": "cc",
"tag_list": null,
"handover_main_department": null,
"takeover_main_department": null,
"info_type": 1,
"corp_name": null
},
{
"state": null,
"operator": null,
"type": "1",
"remark": "悠哉犹在",
"handover_userid": "cc",
"takeover_userid": "cc",
"external_userid": "cc",
"transfer_time": "2023-05-10 17:45:28",
"state_desc": "2023-05-11 17:45:28 接替",
"customer_name": "悠哉犹在",
"tag_list": null,
"handover_main_department": null,
"takeover_main_department": null,
"info_type": 1,
"corp_name": null
}
]
},
"sub_code": "00000"
}
参数说明:
参数 | 类型 | 说明 |
---|---|---|
code | int | 返回码 |
msg | string | 对返回码的文本描述内容 |
data | object | 分页对象 |
total | long | 总条数 |
records | object[] | 数据列表 |
handover_userid | string | 原跟进成员的userid |
takeover_userid | string | 接替成员的userid |
external_userid | string | 客户的userid |
state | int | 状态 |
transfer_time | string | 转接时间 |
operator | string | 操作人 |
state_desc | string | 转接状态描述 |
customer_name | string | 客户名称 |
tag_list | string | 客户标签 |
tag_id | string | 该成员添加此外部联系人所打企业标签的id,仅企业设置(type为1)的标签返回 |
tag_name | string | 该成员添加此外部联系人所打标签类型, 1-企业设置, 2-用户自定义 |
type | int | 客户名称 |
group_name | string | 该成员添加此外部联系人所打标签的分组名称 |
type | string | 客户类型 |
handover_main_department | string | 原跟添加人部门 |
takeover_main_department | string | 接替人主部门 |
remark | string | 备注 |
info_type | string | 客户数据类型:1-可获取客户信息 2-无法获取客户信息 |
corp_name | string | 公司名称 |
sub_code | string | 业务服务异常码 |