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

# 错误代码

> Sellers API 的完整错误代码参考表。

## 卖家 CRUD 错误

| HTTP 状态 | 错误代码 |
| :- | :- |
| `400 Bad Request` | `DUPLICATE_PROVIDER_MAPPING` 发现重复的 `(provider.id, payment_method_type)` 组合。 |
| `400 Bad Request` | `VALIDATION_ERROR` 请求体未通过验证。 |
| `400 Bad Request` | `INVALID_PROVIDER` 服务提供商 `id` 无效。 |
| `401 Unauthorized` | — API 密钥无效或缺失。 |
| `403 Forbidden` | `FORBIDDEN` 未找到账户或未获授权。 |
| `404 Not Found` | `FRANCHISE_MAPPING_NOT_FOUND` 给定 ID 不存在对应的卖家映射。 |
| `409 Conflict` | `FRANCHISE_MAPPING_ALREADY_EXISTS` 使用该 `merchant_seller_id` 的映射已存在。 |

## 支付请求错误

| HTTP 状态 | 错误代码 |
| :- | :- |
| `400 Bad Request` | `MUTUALLY_EXCLUSIVE_SELLER_REFERENCE` 同时发送了 `seller_id` 和 `merchant_seller_id`。 |

## 特许经营解析（非阻塞）

以下场景**不会**向商户返回错误。支付始终会继续进行：

| 场景 | 行为 |
| :- | :- |
| 找到与路由所选服务提供商对应的映射 | 支付使用解析出的 `merchant_id` 和特定于类型的详情。 |
| 没有与路由所选服务提供商 / `payment_method_type` 对应的映射 | 记录警告，使用连接中原始的 `merchant_id`。 |
| 该卖家没有 `payment_method` 数据 | 记录警告，使用连接中原始的 `merchant_id`。 |
| 特许经营解析服务不可用 | 记录错误，使用连接中原始的 `merchant_id`。 |
| `seller_id` 和 `merchant_seller_id` 都不存在 | 完全跳过特许经营解析，没有任何影响。 |


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