Call Management API

14 PracBill API endpoints for call management. Base URL https://billing.pracbill.com.au/api.

Get paginated list of call rate groups (tariff groups)

GET /{api_key}/callRates/get/page/{page_number}

Responses

  • 200 — Call rates retrieved successfully

Get a specific call rate group with all associated call type rates

GET /{api_key}/callRates/get/{id}

Responses

  • 200 — Call rate group retrieved successfully

Create or update a call rate group with call type rates

POST /{api_key}/callRates/post

Request body

FieldTypeDescription
ctgidintegerCall rate group ID (omit for create)
namestring
activeinteger
billing_incrementinteger
tagsstring
international_markup_percentnumber
callTypesarray of object

Responses

  • 200 — Call rate group saved successfully

Create a new call pack subscription for a customer

POST /{api_key}/call_pack/add

Request body

FieldTypeDescription
cid requiredintegerCustomer ID
subscription_discount_type_id requiredintegerCall pack type ID
date_startedstringStart date (defaults to today)
date_endedstringEnd date (optional)

Responses

  • 200 — Call pack created successfully

Cancel a call pack (sets end date, minimum 30 days from now)

POST /{api_key}/call_pack/cancel/{id}

Request body

FieldTypeDescription
date_endedstringRequested end date (must be at least 30 days from today)

Responses

  • 200 — Call pack cancelled successfully

Get all call packs for a specific customer

GET /{api_key}/call_pack/customer/get/{cid}

Responses

  • 200 — Customer call packs retrieved successfully

Downgrade a call pack (ends current pack today, creates new pack from 1st of next month)

POST /{api_key}/call_pack/downgrade/{id}

Responses

  • 200 — Call pack downgraded successfully

Get all call packs for the department

GET /{api_key}/call_pack/get

Responses

  • 200 — Call packs retrieved successfully

Get a specific call pack by ID

GET /{api_key}/call_pack/get/{id}

Responses

  • 200 — Call pack retrieved successfully

Upgrade a call pack (ends current pack today, creates new pack from 1st of current month)

POST /{api_key}/call_pack/upgrade/{id}

Responses

  • 200 — Call pack upgraded successfully

Create a new call pack type (template)

POST /{api_key}/call_pack_type/add

Request body

FieldTypeDescription
namestring
descriptionstring
customer_costnumber
customer_valuenumber
rate_idinteger

Responses

  • 200 — Call pack type created successfully

Get all call pack types (templates) for the department

GET /{api_key}/call_pack_type/get

Responses

  • 200 — Call pack types retrieved successfully

Get a specific call pack type by ID

GET /{api_key}/call_pack_type/get/{id}

Responses

  • 200 — Call pack type retrieved successfully

Update a call pack type

POST /{api_key}/call_pack_type/update/{id}

Request body

FieldTypeDescription
namestring
descriptionstring
customer_costnumber
customer_valuenumber
rate_idinteger

Responses

  • 200 — Call pack type updated successfully

← All API groups