Cdr API
9 PracBill API endpoints for cdr. Base URL https://billing.pracbill.com.au/api.
Get paginated list of call types
GET /{api_key}/callType/get/page/{page_number}
Responses
200— Request received successfully
Get detailed call type information including default rates
GET /{api_key}/callType/get/{id}
Responses
200— Request received successfully
Add a single CDR (Call Detail Record) for billing. Important: API Key must have cdr_source variable set.
POST /{api_key}/cdr/add
Request body
| Field | Type | Description |
|---|---|---|
orig_id required | string | Unique ID from your platform/provider |
startdate required | string | Call start time |
enddate | string | Call end time |
accountcode | string | Billing account identifier |
callerid required | string | Caller ID / A Party |
did | string | Inbound phone number (for inbound calls) |
direction required | string (inbound | outbound) | Call direction |
destination required | string | Destination number / B Party |
destination_info | string | Description of destination |
application | string | Internal application (Voicemail, IVR, Queue, etc.) |
duration | integer | Total call duration in seconds |
billsec | integer | Billable seconds |
cost | number | Cost of the call |
disposition | string | Call status (ANSWERED, NO_ANSWER, BUSY, etc.) |
privacy_flag | integer (0 | 1) | Hide A Party from screens/outputs (0 or 1) |
Responses
200— CDR added successfully
List customers that have a CDR export configured (cdr_export_frequency and cdr_export_format both set), reporting the last export run, the computed next run, and the export path and format. By default only customers whose next run is still pending are returned, for export-run monitoring/alerting.
GET /{api_key}/cdr/exports
Responses
200— Request received successfully
As GET /{api_key}/cdr/exports, but includes customers whose next export run is not yet pending.
GET /{api_key}/cdr/exports/{include_inactive}
Responses
200— Request received successfully
Retrieve rating information for multiple CDRs
POST /{api_key}/cdr/getMultiplePrice
Request body
Array of:
CDR orig_id
Responses
200— Request received successfully
Retrieve rating information for a specific CDR
GET /{api_key}/cdr/getPrice/{id}
Responses
200— Request received successfully
Add multiple CDRs (Call Detail Records) for billing in a single request. Important: API Key must have cdr_source variable set.
POST /{api_key}/cdr/multiple/add
Request body
Array of:
| Field | Type | Description |
|---|---|---|
orig_id required | string | Unique ID from your platform/provider |
startdate required | string | Call start time |
enddate | string | Call end time |
accountcode | string | Billing account identifier |
callerid required | string | Caller ID / A Party |
did | string | Inbound phone number (for inbound calls) |
direction required | string (inbound | outbound) | Call direction |
destination required | string | Destination number / B Party |
destination_info | string | Description of destination |
application | string | Internal application (Voicemail, IVR, Queue, etc.) |
duration | integer | Total call duration in seconds |
billsec | integer | Billable seconds |
cost | number | Cost of the call |
disposition | string | Call status (ANSWERED, NO_ANSWER, BUSY, etc.) |
privacy_flag | integer (0 | 1) | Hide A Party from screens/outputs (0 or 1) |
Responses
200— CDRs processed (may contain mixed success/failure results)
Get CDR processing status
GET /{api_key}/cdr/status
Responses
200— Request received successfully