JSON API » cdrs » cdrs/get

Gets fields of a completed call.

Input parameters

Requires authentication and the callshop or cdrs role privileges.

NameTypeDescriptionRequiredDefault value
auth_usernameStringAuthentication username.Yes
auth_passwordStringAuthentication password.Yes
uniqueidStringUniqueid of call to get.Yes
customerString or integerCustomer to get costs for.NoCustomer of authentication user.
voipmonitor_urlInteger1 to return the VoIPmonitor URL for the call (if configured), 0 not to.No0

Using voipmonitor_url=1 may be slow, and may put a heavy load on the VoIPmonitor server, if used repeatedly.

Responses

CodeDescription
200Success.
400Invalid input parameters specified. Check the key and message fields for more details.
401The authentication details provided are invalid.
402Your role does not allow this.
403Your rate plan does not allow this.
404The call does not exist, or you do not have permission to view it.

Data returned

The fields of the call. Costs are returned in the currency of the authentication user.

Example: With required parameters

http://enswitch.example.com/api/json/cdrs/get/?auth_username=user;auth_password=password;uniqueid=1234567890.123456

{ "responses":[ { "code":"200", "key":"", "message":"OK" } ], "data":{ "uniqueid":"1234567890.123456", "start":1234567890, ... }, }

Change history

VersionChanges
4.0voipmonitor_url input parameter added.
3.13Function added.