Refund payment
payments_refundRefund all or part of a captured payment across supported Indian gateways, using an idempotent refund reference to safely return money for full or partial order amounts.
Instructions
Refund all or part of a captured payment. refund_ref is the idempotency key: re-sending it after a success returns the same refund. If a call fails with OUTCOME_UNKNOWN, check payments_get_refund_status / payments_get_status BEFORE retrying. In live mode this moves real money: ask the human first, then pass confirm=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| speed | No | ||
| amount | No | Omit for full refund | |
| reason | No | ||
| confirm | No | Required (true) in live mode, after human approval | |
| provider | Yes | Gateway id | |
| order_ref | Yes | Merchant reference: 3-40 chars, letters/digits/_/- | |
| refund_ref | Yes | Merchant reference: 3-40 chars, letters/digits/_/- | |
| include_raw | No | Include the untouched provider response (verbose). | |
| provider_payment_id | No |