Link a refund
purch_link_refundTie money back to the purchase it reverses. It takes back that much of the purchase's spending, in its category; it is not income. Read purch_refunds: money in that looks like money back from the same shop. Show the person and link with a reason. A refund is never more than what is left of the purchase after earlier refunds. Money back for something not on record stays income. Effects: refund row tied to its purchase; the purchase's spending reduced by it.
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": {
"refund_transaction_id": "<refund_transaction_id>",
"purchase_transaction_id": "<purchase_transaction_id>",
"reason": "<reason>"
},
"name": "purch_link_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why they belong together: "returned the chair". | |
| refund_transaction_id | Yes | The money-in row. An existing purch_transaction id. | |
| purchase_transaction_id | Yes | The purchase it reverses. An existing purch_transaction id. |