# Lists a collection of invoices

GET {{baseURL}}/pay-int-api/invoices
This endpoint retrieves a paginated list of invoices belonging to the current merchant.
Results can be filtered by date range, status, or a search string.
Filterable dates include when the invoice was issued, when it's due, and when it was paid.
If no filters are specified, every invoice for the merchant is returned.
The response includes pagination details along with each invoice's summary information.
The following is an example request.
This example filters for Published invoices (status=2), limits the results to 10 per page, and searches for "Peppared", part of the company name "Peppared Street Cafe".

```json
GET /pay-int-api/invoices?status=2&pageSize=10&search=Peppared HTTP/1.1
Authorization: Bearer {{accessToken}}
x-api-version: 1.0
```
See Also:
To create an invoice, see POST /pay-int-api/invoices.
To retrieve an invoice by ID, see GET /pay-int-api/invoices/{invoiceId}.
To update an invoice, see PUT /pay-int-api/invoices/{invoiceId}.
To delete an invoice, see DELETE /pay-int-api/invoices/{invoiceId}.

Endpoint: GET /pay-int-api/invoices
Version: V1
Security: Bearer

## Security:

  - `Bearer` (unknown)
    http bearer JWT

## Query parameters:

  - `page` (integer)
    Specifies the page number of the returned search results.
A page is considered each set of the `pageSize` value.
The maximum page value is the `pageSize` divided by the `total` count rounded up.
The count is zero-based.
For example, if `pageSize` is 50 and the `total` is 130, there are three pages.
The maximum `page` value is 2.
Values above the maximum page value will complete successfully but not return any items.
Example: 0

  - `pageSize` (integer)
    Specifies the number of items for each page of the returned search results.
A page is considered each set of the `pageSize` value.
The maximum page value is the `pageSize` divided by the `total` count rounded up.
The count is zero-based.
For example, if `pageSize` is 50 and the `total` is 130, there are three pages.
The maximum `page` value is 2.
Example: 50

  - `asc` (boolean)
    Specifies the sort order.
The sort field is specified by the `orderBy` value.
If `true`, the sort order is ascending.
If `false`, the sort order is descending.
Example: false

  - `orderBy` (string)
    Specifies the field the results get ordered by.
The sort order is specified by the `asc` value.
Example: contactName

  - `search` (string)
    Specifies the search string.
This performs a case insensitive, matching, or partially matching search.
Fields do not have to be specified.
If the results are to be sorted, use the field `orderby` to specify the sort field.
Example: Peppared

  - `issueDateFrom` (string)
    Specifies the start date-time (in an ISO 8601 date-time UTC format) the invoice was issued.
The fields `issueDateFrom` and `issueDateTo` can be used together to form an inclusive date-time range.
Examples:
2026-02
2026-02-19
2026-02-19T20:24:52.934Z
Example: 2026-02-19T20:24:52.934Z

  - `issueDateTo` (string)
    Specifies the end date-time (in an ISO 8601 date-time UTC format) the invoice was issued.
The fields `issueDateFrom` and `issueDateTo` can be used together to form an inclusive date-time range.
Examples:
2026-02
2026-02-21
2026-02-21T20:24:52.934Z
Example: 2026-03-19T20:24:52.934Z

  - `dueDateFrom` (string)
    Specifies the start date-time (in an ISO 8601 date-time UTC format) the invoice is due.
The fields `dueDateFrom` and `dueDateTo` can be used together to form an inclusive date-time range.
Examples:
2026-02
2026-02-19
2026-02-19T20:24:52.934Z
Example: 2026-03-19T20:24:52.934Z

  - `dueDateTo` (string)
    Specifies the end date-time (in an ISO 8601 date-time UTC format) the invoice is due.
The fields `dueDateFrom` and `dueDateTo` can be used together to form an inclusive date-time range.
Examples:
2026-02
2026-02-21
2026-02-21T20:24:52.934Z
Example: 2026-02-21T20:24:52.934Z

  - `paymentDateFrom` (string)
    Specifies the start date-time (in an ISO 8601 date-time UTC format) the invoice was paid.
The fields `paymentDateFrom` and `paymentDateTo` can be used together to form an inclusive date-time range.
Examples:
2026-02
2026-02-19
2026-02-19T20:24:52.934Z
Example: 2026-03-19T20:24:52.934Z

  - `paymentDateTo` (string)
    Specifies the end date-time (in an ISO 8601 date-time UTC format) the payment was paid.
The fields `paymentDateFrom` and `paymentDateTo` can be used together to form an inclusive date-time range.
Examples:
2026-02
2026-02-21
2026-02-21T20:24:52.934Z
Example: 2026-02-21T20:24:52.934Z

  - `status` (integer)
    Specifies the status of the invoice.
Valid values are:
| Value | Name |
|  --- | --- |
| 1 | Draft |
| 2 | Published |
| 3 | Paid |
| 4 | Expired |
| 5 | Canceled |
| 6 | ProcessingPayment |
| 7 | Refunded |

Example: 2

## Header parameters:

  - `x-api-version` (string)
    Specifies the API version to use for the request.

Example: 1.0

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `items` (array)
    Invoices for the current page.

  - `items.id` (string)
    Indicates the invoice identifier.

Example: f01339ec-8184-48c7-b58d-0780d6499ef4
    Example: f01339ec-8184-48c7-b58d-0780d6499ef4

  - `items.number` (string)
    Indicates an identifier for the invoice.

It is meant for display and reference purposes.
This is distinct from 'id'. 

Example: INV-00042
    Example: INV-00042

  - `items.customerName` (string)
    Indicates the name of the customer.

Example: Alexandro Peppared
    Example: Alexandro Peppared

  - `items.issueDate` (string)
    Indicates the date-time (in an ISO 8601 date-time UTC format) of the invoice's issue.

Examples: 2026-02-19T20:24:52.934Z
    Example: 2026-02-19T20:24:52.934Z

  - `items.dueDate` (string)
    Indicates the date-time (in an ISO 8601 date-time UTC format) the due date of the invoice.

Examples: 2026-02-19T20:24:52.934Z
    Example: 2026-02-19T20:24:52.934Z

  - `items.paymentDate` (string)
    Indicates the date-time (in an ISO 8601 date-time UTC format) of the invoice's payment date.

Examples: 2026-02-19T20:24:52.934Z
    Example: 2026-02-19T20:24:52.934Z

  - `items.totalAmount` (number)
    Indicates the total amount (in USD) of the invoice.
This values it based on the total of the line items.
Example: 3219.45 (for $3219.45)
    Example: 3219.45

  - `items.status` (integer)
    Indicates the invoice status.
Valid values are:
| Value | Name |
|  --- | --- |
| 1 | Draft |
| 2 | Published |
| 3 | Paid |
| 4 | Expired |
| 5 | Canceled |
| 6 | ProcessingPayment |
| 7 | Refunded |

Example: 2
    Example: 2

  - `total` (integer)
    Indicates the total number of invoices found.

Example: 5
    Example: 5

