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

# 列出成功组

> 列出账户的成功组，以便在 SUCCEEDED_GROUP 路由输出中通过 group_id 引用。

列出账户上保存的成功组：您在路由输出中通过 `status: "SUCCEEDED_GROUP"` 引用的成功子状态组，用于将服务提供商暂缓审核的授权（`PENDING_IN_REVIEW`）与普通批准区别处理。将组的 `id` 用作 `group_id`；请参阅[结果组](https://docs.y.uno/zh-hans/reference/organizations/routing/routing-resource-shape.md#outcome-groups)。

此 endpoint 为只读。成功组在 Dashboard 中创建。

### 查询参数

**account\_id** `string` *required*

要列出组的账户。必须属于您的 API 凭证所作用的组织。

### 响应

包含该账户各个组的数组；如果账户没有组，则返回空数组。每个组包含：

**id** `integer`

作为 `group_id` 发送的值。

**name** `string`

组的名称，与 Dashboard 中显示的一致，并在路由输出中以 `group_name` 返回。

**type** `enum`

始终为 `SUCCEEDED_GROUP`，即使用该组的输出 `status`。

**succeeded\_types** `string[]`

组的成员。目前唯一可以分组的成功子状态是 `PENDING_IN_REVIEW`。请参阅[交易状态和响应代码](https://docs.y.uno/zh-hans/reference/payments/status-and-response-codes/transaction.md#succeeded-status)。

```bash cURL theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
curl -X GET 'https://api.y.uno/v1/routing/succeeded-groups?account_id=7825fc5e-e50a-4248-9ae8-5d3786afb0be' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>'
```

```json 200 OK theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
[
  {
    "id": 430,
    "name": "Pending review",
    "type": "SUCCEEDED_GROUP",
    "succeeded_types": ["PENDING_IN_REVIEW"]
  }
]
```

```json 400 Bad Request — Missing account_id theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "code": "ROUTING_VALIDATION_FAILED",
  "messages": ["account_id is required."]
}
```

### 错误

| HTTP | `code` | 触发时机 |
| - | - | - |
| `400` | `ROUTING_VALIDATION_FAILED` | 缺少 `account_id` 查询参数。 |
| `400` | `INVALID_ACCOUNT_ID` | `account_id` 属于您的 API 密钥不拥有的组织。 |
| `401` | `NOT_AUTHENTICATED` | 缺少 `public-api-key` 或 `private-secret-key` 标头。 |
| `401` | `INVALID_CREDENTIALS` | 密钥对错误，或使用了 Dashboard **Customized API key**。请改用账户密钥或组织密钥。 |
| `502` | `ROUTING_UPSTREAM_ERROR` | 无法连接路由服务。请重试该请求。 |


## OpenAPI

````yaml openapi/zh-hans/organizations/routing/list-succeeded-groups.json GET /routing/succeeded-groups
openapi: 3.1.0
info:
  title: Routing API - List Succeeded Groups
  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:
  /routing/succeeded-groups:
    get:
      summary: 列出成功组
      description: 列出账户的成功组，供 SUCCEEDED_GROUP 路由输出通过 group_id 引用。只读。
      operationId: list-succeeded-groups
      parameters:
        - name: account_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
          description: 要列出其组的账户。必须属于您的 API 凭据所属的组织。
      responses:
        '200':
          description: 该账户的组；没有时为空数组。
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      example: 430
                      description: 在路由输出中作为 group_id 发送的值。
                    name:
                      type: string
                      example: Pending review
                    type:
                      type: string
                      enum:
                        - SUCCEEDED_GROUP
                      description: 始终为 SUCCEEDED_GROUP，即该组所配合使用的输出状态。
                    succeeded_types:
                      type: array
                      items:
                        type: string
                      example:
                        - PENDING_IN_REVIEW
                      description: 该组的成员。目前唯一可分组的成功子状态是 PENDING_IN_REVIEW。
        '400':
          description: >-
            请求错误。缺少 `account_id` 时返回 `ROUTING_VALIDATION_FAILED`，`account_id`
            属于其他组织时返回 `INVALID_ACCOUNT_ID`。
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_VALIDATION_FAILED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - account_id is required.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '502':
          description: 网关错误
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_UPSTREAM_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - routing service unavailable.
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.