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

> Create, edit, and review the accounts in your organization, and assign them to groups

An **account** is a unit inside your organization that can represent a country, franchise, or business unit, with its own users, connections, and keys. The **Accounts** tab is where you create, edit, and review them.

Open it from **Organization → Accounts**.

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

## Why organizations use several accounts

* **Granular access management**: each account can represent a country, franchise, business unit, or any segmentation you need, so access and data stay separated.
* **Diverse user roles**: one person can work across several accounts with a different role on each. See [Roles](https://docs.y.uno/docs/using-yuno/organization/roles.md).
* **Cleaner reporting**: sections that compare accounts let you combine exactly the ones you want, without juggling separate logins.

## Customers and payment methods are organization-scoped

Accounts separate access, connections, and keys. They don't separate customer or payment-method records. A customer created under one account, and any vaulted payment method enrolled for it, belongs to the whole organization: any other account in the same organization can retrieve or reuse it. The `merchant_customer_id` you choose when [creating a customer](https://docs.y.uno/reference/customers/create-customer.md) has to be unique across the organization, not just within one account: reusing an id that another account already used returns `CUSTOMER_ID_DUPLICATED`.

> [!NOTE]
>
> **Running several companies in one organization**
>
> If each business unit needs its own, logically separate customer records, give `merchant_customer_id` a company-specific prefix (for example `cvc-mx-12345`) when creating customers from that business unit's account. Yuno does not isolate customers or vaulted tokens by account on its own, so the separation has to come from how you build the id. Confirm this approach covers your needs before relying on it.
>
> If you need full segregation instead, with no shared customers or tokens at all, use a separate Yuno organization per business unit rather than separate accounts in the same organization.

This matches how the [PCI Proxy](https://docs.y.uno/docs/security-and-compliance/pci-proxy/forward-proxy.md) and [Enroll Payment Method](https://docs.y.uno/reference/payment-methods-direct-workflow/enroll-payment-method-api.md) references describe `yuno-account-id` and `organization_customer_external_id`: vaulted tokens and the merchant's external customer id are always scoped to the organization.

## Assigning accounts to groups

Select one or more accounts and use **Add to group** to place them in an [account group](https://docs.y.uno/docs/using-yuno/organization/account-groups.md). An account belongs to one group at a time, so adding it to a new group removes it from the old one — the dialog says so before you confirm.

This is the only place an account **moves** between groups. The **Add accounts** action inside a group's own details page offers ungrouped accounts only.

## Setting a preferred account

You can mark one account as preferred. It becomes the default selection in the [context chip](https://docs.y.uno/docs/using-yuno/account-context.md), so the dashboard opens on the account you care about most.

## Finding account IDs

Each account has unique Account IDs for Live Mode and Test Mode. Open the account from this tab to see them, or find them in the [Developers](https://docs.y.uno/docs/using-yuno/settings/developers-credentials.md) section.

## Related docs

* [Account groups](https://docs.y.uno/docs/using-yuno/organization/account-groups.md): bundling accounts to grant access at scale.
* [Account context](https://docs.y.uno/docs/using-yuno/account-context.md): choosing which accounts the dashboard is showing you.


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