Invoices API

12 PracBill API endpoints for invoices. Base URL https://billing.pracbill.com.au/api.

Retrieve all invoices for the department

GET /{api_key}/invoice/get

Responses

  • 200 — Request received successfully

Retrieve all invoices ordered by a specific field

POST /{api_key}/invoice/get

Request body

FieldTypeDescription
order_bystring (iid | cid | date | company | duedate | balance)Field to order by

Responses

  • 200 — Request received successfully

Download invoice usage (call/CDR detail) as CSV file. Each row carries a trailing Site Name column (empty when the charged service has no engineering site). An invalid API key or missing iid returns a JSON error instead.

GET /{api_key}/invoice/get/csv/usage/{iid}

Responses

  • 200 — CSV file

Download invoice as CSV file. Site-grouped invoices carry a trailing Site Name column (empty when the row has no engineering site). An invalid API key or missing iid returns a JSON error instead.

GET /{api_key}/invoice/get/csv/{iid}

Responses

  • 200 — CSV file

Retrieve all invoices for a specific customer

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

Responses

  • 200 — Request received successfully

Retrieve filtered invoices for a specific customer

GET /{api_key}/invoice/get/customer/{cid}/filter/{filter}

Responses

  • 200 — Request received successfully

Retrieve filtered and paginated invoices

GET /{api_key}/invoice/get/filter/{filter}/page/{page_number}

Responses

  • 200 — Request received successfully

Download invoice as PDF file

GET /{api_key}/invoice/get/pdf/{iid}

Responses

  • 200 — PDF file

Download customer statement as PDF file

GET /{api_key}/invoice/get/statement/{cid}

Responses

  • 200 — PDF file

Retrieve a specific invoice by ID

GET /{api_key}/invoice/get/{iid}

Responses

  • 200 — Request received successfully

Mark an invoice as bad debt

GET /{api_key}/invoice/{iid}/bad_debt

Responses

  • 200 — Invoice marked as bad debt successfully

Void an invoice

GET /{api_key}/invoice/{iid}/void

Responses

  • 200 — Invoice voided successfully

← All API groups