Three-way match an invoice
match_invoiceRuns three-way matching on an invoice against its purchase order and goods receipts, validating supplier, currency, duplicates, price tolerance, and quantities. Returns matched or a list of exceptions.
Instructions
Checks an invoice against its purchase order and goods receipts: supplier, currency, duplicate invoice number, lines on the PO, unit price within the tolerance set by finance, quantity ordered and quantity received. Returns "matched" or a list of exceptions.
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": "match_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | Internal invoice id, for example INV-1001 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| poId | Yes | ||
| status | Yes | ||
| invoiceId | Yes | ||
| exceptions | Yes | ||
| invoiceTotal | Yes | ||
| priceTolerancePct | Yes |