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

FieldTypeDescription
orig_id requiredstringUnique ID from your platform/provider
startdate requiredstringCall start time
enddatestringCall end time
accountcodestringBilling account identifier
callerid requiredstringCaller ID / A Party
didstringInbound phone number (for inbound calls)
direction requiredstring (inbound | outbound)Call direction
destination requiredstringDestination number / B Party
destination_infostringDescription of destination
applicationstringInternal application (Voicemail, IVR, Queue, etc.)
durationintegerTotal call duration in seconds
billsecintegerBillable seconds
costnumberCost of the call
dispositionstringCall status (ANSWERED, NO_ANSWER, BUSY, etc.)
privacy_flaginteger (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:

FieldTypeDescription
orig_id requiredstringUnique ID from your platform/provider
startdate requiredstringCall start time
enddatestringCall end time
accountcodestringBilling account identifier
callerid requiredstringCaller ID / A Party
didstringInbound phone number (for inbound calls)
direction requiredstring (inbound | outbound)Call direction
destination requiredstringDestination number / B Party
destination_infostringDescription of destination
applicationstringInternal application (Voicemail, IVR, Queue, etc.)
durationintegerTotal call duration in seconds
billsecintegerBillable seconds
costnumberCost of the call
dispositionstringCall status (ANSWERED, NO_ANSWER, BUSY, etc.)
privacy_flaginteger (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

← All API groups