Get All Invoices
Retrieves a list of invoices, page by page, with the payments recorded against each one. You can filter by invoice number, order, company, customer, status, dates and metafield values.
HTTP Request
- URL:
/invoices - Method:
GET - Headers:
accessToken: Required. Your API access token.
- Required scope:
READ_INVOICEorREAD_WRITE_INVOICE
Query Parameters
| Parameter | Type | Description |
|---|---|---|
page | Integer | Page number to return. Default is 1. |
limit | Integer | Number of invoices per page, from 1 to 200. Default is 10. |
entityId | String | Filter by invoice number, for example INV-1001. |
entityId:in | String | Filter by several invoice numbers, separated by commas. |
id | String | Filter by invoice ID. |
id:in | String | Filter by several invoice IDs, separated by commas. |
orderId | String | Filter by the linked order's ID. |
orderId:in | String | Filter by several order IDs, separated by commas. |
companyId | String | Filter by company ID. |
customerId | String | Filter by customer ID. |
status | String | draft, open, partially_paid, paid or void. Also payable (open or partially paid) and overdue (open or partially paid and past the due date). |
date_created:min | String | Invoices created on or after this date. |
date_created:max | String | Invoices created on or before this date. |
date_modified:min | String | Invoices updated on or after this date. |
date_modified:max | String | Invoices updated on or before this date. |
metafields:<code> | String | Invoices whose metafield <code> has this value, for example metafields:erpInvoiceId=ERP-INV-88213. |
metafields-in:<code> | String | Invoices whose metafield <code> has any of these comma-separated values. |
cURL Example
curl --location '<BASE_URL>/invoices?status=overdue&companyId=664dec6cd5775459152d4922&limit=50' \
--header 'accessToken: <ACCESS_TOKEN>'
Response
- 200 OK: The list of invoices was returned successfully.
- 400 Bad Request: A filter value is not valid.
- 401 Unauthorized: The access token is missing or invalid.
- 403 Forbidden: The access token does not have the required scope.
Sample JSON Response
{
"success": true,
"data": [
{
"id": "665f2310d5775459152d6dd8",
"entityId": "INV-1001",
"order": "664f2310d5775459152d6dd8",
"orderEntityId": "ORD-1042",
"company": "664dec6cd5775459152d4922",
"customer": "664dec6cd5775459152d4926",
"customerDetails": {
"firstName": "Maria",
"lastName": "Lopez",
"email": "maria.lopez@northwindsupply.com",
"phoneNumber": "512-555-0142"
},
"lineItems": [
{
"id": "665f2310d5775459152d6ddb",
"lineItemId": "664f2310d5775459152d6ddb",
"productId": "663a0cbe516313e5bc94ab30",
"name": "Safety Glasses",
"sku": "SFTY-4006",
"quantity": 12,
"price": 45,
"extendedPrice": 540,
"discountAmount": 0
}
],
"currency": { "currency": "USD", "symbol": "$" },
"subTotal": 540,
"taxAmount": 0,
"shippingCost": 12,
"total": 552,
"status": "partially_paid",
"issuedDate": "2026-07-13T08:39:44.791Z",
"dueDate": "2026-08-12T08:39:44.791Z",
"paidAmount": 200,
"payments": [],
"paymentTerm": {
"paymentTermId": "663a0afe4587085935a4fb90",
"name": "Net 30",
"paymentDueDays": 30,
"dueType": "net"
},
"createdAt": "2026-07-13T08:39:44.816Z",
"updatedAt": "2026-07-23T10:20:00.000Z"
}
],
"pagination": {
"page": 1,
"total": 3,
"count": 1
}
}
Response Details
Invoice Data
Each item in data is an invoice. See Get Invoice for the full list of invoice fields.
Pagination Details
| Field | Type | Description |
|---|---|---|
page | Number | Current page number. |
total | Number | Total number of invoices that match the filters. |
count | Number | Number of invoices on this page. |
Notes
- Dates can be sent as
YYYY-MM-DDor as a full ISO 8601 date and time.