List invoices
Returns a paginated list of invoices for a company, with optional filtering by product, status, collection method, and creation date.
Required permissions:
- invoice:basic:read
Query parameters
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
The direction of the sort.
Filter invoices to only those associated with these specific product identifiers.
Filter invoices by their collection method.
Filter invoices by their current status.
Which columns can be used to sort.
Only return invoices created before this timestamp.
Only return invoices created after this timestamp.
The unique identifier of the company to list invoices for.
Response
A successful response
Example response
{
"data": [
{
"created_at": "2023-12-01T05:00:00.401Z",
"current_plan": {
"currency": "usd",
"formatted_price": "$10.00",
"id": "plan_xxxxxxxxxxxxx"
},
"due_date": "2023-12-01T05:00:00.401Z",
"email_address": "customer@example.com",
"fetch_invoice_token": "eyJhbGciOiJIUzI1NiJ9...",
"id": "inv_xxxxxxxxxxxxxx",
"line_items": [
{
"label": "Platform subscription",
"position": 42,
"quantity": 6.9,
"total": 6.9,
"unit_price": 6.9
}
],
"number": "#0001",
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "John Doe",
"username": "johndoe42"
}
}
]
}Changes
Changed in 4 of the 74 revisions of this API.2110
- ●
deleted the
queryrequest parametercompany_idrequest-parameter-removed
- ○
added the new optional
queryrequest parameteraccount_idnew-optional-request-parameter
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the required property
//to the response with the statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ▲
the
queryrequest parameterdirectionwas restricted to a list of enum valuesrequest-parameter-became-enum
- ▲
the
queryrequest parameterorderwas restricted to a list of enum valuesrequest-parameter-became-enum
- ○
added the new enum value
ascto thequeryrequest parameterdirectionrequest-parameter-enum-value-added
- ○
added the new enum value
created_atto thequeryrequest parameterorderrequest-parameter-enum-value-added
- ○
added the new enum value
descto thequeryrequest parameterdirectionrequest-parameter-enum-value-added
- ○
added the new enum value
due_dateto thequeryrequest parameterorderrequest-parameter-enum-value-added
- ○
added the new enum value
idto thequeryrequest parameterorderrequest-parameter-enum-value-added
- ○
for the
queryrequest parameterdirection, the type was generalized from no type tostringrequest-parameter-type-generalized
- ○
for the
queryrequest parameterorder, the type was generalized from no type tostringrequest-parameter-type-generalized
- ▲
- ○
added the required property
//to the response with the statusresponse-required-property-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 74 revisions, 1 has no diff computed.