forked from nxtele/http-api-document
-
Notifications
You must be signed in to change notification settings - Fork 1
WebCall CDR List By OrderId
henryou edited this page Dec 12, 2022
·
1 revision
Get CDR by orderid
- 1QPS(call 1 time within 1 seconds)
- Only records within 15 days are allowed to be queried.
https://api.nxcloud.com/api/voiceSms/getSipCdrByOrderid
field | required | type | desc |
---|---|---|---|
orderid | 是 | string | orderid, passed in when initiating a call. Use commas to concatenate multiple items, e.g. "1000001,1000002", up to 20 orderids can be queried |
appkey | Yes | string | Get it from nxcloud console |
secretkey | Yes | string | Get it from nxcloud console |
{
"orderid":"1000001,1000002",
"appkey":"yourappkey",
"secretkey":"yoursecretkey"
}
success
{
"code": "0",
"row": [
{
"phone": "81314382782",
"direction": "0",
"hangup_cause": "NORMAL_CLEARING",
"answer_time": "2019-01-25 12:41:57",
"country_code": "62",
"id": 636597,
"sipid": 1055014,
"duration": 0,
"username": "6282215699804",
"end_time": "2019-01-25 12:42:26",
"effective_called_number": "626281314382782",
"start_time": "2019-01-25 12:42:26",
"orderid": "1000001",
"record_url": "http://wss.wanlaowo.com/record/c8b4cc48.mp3",
"show_phone": "6282215699804"
},
{
"phone": "878828666",
"direction": "0",
"hangup_cause": "NORMAL_CLEARING",
"answer_time": "2019-01-25 12:40:42",
"country_code": "62",
"id": 636600,
"sipid": 1055015,
"duration": 0,
"username": "6282215699803",
"end_time": "2019-01-25 12:42:29",
"effective_called_number": "626287882866266",
"start_time": "2019-01-25 12:42:29",
"orderid": "10000002",
"record_url": null,
"show_phone": "6282215699803"
}
]
}
fail
{
"code": "1",
"info": "params invalid"
}
Response Params
field | requird | type | desc |
---|---|---|---|
total | Yes | string | total record numbers under this condition |
page | Yes | string | - |
pageSize | Yes | string | - |
sipid | Yes | string | webcall sipid, don't care |
id | Yes | string | Record ID of NXCLOUD |
username | Yes | string | webcall user name |
mobile_name | Yes | string | webcall nick name |
duration | Yes | string | - |
phone | Yes | string | origin callee |
start_time | Yes | string | - |
end_time | Yes | string | - |
orderid | Yes | string | Passed in when the call is initiated |
show_phone | Yes | string | display number |
record_url | Yes | number | The remote address of the recording file of the call |
answer_time | Yes | string | call answered time |
direction | Yes | string | 0: inbound 1: outbound |
effective_called_number | Yes | string | called after formatted |
hangup_cause | Yes | string | reason of hangup |
API failed reason
info | desc |
---|---|
appkey or secretkey invalid | - |
orderid no exist | - |
hangup_cause please refer: WebCall CDR Hangup Cause
Introduction
- Send Message
- Mark Incoming Message as Read
- Upload Media File
- Get Media File
- Delete Media File
- Webhook
- Query Number Information
- Query Message Template
- Create Message Template
- Edit Message Template
- Delete Message Template
- Upload Template Example File
- Embedded Page Login
- Create Client Application
- List of Phone Numbers for Client Application
- Get Verification Code
- Verify Verification Code
- Create Local Client
Short message
Voice
Call Center(NXLink)
- Web Iframe
- Manual Dial Record
- Manual Dial Record Query By orderId
- List Agent Information
- List Agent Status
- List Queue
- List Agents In Queue
- List Agent Efficiency
- Update Queue Agents
- Create AutoDial Task
- Webhook - Manual Dial
Call Center(Callbot)
- Callbot API Summary
- Callbot API Authorization
- Callbot API Ping
- Create Auto Dial Task
- Add Contact List To Task
- Create Task And Add Contact
- Start Or Pause Task
- Update Task Parameters
- Get List Task
- List Call
- List Task Orders
- Stop Order
- Get Call Detail By Order
- Webhook - By Call
- Webhook - By Order
- Webhook - Task Status
Flash Call
Short links
邮件验证码
DID号码
通用
号码检测