List invoices
codat_list_invoicesList a company's accounts-receivable invoices (id, invoiceNumber, customerRef, issueDate, dueDate, currency, totalAmount, amountDue, status, lineItems). Codat API: GET /companies/{companyId}/data/invoices. Returns the paged envelope. Tip: filter with query, e.g. "status=Submitted&&amountDue>0".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1). | |
| query | No | Codat query filter string, e.g. "status=Paid" or "modifiedDate>2026-01-01". See docs.codat.io/using-the-api/querying. | |
| orderBy | No | Field to order results by, e.g. "-modifiedDate" (leading "-" for descending). | |
| pageSize | No | Records per page (1-2000, default 100). | |
| companyId | Yes | The Codat companyId (UUID). |