1. 接口说明
可通过该接口查询对应某条具体的话单数据的推送结果详情
注意:
- 在优音云客服系统中,可通过设置–>开发者中心,查看租户ID:tenant_id。
2. 调用URL
3. 调用方式
GET
4. 传入参数
非必填参数,调用接口时请传递参数名,参数值可为空
名称 | 类型 | 是否必填 | 说明 |
---|---|---|---|
tenant_id | String | 是 | 租户ID |
access_token | String | 是 | 租户鉴权Token |
push_type | Integer | 是 | 数据类型 1:session话单数据 2:call话单数据 |
data_id | String | 是 | 数据ID,当push_type=1时,该字段传入sessionId;当push_type=2时,该字段传入callId |
5. 响应参数
名称 | 类型 | 说明 |
---|---|---|
errcode | Integer | 状态码:0成功,其他非0错误码,详见错误码列表 |
errmsg | String | 状态说明 |
data | JsonObject类型 | 结果集 |
data.pushType | Integer | 数据类型 1:session话单数据 2:call话单数据 |
data.isSuccess | Boolean | 是否推送成功 |
data.failureReason | Integer | 推送失败原因 1:系统错误 2:第三方服务未配置推送接口信息 3:第三方服务配置了多个推送信息接口 4:话单数据中未能获取到对应的callId/sessionId 5:第三方服务响应异常 6:数据库中没有对应的call/session数据 |
data.pushUrl | String | 推送服务URL |
data.pushData | JsonObject类型 | 推送服务参数 |
6. 使用样例
调用
响应
{
"errcode": 0,
"errmsg": "success",
"data": {
"pushType": 2,
"isSuccess": true,
"failureReason": 0,
"pushUrl": "https://ykf.uincall.com/callcenter/call/push/test/session?type=0",
"pushData": {
"tenant_id": "acf528a2-d0e2-4a7b-8513-74cb3995cfab",
"service_stop_time": "2023-04-17T15:27:50",
"app_type": "agent",
"agent_id": "cdf8146f0270f0fab9f7837ee7ea8a7b",
"ringing_time": 7,
"created_at": "2023-04-17T15:27:42",
"skip": false,
"bussiness_num": "02863208372",
"updated_at": "2023-04-17T15:27:51",
"alterting_time": "2023-04-17T15:27:41",
"id": "979589d9-926f-4b5a-cba9-0193be172648",
"dnis": "18710783340",
"ani": "02863208372",
"app_id": "",
"summary": "",
"service_time": 9,
"is_repeat": false,
"agent_call": {
"skillnamefrom": "",
"skillidfrom": "",
"sip_network_ip": "10.10.14.67",
"stoptime": "2023-04-17 15:27:50",
"starttime": "2023-04-17 15:27:41",
"holdtimes": 0,
"failreason": "DNIS HANGUP",
"answertime": "2023-04-17 15:27:48",
"sip_network_port": "53960",
"callresult": 1,
"agentnum_to": "1003",
"dnis": "8008001293",
"holdtime": 0,
"ani": "02863208372"
},
"dnis_place": "陕西西安",
"call_direction": "call out",
"session_id": "89375c65-0506-44a0-c465-e37b70ab4127",
"is_transfer": false,
"service_start_time": "2023-04-17T15:27:41",
"multi_match": false,
"queue_time": 0,
"ani_place": "四川眉山",
"service_type": "dialout",
"call_in_channel": "",
"assigned": false,
"customer_id": "e16ff0e4c8aba7ce59bc46a0d7e3ca11",
"status": 0
}
}
}
文档更新时间: 2024-09-24 14:36 作者:admin