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

# 更新收款方

> 更新现有 marketplace 收款方的详情，通过其 recipient_id 识别。

更新现有收款方。仅更新指定的字段。

## 银行账户更新

对于带有服务提供商收款方 ID 的 Zoop 和 Pagar.me onboarding，显式的 `withdrawal_methods.bank` 更新会等待服务提供商的结果。其他收款方字段保持现有的更新行为。

不带 `onboarding_id` 时，Yuno 会将您发送的银行字段与收款方已保存的银行账户合并，为符合条件的 onboarding 组成一个账户。它不会将您的请求与每个服务提供商各自不同的银行账户合并。如果已保存的账户无法提供缺失的字段，请发送完整的账户。可接受的账户类型为 `CHECKINGS` 和 `SAVINGS`。

带有 `onboarding_id` 时，银行更新仅针对该 onboarding，收款方默认账户和其他 onboarding 保持不变。省略的字段取自该 onboarding 已保存的账户；如果该 onboarding 没有已保存的银行记录，则取自收款方默认账户。如果该 onboarding 没有显示银行账户，请发送完整的账户。

例如，某店铺将其 payout 账户从 A 更改为 B。Zoop 确认了 B，但 Pagar.me 未确认该更改。Yuno 为 Zoop 保留 B，保留 Pagar.me 之前已保存的账户，并将收款方默认账户更新为 B。请求返回描述各项结果的错误。**错误并不意味着所有服务提供商都保持不变。** 成功的服务提供商更改不会回滚。

至少有一个服务提供商确认更新后，收款方默认账户才会更新。如果所有尝试的服务提供商都拒绝或结果未知，则保留旧的默认账户。没有符合条件的服务提供商绑定目标时，可以在本地保存账户。从 Yuno 读取已保存的账户并不能独立确认未知的服务提供商结果。

