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

FieldTypeDescription
idintegerExisting bundle ID - switches the call to an update
cidintegerCustomer ID (required on create)
namestringBundle name (required on create)
activeinteger (0 | 1)Defaults to 1 on create
date_startedstring
date_endedstring
included_usage_typeinteger
included_valuenumber
monthly_costnumber
call_typesarray of objectJoined with `^,^` when stored; an empty array clears it on update

Responses

  • 200 — Created/updated, or {success:false, description}

← All API groups