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.
Authorizations
Query parameters
pageinteger · min: 1 · max: 1000Optional
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 · min: 1 · max: 100Optional
The maximum number of templates to return in the response.
Default: 20
total_requiredbooleanOptional
Indicates whether the to show total_pages and total_items in the response.
Default: false
Body
The invoice search parameters.
recipient_emailstring · max: 254Optional
Filters the search by the email address.
recipient_first_namestring · max: 140Optional
Filters the search by the recipient first name.
recipient_last_namestring · max: 140Optional
Filters the search by the recipient last name.
recipient_business_namestring · max: 300Optional
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[]Optional
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.
Responses
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.