全部产品

坐席工作台获取通话记录

更新时间:2018-12-18 14:55:46

(ListRecentCallRecords)

描述

坐席工作台获取呼叫中心当前坐席的最近通话记录。

请求参数

名称 类型 是否必须 描述
Action String 系统规定参数,ListRecentCallRecords
InstanceId String 呼叫中心实例ID
StartTime Long 获取的历史数据的起始时间。缺省为0,代表从当天的0时开始。
StopTime Long 获取的历史数据的终止时间。缺省为0,代表截止到目前的时间。
PageNumber Integer 分页序号
PageSize Integer 分页大小

返回参数

名称 类型 是否必须 描述
CallDetailRecords Page\ 获取到的通话详单。
      TotalCount int 对象总数
      PageNumber int 分页序号
      PageSize int 分页大小
      List List\ 对象列表
            ContactId String 话务ID,全局唯一,对应于 ACC的ACID
            StartTime Long 电话开始时间,内呼从进入IVR开始,外呼从开始接通计算。the number of milliseconds since January 1, 1970, 00:00:00 GMT
            Duration Integer 通话持续时间,单位为秒。
            ContactType String 通话类型, 参考枚举类型 ContactType, Inbound(0) 内呼, Outbound(1) 外呼, Internal(2) 内部通话;
            ContactDisposition String 电话结束原因,参考枚举类型 ContactDisposition, Success(0) 正常,  NoAnswer(1) 无应答,  Rejected(2)拒绝, Busy(3)忙, AbandonedInContactFlow(4) IVR呼损, AbandonedInQueue(5)队列呼损, AbandonedRing(6) 久振不接,  QueueOverflow(7) 等待超时被挂断
            CallingNumber String 主叫号码
            CalledNumber String 被叫号码
            AgentNames String 参与通话的座席,多个座席之间以逗号分隔。
            SkillGroupNames String 参与通话的座席所述的技能组,多个技能组以逗号分隔
            InstanceId String 呼叫中心实例ID
            Recordings List\
                  AgentId String 座席ID,坐席ID等同于该座席的RAM子账户ID
                  AgentName String 座席名称
                  StartTime Long 通话开始时间

错误码

错误代码 (Code) 描述 (Message) Http状态码(HttpStatusCode) 语义
ParameterNull “Parameter ‘%1’ can not be null” 400 参数不能为空。
InstanceNotExist “Call center instance ‘%1’ does not exist” 404 呼叫中心实例不存在。
PhoneNumberNotExist “Phone number ‘%s’ does not exist” 404 号码存在。
UserPermission “User ‘%1’ has no permission to ‘%2’ (User = ‘%3’)” 403 当前用户没有权限进行用户相关的操作。
ParameterOutOfRange “The value ‘%1’ of parameter ‘%2’ is out of range” 400 参数的值超出允许范围。
DatabaseService “Database service issue, table: %s, operation: %s, reason: %s” 500 数据库操作发生异常。

请求示例

  1. https://ccc.cn-shanghai.aliyuncs.com/?
  2. &Action=ListCallDetailRecords
  3. &InstanceId=9cfad875-6260-4a53-ab6e-b13e3fb31f7d
  4. &StartTime=1532448000000
  5. &StopTime=1532707199000
  6. &Criteria=客服组
  7. &PageNumber=1
  8. &PageSize=10
  9. &ContactType=Outbound,Inbound
  10. &ContactDisposition=NoAnswer,AbandonedInContactFlow,AbandonedRing
  11. &OrderBy=DESC
  12. &WithRecording=true
  13. &<公共请求参数>

