getInvoices
List invoices. Pass customerRef or locationRef to scope the list; without either it lists the invoices of every location in the network. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Use issueDate to filter by issue date. Use createDate to filter by invoice creation date. Filter by status, issueDate, or createDate. Search by invoice code or number with q.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getInvoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Case-insensitive search by invoice code or number. | |
| limit | No | Maximum number of invoices per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| status | No | Filter by invoice status: draft (created but not sent), issued (sent to the customer but unpaid), paid (fully paid) or voided (cancelled and no longer valid). Comma-separated, one or more of: draft, issued, paid, voided. | |
| issueDate | No | Filter by issue date (issueDate). Provide gte, lte ISO datetimes. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| customerRef | No | UUID of the customer whose invoices to list. Without customerRef or locationRef, lists the invoices of the whole network. | |
| locationRef | No | UUID of the location whose invoices to list. | |
| nextPageToken | No | Pagination token from nextPageToken in a previous response. Keep the same filters when fetching the next page. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoices | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |