Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Page number for pagination
Required range:
x >= 1
Number of invoices per page
Required range:
1 <= x <= 50
Filters to apply for querying invoices. Pass as a URL-encoded JSON string. Supports operators like like
, eq
, ne
, gt
, lt
, etc.
The filters parameter must be stringified and URL-encoded.
Example usage in code:
filters: encodeURIComponent(JSON.stringify({ status: { like: 'draf%' } }))
Example usage in query string:
filters=%7B%22status%22%3A%7B%22like%22%3A%22draf%25%22%7D%7D
Supported operators:
like
: pattern matching (e.g.,{ "status": { "like": "draf%" } }
)eq
: equals (e.g.,{ "status": { "eq": "draft" } }
)ne
: not equalsgt
: greater thanlt
: less thanin
: in array (e.g.,{ "status": { "in": ["draft", "sent"] } }
)
More examples:
- Filter by status starting with 'draf':
- Raw:
{ "status": { "like": "draf%" } }
- Encoded:
%7B%22status%22%3A%7B%22like%22%3A%22draf%25%22%7D%7D
- Raw:
- Filter by status equals 'paid':
- Raw:
{ "status": { "eq": "paid" } }
- Encoded:
%7B%22status%22%3A%7B%22eq%22%3A%22paid%22%7D%7D
- Raw:
- Filter by createdAt greater than a date:
- Raw:
{ "createdAt": { "gt": "2024-01-01" } }
- Encoded:
%7B%22createdAt%22%3A%7B%22gt%22%3A%222024-01-01%22%7D%7D
- Raw: