Skip to navigation

Search invoices

Finds invoices by conditions on their fields, including the billed customer’s current name and email, a comparison on amounts.total or amounts.remaining, and or groups, and returns them as the list does: a page, newest first. Every entry of filters must hold. A customer-scoped key finds only its own customer’s invoices, whatever the filters say. A read, sent as a POST because the conditions are a structured body: it creates nothing and is safe to retry. Use invoices.list when a list filter is all you need.

Authentication

AuthorizationBearer
API Key authentication using Bearer token

Headers

Paid-BetaenumRequired

This endpoint is in the search=v1 beta. Send this header to use it.

Allowed values:

Request

Body
cursorstring or nullOptional

The nextCursor of the previous page, sent with the same filters. Leave it out, or send null, for the first page.

filterslist of objectsOptional

Up to 20 entries, every one of which must hold: a condition { field, op, values }, or a group { "or": [conditions] } that holds when at least one of its conditions does. Leave it out, or send [], to match every object, as the list does.

limitintegerOptional1-100Defaults to 10
How many objects to return, 1 to 100. Defaults to 10.

Response

200
objectenum

The type of object. Always list.

Allowed values:
datalist of objects
The invoices on this page, newest first.
hasMoreboolean
Whether another page follows this one.
nextCursorstring or null

Send it as cursor to get the next page. Null on the last page.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error