Download Invoices
Get a URL to download invoices for an entity group as a CSV/JSON file.
Request
- Base URL: https://api.mercoa.com
- URL: https://api.mercoa.com/entityGroup/{entityGroupId}/invoices/download
- Auth: HTTP bearer
Path parameters
Entity Group ID or Entity Group ForeignID
Query parameters
Format of the file to download. Defaults to CSV.
Start date filter. Defaults to CREATED_AT unless specified the dateType is specified
End date filter. Defaults to CREATED_AT unless specified the dateType is specified
Type of date to filter by if startDate and endDate filters are provided. Defaults to CREATED_AT.
Field to order invoices by. Defaults to CREATED_AT.
Direction to order invoices by. Defaults to asc.
Find invoices by vendor name, invoice number, check number, or amount. Partial matches are supported.
Filter invoices by metadata. Each filter will be applied as an AND condition. Duplicate keys will be ignored.
Filter invoices by line item metadata. Each filter will be applied as an AND condition. Duplicate keys will be ignored.
Filter invoices by line item GL account ID. Each filter will be applied as an OR condition. Duplicate keys will be ignored.
Filter invoices by payer ID or payer foreign ID.
Filter invoices by vendor ID or vendor foreign ID.
Filter invoices by the ID or foreign ID of the user that created the invoice.
Filter invoices by assigned approver user ID. Only invoices with all upstream policies approved will be returned.
Filter invoices by approver action. Needs to be used with approverId. For example, if you want to find all invoices that have been approved by a specific user, you would use approverId and approverAction=APPROVE.
Filter invoices by invoice ID or invoice foreign ID.
Invoice status to filter on
Filter invoices by recurring status
Filter invoice by invoice template ID
Return only invoices that are receivable by the entity.
Return only invoices that are payable by the entity.
Whether to return payer metadata in the response
Whether to return vendor metadata in the response
Response
Response with status 200
Changes
No recorded changes to this operation across all 1 revision of this API.