Skip to content

List invoices

Request

Returns your invoices, sorted by invoice ID. Use the query parameters to filter by status, due date, or customer. To find the invoices that a customer still has to pay, set status to unpaid.

Security
ApiKey
Query
statusstring(InvoiceStatus)

Return only the invoices with this status.

Enum:"draft""open""unpaid""paid""void"
dueBeforestring, (date)

Return only the invoices with a due date before this date (exclusive).

Example:dueBefore=2026-11-01
dueAfterstring, (date)

Return only the invoices with a due date after this date (exclusive).

Example:dueAfter=2026-10-01
customerIdstring^cus_[A-Za-z0-9]+$

Return only the invoices of this customer.

Example:customerId=cus_N8w2Lq7Tz
limitinteger, [ 1 .. 100 ]

The maximum number of items to return.

Default:25
cursorstring

The page.nextCursor value from the previous response. Omit it to get the first page.

curl -i -X GET \
  'https://acme-billing.redocly.app/_mock/apis/billing/invoices?status=draft&dueBefore=2026-11-01&dueAfter=2026-10-01&customerId=cus_N8w2Lq7Tz&limit=25&cursor=string' \
  -H 'X-API-Key: YOUR_API_KEY_HERE'

Responses

A page of invoices.

Bodyapplication/json
objectstringrequired
Value:"list"
itemsarray of objects(Invoice)required
pageobject(Page)required

Pagination details for a list.

Response
{ "object": "list", "items": [ { … }, { … }, { … }, { … }, { … }, { … }, { … }, { … } ], "page": { "limit": 25, "hasMore": false, "nextCursor": null } }