Create CDR Export#

Attention

Please note that the Inbound CDR export is available for current + 2 last months.

Description

Creates a single CDR Export. DIDWW performs deletion of CDR Export in 1 month after completion.

Forming Request#

Request Method: POST

Request Path: /v3/cdr_exports

Request Body Object Attributes

Name

Type

Nullable

Is Required?

Description

filters

CDR Export Filters Object

False

Yes

Filters

Example#

http

 1POST /v3/cdr_exports HTTP/1.1
 2Host: api.didww.com
 3Content-Type: application/vnd.api+json
 4Accept: application/vnd.api+json
 5Api-Key: [API token]
 6
 7{
 8  "data": {
 9    "type": "cdr_exports",
10    "attributes": {
11      "filters": {
12        "year": "2017",
13        "month": "5",
14        "did_number": "123456789"
15      }
16    }
17  }
18}

curl

1curl -i -X POST https://api.didww.com/v3/cdr_exports -H "Accept: application/vnd.api+json" -H "Api-Key: [API token]" -H "Content-Type: application/vnd.api+json" --data-raw '{"data": {"attributes": {"filters": {"did_number": "123456789", "month": "5", "year": "2017"}}, "type": "cdr_exports"}}'

response

 1HTTP/1.1 201 Created
 2Content-Type: application/vnd.api+json
 3
 4{
 5        "data": {
 6                "id": "9cccd228-2c1a-435f-b7eb-77ce6fc00a86",
 7                "type": "cdr_exports",
 8                "attributes": {
 9                        "filters": {
10                                "year": "2017",
11                                "month": "5",
12                                "did_number": "123456789"
13                        },
14                        "status": "Pending",
15                        "created_at": "2017-06-25T14:56:31.513Z",
16                        "url": null
17                }
18        },
19        "meta": {
20                "api_version": "2017-09-18"
21        }
22}

Other Responses#

Code

Success

Description

422

No

Unprocessable Entity

401

No

Unauthorized