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.
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 |