Get invoice
get_invoiceFetches one invoice with its line items and any recorded routing decision by invoice ID, returning NOT_FOUND for unknown IDs.
Instructions
Fetch one invoice with its line items (sku, quantity, unit price in minor units) and any routing decision already recorded. Read-only. Errors with NOT_FOUND if the id is unknown.
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 |
|---|---|---|---|
| invoiceId | Yes | Ledger invoice id, e.g. "inv_003". Obtain ids from list_invoices. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |