Skip to main content

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_INVOICE or READ_WRITE_INVOICE

Query Parameters​

ParameterTypeDescription
pageIntegerPage number to return. Default is 1.
limitIntegerNumber of invoices per page, from 1 to 200. Default is 10.
entityIdStringFilter by invoice number, for example INV-1001.
entityId:inStringFilter by several invoice numbers, separated by commas.
idStringFilter by invoice ID.
id:inStringFilter by several invoice IDs, separated by commas.
orderIdStringFilter by the linked order's ID.
orderId:inStringFilter by several order IDs, separated by commas.
companyIdStringFilter by company ID.
customerIdStringFilter by customer ID.
statusStringdraft, 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:minStringInvoices created on or after this date.
date_created:maxStringInvoices created on or before this date.
date_modified:minStringInvoices updated on or after this date.
date_modified:maxStringInvoices updated on or before this date.
metafields:<code>StringInvoices whose metafield <code> has this value, for example metafields:erpInvoiceId=ERP-INV-88213.
metafields-in:<code>StringInvoices 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​

FieldTypeDescription
pageNumberCurrent page number.
totalNumberTotal number of invoices that match the filters.
countNumberNumber of invoices on this page.

Notes​

  • Dates can be sent as YYYY-MM-DD or as a full ISO 8601 date and time.