List invoices
list_invoicesList invoices newest first to find one when you have no id. Filter by status, source, reference, or creation date, and page through results per store.
Instructions
Lists invoices newest first, to find invoices when you have no id. Needs a store key (npx stablevoy-mcp login). All filters are optional and combine: status, source, search (an invoice id or the start of the reference), createdFrom and createdTo (UTC days, both included) and limit (1 to 100, 20 by default). Each call returns one page per store: its name, invoices with the fields of get_invoice, and nextCursor. For the next page pass nextCursor as cursor with the same store. No match is an empty list. For one invoice by id use get_invoice; for totals of a period use summarize_payments. A failure comes back as an error with its code and what to do, for example rate_limited with the seconds to wait.
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 |
|---|---|---|---|
| limit | No | Invoices per page, 20 by default. | |
| store | No | Store id or exact store name from list_stores. Needed only when several stores are connected. | |
| cursor | No | nextCursor of the previous page, with the same store. | |
| search | No | Invoice id or the start of the reference. | |
| source | No | How the invoice was made: payment_link, woocommerce, edd, whmcs, api_key or not_recorded. | |
| status | No | awaiting_payment, confirming, paid, overpaid, underpaid, paid_late, expired, on_hold or cancelled. | |
| createdTo | No | Last UTC day, YYYY-MM-DD. | |
| createdFrom | No | First UTC day, YYYY-MM-DD. |