Refund payment
refund_paymentRefund money to a customer through the payment provider for an order. Confirm the amount first; this action is irreversible and uses a captured payment when no payment ID is given.
Instructions
REFUNDS money to the customer through the payment provider. Irreversible – confirm the amount with the user before calling. Without 'payment_id' uses the only captured payment that can cover the amount. Refund reasons are listed by get_store_info.
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": {
"order": "<order>",
"amount": "<amount>"
},
"name": "refund_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| order | Yes | Order ID or order number | |
| amount | Yes | Major units, e.g. 249.50 | |
| payment_id | No | ||
| refund_reason_id | No |