refund_order
Mutation/readOnly:false, script-tier/no-model-token action. Refund a product order to the customer, in full or in part. Money moves: the refund goes back to the customer's card. Requires the Admin role. Without confirm:true this returns a preview of the order and the amount that would be refunded and changes nothing; with confirm:true it refunds. amountCents is in cents (2500 = $25.00) and omit it to refund the remaining balance. Call get_order first. 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": {
"orderId": "<orderId>",
"proAccessToken": "<proAccessToken>"
},
"name": "refund_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | Must be true to refund. Omit to preview. | |
| orderId | Yes | The order id from list_orders. | |
| amountCents | No | Amount to refund in cents. Omit to refund the remaining balance. | |
| 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. |