List your invoices
list_invoicesList your invoices
Returns the invoices raised against the account, newest first. Without paging the body is a bare JSON array rather than a { data: [...] } envelope, and the whole history comes back on each call; send page or perPage and the response becomes { data, pagination } with a real total. There is no date filter either way. The list holds both kinds of invoice the account can have: ours, for what it paid us, and those of its reseller, for what it paid a reseller that bills its customers itself. Each row says which in source. The two kinds are numbered independently, so pass source on to GET /billing/invoices/{id}/pdf. An invoice from a reseller appears once the reseller has issued it; its pdfUrl is always null and the document is rendered on demand through that endpoint.
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": "list_invoices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page to return. Starts at 1; values below 1 are clamped to 1. | |
| perPage | No | Items per page. Clamped to the range 1 to 100; larger values are reduced to 100. |