Refund order
refund_orderRefund an order in full or partially by passing an amount in minor currency units, with a reference for the receipt.
Instructions
Refund an order. Omit amount for a full refund; pass amount (minor units of the order's currency) for a partial refund.
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>",
"reference": "<reference>"
},
"name": "refund_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Partial refund amount in minor units of the order's currency; omit for full refund | |
| orderId | Yes | ||
| reference | Yes | Refund reference / receipt id |