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

# 创建实体 onboarding（银行连接）

> 使用 KYC 或 KYB 文件，通过银行连接服务提供商为现有实体完成 onboarding

通过银行连接服务提供商为现有 [实体](https://docs.y.uno/zh-hans/reference/banking-connectivity/entities-banking-connectivity/create-entity.md) 完成 onboarding。

## Onboarding 类型

* **`ONE_STEP`**：一次性提交所有信息、合规声明、风险评估和文件。服务提供商会立即处理。
* **`PREVIOUSLY_ONBOARDED`**：生成 Yuno 内部 onboarding ID，不联系服务提供商。适用于实体已在外部完成 onboarding 的情况。

对于 `ONE_STEP`，请包含 `compliance_declaration`、`risk_assessment`、`source_of_funds` 和 `documentation`。有关支持的文件类型完整列表，请参阅 [文件类型](https://docs.y.uno/zh-hans/reference/banking-connectivity.md#documentation-types)。

通过 [获取实体 onboarding 状态](https://docs.y.uno/zh-hans/reference/banking-connectivity/entity-onboarding-banking-connectivity/get-entity-onboarding-status.md) 或 webhook 事件监控进度。有关完整的状态生命周期，请参阅 [Onboarding 状态](https://docs.y.uno/zh-hans/reference/banking-connectivity.md#onboarding-statuses)。


## OpenAPI

````yaml openapi/zh-hans/banking-connectivity/entity-onboarding-banking-connectivity/create-entity-onboarding.json POST /banking/entities/{entity_id}/onboardings
openapi: 3.0.0
info:
  version: 1.0.0
  title: Banking Connectivity
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - public-api-key: []
    private-secret-key: []
paths:
  /banking/entities/{entity_id}/onboardings:
    post:
      tags:
        - Entity Onboarding (Banking Connectivity)
      summary: 创建实体 onboarding（银行连接）
      operationId: post_v1-banking-connectivity-entities-entity-id-onboardings
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: >-
            从[创建实体](/zh-hans/reference/banking-connectivity/entities-banking-connectivity/create-entity)获取的实体的
            `id`。
        - in: header
          name: x-idempotency-key
          schema:
            type: string
          description: >-
            用于 HTTP
            标头的唯一标识符，确保即使因网络问题或超时而重试，请求也只会被处理一次。详情请参阅[身份验证](/zh-hans/reference/getting-started/authentication#idempotency)（UUID）。
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - onboarding_type
              properties:
                account_id:
                  type: string
                  description: 商户的 Yuno 账户的唯一标识符（UUID，36 个字符）。
                  example: 550e8400-e29b-41d4-a716-446655440000
                connection_id:
                  type: string
                  description: 银行连接服务提供商连接的标识符（UUID，36 个字符）。
                  example: bb0e8400-e29b-41d4-a716-446655440001
                onboarding_type:
                  type: string
                  description: >-
                    onboarding 工作流类型。`ONE_STEP`
                    一次性提交所有信息，交由服务提供商处理。`PREVIOUSLY_ONBOARDED` 在不联系服务提供商的情况下生成
                    Yuno 内部 ID。
                  enum:
                    - ONE_STEP
                    - PREVIOUSLY_ONBOARDED
                  example: ONE_STEP
                compliance_declaration:
                  type: object
                  description: 实体已接受的法律协议。`ONE_STEP` onboarding 必填。
                  properties:
                    terms_of_service:
                      type: object
                      description: 服务条款的接受记录。
                      required:
                        - accepted
                        - accepted_at
                      properties:
                        accepted:
                          type: boolean
                          description: 服务条款是否已被接受。
                          example: true
                        version:
                          type: string
                          description: 所接受条款的版本。
                          example: 1.2.0
                        accepted_at:
                          type: string
                          description: 接受时的时间戳（ISO 8601）。
                          example: '2026-02-01T10:00:00Z'
                        accepted_ip:
                          type: string
                          description: 接受服务条款时所用的 IP 地址。
                          example: 192.168.1.1
                    privacy_policy:
                      type: object
                      description: 隐私政策的接受记录。
                      required:
                        - accepted
                        - accepted_at
                      properties:
                        accepted:
                          type: boolean
                          description: 隐私政策是否已被接受。
                          example: true
                        version:
                          type: string
                          description: 所接受隐私政策的版本。
                          example: 2.1.0
                        accepted_at:
                          type: string
                          description: 接受时的时间戳（ISO 8601）。
                          example: '2026-02-01T10:00:00Z'
                        accepted_ip:
                          type: string
                          description: 接受该政策时所用的 IP 地址。
                          example: 192.168.1.1
                    ip_address:
                      type: string
                      description: 接受合规声明时所用的 IP 地址。
                      example: 192.168.1.1
                    accepted_at:
                      type: string
                      format: date-time
                      description: 接受合规声明的日期和时间（ISO 8601）。
                      example: '2026-02-01T10:00:00Z'
                  required:
                    - ip_address
                    - accepted_at
                risk_assessment:
                  type: object
                  description: 商户提供的既有合规筛查结果。
                  properties:
                    assessed_at:
                      type: string
                      description: 执行评估时的时间戳（ISO 8601）。
                      example: '2026-02-01T10:00:00Z'
                    pep_status:
                      type: object
                      description: 政治公众人物（PEP）筛查结果。
                      properties:
                        is_pep:
                          type: boolean
                          description: 该实体是否为 PEP。
                          example: false
                        pep_level:
                          type: string
                          nullable: true
                          description: PEP 分类级别。
                          enum:
                            - DIRECT
                            - CLOSE_ASSOCIATE
                            - FAMILY_MEMBER
                            - null
                          example: null
                        position:
                          type: string
                          nullable: true
                          description: 政治角色或职位（如适用）。
                          example: null
                        country:
                          type: string
                          nullable: true
                          description: PEP 身份所属的国家/地区。
                          example: null
                    rca_status:
                      type: object
                      description: 风险分类评估结果。
                      properties:
                        risk_level:
                          type: string
                          description: 评估得出的风险等级。
                          enum:
                            - LOW
                            - MEDIUM
                            - HIGH
                          example: LOW
                        classified_at:
                          type: string
                          description: 完成分类时的时间戳（ISO 8601）。
                          example: '2026-02-01T10:00:00Z'
                        assessed_by:
                          type: string
                          description: 评估人或团队的名称。
                          example: Merchant Compliance Team
                    sanctions_screening:
                      type: object
                      description: 制裁名单筛查结果。
                      properties:
                        appears_on_sanctions_list:
                          type: boolean
                          description: 该实体是否出现在任何制裁名单中。
                          example: false
                        sanctions_list_name:
                          type: string
                          nullable: true
                          description: 匹配到的制裁名单的名称（如有匹配）。
                          example: null
                        screened_at:
                          type: string
                          description: 执行筛查时的时间戳（ISO 8601）。
                          example: '2026-02-01T09:00:00Z'
                source_of_funds:
                  type: object
                  description: 关于资金来源的 AML/KYC 信息。
                  properties:
                    primary_source:
                      type: string
                      description: 主要资金来源。
                      enum:
                        - EMPLOYMENT_SALARY
                        - BUSINESS_INCOME
                        - INVESTMENTS
                        - RENTAL_INCOME
                        - PENSION
                        - GOVERNMENT_BENEFITS
                        - INHERITANCE
                        - FAMILY_SUPPORT
                        - SAVINGS
                        - LOTTERY_GAMBLING
                        - SALE_OF_ASSETS
                        - CRYPTOCURRENCY
                        - FREELANCE_CONSULTING
                        - OTHER
                      example: EMPLOYMENT_SALARY
                    secondary_sources:
                      type: array
                      description: 其他资金来源。
                      items:
                        type: string
                      example:
                        - INVESTMENTS
                    description:
                      type: string
                      description: 对资金来源的详细说明。
                      example: >-
                        Primary income from full-time employment as software
                        engineer, supplemented by stock portfolio dividends
                    estimated_annual_income:
                      type: object
                      description: 估计年收入。
                      properties:
                        amount:
                          type: number
                          description: 年收入金额。
                          example: 175000
                        currency:
                          type: string
                          description: >-
                            币种（[ISO
                            4217](https://en.wikipedia.org/wiki/ISO_4217)）。
                          example: USD
                    primary:
                      type: string
                      description: 主要资金来源。API 要求必填。
                      enum:
                        - EMPLOYMENT_SALARY
                        - BUSINESS_INCOME
                        - INVESTMENTS
                        - RENTAL_INCOME
                        - PENSION
                        - GOVERNMENT_BENEFITS
                        - INHERITANCE
                        - FAMILY_SUPPORT
                        - SAVINGS
                        - LOTTERY_GAMBLING
                        - SALE_OF_ASSETS
                        - CRYPTOCURRENCY
                        - FREELANCE_CONSULTING
                        - OTHER
                      example: EMPLOYMENT_SALARY
                  required:
                    - primary
                documentation:
                  type: array
                  description: >-
                    KYC/KYB 文件。每一项包含一个 `document_type`
                    和一个以其命名的子对象（`identity_document`、`proof_of_address`、`bank_statement`、`tax_information`、`biometric_verification`、`employment_information`、`business_document`、`financial_document`）。日期使用
                    `YYYY-MM-DD`。文件必须为
                    `image/jpeg`、`image/png`、`application/pdf` 或 `image/tiff`。
                  items:
                    type: object
                    required:
                      - document_type
                    properties:
                      document_type:
                        type: string
                        description: >-
                          文件类型。它决定了您必须发送的同名（小写）子对象，例如 `BANK_STATEMENT` 需要
                          `bank_statement`。
                        example: BANK_STATEMENT
                        enum:
                          - IDENTITY_DOCUMENT
                          - PROOF_OF_ADDRESS
                          - BANK_STATEMENT
                          - TAX_INFORMATION
                          - BIOMETRIC_VERIFICATION
                          - EMPLOYMENT_INFORMATION
                          - BUSINESS_DOCUMENT
                          - FINANCIAL_DOCUMENT
                      identity_document:
                        type: object
                        required:
                          - document_number
                          - issuing_country
                          - files
                        properties:
                          document_number:
                            type: string
                            description: 证件号码。
                            example: D1234567
                          document_subtype:
                            type: string
                            description: 文件子类型。
                            example: DRIVERS_LICENSE
                          issuing_country:
                            type: string
                            description: 签发国家/地区（ISO 3166-1 alpha-2）。
                            example: US
                          expires_at:
                            type: string
                            description: 到期日期。格式为 `YYYY-MM-DD`。
                            example: '2028-01-15'
                          files:
                            type: array
                            minItems: 1
                            description: 支持该文件的文件列表。至少需要一个文件。
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: 文件名。
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: 文件的媒体类型。
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: 文件内容，经 base64 编码。
                                  example: base64_encoded_content
                      proof_of_address:
                        type: object
                        required:
                          - issuing_country
                          - files
                        properties:
                          issuing_country:
                            type: string
                            description: 签发国家/地区（ISO 3166-1 alpha-2）。
                            example: US
                          issued_at:
                            type: string
                            description: 签发日期。格式为 `YYYY-MM-DD`。
                            example: '2026-01-01'
                          files:
                            type: array
                            minItems: 1
                            description: 支持该文件的文件列表。至少需要一个文件。
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: 文件名。
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: 文件的媒体类型。
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: 文件内容，经 base64 编码。
                                  example: base64_encoded_content
                      bank_statement:
                        type: object
                        required:
                          - files
                        properties:
                          bank_name:
                            type: string
                            description: 银行名称。
                            example: Chase Bank
                          account_number_last_4:
                            type: string
                            description: 账号的最后 4 个字符。必须恰好为 4 个字符。
                            example: '1234'
                          period_start_at:
                            type: string
                            description: 对账单周期的开始日期。格式为 `YYYY-MM-DD`。
                            example: '2025-12-01'
                          period_end_at:
                            type: string
                            description: 对账单周期的结束日期。格式为 `YYYY-MM-DD`。
                            example: '2025-12-31'
                          files:
                            type: array
                            minItems: 1
                            description: 支持该文件的文件列表。至少需要一个文件。
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: 文件名。
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: 文件的媒体类型。
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: 文件内容，经 base64 编码。
                                  example: base64_encoded_content
                      tax_information:
                        type: object
                        required:
                          - tax_records
                        properties:
                          tax_records:
                            type: array
                            minItems: 1
                            items:
                              type: object
                              required:
                                - tax_number_type
                                - tax_number
                                - country
                              properties:
                                tax_number_type:
                                  type: string
                                  description: 税号类型。
                                  example: SSN
                                  enum:
                                    - SSN
                                    - EIN
                                    - ITIN
                                    - ABN
                                    - NINO
                                    - NIF
                                    - OTHER
                                tax_number:
                                  type: string
                                  description: 税号。
                                  example: 123-45-6789
                                country:
                                  type: string
                                  description: 国家/地区（ISO 3166-1 alpha-2）。
                                  example: US
                                is_primary:
                                  type: boolean
                                  example: true
                      biometric_verification:
                        type: object
                        required:
                          - verification_type
                          - files
                        properties:
                          verification_type:
                            type: string
                            description: 验证类型。
                            example: FACE_MATCH
                          confidence_score:
                            type: number
                            minimum: 0
                            maximum: 1
                            description: 介于 0.0 和 1.0 之间的浮点数。
                            example: 0.98
                          verified_at:
                            type: string
                            description: 验证日期。格式为 `YYYY-MM-DD`。
                            example: '2026-01-20'
                          files:
                            type: array
                            minItems: 1
                            description: 支持该文件的文件列表。至少需要一个文件。
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: 文件名。
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: 文件的媒体类型。
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: 文件内容，经 base64 编码。
                                  example: base64_encoded_content
                      employment_information:
                        type: object
                        required:
                          - files
                        properties:
                          employer_name:
                            type: string
                            description: 雇主名称。
                            example: Acme Corp
                          job_title:
                            type: string
                            description: 职位名称。
                            example: Software Engineer
                          started_at:
                            type: string
                            description: 开始日期。格式为 `YYYY-MM-DD`。
                            example: '2020-03-01'
                          files:
                            type: array
                            minItems: 1
                            description: 支持该文件的文件列表。至少需要一个文件。
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: 文件名。
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: 文件的媒体类型。
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: 文件内容，经 base64 编码。
                                  example: base64_encoded_content
                      business_document:
                        type: object
                        required:
                          - subtype
                          - files
                        properties:
                          subtype:
                            type: string
                            description: 企业文件子类型。
                            example: ARTICLES_OF_INCORPORATION
                            enum:
                              - ARTICLES_OF_INCORPORATION
                              - BUSINESS_LICENSE
                              - EIN_CONFIRMATION
                              - OPERATING_AGREEMENT
                              - CERTIFICATE_OF_GOOD_STANDING
                          registration_number:
                            type: string
                            description: 注册号。
                            example: REG-123456
                          registered_at:
                            type: string
                            description: 注册日期。格式为 `YYYY-MM-DD`。
                            example: '2018-05-10'
                          issuing_state:
                            type: string
                            description: 签发州。
                            example: DE
                          issuing_authority:
                            type: string
                            description: 签发机构。
                            example: Delaware Secretary of State
                          files:
                            type: array
                            minItems: 1
                            description: 支持该文件的文件列表。至少需要一个文件。
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: 文件名。
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: 文件的媒体类型。
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: 文件内容，经 base64 编码。
                                  example: base64_encoded_content
                      financial_document:
                        type: object
                        required:
                          - subtype
                          - files
                        properties:
                          subtype:
                            type: string
                            description: 财务文件子类型。
                            example: BALANCE_SHEET
                            enum:
                              - BALANCE_SHEET
                              - PROFIT_LOSS_STATEMENT
                              - CASH_FLOW_STATEMENT
                              - FINANCIAL_AUDIT
                          period_start_at:
                            type: string
                            description: 周期开始日期。格式为 `YYYY-MM-DD`。
                            example: '2025-01-01'
                          period_end_at:
                            type: string
                            description: 周期结束日期。格式为 `YYYY-MM-DD`。
                            example: '2025-12-31'
                          fiscal_year:
                            type: integer
                            example: 2025
                          audited:
                            type: boolean
                            example: true
                          auditor_name:
                            type: string
                            description: 审计师名称。
                            example: Example Audit LLP
                          files:
                            type: array
                            minItems: 1
                            description: 支持该文件的文件列表。至少需要一个文件。
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: 文件名。
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: 文件的媒体类型。
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: 文件内容，经 base64 编码。
                                  example: base64_encoded_content
            examples:
              Create entity onboarding:
                summary: Create entity onboarding
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  connection_id: bb0e8400-e29b-41d4-a716-446655440001
                  onboarding_type: ONE_STEP
                  compliance_declaration:
                    terms_of_service:
                      accepted: true
                      version: 1.2.0
                      accepted_at: '2026-02-01T10:00:00Z'
                      accepted_ip: 192.168.1.1
                    privacy_policy:
                      accepted: true
                      version: 2.1.0
                      accepted_at: '2026-02-01T10:00:00Z'
                      accepted_ip: 192.168.1.1
                    ip_address: 192.168.1.1
                    accepted_at: '2026-02-01T10:00:00Z'
                  risk_assessment:
                    assessed_at: '2026-02-01T10:00:00Z'
                    pep_status:
                      is_pep: false
                      pep_level: null
                      position: null
                      country: null
                    rca_status:
                      risk_level: LOW
                      classified_at: '2026-02-01T10:00:00Z'
                      assessed_by: Merchant Compliance Team
                    sanctions_screening:
                      appears_on_sanctions_list: false
                      sanctions_list_name: null
                      screened_at: '2026-02-01T09:00:00Z'
                  source_of_funds:
                    primary_source: EMPLOYMENT_SALARY
                    secondary_sources:
                      - INVESTMENTS
                    description: >-
                      Primary income from full-time employment as software
                      engineer, supplemented by stock portfolio dividends
                    estimated_annual_income:
                      amount: 175000
                      currency: USD
                    primary: EMPLOYMENT_SALARY
                  documentation:
                    - document_type: IDENTITY_DOCUMENT
                      identity_document:
                        document_number: D1234567
                        document_subtype: DRIVERS_LICENSE
                        issuing_country: US
                        expires_at: '2028-01-15'
                        files:
                          - file_name: license_front.jpg
                            content_type: image/jpeg
                            content: base64_encoded_content
                          - file_name: license_back.jpg
                            content_type: image/jpeg
                            content: base64_encoded_content
                    - document_type: BANK_STATEMENT
                      bank_statement:
                        bank_name: Chase Bank
                        account_number_last_4: '1234'
                        period_start_at: '2025-12-01'
                        period_end_at: '2025-12-31'
                        files:
                          - file_name: bank_statement_dec_2025.pdf
                            content_type: application/pdf
                            content: base64_encoded_content
              Previously onboarded:
                summary: Previously onboarded
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  connection_id: bb0e8400-e29b-41d4-a716-446655440001
                  onboarding_type: PREVIOUSLY_ONBOARDED
      responses:
        '200':
          description: ''
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      name:
                        type: string
                        description: 服务提供商名称。
                        example: example_bank
                      entity_id:
                        type: string
                        example: col_entity_onboarded_123
                      status:
                        type: string
                        example: verification_pending
                    description: 服务提供商的 onboarding 详情。可选：为空时省略该字段。
                  onboarding_type:
                    type: string
                    example: ONE_STEP
                  status:
                    type: string
                    example: PENDING
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                    description: 该 onboarding 的未完成要求。可选：为空时省略该字段。
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  expires_at:
                    type: string
                    example: '2026-02-08T10:00:00Z'
                    description: 该 onboarding 的过期时间。可选：为空时省略该字段。
              examples:
                Created (Entity onboarding):
                  summary: Created (Entity onboarding)
                  value:
                    id: 990e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      name: example_bank
                      entity_id: col_entity_onboarded_123
                      status: verification_pending
                    onboarding_type: ONE_STEP
                    status: PENDING
                    requirements: []
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-01T10:00:00Z'
                    expires_at: '2026-02-08T10:00:00Z'
          description: Created
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: >-
                        compliance_declaration is required for ONE_STEP
                        onboarding
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - >-
                        compliance_declaration is required for ONE_STEP
                        onboarding
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ENTITY_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Entity not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ENTITY_NOT_FOUND
                    messages:
                      - Entity not found
          description: Not Found
components:
  securitySchemes:
    public-api-key:
      type: apiKey
      in: header
      name: public-api-key
    private-secret-key:
      type: apiKey
      in: header
      name: private-secret-key

````

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