Read an invoice
get_invoiceFetch a single invoice by ID to check its status, USD amount, reference, key dates, hold reason, networks, and every payment received, without pagination.
Instructions
Gets one invoice by its id: status, amountUsd, price, reference, dates (createdAt, expiresAt, paidAt), holdReason, networks and every payment received, with no paging. Needs a store key (npx stablevoy-mcp login). price is null for a dollar invoice; otherwise it holds the currency, amount and the rate that gave amountUsd. The id comes from create_invoice, list_invoices or the merchant. Without store every connected store is asked; an id no store has gives not_found. To find invoices by status, reference or date, use list_invoices. 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
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoiceId": "<invoiceId>"
},
"name": "get_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| store | No | Store id or exact store name from list_stores. Needed only when several stores are connected. | |
| invoiceId | Yes | The invoice id. |