# Retrieve Unreferenced Refund by ID

This request enables you to retrieve details of an unreferenced refund based on its `id`, which needs to be provided in the request path.

<Info>
**Provider raw data**

The `provider` object carries the untouched provider exchange in two fields. The shape of both is defined by the provider, not by WHITELABEL, so it varies per provider and per operation. Each is controlled separately:

| Field | Content | How to obtain it |
| --- | --- | --- |
| `raw_request` | The exact payload WHITELABEL sent to the provider. | Requires your account to be enabled for provider raw data. Contact your WHITELABEL account manager to request access. Not affected by `include_raw_responses`. |
| `raw_response` | The full payload the provider returned. | Pass `include_raw_responses=true` on this request. |

`raw_response_code` and `raw_response_message` are summaries of the provider's answer and are always returned, independently of both preceding fields.
</Info>

<ParamField header="public-api-key" type="string" required>
The unique public API key for your account.
</ParamField>

<ParamField header="private-secret-key" type="string" required>
The unique private secret key for your account.
</ParamField>

<ParamField path="unreferenced_refund_id" type="string" required>
WHITELABEL-generated unique identifier of the unreferenced refund.
</ParamField>

<ParamField query="include_raw_responses" type="boolean" default="false">
When `true`, the `provider` object in the response payload will include `raw_response`, the full payload the provider returned. The `raw_response_code` and `raw_response_message` summary fields are always returned, regardless of this parameter.
</ParamField>

<ParamField query="include_transaction_responses" type="boolean" default="false">
When `true`, returns the full list of attempts and intermediate network responses if the refund triggered multiple internal retries.
</ParamField>

<RequestExample>
```bash Example request
curl --request GET \
  --url 'https://api.whitelabel.com/v1/unreferenced-refunds/d290f1ee-6c54-4b01-90e6-d701748f0851?include_raw_responses=true' \
  --header 'public-api-key: YOUR_PUBLIC_API_KEY' \
  --header 'private-secret-key: YOUR_PRIVATE_SECRET_KEY' \
  --header 'Accept: application/json'
```
</RequestExample>

<ResponseExample>
```json 200 - Refund found
{
  "id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "account_id": "9f6e0a4c-1d2b-4e3f-8a9b-1c2d3e4f5a6b",
  "merchant_order_id": "REFUND-2026-05-14-001",
  "country": "US",
  "amount": { "value": 25.00, "currency": "USD" },
  "status": "SUCCEEDED",
  "sub_status": "SUCCEEDED",
  "payment_method": {
    "vaulted_token": "550e8400-e29b-41d4-a716-446655440000",
    "detail": {
      "card": {
        "card_data": { "brand": "VISA", "last_four": "1111", "type": "CREDIT" }
      }
    }
  },
  "customer_payer": {
    "id": "6ba7b810-9dad-11d1-80b4-00c04fd430c8"
  },
  "provider": {
    "name": "STRIPE",
    "type": "PSP",
    "reference": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
    "category": "APPROVED",
    "raw_response_code": "succeeded",
    "raw_response_message": "Refund settled",
    "raw_request": {
      "amount": 2500,
      "currency": "usd",
      "payment_method": "pm_1OqQz92eZvKYlo2C7Kx9Vbnm",
      "metadata": { "merchant_order_id": "REFUND-2026-05-14-001" }
    },
    "raw_response": {
      "id": "re_3OqQz92eZvKYlo2C0g6XK1Yj",
      "object": "refund",
      "amount": 2500,
      "currency": "usd",
      "status": "succeeded"
    }
  },
  "created_at": "2026-05-14T11:47:13.482Z",
  "updated_at": "2026-05-14T11:47:18.030Z"
}
```

```json 404 - Refund not found
{
  "code": "UNREFERENCED_REFUND_NOT_FOUND",
  "messages": [
    "No unreferenced refund with the provided id exists on this account."
  ]
}
```
</ResponseExample>