# List invoices, one row per invoice.

Operation ID: `invoices`

Group: Accounting › Invoices

[Open in the interactive reference](https://lensing.ai/api-docs/lensing/v1/endpoints/invoices)

`GET /accounting/invoices`

Read-only: Reads and returns; changes nothing.

Lists invoices. The collection doesn't include lines, billToAddress, soldToAddress, purchaseOrders, or externalIdentifiers. To get these fields, use GET accounting/invoices/:id or POST accounting/invoices/search.

To filter by invoiceNumber, customerName, customerNumber, entityName, salesOrderNumber, billToAddress, soldToAddress, invoiceEmail, purchaseOrderOverride, externalInvoiceId, customerMessage, or externalIdentifier, use POST accounting/invoices/search.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Api-Version` | header | string · v1 | yes | The API version this request targets, named by its public identifier. Required on every request; omitting it, or naming a version this company does not have, is answered with 400. This document describes version `v1`. |

## Query surface

- `id` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `invoiceDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `dueDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `lastPaidDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `invoiceStatus` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `approvalStatus` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `deliveryStatus` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `disputeStatus` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `dataSource` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `currency` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `paymentTermDays` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `exchangeRate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `excludeFromTaxEngine` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `customerId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `entityId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `salesOrderId` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between, like
- `subtotal` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `totalTax` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `totalDutiesAndCustoms` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `totalAmount` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `totalAmountDue` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `totalCredited` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `totalLateFeeAmount` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `lineDiscounts` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `oneTimeDiscount` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `paymentsApplied` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `adjustments` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- `lastModifiedDate` — filter by eq, ne, gt, gte, lt, lte, in, notIn, between
- Orderable: id, invoiceDate, dueDate, lastPaidDate, invoiceStatus, approvalStatus, deliveryStatus, disputeStatus, dataSource, currency, customerId, entityId, salesOrderId, paymentTermDays, exchangeRate, excludeFromTaxEngine, subtotal, totalTax, totalDutiesAndCustoms, totalAmount, totalAmountDue, totalCredited, totalLateFeeAmount, lineDiscounts, oneTimeDiscount, paymentsApplied, adjustments, lastModifiedDate
- Selectable: id, invoiceNumber, invoiceDate, dueDate, lastPaidDate, invoiceStatus, approvalStatus, deliveryStatus, disputeStatus, dataSource, currency, customerMessage, externalInvoiceId, invoiceEmail, purchaseOrderOverride, paymentTermDays, exchangeRate, excludeFromTaxEngine, customerId, customerName, customerNumber, entityId, entityName, salesOrderId, salesOrderNumber, subtotal, totalTax, totalDutiesAndCustoms, totalAmount, totalAmountDue, totalCredited, totalLateFeeAmount, lineDiscounts, oneTimeDiscount, paymentsApplied, adjustments, lastModifiedDate
- `page[size]` — Page size
- `page[cursor]` — Opaque continuation cursor

## Response

`200` Success

Under `data`, an array of invoicesRow:

| Field | Type | Required | Filter | Sort | Description |
| --- | --- | --- | --- | --- | --- |
| `id` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The unique identifier for the invoice. |
| `invoiceNumber` | string \| null | no | no | no | The invoice number, for example 'INV-1', unique within the tenant. Absent while none has been assigned. |
| `invoiceDate` | date | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date the invoice was issued. Format YYYY-MM-DD. Payment terms and the general ledger impact are both based on this date. |
| `dueDate` | date \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date payment falls due: the invoice date plus the payment term, or, for an invoice billed through a combined invoice, the combined invoice's due date. Format YYYY-MM-DD. Absent when no term has been resolved. An invoice is overdue on a date when this date is before it and an amount is still due; age by this date, never by invoiceDate. |
| `lastPaidDate` | date \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date the last payment applied to the invoice was received (its paymentDate), set only once invoiceStatus is 'paidInFull'. Format YYYY-MM-DD. Absent on an invoice that is not paid in full, including a partly paid one. |
| `invoiceStatus` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The payment status of the invoice, derived from its amounts and due date as they stand today (in the entity's time zone), so it can change overnight with no posting. The first matching value wins: 'disputed' (disputeStatus is 'disputed', whatever is paid); 'unpaid' (an amount due above zero equal to totalAmount, due date not passed); 'paidInFull' (nothing due, not all of it by credit); 'creditedInFull' (nothing due because totalCredited equals totalAmount); 'partiallyPaid' (part paid or credited, part due, due date not passed); 'isOverdue' (an amount due after the due date, even when part was paid). Absent when an amount is due but there is no due date, or when more was applied than is due. Approval plays no part, and a zero-amount invoice reads 'paidInFull'. For an earlier date, see totalAmountDue. One of: `"unpaid"`, `"isOverdue"`, `"partiallyPaid"`, `"paidInFull"`, `"creditedInFull"`, `"disputed"`. |
| `approvalStatus` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The finance approval status of the invoice. Possible values: 'draft', 'pendingApproval', 'approved', 'revise', 'rejected'. Invoices have no approval step, so an invoice is 'approved' when it is created, by an invoice run, the import route or a migration load that sets no other value. Invoices created before this rule were set to 'approved' by the package's upgrade migration, which published no invoiceUpdated event. An invoice posts to the ledger and is owed whatever this value is, so it does not scope receivables, billings or revenue. One of: `"draft"`, `"pendingApproval"`, `"revise"`, `"approved"`, `"rejected"`. |
| `deliveryStatus` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | How far the invoice has got in being sent to the customer. One of: `"toBeSent"`, `"delivered"`, `"read"`, `"created"`, `"failed"`. |
| `disputeStatus` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The dispute status of the invoice, set only when payments against it are under dispute. One of: `"disputed"`, `"chargedBack"`. |
| `dataSource` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The system the invoice record was imported from, for invoices that arrived through an integration or migration rather than being created in this system. For example 'NetSuite', 'Quickbooks', 'Stripe' or 'MigrationFile'. Absent on invoices created in this system. |
| `currency` | string | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The currency of the invoice. Format ISO 4217, for example 'USD'. It applies to every amount on the record, on the header and on every line. |
| `customerMessage` | string \| null | no | no | no | A free-form message printed on the invoice for the customer. |
| `externalInvoiceId` | string \| null | no | no | no | The invoice's identifier in an external source system, kept for reconciliation. For identifiers owned by your other systems, prefer externalIdentifiers below. |
| `invoiceEmail` | string \| null | no | no | no | The email address of the business contact that receives this invoice. |
| `purchaseOrderOverride` | string \| null | no | no | no | A manually entered PO number that overrides the sales-order-derived values in purchaseOrders. |
| `paymentTermDays` | number \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The number of days after the invoice date that payment falls due, resolved from the invoice's payment term. The term record itself is not published, only its day count. |
| `exchangeRate` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The rate used to convert the invoice's currency to the entity's currency (currency on entities). A book that keeps the entity in another functional currency does not use it. It is 1 when the invoice is in the entity's currency. |
| `excludeFromTaxEngine` | boolean \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | Whether the invoice is left out of the tax engine. Derived from the sales order. |
| `customerId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The customer the invoice is issued to. See id on GET accounting/customers/:id. |
| `customerName` | string \| null | no | no | no | The display name of the customer, as it appears on the document. |
| `customerNumber` | string \| null | no | no | no | The customer number of the customer, unique within the tenant. |
| `entityId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The legal entity issuing the invoice. See id on GET base/entities. |
| `entityName` | string \| null | no | no | no | The name of the issuing legal entity. |
| `salesOrderId` | string \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`), Pattern (`like`) | yes | The sales order the invoice was billed from. Absent on invoices created directly. See id on GET accounting/sales-orders/:id. |
| `salesOrderNumber` | string \| null | no | no | no | The number of the source sales order. Present whenever salesOrderId is. |
| `subtotal` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The amount before taxes and discounts, in the invoice currency. Absent when no subtotal has been computed. |
| `totalTax` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The total tax across all lines, in the invoice currency. |
| `totalDutiesAndCustoms` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The total duties and customs across all lines, in the invoice currency. |
| `totalAmount` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The total invoiced, including taxes and duties, in the invoice currency. Late fees are not part of it; they are in totalLateFeeAmount. |
| `totalAmountDue` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The amount still due on the invoice after every application recorded so far, in the invoice currency: totalAmount minus paymentsApplied, totalCredited and adjustments, plus totalLateFeeAmount. It goes below zero when more is applied than is due. For an earlier date, take totalAmount less the appliedAmount, earlyPaymentDiscount and smallBalanceWriteOffAmount of the payment applications and the appliedAmount of the credit memo applications on this invoiceId with appliedDate on or before it, plus totalLateFeeAmount. No public field dates a late fee, so that figure includes fees charged after the date. |
| `totalCredited` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The total credited back against this invoice by credit memos, in the invoice currency. |
| `totalLateFeeAmount` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The total late fees charged on this invoice, in the invoice currency. |
| `lineDiscounts` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The sum of discount amounts across all invoice lines, in the invoice currency. |
| `oneTimeDiscount` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The one-time discount applied to the invoice as a whole, in the invoice currency. |
| `paymentsApplied` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The amount settled by payments so far, in the invoice currency. |
| `adjustments` | decimal \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The sum of small-balance write-offs and early-payment discounts recorded against this invoice, in the invoice currency. |
| `lastModifiedDate` | date-time \| null | no | Exact (`eq`, `ne`), Range (`gt`, `gte`, `lt`, `lte`, `between`), Any of (`in`, `notIn`) | yes | The date and time the invoice record last changed, in UTC. Format YYYY-MM-DDTHH:mm:ss.sssZ. |

