gorelo_list_invoices
Retrieve and filter service provider invoices by status, client, contract, dates, or email status, with sorting and pagination for reporting and reconciliation.
Instructions
Lists the service provider's invoices, filtered and sorted.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Free-text search against the invoice number, reference and name. | |
| cursor | No | Opaque pagination cursor from a previous page; omit for the first page. Only valid against the same filters and sort that produced it. | |
| number | No | Exact match on the invoice's bare sequential number (the wire's Number, not DisplayNumber). A value that does not parse as a whole number is a 400. | |
| sortBy | No | Sort field: createdOn (default), updatedOn, date, dueDate or totalAmount. | |
| pageSize | No | Number of items per page. 1-200 (default 50); out of range is a 400, never clamped. | |
| clientIds | No | client ids; keeps only invoices billed to any of them. | |
| sortOrder | No | Sort direction: asc or desc (default). | |
| statusIds | No | status ids: 1 Draft, 2 Submitted, 3 Paid, 4 Void, 5 Approved. Any other id is a 400. | |
| contractIds | No | contract ids; keeps only invoices raised from any of them. | |
| isEmailSent | No | Keeps only invoices that have (true) or have not (false) been emailed to the client. | |
| createdSince | No | Keeps only invoices created at or after this instant. | |
| dueDateSince | No | Keeps only invoices due at or after this date. | |
| updatedSince | No | Keeps only invoices last updated at or after this instant. | |
| createdBefore | No | Keeps only invoices created at or before this instant. | |
| dueDateBefore | No | Keeps only invoices due strictly before this date. | |
| updatedBefore | No | Keeps only invoices last updated at or before this instant. | |
| invoiceDateSince | No | Keeps only invoices dated at or after this date. | |
| invoiceDateBefore | No | Keeps only invoices dated strictly before this date. |