POST /payments/merchant/refund
The Refund APIs allow merchants to process refunds for previously captured payments
Request
- Base URLhttps://api.xpaycheckout.com
- URLhttps://api.xpaycheckout.com/payments/merchant/refund
- AuthHTTP basic
Headers
Idempotency-Keystring
A unique key for making the request idempotent. Must match pattern: ^[a-zA-Z0-9\-_:\.]+$. See Idempotent Requests for more details.
Request body
Example request
{
"xIntentId": "in_fooBOwYsaK50AEfK",
"amount": "200",
"refundReferenceId": "re123"
}Response
Refund API response
Example response
{
"refundId": "rf_fooBOwYsaK50AEaJ",
"intentId": "in_fooBOwYsaK50AEfK",
"amount": 2000,
"currency": "USD",
"refundedAt": 1727340330123,
"refundReferenceId": "re123"
}Changes
No recorded changes to this operation across all 2 revisions of this API.