GET
/api/public/v1/invoicesList invoices
Invoices the company has issued to its customers. An invoice is not a single amount — it carries line items, one-time and recurring, and the recurring ones drive a Stripe subscription on the legal entity’s connected account. `dueNowAmount` is the deposit collected on the first visit to the pay link: every due-now one-time item plus the first cycle of each recurring one. All amounts are cents.
Required scope
The access token must carry this scope. A token missing it gets 403 Forbidden. Grant them to an API client under Settings → Company → API, and to a teammate under Employee → Permissions.
invoices:read
Query Parameters
| Name | Type | Required | Description |
|---|---|---|---|
limit | number | Optional | Maximum number of items to return (1-100).Default: 20 |
offset | number | Optional | Number of items to skip before starting to collect the result set.Default: 0 |
sortBy | string | Optional | Field to sort by. Allowed values vary by endpoint.Default: createdAt |
sortOrder | string asc desc | Optional | Sort direction.Default: desc |
search | string | Optional | Free-text search across the resource’s primary fields. |
createdAfter | string | Optional | ISO 8601 timestamp — only return items created after this time. |
createdBefore | string | Optional | ISO 8601 timestamp — only return items created before this time. |
updatedAfter | string | Optional | ISO 8601 timestamp — only return items updated after this time. |
status | string PENDING_CONTRACT OPEN ACTIVE PAST_DUE PAID VOIDED | Optional | PENDING_CONTRACT is held until a linked contract is signed. OPEN is awaiting the deposit; ACTIVE means it landed and a subscription is running. |
legalEntityId | string | Optional | Invoices issued from one entity. |
GETExample request
curl
curl -X GET "https://www.pxb.app/api/public/v1/invoices" \
-H "Authorization: Bearer your_access_token"200Example response
json
{
"message": "Invoices retrieved successfully!",
"content": {
"invoices": [
{
"id": "9f1c2f4e-6b3a-4f28-9c11-0a2b3c4d5e6f",
"referenceId": 1042,
"status": "OPEN",
"counterpartyName": "Northwind Traders",
"counterpartyEmail": "ap@northwind.example",
"memo": "Website build — phase one",
"notes": null,
"dueDate": "2026-09-30T00:00:00.000Z",
"dueNowAmount": 250000,
"currency": "usd",
"legalEntityId": "le_7788",
"lineItems": [
{
"id": "ili_1",
"description": "Design and build",
"quantity": 1,
"unitAmount": 250000,
"kind": "ONE_TIME",
"dueNow": true,
"sortOrder": 0
},
{
"id": "ili_2",
"description": "Hosting and support",
"quantity": 1,
"unitAmount": 15000,
"kind": "RECURRING",
"dueNow": true,
"interval": "MONTH",
"intervalCount": 1,
"installments": 12,
"sortOrder": 1
}
],
"viewedAt": null,
"paidAt": null,
"createdAt": "2026-08-22T15:00:00.000Z",
"updatedAt": "2026-08-22T15:00:00.000Z"
}
],
"pagination": {
"total": 42,
"limit": 20,
"offset": 0,
"hasMore": true
}
}
}In the console
The same thing done by hand, for anyone comparing the API against the screen they already use.
Finances → Receivables
/finances/receivables