银行更新不适用于处于 `ERROR`、`BLOCKED`、`CANCELLED`、`INACTIVE`、`TRANSFERRED` 或 `TERMINATED` 状态的 onboarding。针对其中之一（通过 `onboarding_id`、[更新 Onboarding](https://docs.y.uno/zh-hans/reference/recipients-for-marketplace/update-onboarding.md)或[继续 onboarding](https://docs.y.uno/zh-hans/reference/recipients-for-marketplace/continue-onboarding.md)）会返回 `400 INVALID_STATE`；不带 `onboarding_id` 的收款方级更新会跳过它们，并保留其之前的账户。

## 银行错误和重试

| 响应 | 含义 | 操作 |
| - | - | - |
| `400 INVALID_PARAMETERS` | 账户不完整或无效，或服务提供商明确拒绝了该账户。多服务提供商请求仍可能已应用于其他服务提供商。 | 阅读所有结果消息，并修正指出的字段。 |
| `400 INVALID_STATE` | 目标 onboarding 处于不接受银行更新的状态。不会发送服务提供商请求。 | 不要在此 onboarding 上重试银行更新。 |
| `400 REQUEST_CANNOT_BE_PROCESSED` | 可能是银行更新准入不可用且未发送服务提供商请求，也可能是至少一个服务提供商已确认银行账户（在消息中列为 `APPLIED`），但之后的非银行更新失败。 | 如果有服务提供商列为 `APPLIED`，请勿重新发送银行账户，只需重新提交剩余的非银行更改。否则，请重试相同的预期请求。 |
| `400 OPERATION_NOT_SUPPORTED_BY_PROVIDER` | 不带 `onboarding_id` 时，收款方还有一个其服务提供商不支持银行更新的 onboarding。列为 `APPLIED` 的受支持服务提供商已更新。 | 阅读结果消息。如需仅更改某个受支持的服务提供商，请发送 `onboarding_id`。 |
| `409 PROVIDER_TIMEOUT_AMBIGUOUS` | 至少有一个结果未确认。这可能包括连接器无法与不确定写入区分开的服务提供商拒绝。 | 先阅读结果消息。如果消息表明服务提供商已创建账户但未将其设为结算账户，或结算账户已更改，请在服务提供商处修正，而不是重新发送。否则，请在提交其他银行账户之前检查服务提供商账户，并在大约 3 分钟的冷却期后重新发送相同的预期账户。 |
| `409 ONBOARDING_OPERATION_IN_PROGRESS` | 另一个操作正在占用该账户，或一个或多个目标无法尝试。 | 按照响应中的指引操作，并重试相同的预期请求。 |

冷却期可以减少操作重叠，但不能保证延迟的服务提供商写入已经完成。请勿使用其他账户自动重试。诊断消息可以标识安全的字段名称，同时省略敏感的服务提供商详情。

在同时包含银行字段和其他收款方字段的请求中，Yuno 会先处理银行字段。尝试服务提供商更新时，只有在至少一个服务提供商确认银行账户后，才会处理其他字段。Yuno 仍可能为其余服务提供商返回错误。如果之后的非银行更新失败，已确认的银行更改不会回滚。

银行结果本身不会改变 onboarding 生命周期状态。服务提供商可能在银行更改后独立发送 onboarding 事件，因此仍可能收到 onboarding webhook。


## OpenAPI

````yaml openapi/zh-hans/recipients-for-marketplace/update-recipient-1.json PATCH /recipients/{recipient_id}
openapi: 3.1.0
info:
  title: Recipients API
  version: 1.0.0
  description: >-
    API for managing recipients in split payment scenarios. This feature enables
    merchants to split payments among multiple recipients, which is particularly
    beneficial for marketplace models where transactions need to be divided
    among different sellers or stakeholders.
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /recipients/{recipient_id}:
    parameters:
      - name: recipient_id
        in: path
        required: true
        description: 收款方的唯一标识符
        schema:
          type: string
    patch:
      summary: 更新收款方
      description: >-
        对于绑定提供商的 Zoop 和 Pagar.me onboarding，显式的银行更新需等待提供商确认。结果未知时返回
        409；已确认的变更不会回滚。有关目标选择、部分结果和重试建议，请参见 endpoint 指南。
      operationId: update-recipient
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                onboarding_id:
                  type: string
                  format: uuid
                  description: >-
                    属于该收款方的现有 onboarding 的 ID。设置后，此请求中发送的身份字段（例如
                    first_name、email、phone、address）只会作为该 onboarding
                    的专属覆盖值存储，不会修改共享的收款方；省略时，更新会应用到共享的收款方，并传播到所有非终态的
                    onboarding。仅用于请求，不会在响应或 webhook 中返回。
                  example: 1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed
                merchant_recipient_id:
                  type: string
                  description: 由商户定义的收款方的唯一标识符（MAX 255；MIN 1）。
                first_name:
                  type: string
                  description: 受益人的名字。（最多 80，最少 1）。
                last_name:
                  type: string
                  description: 受益人的姓氏。（最多 80，最少 1）。
                date_of_birth:
                  type: string
                  description: 受益人的出生日期，格式为 YYYY-MM-DD（最多 10，最少 10）。
                entity_type:
                  type: string
                  enum:
                    - GOVERNMENTAL
                    - PUBLIC
                    - NON_PROFIT
                    - PRIVATE
                  description: 受益人的组织类型。GOVERNMENTAL、PUBLIC、NON_PROFIT、PRIVATE
                website:
                  type: string
                  description: 卖家的网站 URL（MAX 255；MIN 3）。
                industry:
                  type: string
                  description: 卖家所属行业（最多 235，最少 1）。更多信息请参见行业类别参考页面。
                merchant_category_code:
                  type: string
                  description: MCC：商户类别代码（MAX 235；MIN 1）。
                email:
                  type: string
                  description: 受益人的电子邮件（最多 255，最少 3）。
                phone:
                  type: object
                  properties:
                    country_code:
                      type: string
                      description: 受益人的手机区号。（最多 3，最少 2）。
                    number:
                      type: string
                      description: 受益人的手机号码。（最多 32，最少 1）。
                address:
                  type: object
                  properties:
                    address_line_1:
                      type: string
                      description: 客户的主要账单地址行（最大 255；最小 3）。
                    address_line_2:
                      type: string
                      description: 客户的次要账单地址行（MAX 255；MIN 3）。
                    city:
                      type: string
                      description: 账单地址所在的城市（最大 255；最小 3）。
                    state:
                      type: string
                      description: 账单地址所属的州/省（最多 255，最少 3）。
                    zip_code:
                      type: string
                      description: 账单地址所属的邮政编码（最多 11，最少 4）。
                withdrawal_methods:
                  type: array
                  items:
                    type: object
                    properties:
                      bank:
                        type: object
                        properties:
                          code:
                            type: string
                            description: 银行代码（最多 3，最少 3）。
                          branch:
                            type: string
                            description: 银行分行（最多 3，最少 3）。
                          branch_digit:
                            type: string
                            description: 银行分行校验位（最多 3，最少 3）。
                          account:
                            type: string
                            description: 受益人的银行账号（最多 250，最少 3）。
                          account_digit:
                            type: string
                            description: 受益人的银行账户校验位（最多 250，最少 3）。
                          account_type:
                            type: string
                            enum:
                              - CHECKINGS
                              - SAVINGS
                            description: 受益人的银行账户类型（最多 3，最少 1）。
                          routing:
                            type: string
                            description: 受益人的银行账户路由号码。
                          country:
                            type: string
                            description: 银行账户所在国家（ISO 3166-1，最多 2，最少 2）。
                          currency:
                            type: string
                            description: 银行账户的币种（ISO 4217，最多 3，最少 3）。
                documentation:
                  type: array
                  description: 文件对象数组
                  items:
                    type: object
                    properties:
                      file_name:
                        type: string
                        description: 所发送文档的名称（MAX 255；MIN 3）。
                      content_type:
                        type: string
                        description: 商户发送的文件类型。
                      content_category:
                        type: string
                        description: 商户发送的文件类别。
                      content:
                        type: string
                        description: 商户发送的文件内容，以 base64 编码。最大大小：1MB。
                onboardings:
                  type: array
                  description: 适用于不同支付提供商的 onboarding 对象数组
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PREVIOUSLY_ONBOARDED
                          - ONBOARD_ONTO_THE_PROVIDER
                        description: onboarding 的类型。是否由 Yuno 完成。
                      workflow:
                        type: string
                        enum:
                          - HOSTED_BY_PROVIDER
                          - DIRECT
                        description: onboarding 的工作流程。
                      callback_url:
                        type: string
                        description: 如有需要，在与提供商完成 onboarding 流程后，用于将您的客户重定向到的 URL。
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            enum:
                              - PAGARME
                              - ALELO
                              - EDENRED
                              - PLUXEE
                              - VR
                              - STRIPE
                              - ADYEN
                            description: 服务提供商 ID。
                            example: PAGARME
                          recipient_id:
                            type: string
                            description: 提供商侧收款方的唯一标识符。
                      documentation:
                        type: array
                        description: 此 onboarding 的文件对象数组
                        items:
                          type: object
                          properties:
                            file_name:
                              type: string
                              description: 所发送文档的名称（MAX 255；MIN 3）。
                            content_type:
                              type: string
                              description: 商户发送的文件类型。
                            content_category:
                              type: string
                              description: 商户发送的文件类别。
                            content:
                              type: string
                              description: 商户发送的文件内容，以 base64 编码。最大大小：1MB。
                      withdrawal_methods:
                        type: array
                        description: 此 onboarding 的提款方式
                        items:
                          type: object
                          properties:
                            bank:
                              type: object
                              properties:
                                code:
                                  type: string
                                  description: 银行代码（最多 3，最少 3）。
                                branch:
                                  type: string
                                  description: 银行分行（最多 3，最少 3）。
                                branch_digit:
                                  type: string
                                  description: 银行分行校验位（最多 3，最少 3）。
                                account:
                                  type: string
                                  description: 受益人的银行账号（最多 250，最少 3）。
                                account_digit:
                                  type: string
                                  description: 受益人的银行账户校验位（最多 250，最少 3）。
                                account_type:
                                  type: string
                                  enum:
                                    - CHECKINGS
                                    - SAVINGS
                                  description: 受益人的银行账户类型（最多 3，最少 1）。
                                routing:
                                  type: string
                                  description: 受益人的银行账户路由号码。
                                country:
                                  type: string
                                  description: 银行账户所在国家（ISO 3166-1，最多 2，最少 2）。
                                currency:
                                  type: string
                                  description: 银行账户的币种（ISO 4217，最多 3，最少 3）。
                split_configuration:
                  type: object
                  description: 收款方层级的自动拆分计算规则。
                  required:
                    - calculation_type
                    - currency
                  properties:
                    calculation_type:
                      type: string
                      description: 用于计算拆分金额的方法。
                      enum:
                        - PERCENTAGE
                        - FIXED
                        - MIXED
                      example: PERCENTAGE
                    percentage:
                      type: number
                      description: >-
                        要拆分的占支付总额的百分比（0.01-100.00）。当 calculation_type 为
                        PERCENTAGE 或 MIXED 时必填。
                      minimum: 0.01
                      maximum: 100
                      example: 10.5
                    fixed_amount:
                      type: number
                      description: 要拆分的固定金额。当 calculation_type 为 FIXED 或 MIXED 时必填。
                      minimum: 0.0001
                      example: 5
                    currency:
                      type: string
                      description: ISO 4217 货币代码。所有计算类型均必填。
                      example: USD
                    rounding_mode:
                      type: string
                      description: 计算金额的舍入策略。PERCENTAGE 和 MIXED 必填。
                      enum:
                        - STANDARD
                        - ROUND_UP
                        - ROUND_DOWN
                      example: STANDARD
            examples:
              Update Contact Info:
                value:
                  email: newemail@example.com
                  phone:
                    country_code: '57'
                    number: '9876543210'
              Update Address:
                value:
                  address:
                    address_line_1: New Street 123
                    city: New City
                    state: New State
                    zip_code: '12345'
              Update Banking Info:
                value:
                  withdrawal_methods:
                    bank:
                      code: '123'
                      branch: YYY
                      account: '987654321'
                      account_type: CHECKINGS
              Update Onboarding:
                value:
                  onboardings:
                    - type: ONBOARD_ONTO_THE_PROVIDER
                      workflow: DIRECT
                      callback_url: https://myapp.com/new-callback
                      provider:
                        id: ADYEN
              Update Single Onboarding:
                value:
                  onboarding_id: 1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed
                  email: new.email@example.com
                  phone:
                    country_code: '1'
                    number: '5551234567'
      responses:
        '200':
          description: 收款方更新成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse'
              examples:
                Success Response:
                  value:
                    id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    account_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    merchant_recipient_id: AAAA01
                    national_entity: INDIVIDUAL
                    first_name: John
                    last_name: Doe
                    email: newemail@example.com
                    country: CO
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T11:45:00Z'
        '400':
          description: >-
            请求无效或银行明确拒绝。对于涉及多个提供商的请求，其他提供商可能已经应用了银行变更；请阅读结果消息。在已确认的银行变更之后，如果后续的非银行更新失败，也可能返回
            400（REQUEST_CANNOT_BE_PROCESSED），或表示目标 onboarding
            状态不接受银行更新（INVALID_STATE）。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Invalid Parameters:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        Provider rejected or requires attention to field:
                        withdrawal_methods.bank.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
        '409':
          description: 银行结果未确认，或有 onboarding 操作阻止了此请求。请检查 code 和 messages；已确认的提供商变更可能已经发生。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unconfirmed bank update:
                  value:
                    code: PROVIDER_TIMEOUT_AMBIGUOUS
                    messages:
                      - >-
                        Provider ZOOP, onboarding
                        3f6c1a2e-8b4d-4c7e-9a1f-5d2e7b9c0a14: UNKNOWN.
                      - >-
                        The provider did not confirm this bank update. Inspect
                        the provider account before retrying; untrusted provider
                        diagnostics were omitted.
                      - >-
                        Unconfirmed outcomes require provider reconciliation
                        before a different bank is submitted. Resend the same
                        intended account after the approximately three-minute
                        cooldown.
                Operation in progress:
                  value:
                    code: ONBOARDING_OPERATION_IN_PROGRESS
                    messages:
                      - >-
                        A bank or onboarding operation is in progress. After an
                        unconfirmed result, reconcile the provider account
                        before resending the same intended account after about
                        three minutes.
components:
  schemas:
    RecipientResponse:
      type: object
      properties:
        id:
          type: string
          description: 收款方的唯一标识符。
          example: 3aaa4d82-11e8-48ce-8ef5-04eee3a10802
        account_id:
          type: string
          description: 与此收款方关联的账户标识符。
          example: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
        merchant_recipient_id:
          type: string
          description: 由商户定义的收款方唯一标识符。
          example: MERCHANT_182acf1d-faeb-4ff0-94cd-7fab11b282f6
        national_entity:
          type: string
          description: 受益人的国家实体类型。
          example: INDIVIDUAL
        entity_type:
          type: string
          description: 受益人的组织类型。
          example: PRIVATE
        first_name:
          type: string
          description: 受益人的名字。
          example: Juan
        last_name:
          type: string
          description: 受益人的姓氏。
          example: Perez
        legal_name:
          type:
            - string
            - 'null'
          description: 受益人的法定名称。
          example: null
        email:
          type: string
          description: 受益人的电子邮件。
          example: juan.perez@example.com
        date_of_birth:
          type: string
          description: 受益人的出生日期。
          example: '1990-01-15'
        country:
          type: string
          description: 受益人所在国家。
          example: CO
        website:
          type: string
          description: 卖家的网站 URL。
          example: https://juanperez.com
        industry:
          type: string
          description: 卖家所属行业。
          example: Technology
        merchant_category_code:
          type: string
          description: 商户类别代码（MCC）（最多 235，最少 1）。
          example: '5734'
        document:
          type: object
          properties:
            document_number:
              type: string
              example: '1234567890'
            document_type:
              type: string
              example: CC
        phone:
          type: object
          properties:
            country_code:
              type: string
              example: '57'
            number:
              type: string
              example: '3001234567'
        address:
          type: object
          properties:
            address_line_1:
              type: string
              example: 'Carrera 7 # 32-16'
            address_line_2:
              type:
                - string
                - 'null'
              example: Oficina 201
            city:
              type: string
              example: Bogota
            country:
              type: string
              example: CO
            state:
              type: string
              example: Cundinamarca
            zip_code:
              type: string
              example: '110311'
            neighborhood:
              type: string
              example: Centro
        legal_representatives:
          type: array
          items:
            type: object
            properties:
              merchant_reference:
                type: string
                example: REP_001
              first_name:
                type: string
                example: Maria
              last_name:
                type: string
                example: Gonzalez
              email:
                type: string
                example: maria.gonzalez@example.com
              date_of_birth:
                type: string
                example: '1985-05-20'
              country:
                type: string
                example: CO
              nationality:
                type: string
                example: CO
              title:
                type: string
                example: CEO
              publicly_exposed_person:
                type: boolean
                example: false
              ultimate_beneficial_owner:
                type: boolean
                example: true
              document:
                type: object
                properties:
                  document_type:
                    type: string
                    example: CC
                  document_number:
                    type: string
                    example: '0987654321'
              phone:
                type: object
                properties:
                  country_code:
                    type: string
                    example: '57'
                  number:
                    type: string
                    example: '3109876543'
              address:
                type: object
                properties:
                  address_line_1:
                    type: string
                    example: 'Calle 26 # 13-19'
                  address_line_2:
                    type:
                      - string
                      - 'null'
                    example: null
                  country:
                    type: string
                    example: CO
                  state:
                    type: string
                    example: Cundinamarca
                  city:
                    type: string
                    example: Bogota
                  zip_code:
                    type: string
                    example: '110311'
        withdrawal_methods:
          type: object
          properties:
            bank:
              type: object
              properties:
                code:
                  type: string
                  example: '001'
                branch:
                  type: string
                  example: '004'
                branch_digit:
                  type:
                    - string
                    - 'null'
                  example: '123'
                account:
                  type: string
                  example: '1234567890'
                account_digit:
                  type:
                    - string
                    - 'null'
                  example: '123'
                account_type:
                  type: string
                  example: SAVINGS
                routing:
                  type: string
                  example: '021000021'
                country:
                  type: string
                  example: CO
                currency:
                  type: string
                  example: COP
        documentation:
          type: array
          items:
            type: object
            properties:
              file_name:
                type: string
                example: cc-front.pdf
              content_type:
                type: string
                example: application/pdf
              content_category:
                type: string
                example: IDENTIFICATION
              content:
                type: string
                example: JVBERi0xLjQKJ...
        onboardings:
          type: array
          items:
            type: object
            properties:
              id:
                type: string
                example: 84c42684-dbe5-4e0f-bd17-4d094e19762d
              type:
                type: string
                example: ONBOARD_ONTO_THE_PROVIDER
              workflow:
                type: string
                example: DIRECT
              status:
                type: string
                example: PENDING
              callback_url:
                type: string
                example: https://merchant.example.com/webhook/onboarding
              provider:
                type: object
                properties:
                  id:
                    type: string
                    example: ALELO
                  connection_id:
                    type: string
                    example: cc389b51-53a1-4a29-af40-c8cee26c3399
                  recipient_id:
                    type:
                      - string
                      - 'null'
                    example: null
                  redirect_url:
                    type:
                      - string
                      - 'null'
                    example: null
                  onboarding_url:
                    type:
                      - string
                      - 'null'
                    example: null
                  legal_entity:
                    type:
                      - string
                      - 'null'
                    example: null
                  balance_account_id:
                    type:
                      - string
                      - 'null'
                    example: null
                  legal_entity_id:
                    type:
                      - string
                      - 'null'
                    example: null
              documentation:
                type: array
                items:
                  type: object
                  properties:
                    file_name:
                      type: string
                      example: utility-bill.pdf
                    content_type:
                      type: string
                      example: application/pdf
                    content_category:
                      type: string
                      example: ADDRESS_PROOF
                    content:
                      type: string
                      example: JVBERi0xLjQKJ...
              legal_representatives:
                type: array
                items:
                  type: object
                example: []
              requirements:
                type: array
                items:
                  type: object
                  properties:
                    field:
                      type: string
                      example: document.cc
                    message:
                      type: string
                      example: Provide CC document image
                    status:
                      type: string
                      example: PENDING
              withdrawal_methods:
                type: object
                properties:
                  bank:
                    type: object
                    properties:
                      code:
                        type: string
                        example: '002'
                      branch:
                        type: string
                        example: '002'
                      branch_digit:
                        type:
                          - string
                          - 'null'
                        example: null
                      account:
                        type: string
                        example: '9876543210'
                      account_digit:
                        type:
                          - string
                          - 'null'
                        example: null
                      account_type:
                        type: string
                        example: SAVINGS
                      routing:
                        type: string
                        example: '021000022'
                      country:
                        type: string
                        example: CO
                      currency:
                        type: string
                        example: COP
              terms_of_service:
                type: object
                properties:
                  acceptance:
                    type: boolean
                    example: true
                  date:
                    type: string
                    example: '2025-07-21T20:43:54Z'
                  ip:
                    type: string
                    example: 129.21.111.11
              created_at:
                type: string
                format: date-time
                example: '2025-08-27T15:41:19.516982Z'
              updated_at:
                type: string
                format: date-time
                example: '2025-08-27T15:41:19.516989Z'
        split_configuration:
          type:
            - array
            - 'null'
          description: >-
            收款方层级的自动拆分计算规则。以数组形式返回，其中包含当前的拆分规则，尽管请求中的 `split_configuration`
            以对象形式发送。未设置拆分配置时为 `null`。
          items:
            type: object
            properties:
              calculation_type:
                type: string
                description: 用于计算拆分金额的方法。
                enum:
                  - PERCENTAGE
                  - FIXED
                  - MIXED
                example: PERCENTAGE
              percentage:
                type: number
                description: >-
                  要拆分的占支付总额的百分比（0.01-100.00）。当 calculation_type 为 PERCENTAGE 或
                  MIXED 时必填。
                minimum: 0.01
                maximum: 100
                example: 10.5
              fixed_amount:
                type: number
                description: 要拆分的固定金额。当 calculation_type 为 FIXED 或 MIXED 时必填。
                minimum: 0.0001
                example: 5
              currency:
                type: string
                description: ISO 4217 货币代码。所有计算类型均必填。
                example: USD
              rounding_mode:
                type: string
                description: 计算金额的舍入策略。PERCENTAGE 和 MIXED 必填。
                enum:
                  - STANDARD
                  - ROUND_UP
                  - ROUND_DOWN
                example: STANDARD
              created_at:
                type: string
                format: date-time
                description: 拆分配置的设置日期和时间（ISO 8601）。
                example: '2026-10-13T19:31:45.154978Z'
        created_at:
          type: string
          format: date-time
          description: 收款方创建日期（ISO 8601，最多 27，最少 27）。
          example: '2025-08-27T15:41:19.497413Z'
        updated_at:
          type: string
          format: date-time
          description: 收款方最近更新日期（ISO 8601，最多 27，最少 27）。
          example: '2025-08-27T15:41:19.497425Z'
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          example: INVALID_PARAMETERS
        messages:
          type: array
          items:
            type: string
            example: Invalid request
  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.