Service Bundles API
3 PracBill API endpoints for service bundles. Base URL https://billing.pracbill.com.au/api.
Get a service bundle. Note `charges` and `services` are always returned empty. A missing bundle is HTTP 200 with {success:false, description:'serviceBundle not found'}.
GET /{api_key}/serviceBundles/get/{id}
Responses
200— Request received successfully
Get all service bundles for a specific customer. Records do not include `charges`/`services` and `call_types` is the raw stored string.
GET /{api_key}/serviceBundles/getByCustomer/{cid}
Responses
200— Request received successfully
Create (no `id`) or update (with `id`) a service bundle in the token's department.
POST /{api_key}/serviceBundles/post
Request body
| Field | Type | Description |
|---|---|---|
id | integer | Existing bundle ID - switches the call to an update |
cid | integer | Customer ID (required on create) |
name | string | Bundle name (required on create) |
active | integer (0 | 1) | Defaults to 1 on create |
date_started | string | |
date_ended | string | |
included_usage_type | integer | |
included_value | number | |
monthly_cost | number | |
call_types | array of object | Joined with `^,^` when stored; an empty array clears it on update |
Responses
200— Created/updated, or {success:false, description}