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

# 环境

> 介绍 sandbox 和生产环境的 API 基础 URL，以及它们的凭证和超时行为

本页介绍 API 基础 URL，以及调用 Yuno API 时可以使用的两个环境：**Sandbox** 和 **Production**。

如需了解如何在 Yuno Dashboard 中切换 Test Mode 和 Live Mode，请参阅[环境（Dashboard）](https://docs.y.uno/zh-hans/docs/using-yuno/environments.md)。

## 概览：Sandbox 与 Production

| 环境 | 用途 | 基础 URL |
| - | - | - |
| **Sandbox** | 测试和开发。没有真实数据，也没有真实交易。 | `https://api-sandbox.y.uno` |
| **Production（美国）** | 位于美国的生产环境。真实交易和账务。 | `https://api.y.uno` |

在 Dashboard 中，Sandbox 称为 **Test Mode**，Production 称为 **Live Mode**。两者使用同一个账户；Dashboard 中的切换开关决定您当前使用的环境。

## 凭证

> [!WARNING]
>
> **凭证**
>
> Sandbox 和 Production 使用**不同的 API 密钥**。您在 Test Mode（Sandbox）中使用的凭证与 Live Mode（Production）中的凭证不同。在 Dashboard 中，显示的密钥取决于您所选的环境。有关在哪里找到它们，请参阅[开发者凭证](https://docs.y.uno/zh-hans/docs/using-yuno/settings/developers-credentials.md)。

## 基础 URL

### Sandbox

测试时，所有 API 请求都使用此基础 URL。数据为模拟数据，不会影响真实的账务或指标。

```text theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
https://api-sandbox.y.uno
```

### Production（美国）

当您的集成已经上线、位于美国并处理真实支付时，请使用此基础 URL。

```text theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
https://api.y.uno
```

## 处理时间和超时

> [!NOTE]
>
> **处理时间**
>
> 每个请求的处理时间取决于处理机构或收单机构。总时间为 Yuno 的处理时间与处理机构的处理时间之和。

> [!WARNING]
>
> **超时**
>
> Yuno 对所有 endpoint 使用 **60 秒超时**。完整的请求与响应周期必须在 60 秒内完成。响应时间通常要短得多；60 秒的时限是为了覆盖响应较慢的处理机构。


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