Skip to main content
GET
Get Billing Data

Get Billing Data

Retrieve invoices and payment history for your organization with pagination support. This endpoint returns billing records including invoice amounts, currency, payment status, and invoice dates.
Prerequisites: Make sure you have your API Token and Org-Handle ready. See Authentication for details.

Headers

You can get the Org-Handle by hitting the Get All Organizations API. The domain_handle field in the response is your Org-Handle.

Query Parameters

Response Fields

Invoice Object Fields

Common Error Codes

Code Examples

Best Practices

  1. Pagination: Use page and page_size to retrieve billing records in manageable chunks
  2. Status Monitoring: Watch for pending or failed invoice statuses that may require action
  3. Currency Handling: Always check the currency field before displaying amounts to users
  4. Org-Handle: Ensure the correct organization handle is used for accurate billing records
  5. Reconciliation: Use invoice_date alongside id for billing reconciliation workflows
  6. Security: Keep API tokens secure and rotate them regularly

Authorizations

Authorization
string
header
required

Format: Token

Headers

Org-Handle
string
required

Organization domain handle

Example:

"unpod.tv"

Query Parameters

page
integer
Example:

1

page_size
integer
Example:

20

Response

Billing data