> ## 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.

# 无参考退款状态

> 无参考退款的生命周期和状态机。

`status` 字段报告当前所处的生命周期阶段。`sub_status` 字段在每个顶层状态内提供更细粒度的上下文。

| 状态 | 子状态 | 描述 |
| - | - | - |
| `CREATED` | `CREATED` | 临时状态。Yuno 已在验证后持久保存该退款，并正在将其路由到服务提供商。 |
| `PENDING` | `APPROVED` | 服务提供商已接受该退款，正在等待异步的网络或银行结算。常见于 ACH、SEPA、GoCardless。 |
| `SUCCEEDED` | `SUCCEEDED` | 终态。退款已送达目标地址：由服务提供商同步结算（Stripe、Nuvei 卡退款），或通过服务提供商 webhook 异步确认（ACH、SEPA、GoCardless）。 |
| `FAILED` | `DECLINED_BY_PROVIDER` | 终态。退款未完成。包括同步拒绝、异步退回（ACH R-codes、SEPA RJCT）、OFAC 拦截、无效账户、商户余额不足、SLA 超时以及欺诈拒绝。详细信息位于 `provider.raw_response_code` 和 `provider.raw_response_message` 中。 |

## Webhook 事件

Webhook 事件仅在顶层 `status` 转换时触发。`PENDING` 内的 `sub_status` 变化在外部不可见。

| 事件 | 在 `status` 进入以下状态时触发 |
| - | - |
| `unreferenced_refund.created` | `CREATED` |
| `unreferenced_refund.succeeded` | `SUCCEEDED` |
| `unreferenced_refund.failed` | `FAILED` |

***


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