attach_receipt
File an unattached receipt against a transaction. A transaction holds at most ONE receipt, so this returns a conflict if another is already attached — detach that one first. Also clears any pending match suggestion, since the user has now decided.
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": {
"receiptId": "<receiptId>",
"transactionId": "<transactionId>"
},
"name": "attach_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receiptId | Yes | Receipt id to attach (from list_receipts output). | |
| transactionId | Yes | Transaction id to attach it to. Resolve this from get_transactions first — this is the internal id, not the transaction hash. |