Get Refund
GET/refunds/:refundIdDescription
Retrieve the details of an existing refund by its unique identifier.
Headers
| Header | Description | Required |
|---|---|---|
| Authorization | Bearer token with your API key | yes |
Path Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| refundId | string | The unique identifier of the refund. | yes |
Example Request
const response = await fetch('https://checkout.exodus.com/refunds/ref_1234567890abcdef', {
headers: {
Authorization: 'Bearer sk_live_xxxxxxxxxxxxxxxx',
},
});Response
SUCCESSFUL RESPONSE
{
"id": "ref_1234567890abcdef",
"object": "refund",
"payment_id": "pay_0987654321fedcba",
"amount": 5000,
"currency": "USD",
"status": "succeeded",
"reason": "requested_by_customer",
"stablecoin": "USDC",
"network": "ethereum",
"destination_address": "0x742d35Cc6634C0532925a3b844Bc9e7595f8fE21",
"tx_hash": "0x1a2b3c4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b",
"metadata": {},
"created_at": "2024-01-20T15:30:00Z",
"completed_at": "2024-01-20T15:31:00Z"
}Error Responses
NOT FOUND
{
"error": {
"type": "not_found",
"message": "Refund not found"
}
}