Create a Refund
Initiates a refund against a captured payment. If amount is not specified, the full payment amount is refunded. You can issue multiple partial refunds as long as the total does not exceed the captured amount.
Authorizations
Use your Razorpay Key ID as the username and Key Secret as the password.
Path Parameters
The unique identifier of the captured payment to refund.
"pay_DJkTfWoJ5ZFPce"
Body
Request body for creating a refund against a payment. If amount is omitted, a full refund is initiated.
The amount to refund, in the smallest currency sub-unit. If not provided, the full payment amount is refunded. Must not exceed the captured payment amount.
50000
The processing speed for the refund. normal takes 5-7 business days; optimum processes instantly where supported, falling back to normal otherwise.
normal, optimum "normal"
A key-value store of custom metadata to attach to the refund.
A unique receipt number for the refund, for your internal reference.
"receipt_refund_1001"
Response
The refund was successfully initiated. Returns the refund object.
A Razorpay Refund object representing a refund transaction.
Unique identifier for the refund.
"rfnd_FP8QHiV938haTz"
Entity type, always refund for refund objects.
"refund"
The refund amount in the smallest currency sub-unit (e.g., paise for INR).
50000
The ISO 4217 currency code for the refund.
"INR"
The unique identifier of the payment against which the refund was initiated.
"pay_DJkTfWoJ5ZFPce"
The current status of the refund.
pending, processed, failed "processed"
The processing speed at which the refund was processed. normal refunds are processed within 5-7 business days; optimum refunds are processed instantly where supported.
"normal"
A unique receipt number for the refund, for your internal reference.
"receipt_refund_1001"
A key-value store of custom metadata attached to the refund.
Unix timestamp (in seconds) at which the refund was created.
1595491208