Refunds
Create a refund
Initiate a full or partial refund for a captured payment. Use speed=normal (default, 5-7 business days) or speed=optimum for instant refund (falls back to normal if unavailable). Use the X-Refund-Idempotency header with a unique key (>=10 chars) to safely retry without duplicate refunds.
post/payments/{id}/refund
Request
- Base URLhttps://api.razorpay.com/v1
- Auth
- HTTP basic
- or OAuth 2Authorization codehttps://mcp.razorpay.com/authorizeClient credentialsToken URLhttps://mcp.razorpay.com/tokenScopesread_only
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Payment ID to refund (pay_*). Payment must be captured.
Request body
Response
Refund initiated.
Changes
No recorded changes to this operation across all 1 revision of this API.