REST Paths
The following REST paths are available for this service.
POST admin.cdr.list.get
To override the Content-type in your clients HTTP Accept Header, append ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
HTTP + JSON
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /json/syncreply/admin.cdr.list.get HTTP/1.1
Host: www.pbxlogin.co.za
Content-Type: application/json
Content-Length: length
{"fromDate":"0001-01-01T00:00:00.0000000", "toDate":"0001-01-01T00:00:00.0000000", "sms":false,"calls":false,"calledNumber":"String", "pbxClientId":0,"login":"String", "resellerLogin":"String", "clientLogin":"String", "callerId":"String", "callerIp":"String", "tariffId":0,"duration":{"value":0,"condition":"None", "stringCondition":""},"revenue":{"value":0,"condition":"None", "stringCondition":""},"pdd":{"value":0,"condition":"None", "stringCondition":""},"originCallId":"String", "terminationCallId":"String", "routeId":0,"callRouteType":0,"clientType":0,"descending":false,"sortColumn":"String", "pageOffset":0,"pageSize":0}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"total":0,"data":[{"idCall":0,"calledNumber":"String", "callStart":"0001-01-01T00:00:00.0000000", "callEnd":"0001-01-01T00:00:00.0000000", "callerIp":"String", "cost":0,"clientCost":0,"duration":0,"effectiveDuration":0,"revenue":0,"profit":0,"pdd":0,"tariff":"String", "tariffId":0,"tariffDescription":"String", "tariffPrefix":"String", "res1Cost":0,"res2Cost":0,"res3Cost":0,"clientTypeName":"String", "originCallId":"String", "terminationCallId":"String", "login":"String", "routeTypeName":"String", "routeType":"String"}],"responseStatus":{"errorCode":"String", "message":"String", "stackTrace":"String", "errors":[{"errorCode":"String", "fieldName":"String", "message":"String"}]}}