refund
Return captured money to the original payer, fully or by exact amount, fraction, or percentage of the captured total.
Instructions
Give captured money back to the original payer (it can only go back to the capture's payer). Full (omit amount), exact amount, or fraction/percent of the captured total computed for you (e.g. fraction 0.5 for 'half'). Retrying returns the same refund; a second refund of the same amount needs confirm_additional: true. Next: status shows refundable_remaining.
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": {
"orderRef": "<orderRef>"
},
"name": "refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Exact amount to refund. Give at most one of amount / fraction / percent; omit all three to refund everything not yet refunded. | |
| reason | No | Note shown to the buyer. | |
| percent | No | Refund this percent of the captured total, computed by MCPal (e.g. 25 = a quarter). | |
| fraction | No | Refund this fraction of the captured total, computed by MCPal (e.g. 0.5 = half). Use this instead of doing arithmetic yourself. | |
| orderRef | Yes | Your merchant reference for this deal (e.g. 'invoice-1042'). Reuse it for every later call about the same deal. | |
| confirm_additional | No | Only true when the user explicitly wants ANOTHER refund of the same amount on this orderRef. Without it, repeating a refund returns the first one and moves no money. |