Skip to main content
GET
/
payments
/
refunds
/
{intentId}
cURL
curl --request GET \
  --url https://api.xpaycheckout.com/payments/refunds/{intentId} \
  --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

intentId
string
required

Unique identifier of the payment intent

Response

Successful response with list of refunds

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