Get invoice
get_invoiceFetch a single invoice by ID, including line items, supplier, linked purchase order, and goods receipts, to support ERP invoice review and three-way matching.
Instructions
Returns one invoice with its lines, the supplier, the purchase order it bills and the goods receipts for that order.
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 | Internal invoice id, for example INV-1001 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | ||
| supplier | Yes | ||
| goodsReceipts | Yes | ||
| purchaseOrder | Yes |