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

# 检索服务提供商叠加层

> 返回您的组织在单个服务提供商上的叠加层：您是否提供该服务提供商，以及任何自定义名称、说明、文档链接和徽标。

返回您的组织在单个服务提供商上的叠加层：您是否提供该服务提供商，以及任何自定义名称、说明、文档链接和徽标。

> [!NOTE]
>
> **此 endpoint 从不返回 `404`**。对于您从未改动过的服务提供商，它会返回 `200`，带有 `allowed` 且不含任何覆盖字段，这正是编辑器渲染空表单所需的内容。当您确实需要知道是否存在覆盖时，请改用[检索服务提供商的说明覆盖](https://docs.y.uno/zh-hans/reference/organizations/whitelabel/retrieve-provider-instructions.md)。

**缺失**的字段表示“保留 Yuno 目录中该字段的值”。覆盖会整体替换字段，从不与其合并。

### 路径参数

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

Yuno 目录中的服务提供商 id，采用 UPPER\_SNAKE\_CASE（`STRIPE`、`ADYEN`、`YUNO_3DS` 等）。不区分大小写：会被标准化为大写。

### 响应

**provider\_id** `string`

Yuno 目录中的服务提供商 id，已标准化为大写。

**allowed** `boolean`

您的组织是否提供此服务提供商。

**name** `string`

被覆盖时，替换目录中名称的显示名称。

**instructions** `object[]`

被覆盖时，替换目录中连接步骤的连接步骤。

**setup\_instructions** `object[]`

被覆盖时，替换目录中设置步骤的分组设置步骤。

**more\_info\_url** `string`

被覆盖时，替换目录中文档链接的文档链接。始终为 https。

**logo\_url** `string`

在本次读取时预签名，仅在很短的时间窗口内有效，并且绝不会两次相同。

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

```json 200 OK — never touched theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "provider_id": "STRIPE",
  "allowed": false
}
```

```json 200 OK — customized theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "provider_id": "YUNO_3DS",
  "allowed": true,
  "name": "Acme Risk",
  "more_info_url": "https://docs.example.com/acme-risk",
  "logo_url": "https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=..."
}
```

```json 400 Bad Request theme={"theme":{"light":"github-dark","dark":"github-dark-dimmed"}}
{
  "code": "VALIDATION_ERROR",
  "messages": ["provider_id is invalid"]
}
```

> [!WARNING]
>
> `logo_url` 在每次读取时预签名，并在不久后过期。请立即渲染它；切勿持久保存或缓存它。

### 错误

| HTTP | `code` | 触发时机 |
| - | - | - |
| `400` | `VALIDATION_ERROR` | `provider_id` 不是有效的目录 id（`[A-Z0-9_]`，最多 100 个字符）。 |
| `401` | `NOT_AUTHENTICATED` | API 密钥缺失或无效。 |


## OpenAPI

````yaml openapi/zh-hans/organizations/whitelabel/retrieve-provider.json GET /whitelabel/providers/{provider_id}
openapi: 3.1.0
info:
  title: White-label Providers 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:
  /whitelabel/providers/{provider_id}:
    get:
      summary: 检索服务提供商叠加层
      description: >-
        返回您的组织在单个服务提供商之上的叠加层：是否提供该服务提供商，以及任何自定义名称、说明、文档链接和 logo。


        从不返回 404。对于您从未改动过的服务提供商，会返回 `200`，包含 `allowed`
        但没有覆盖字段，这正是编辑器渲染空表单所需要的。缺省的字段表示“沿用 Yuno 目录中该字段的值”；覆盖会整体替换字段，绝不会合并到其中。


        `logo_url` 在本次读取时预签名，有效期很短：请重新读取该服务提供商以获取新的 URL，而不是存储这个 URL。
      operationId: retrieve-whitelabel-provider
      parameters:
        - name: provider_id
          in: path
          required: true
          description: UPPER_SNAKE_CASE 格式的 Yuno 目录服务提供商 ID。不区分大小写；会被规范化为大写。
          schema:
            type: string
            example: STRIPE
      responses:
        '200':
          description: 该服务提供商的叠加层。
          content:
            application/json:
              schema:
                type: object
                properties:
                  provider_id:
                    type: string
                    description: Yuno 目录服务提供商 ID，UPPER_SNAKE_CASE 格式。
                    example: STRIPE
                  allowed:
                    type: boolean
                    description: 组织是否提供该服务提供商。
                    example: true
                  name:
                    type: string
                    description: 被覆盖时替代目录名称的显示名称。只有 Yuno 自有的服务提供商才能设置。
                    example: Acme Risk
                  instructions:
                    type: array
                    description: 被覆盖时替代目录连接步骤的连接步骤。缺省表示沿用目录中的步骤。
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        一个说明步骤。接受
                        `step`、`text`、`text_link`、`link`、`type`、`has_sub_instructions`、`sub_instructions_type`
                        和 `sub_instructions`（最多嵌套 3 层）。`text` 和 `text_link`
                        可以是纯字符串，也可以是语言映射，例如 `{"EN": "...", "ES": "..."}`。每个
                        `link` 都必须是 https。
                  setup_instructions:
                    type: array
                    description: 被覆盖时替代目录设置步骤的分组设置步骤。缺省表示沿用目录中的步骤。
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        一个设置分组。接受 `title`、`order`、`instructions_type` 和
                        `instructions`（步骤结构相同）。
                  more_info_url:
                    type: string
                    format: uri
                    description: 被覆盖时替代目录文档链接的文档链接。始终为 https。
                    example: https://docs.example.com/stripe
                  logo_url:
                    type: string
                    readOnly: true
                    description: 只读且临时：在本次读取时生成的预签名 URL，仅在短时间内有效。切勿存储，请重新读取该服务提供商以获取新的 URL。
                    example: >-
                      https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=...
        '400':
          description: provider_id 无效。
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - provider_id is invalid
        '401':
          description: 未授权：API 密钥无效或缺失。
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
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.