Billing API
The Billing API lets you fetch invoices and payment status for an organization.Get Billing Data
Get billing data for an organization. The response includes a list of subscription invoices with their payment status.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| page | integer | No | Page number (default: 1) |
| page_size | integer | No | Number of invoices per page (default: 20) |
Headers
| Header | Type | Required | Description |
|---|---|---|---|
| Org-Handle | string | Yes | Organization domain handle |
| Product-Id | string | No | Product identifier (default: unpod.dev) |
| Authorization | string | Yes | jwt <token> |
Example Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
| message | string | Status message |
| status_code | integer | HTTP-like status code |
| count | integer | Total number of invoices |
| data | array | List of invoice objects |
| Field | Type | Description |
|---|---|---|
| invoice_number | string | Invoice identifier |
| amount | string or number | Invoice amount |
| tax_amount | string or number | Tax amount |
| currency | string | Currency code |
| status | string | Payment status |
| charge_type | string | Charge type |
| invoice_date | string (ISO 8601) | Invoice date |
| due_date | string (ISO 8601) | Due date |
| payment_at | string (ISO 8601) | Payment timestamp or null |