getInvoiceItems
List invoice items. Pass customerRef, locationRef, or invoiceRef for the items of one invoice; without any of them it lists the items of every location in the network. All of them page with nextPageToken. pending=true returns items not on an invoice and not part of a subscription yet (bookings and purchases paid with the Invoice payment method that are waiting to be billed), pending=false the rest, and omitting it returns both. createDate filters by when the item was created; status and issueDate filter by the invoice the item is on. Get invoiceRef from getInvoices. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Never invent UUIDs; only use values from prior tool responses.
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": "getInvoiceItems"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Filter by invoice item type. Comma-separated, one or more of: creditPackage, custom, booking, eventTicket, subscription, order. | |
| limit | No | Maximum number of invoice items per page. Defaults to 25 when omitted or invalid; values above 100 are capped at 100. | |
| status | No | Filter by the status of the invoice the item is on: draft (created but not sent), issued (sent to the customer but unpaid), paid (fully paid) or voided (cancelled and no longer valid). Items not on an invoice are excluded. Comma-separated, one or more of: draft, issued, paid, voided. | |
| pending | No | Filter by whether the item is pending: not on an invoice and not part of a subscription. Pass true or false. | |
| issueDate | No | Filter by issue date (issueDate). Provide gte, lte ISO datetimes. | |
| createDate | No | Filter by create date (createDate). Provide gte, lte ISO datetimes. | |
| invoiceRef | No | UUID of the invoice whose items to list, in place of customerRef or locationRef or with them. Pages and sorts like the rest of the list, and the other filters still apply. | |
| customerRef | No | UUID of the customer whose invoice items to list. | |
| locationRef | No | UUID of the location whose invoice items to list. Without customerRef, invoiceRef or locationRef, lists the invoice items of the whole network. | |
| 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 |
|---|---|---|---|
| invoiceItems | Yes | ||
| nextPageToken | No | Pass it back as nextPageToken, with the same filters, to get the next page. Absent on the last page. |