```json
{
  "data": [
    {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "invoiceNumber": "<invoiceNumber>",
      "invoiceDate": "2026-01-15",
      "dueDate": "2026-01-15",
      "lastPaidDate": "2026-01-15",
      "invoiceStatus": "unpaid",
      "approvalStatus": "draft",
      "deliveryStatus": "toBeSent",
      "disputeStatus": "disputed",
      "dataSource": "<dataSource>",
      "currency": "<currency>",
      "customerMessage": "<customerMessage>",
      "externalInvoiceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "invoiceEmail": "<invoiceEmail>",
      "purchaseOrderOverride": "<purchaseOrderOverride>",
      "paymentTermDays": 0,
      "exchangeRate": "19.99",
      "excludeFromTaxEngine": true,
      "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "customerName": "<customerName>",
      "customerNumber": "<customerNumber>",
      "entityId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "entityName": "<entityName>",
      "salesOrderId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "salesOrderNumber": "<salesOrderNumber>",
      "subtotal": "19.99",
      "totalTax": "19.99",
      "totalDutiesAndCustoms": "19.99",
      "totalAmount": "19.99",
      "totalAmountDue": "19.99",
      "totalCredited": "19.99",
      "totalLateFeeAmount": "19.99",
      "lineDiscounts": "19.99",
      "oneTimeDiscount": "19.99",
      "paymentsApplied": "19.99",
      "adjustments": "19.99",
      "lastModifiedDate": "2026-01-15T09:30:00.000Z"
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "<nextCursor>"
  }
}
```

## Statuses

- `400` — Invalid request or business failure
- `401` — The request carries no valid access token.
- `403` — Not authorized
- `404` — Not found
- `429` — Too many requests from this client address. The response has no body and no `Retry-After` header.
- `500` — Internal server error
