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

# 检索账户

> 通过唯一标识符检索特定商户账户的详情

使用唯一标识符（UUID）检索特定账户的详情。

> [!NOTE]
>
> 已暂停的账户仍可按 id 检索：返回时其 `status` 为 `SUSPENDED`，即使[列出账户](https://docs.y.uno/zh-hans/reference/organizations/list-accounts.md)不再显示它们。

### 未找到

如果没有与该 id 匹配的账户，API 会返回 HTTP `400`（而不是 `404`）。响应体中的错误 `code` 为 `"404"`：

```json 400 theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "code": "404",
  "messages": ["Account not found"]
}
```


## OpenAPI

````yaml openapi/zh-hans/organizations/retrieve-account.json GET /organizations/accounts/{account_id}
openapi: 3.1.0
info:
  title: Accounts API - Retrieve
  version: 1.0.0
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /organizations/accounts/{account_id}:
    get:
      summary: 检索账户
      description: 通过 UUID 获取指定的账户。
      operationId: retrieve-account
      parameters:
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: 账户 UUID。
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  account_group_id:
                    type: string
                    format: uuid
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - SUSPENDED
                    readOnly: true
                    description: 只读。账户被暂停时为 `SUSPENDED`，否则为 `ACTIVE`。
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: 未找到。当没有账户与该 ID 匹配时，API 返回 HTTP 400，且 `code` 设为 `"404"`。
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: '404'
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: '404'
                messages:
                  - Account not found
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: PUBLIC-API-KEY
      x-default: <Your PUBLIC-API-KEY>
    sec1:
      type: apiKey
      in: header
      name: PRIVATE-SECRET-KEY
      x-default: <Your PRIVATE-SECRET-KEY>

````

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