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

# 账户

> 创建、编辑和查看您组织中的账户，并将其分配到组

**账户**是您组织内部的一个单元，可以代表一个国家、加盟店或业务部门，拥有自己的用户、连接和密钥。您可以在 **Accounts** 标签页中创建、编辑和查看账户。

从 **Organization → Accounts** 打开它。

<video src="https://github.com/writechoiceorg/yuno-images/raw/main/doc/yourPaymentsOperationSystem/accounts2.mp4" loop autoPlay muted playsInline />

## 为什么组织会使用多个账户

* **精细的访问管理**：每个账户可以代表一个国家、加盟店、业务部门或您需要的任何细分，使访问权限和数据保持分离。
* **多样的用户角色**：一个人可以在多个账户中工作，并在每个账户上拥有不同的角色。请参阅[角色](https://docs.y.uno/zh-hans/docs/using-yuno/organization/roles.md)。
* **更清晰的报告**：用于比较账户的部分让您可以准确组合所需的账户，而无需在多个单独的登录之间来回切换。

## 客户和支付方式的范围是组织

账户分离的是访问权限、连接和密钥，但不分离客户或支付方式记录。在一个账户下创建的客户，以及为其注册的任何存入 vault 的支付方式，都属于整个组织：同一组织中的任何其他账户都可以检索或重复使用它。您在[创建客户](https://docs.y.uno/reference/customers/create-customer.md)时选择的 `merchant_customer_id` 必须在整个组织内唯一，而不只是在一个账户内唯一：重复使用另一个账户已用过的 id 会返回 `CUSTOMER_ID_DUPLICATED`。

> [!NOTE]
>
> **在一个组织中运营多家公司**
>
> 如果每个业务部门都需要各自在逻辑上独立的客户记录，请在从该业务部门的账户创建客户时，为 `merchant_customer_id` 加上公司专属的前缀（例如 `cvc-mx-12345`）。Yuno 本身不会按账户隔离客户或 vault 令牌，因此这种分离必须来自您构建 id 的方式。在依赖这种方法之前，请确认它能满足您的需求。
>
> 如果您需要的是完全隔离，完全不共享客户或令牌，请为每个业务部门使用单独的 Yuno 组织，而不是在同一组织中使用不同的账户。

这与 [PCI Proxy](https://docs.y.uno/zh-hans/docs/security-and-compliance/pci-proxy/forward-proxy.md) 和[注册支付方式](https://docs.y.uno/reference/payment-methods-direct-workflow/enroll-payment-method-api.md)参考文档对 `yuno-account-id` 和 `organization_customer_external_id` 的描述一致：vault 令牌和商户的外部客户 id 始终以组织为范围。

## 将账户分配到组

选择一个或多个账户，然后使用 **Add to group** 将它们放入一个[账户组](https://docs.y.uno/zh-hans/docs/using-yuno/organization/account-groups.md)。一个账户同一时间只属于一个组，因此将其添加到新组会将其从旧组中移除，对话框会在您确认之前说明这一点。

这是账户在组之间**移动**的唯一位置。组自身详情页面中的 **Add accounts** 操作只提供未分组的账户。

## 设置首选账户

您可以将一个账户标记为首选账户。它会成为[上下文标签](https://docs.y.uno/zh-hans/docs/using-yuno/account-context.md)中的默认选择，这样 Dashboard 会在您最关注的账户上打开。

## 查找账户 ID

每个账户在 Live Mode 和 Test Mode 下都有唯一的 Account ID。从此标签页打开账户即可查看，或者在 [Developers](https://docs.y.uno/zh-hans/docs/using-yuno/settings/developers-credentials.md) 部分中找到它们。

## 相关文档

* [账户组](https://docs.y.uno/zh-hans/docs/using-yuno/organization/account-groups.md)：将账户组合在一起，以便大规模授予访问权限。
* [账户上下文](https://docs.y.uno/zh-hans/docs/using-yuno/account-context.md)：选择 Dashboard 向您显示哪些账户。


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