Get CSV File of CDR Export

Description

Returns a single .csv file for corresponding CDR Export.

Attention

To receive the CDR export file, a query should be sent to /v3/cdr_exports/{filename}.csv, and the {filename} can be obtained from the response of Get Exports URL attribute or Get Export following by export ID

Forming Request

Request Method: GET

Request Path: /v3/cdr_exports/

URI Parameters:

Name

Type

Is Required?

Description

filename

string

Yes

Unique filename of completed CDR Export.

Example

http

GET /v3/cdr_exports/a4f6b765-f20c-45c7-98d2-80c2f3a41517.csv HTTP/1.1
Host: api.didww.com
Accept: text/csv
Api-Key: [API token]

curl

curl -i -X GET https://api.didww.com/v3/cdr_exports/a4f6b765-f20c-45c7-98d2-80c2f3a41517.csv -H "Accept: text/csv" -H "Api-Key: [API token]"

response

HTTP/1.1 200 OK
Content-Type: text/csv

Date/Time (UTC),Source,DID,Destination,Duration (secs),Disconnect Initiator,Disconnect Code,Response,TollFree Amount (USD),Termination Amount (USD),Metered Channels Amount (USD),Customer ID,Sell Amount (Points)
2017-06-26 01:11:42,4,97286259404,sip:test@example.com,0,Destination,404,Not Found,0.000,0.000,0.000,,0.000
2017-06-17 08:50:47,"",97286259413,iax:324@34234234,54,Origination,200,Bye,0.000,0.000,0.003,,0.000
2017-06-12 14:23:25,"",97286259407,iax:324@34234234,16,Origination,200,Bye,0.000,0.000,0.003,,0.000
2017-06-05 12:58:41,4,97286259404,sip:test@example.com,0,Destination,404,Not Found,0.000,0.000,0.000,,0.000
2017-06-01 07:57:43,4,97286259414,iax:324@34234234,57,Origination,200,Bye,0.000,0.000,0.003,,0.000

Other Responses

Code

Success

Description

404

No

Not Found (without body)

401

No

Unauthorized