Issue refund
issue_refundPreview and refund a paid invoice. Checks paid status, records the reason, and executes only after confirmation.
Instructions
Refund a paid invoice. Fails if the invoice is not in 'paid' status (e.g. already refunded). Dry-run by default: returns a preview with the amount and customer unless confirm:true is passed.
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": {
"invoiceId": "<invoiceId>",
"reason": "<reason>"
},
"name": "issue_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Short human-readable reason for the refund, e.g. 'duplicate charge'. Recorded in the audit log. | |
| confirm | No | Safety gate. Omit or false for a DRY RUN that changes nothing and returns a preview of what would happen. Pass true only after the human has approved, to actually execute the change. | |
| invoiceId | Yes | The invoice id to refund, like INV-1013. |