POST /openapi/call/web/v1/cdr/query
字段名称 | 字段类型 | 是否必填 | 字段描述 |
---|
callType | string[] | 否 | 呼叫类型 呼入:'callin', 外呼:'callout', 双向呼叫:'twoWayCall', 智能外呼:'autoCallout', 外呼任务:'callTask', 咨询:'consult', 转接:'transfer', 咨询转接:'consultTransfer' |
customerNumber | string | 否 | 客户号码 |
disNumber | string | 否 | 外显号 |
endTime | string | 是 | 获取呼叫时间的结束时间,格式 yyyy-MM-dd HH:mm:ss |
page | number | 否 | 页数 |
pageSize | number | 否 | 每页条数,默认1000 |
serviceNumber | string | 否 | 服务号 |
startTime | string | 是 | 获取呼叫时间的开始时间,格式 yyyy-MM-dd HH:mm:ss |
status | string | 否 | 通话状态:'CCR_LIMIT':并发限制,'BLACK_LIMIT'黑名单限制,'ANSWER'已接听,'IVR'语音导航中挂机, 'QUEUE_ABANDON'排队放弃,'LEAVE_MSG'留言,'AGENT_NO_ANSWER'坐席未接听,'CUSTOMER_NO_ANSWER'客户未接听,'THREE_WAY_CALL':三方,'TRANSFER'呼叫转移,'CONSULT'咨询已接听,'CONSULT_TRANSFER': 咨询转移 |
{
"startTime": "2021-03-25 00:27:33",
"endTime": "2021-03-26 19:27:33",
"callType": [],
"status": "ANSWER",
"customerNumber": "1121",
"disNumber": "02258834811",
"serviceNumber": "",
"page": 1,
"pageSize": 6
}
字段名称 | 字段类型 | 字段描述 |
---|
callId | string | 通话ID |
accountId | string | 账户编号 |
customerNumber | string | 客户号码,来电是主叫号码,去电是被叫号码 |
customerProvince | string | 客户省份 |
customerCity | string | 客户城市 |
callType | string | 通话类型,呼入:'callin', 外呼:'callout', 双向呼叫:'twoWayCall', 智能外呼:'autoCallout', 外呼任务:'callTask', 咨询:'consult', 转接:'transfer', 咨询转接:'consultTransfer' |
serviceNumber | string | 服务号,来电的被叫号码 |
disNumber | string | 外显号,去电的主叫号码 |
disProvince | string | 外显号省份 |
disCity | string | 外显号城市 |
status | string | 通话状态:'CCR_LIMIT':并发限制,'BLACK_LIMIT'黑名单限制,'ANSWER'已接听,'IVR'语音导航中挂机, 'QUEUE_ABANDON'排队放弃,'LEAVE_MSG'留言,'AGENT_NO_ANSWER'坐席未接听,'CUSTOMER_NO_ANSWER'客户未接听,'THREE_WAY_CALL':三方,'TRANSFER'呼叫转移,'CONSULT'咨询已接听,'CONSULT_TRANSFER': 咨询转移 |
agentName | string | 座席名称 |
agentNumber | string | 座席工号 |
queueNumber | string | 技能组编号 |
queueName | string | 技能组编号 |
answerTime | string | 接通时间 |
hangupTime | string | 挂机时间 |
callDuration | Integer | 通话时长 挂机时间-接通时间 |
startTime | string | 呼叫开始时间 |
endTime | string | 呼叫结束时间 |
inQueueTime | string | 进入队列时间 |
queueDuration | Integer | 技能组排队等待时长 呼叫座席的时间-进入队列的时间 |
satisfyDuration | Integer | 满意度调查时长 满意度结束时间-满意度开始时间 |
satisfyStartTime | string | 满意度调查开始时间 |
satisfyEndTime | string | 满意度调查结束时间 |
satisfyKeys | String | 满意度按键值记录,多级按键以_隔开 |
recordUrl | string | 通话录音文件地址 |
leaveMsgUrl | string | 留言录音文件地址 |
consultRecordUrl | string | 咨询录音文件地址 |
failReason | String | 失败原因编码 |
failReasonMsg | String | 失败原因描述 |
hangUpParty | string | 挂机方 'CUSTOMER'客户, 'AGENT'坐席, 'SYSTEM'系统 |
transferFrom | string | 转接到该通话的座席工号 |
callIdFrom | string | 转接到该通话的通话记录id |
extras | jsonString | 自定义参数 |
{
"success": true,
"message": "200 ok!",
"code": "200",
"data": {
"list": [ {
"callId": "686022412562452480",
"accountId": "1090",
"customerNumber": "17391XXXXXXX",
"customerProvince": "陕西",
"customerCity": "西安",
"callType": "callTask",
"serviceNumber": "",
"disNumber": "010514XXX",
"disProvince": "北京",
"disCity": "北京",
"status": "ANSWER",
"agentNumber": "8277",
"agentName": "gs",
"queueNumber": "",
"queueName": "",
"answerTime": "2023-06-27 15:40:37",
"hangupTime": "2023-06-27 15:40:45",
"callDuration": 8,
"startTime": "2023-06-27 15:40:29",
"endTime": "2023-06-27 15:40:45",
"inQueueTime": "",
"queueDuration": 0,
"satisfyDuration": 0,
"satisfyStartTime": "",
"satisfyEndTime": "",
"satisfyKeys": 1_2,
"recordUrl": "https://useasy-oss.oss-cn-hangzhou.aliyuncs.com/1090/20230627/1090-20230627154030-8277-XXXXXX.wav",
"recordDuration": 0,
"leaveMsgUrl": "",
"consultRecordUrl": "",
"failReason": "",
"hangUpParty": "CUSTOMER",
"transferFrom": "",
"callIdFrom": "",
"extras": ""
}
],
"page": {
"pageSize": 6,
"pageNumber": 1,
"totalPage": 1,
"total": 2
}
}
}