Match receipt
purch_match_receiptTie a receipt to one transaction, with a reason. Refused when the total does not fit. One receipt, one transaction (P-7). Refused when the receipt total is not the row's amount or the dates are more than seven days apart — unless you pass override with a reason that says why (a split payment, a tip added at the till). Effects: receipt matched to transaction.
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": {
"receipt_id": "<receipt_id>",
"transaction_id": "<transaction_id>",
"reason": "<reason>"
},
"name": "purch_match_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why this row — part of the record. | |
| override | No | The total or date does not fit and the reason explains why. | |
| receipt_id | Yes | The receipt, e.g. R-0003. | |
| transaction_id | Yes | The row it belongs to. |