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
| Field | Type | Description |
|---|---|---|
ctgid | integer | Call rate group ID (omit for create) |
name | string | |
active | integer | |
billing_increment | integer | |
tags | string | |
international_markup_percent | number | |
callTypes | array 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
| Field | Type | Description |
|---|---|---|
cid required | integer | Customer ID |
subscription_discount_type_id required | integer | Call pack type ID |
date_started | string | Start date (defaults to today) |
date_ended | string | End 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
| Field | Type | Description |
|---|---|---|
date_ended | string | Requested 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
| Field | Type | Description |
|---|---|---|
name | string | |
description | string | |
customer_cost | number | |
customer_value | number | |
rate_id | integer |
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
| Field | Type | Description |
|---|---|---|
name | string | |
description | string | |
customer_cost | number | |
customer_value | number | |
rate_id | integer |
Responses
200— Call pack type updated successfully