> ## Documentation Index
> Fetch the complete documentation index at: https://docs.y.uno/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 按 ID 检索无参考退款

> 通过请求路径中提供的 id 检索现有无参考退款的详情。

此请求用于根据无参考退款的 `id` 检索其详情，该值需要在请求路径中提供。

> [!NOTE]
>
> **服务提供商原始数据**
>
> `provider` 对象在两个字段中携带与服务提供商之间未经改动的交互数据。这两个字段的结构由服务提供商而不是 Yuno 定义，因此会因服务提供商和操作而异。两个字段分别控制：
>
> | 字段 | 内容 | 获取方式 |
> | - | - | - |
> | `raw_request` | Yuno 发送给服务提供商的确切 payload。 | 需要您的账户已启用服务提供商原始数据。如需申请访问权限，请联系您的 Yuno 客户经理。不受 `include_raw_responses` 影响。 |
> | `raw_response` | 服务提供商返回的完整 payload。 | 在此请求中传入 `include_raw_responses=true`。 |
>
> `raw_response_code` 和 `raw_response_message` 是服务提供商响应的摘要，始终会返回，与前述两个字段无关。

**public-api-key** `string` *required*

您账户的唯一公共 API 密钥。

**private-secret-key** `string` *required*

您账户的唯一私有密钥。

**unreferenced\_refund\_id** `string` *required*

Yuno 生成的无参考退款唯一标识符。

**include\_raw\_responses** `boolean` (default: false)

当为 `true` 时，响应 payload 中的 `provider` 对象将包含 `raw_response`，即服务提供商返回的完整 payload。无论此参数如何设置，`raw_response_code` 和 `raw_response_message` 摘要字段始终会返回。

**include\_transaction\_responses** `boolean` (default: false)

当为 `true` 时，如果退款触发了多次内部重试，则返回完整的尝试列表和中间网络响应。

```bash Example request theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
curl --request GET \
  --url 'https://api.y.uno/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'
```

```json 200 - Refund found theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "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 theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "code": "UNREFERENCED_REFUND_NOT_FOUND",
  "messages": [
    "No unreferenced refund with the provided id exists on this account."
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.