check_invoice
Three-way match a supplier invoice against its purchase order and goods receipt to return approval, hold, or review decisions with reasons; optionally register approved invoices to flag duplicates.
Instructions
Three-way match one invoice against the PO file.
invoice_json: {"invoice_number": str, "supplier": str, "po_number": str|null, "currency": "EUR", "lines": [{"sku": str, "qty": number, "unit_price": number}]} register: if true and the decision is APPROVE, remember the invoice so a resubmission is flagged as a duplicate. Returns status (APPROVE, HOLD_*, REVIEW), reasons and the PO used. It never pays or posts anything.
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": {
"invoice_json": "<invoice_json>"
},
"name": "check_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| register | No | ||
| invoice_json | Yes |