Use the /search-invoices resource to search for and list invoices that match search criteria.
Search for invoices
post
Searches for and lists invoices that match search criteria. If you pass multiple criteria, the response lists invoices that match all criteria.
Autorizaciones
Parámetros de consulta
pageinteger · mín: 1 · máx: 1000Opcional
The page number to be retrieved, for the list of templates. So, a combination of page=1 and page_size=20 returns the first 20 templates. A combination of page=2 and page_size=20 returns the next 20 templates.
Default: 1
page_sizeinteger · mín: 1 · máx: 100Opcional
The maximum number of templates to return in the response.
Default: 20
total_requiredbooleanOpcional
Indicates whether the to show total_pages and total_items in the response.
Default: false
Cuerpo
The invoice search parameters.
recipient_emailstring · máx: 254Opcional
Filters the search by the email address.
recipient_first_namestring · máx: 140Opcional
Filters the search by the recipient first name.
recipient_last_namestring · máx: 140Opcional
Filters the search by the recipient last name.
recipient_business_namestring · máx: 300Opcional
Filters the search by the recipient business name.
Indicates whether to list merchant-archived invoices in the response. Value is:true. Response lists only merchant-archived invoices.false. Response lists only unarchived invoices.null. Response lists all invoices.
fieldsstring[]Opcional
A CSV file of fields to return for the user, if available. Because the invoice object can be very large, field filtering is required. Valid collection fields are items, payments, refunds, additional_recipients_info, and attachments.
Respuestas
200
A successful request returns the HTTP `200 OK` status code and a JSON response body that lists the invoices that match the search criteria.