Refund
The Refund APIs allow merchants to process refunds for previously captured payments
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Headers
A unique key for making the request idempotent. Must match pattern: ^[a-zA-Z0-9\-_:\.]+$. See Idempotent Requests for more details.
255^[a-zA-Z0-9\-_:\.]+$Body
Refund API
Unique identifier of the intent
"in_fooBOwYsaK50AEfK"
The amount you want to refund, specified in the smallest unit of the currency (for example, cents for USD, paise for INR).
- If you want to issue a partial refund, provide the amount you wish to refund here. For example, if the original payment was $100 (i.e., 10000 cents), and you want to refund $20, you would enter 2000.
- If you leave this field blank, the full payment amount will be refunded automatically.
"200"
Your identifier for the refund
"re123"
Response
Refund API response
Unique identifier of the refund
"rf_fooBOwYsaK50AEaJ"
Unique identifier of the payment intent
"in_fooBOwYsaK50AEfK"
The amount in lowest count unit. e.g.: For USD 1, amount is 100 representing 100 cents (The minimum amount should be greater than 1 USD)
2000
Three letter abbreviation of the currency. Refer supported currencies
"USD"
Epoch timestamp in milliseconds of when the refund was processed
1727340330123
Your identifier for the refund
"re123"