refund_custom_invoice
Mutation/readOnly:false, script-tier/no-model-token action. Refund a paid custom invoice in full back to the client's payment method. Money moves. Requires confirm:true — without it, returns a confirmation preview naming the invoice, client, and amount and refunds nothing. Requires the Owner or Admin role. Storefront Pro.
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>",
"proAccessToken": "<proAccessToken>"
},
"name": "refund_custom_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to refund the paid invoice in full. Omit to get a confirmation preview. | |
| invoiceId | Yes | The paid invoice id from list_custom_invoices. | |
| proAccessToken | Yes | The proAccessToken printed by confirm_pro_signup or renew_pro_access. It names the pro's storefront for this call and is valid for 24 hours. |