Skip to main content
GET
/
payments
/
refund
/
{refundId}
cURL
curl --request GET \
  --url https://api.xpaycheckout.com/payments/refund/{refundId} \
  --header 'Authorization: Basic <encoded-value>'
{
  "refundId": "rf_fooBOwYsaK50AEaJ",
  "intentId": "in_fooBOwYsaK50AEfK",
  "amount": 2000,
  "currency": "USD",
  "refundedAt": 1727340330123
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

refundId
string
required

Unique identifier of the refund

Response

Successful response with refund details

refundId
string
required

Unique identifier of the refund

Example:

"rf_fooBOwYsaK50AEaJ"

intentId
string
required

Unique identifier of the payment intent

Example:

"in_fooBOwYsaK50AEfK"

amount
integer<int64>
required

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)

Example:

2000

currency
string
required

Three letter abbreviation of the currency. Refer supported currencies

Example:

"USD"

refundedAt
integer<int64>
required

Epoch timestamp in milliseconds of when the refund was processed

Example:

1727340330123