返回示例

  1. {
  2. "CallDetailRecords":{
  3. "List":[
  4. {
  5. "AgentNames":"cloudcallcenter",
  6. "Agents":[
  7. ],
  8. "CalledNumber":"02566806658",
  9. "CallingNumber":"13621078901",
  10. "ContactDisposition":"Success",
  11. "ContactId":"2029786681",
  12. "ContactType":"Inbound",
  13. "Duration":14,
  14. "ExtraAttr":"{"Quality":"Good","QualityCause":""}",
  15. "ExtraAttr1":"{"Quality":"Good","QualityCause":""}",
  16. "Feedback":"",
  17. "InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
  18. "Recordings":[
  19. ],
  20. "SatisfactionDesc":"未发送",
  21. "SkillGroupNames":"xxx技能组",
  22. "StartTime":1534952985000
  23. },
  24. {
  25. "AgentNames":"cloudcallcenter",
  26. "Agents":[
  27. {
  28. "AgentId":"1059876788928509",
  29. "Satisfaction":"未评价"
  30. }
  31. ],
  32. "CalledNumber":"15216789012",
  33. "CallingNumber":"025668067898",
  34. "ContactDisposition":"Success",
  35. "ContactId":"2029786674",
  36. "ContactType":"Outbound",
  37. "Duration":12,
  38. "ExtraAttr":"{"Quality":"Good","QualityCause":""}",
  39. "ExtraAttr1":"{"Quality":"Good","QualityCause":""}",
  40. "InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
  41. "Recordings":[
  42. ],
  43. "SatisfactionDesc":"未评价",
  44. "SkillGroupNames":"xxx技能组,abc技能组",
  45. "StartTime":1534952824000
  46. },
  47. {
  48. "AgentNames":"cloudcallcenter",
  49. "Agents":[
  50. {
  51. "AgentId":"10598035678925209",
  52. "Satisfaction":"未评价"
  53. }
  54. ],
  55. "CalledNumber":"15210842252",
  56. "CallingNumber":"025668035258",
  57. "ContactDisposition":"Success",
  58. "ContactId":"2029786662",
  59. "ContactType":"Outbound",
  60. "Duration":32,
  61. "ExtraAttr":"{"Quality":"Good","QualityCause":""}",
  62. "ExtraAttr1":"{"Quality":"Good","QualityCause":""}",
  63. "InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
  64. "Recordings":[
  65. ],
  66. "SatisfactionDesc":"未评价",
  67. "SkillGroupNames":"xxx技能组,abc技能组",
  68. "StartTime":1534952543000
  69. },
  70. {
  71. "AgentNames":"cloudcallcenter",
  72. "Agents":[
  73. ],
  74. "CalledNumber":"02566141658",
  75. "CallingNumber":"05718502141188",
  76. "ContactDisposition":"Success",
  77. "ContactId":"2029787661",
  78. "ContactType":"Inbound",
  79. "Duration":18,
  80. "ExtraAttr":"{"Quality":"Good","QualityCause":""}",
  81. "ExtraAttr1":"{"Quality":"Good","QualityCause":""}",
  82. "Feedback":"",
  83. "InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
  84. "Recordings":[
  85. ],
  86. "SatisfactionDesc":"未发送",
  87. "SkillGroupNames":"xxx技能组",
  88. "StartTime":1534952481000
  89. },
  90. {
  91. "AgentNames":"cloudcallcenter",
  92. "Agents":[
  93. {
  94. "AgentId":"10598035678908509",
  95. "Satisfaction":"未评价"
  96. }
  97. ],
  98. "CalledNumber":"15210835434",
  99. "CallingNumber":"02566806238",
  100. "ContactDisposition":"Success",
  101. "ContactId":"2029787657",
  102. "ContactType":"Outbound",
  103. "Duration":15,
  104. "ExtraAttr":"{"Quality":"Good","QualityCause":""}",
  105. "ExtraAttr1":"{"Quality":"Good","QualityCause":""}",
  106. "InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
  107. "Recordings":[
  108. ],
  109. "SatisfactionDesc":"未评价",
  110. "SkillGroupNames":"xxx技能",
  111. "StartTime":1534952369000
  112. },
  113. {
  114. "AgentNames":"cloudcallcenter,hgf_offline",
  115. "Agents":[
  116. ],
  117. "CalledNumber":"0256667878958",
  118. "CallingNumber":"05718567658",
  119. "ContactDisposition":"Success",
  120. "ContactId":"2029786652",
  121. "ContactType":"Inbound",
  122. "Duration":101,
  123. "ExtraAttr":"{"Quality":"Good","QualityCause":""}",
  124. "ExtraAttr1":"{"Quality":"Good","QualityCause":""}",
  125. "Feedback":"",
  126. "InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
  127. "Recordings":[
  128. ],
  129. "SatisfactionDesc":"未发送",
  130. "SkillGroupNames":"xxx技能组",
  131. "StartTime":1534952195000
  132. },
  133. {
  134. "AgentNames":"cloudcallcenter",
  135. "Agents":[
  136. ],
  137. "CalledNumber":"15223456788",
  138. "CallingNumber":"0256789876",
  139. "ContactDisposition":"Success",
  140. "ContactId":"2029691793",
  141. "ContactType":"Outbound",
  142. "Duration":29,
  143. "ExtraAttr":"{"Quality":"Good","QualityCause":""}",
  144. "ExtraAttr1":"{"Quality":"Good","QualityCause":""}",
  145. "Feedback":"",
  146. "InstanceId":"9cfad875-6260-4a53-ab6e-b13e3fb31f7d",
  147. "Recordings":[
  148. ],
  149. "SatisfactionDesc":"未发送",
  150. "SkillGroupNames":"xxx技能组,xxx技能组",
  151. "StartTime":1534923034000
  152. }
  153. ],
  154. "PageNumber":1,
  155. "PageSize":7,
  156. "TotalCount":98
  157. },
  158. "Code":"OK",
  159. "HttpStatusCode":200,
  160. "RequestId":"032C73C4-3A6F-4502-872B-4F5B41161C6E",
  161. "Success":true
  162. }