refund_order
Refund an order (full or partial) by providing the order ID. Specify an amount in the order's minor units for a partial refund, or omit for a full refund.
Instructions
Directly refund one of your orders (no buyer request needed). Pass the order id (ord_…); optional partial amount + reason. Omit amount for a FULL refund. If you DO pass a partial amount, it is in the ORDER’S minor units — read the order first (get_order / list_orders) to see its currency and total, because the units differ by currency.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Partial refund in the ORDER'S minor units — the SAME units as the order's `amount` field shown by get_order/list_orders. The scale depends on the order's currency: 2 decimals for fiat (USD/EUR: 50000 = 500.00) but 6 decimals for stablecoins (USDC/USDT/RLUSD: 50000 = 0.05). So the same number means different money in different currencies — always check the order's currency first. Omit entirely for a full refund; must not exceed the order's remaining refundable amount. | |
| reason | No | optional reason, shown in the audit trail | |
| orderId | Yes | ord_… (from list_orders / get_order) |