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

# 获取服务提供商目录

> 返回为指定服务提供商创建连接时需要填写的 schema。

返回为指定服务提供商创建连接时需要填写的 schema：该服务提供商支持哪些支付方式，以及该服务提供商要求的参数递归列表（凭证、开关、选项）。

这是发现类 endpoint：先调用它了解服务提供商需要什么，再将其响应作为[创建连接](https://docs.y.uno/zh-hans/reference/organizations/connections/create-connection.md)的输入。

> [!NOTE]
>
> 此 endpoint 的作用范围是服务提供商，而非连接。它返回的是 schema，而不是您现有的连接。

### 路径参数

**provider\_id** `string` *required*

Yuno 服务提供商标识符（`STRIPE`、`ADYEN`、`CYBERSOURCE`、…）。区分大小写，格式为 UPPER\_SNAKE\_CASE。

### 响应

**payment\_method\_type** `string[]`

该服务提供商支持的 Yuno 支付方式枚举值。可将其中任意值传入 [创建连接](https://docs.y.uno/zh-hans/reference/organizations/connections/create-connection.md) 的 `payment_methods[]`。

**params** `object[]`

递归参数 schema。

**项**

**param\_id** `string`

在 `POST /v1/connections.params[].param_id` 中回传的标识符。请 **原样** 保留大小写。

**field\_type** `enum`

取值为 `string`、`boolean`、`array`、`number` 之一。

**description** `string | object`

显示标签。可以是纯字符串，也可以是本地化对象 `{ "EN": "...", "ES": "...", "PT": "..." }`。

**placeholder** `string | object`

可选的占位文本。结构规则与 `description` 相同。

**tooltip** `string | null`

可选的帮助文本。

**editable\_field** `boolean`

如果为 `false`，则值固定/只读。

**secret** `boolean`

如果为 `true`，则该值为敏感信息：以加密形式存储，并在后续读取时显示为 `"***"`。

**allow\_custom** `boolean`

仅在存在 `options[]` 时有意义。如果为 `true`，除目录选项外，您还可以提交自由格式的值（组合框语义）。

**optional** `boolean`

如果为 `false`，则您必须提供值。

**is\_hidden** `boolean`

如果为 `true`，则该参数存在，但不应向最终用户显示。

**sdk\_required** `boolean`

如果为 `true`，则在客户端配置 Yuno SDK 时也需要该值。

**options** `string[] | object[]`

当字段为受限枚举时出现。`field_type = "string"` → 单选。`field_type = "array"` → 多选。可以是纯字符串，也可以是 `{value, params}` 对象（后者用于选项自带嵌套参数的情况）。

**params** `object[]`

嵌套子项：当此节点的值为 `true`（boolean 父项）或匹配某个 `options`（string/array 父项）时激活。

```bash cURL theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
curl -X GET 'https://api.y.uno/v1/connections/catalog/STRIPE' \
  -H 'public-api-key: <YOUR_PUBLIC_KEY>' \
  -H 'private-secret-key: <YOUR_SECRET_KEY>'
```

```json 200 OK — Stripe theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "payment_method_type": [
    "CARD",
    "GOOGLE_PAY",
    "APPLE_PAY",
    "ACH",
    "KLARNA_PAY_NOW",
    "KLARNA_PAY_LATER",
    "IDEAL",
    "GIROPAY",
    "BANCONTACT",
    "SEPA_DEBIT"
  ],
  "params": [
    {
      "param_id": "API_KEY",
      "field_type": "string",
      "secret": true,
      "description": "Stripe Secret API Key",
      "editable_field": true,
      "optional": false
    },
    {
      "param_id": "PUBLISHABLE_KEY",
      "field_type": "string",
      "description": "Stripe Publishable Key",
      "editable_field": true,
      "optional": false
    },
    {
      "param_id": "INTEGRATION_TYPE",
      "field_type": "string",
      "description": "Stripe integration variant",
      "editable_field": true,
      "optional": false,
      "options": [
        "PAYMENT_INTENTS",
        "CHARGES",
        "CONNECT_DESTINATION"
      ]
    },
    {
      "param_id": "3DS_ENABLED",
      "field_type": "boolean",
      "description": "Enable 3DS validation flow",
      "editable_field": true,
      "optional": true,
      "params": [
        {
          "param_id": "ORIGIN_URL",
          "field_type": "string",
          "description": "Your checkout origin URL",
          "editable_field": true,
          "optional": true
        }
      ]
    }
  ]
}
```

```json 404 Not Found theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "type": "not_found",
  "code": "PROVIDER_NOT_FOUND",
  "message": "Provider 'NOT_A_PROVIDER' is not in the Yuno provider catalog",
  "details": { "provider_id": "NOT_A_PROVIDER" }
}
```

```json 403 Forbidden theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "type": "auth_error",
  "code": "INSUFFICIENT_SCOPE",
  "message": "API key is missing required scope 'connections:read'",
  "details": { "required_scope": "connections:read" }
}
```

### 如何解读节点

| 您看到的内容 | 含义 |
| - | - |
| `field_type: "string"`，无 `options[]` | 自由格式文本输入。 |
| `field_type: "string"`，`secret: true` | 密码/API 密钥，只写。在 `GET` 时返回 `"***"`。 |
| `field_type: "string"`，存在 `options[]` | 单选枚举。您提交的值必须是 `options[]` 之一。 |
| `field_type: "string"`，存在 `options[]`，`allow_custom: true` | 组合框。提交 `options[]` 之一 **或** 自由格式的值。 |
| `field_type: "boolean"` | 开关。将其设为 `true` 会激活嵌套的 `params[]`，并使其中 `optional: false` 的子项变为必填。 |
| `field_type: "array"`，存在 `options[]` | 多选。提交一个 JSON 数组，其元素为 `options[]` 的子集。 |
| `field_type: "array"`，无 `options[]` | 自由格式的字符串列表。 |

### 错误

| HTTP | `code` | 发生情况 |
| - | - | - |
| `404` | `PROVIDER_NOT_FOUND` | `provider_id` 不在 Yuno 的服务提供商目录中。 |
| `403` | `INSUFFICIENT_SCOPE` | 您的 API 密钥缺少 `connections:read` 权限范围。 |


## OpenAPI

````yaml openapi/zh-hans/organizations/connections/get-provider-catalog.json GET /connections/catalog/{provider_id}
openapi: 3.1.0
info:
  title: Connections API - Get Provider Catalog
  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:
  /connections/catalog/{provider_id}:
    get:
      summary: 获取服务提供商目录
      description: 返回为指定服务提供商创建连接时需要填写的 schema。
      operationId: get-provider-catalog
      parameters:
        - name: provider_id
          in: path
          required: true
          schema:
            type: string
            example: ADYEN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  payment_method_type:
                    type: array
                    items:
                      type: string
                    example:
                      - CARD
                      - GOOGLE_PAY
                      - APPLE_PAY
                      - ACH
                      - KLARNA_PAY_NOW
                      - KLARNA_PAY_LATER
                      - IDEAL
                      - GIROPAY
                      - BANCONTACT
                      - SEPA_DEBIT
                  params:
                    type: array
                    items:
                      type: object
                      properties:
                        param_id:
                          type: string
                          example: API_KEY
                        field_type:
                          type: string
                          example: string
                          enum:
                            - string
                            - boolean
                            - array
                            - number
                        description:
                          type: string
                          example: Stripe Secret API Key
                        editable_field:
                          type: boolean
                          example: true
                        optional:
                          type: boolean
                          example: false
                        secret:
                          type: boolean
                          example: true
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: auth_error
                  code:
                    type: string
                    example: INSUFFICIENT_SCOPE
                  message:
                    type: string
                    example: API key is missing required scope 'connections:read'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: not_found
                  code:
                    type: string
                    example: PROVIDER_NOT_FOUND
                  message:
                    type: string
                    example: >-
                      Provider 'NOT_A_PROVIDER' is not in the Yuno provider
                      catalog
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.