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

# Criar destinatário

> Crie um destinatário para receber fundos de splits de pagamento em um marketplace

Cria um novo destinatário para cenários de split de pagamento. Este endpoint permite que os lojistas definam destinatários que podem receber partes dos pagamentos em modelos de marketplace ou de split de pagamento.


## OpenAPI

````yaml openapi/pt-br/recipients-for-marketplace/create-recipient-1.json POST /recipients
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:
    post:
      summary: Criar destinatário
      operationId: create-recipient
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Recipient'
            examples:
              Individual Recipient:
                value:
                  account_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                  merchant_recipient_id: AAAA01
                  national_entity: INDIVIDUAL
                  first_name: John
                  last_name: Doe
                  email: john.doe@email.com
                  country: CO
                  document:
                    document_number: '1093333333'
                    document_type: CC
                  phone:
                    country_code: '57'
                    number: '3132450765'
                  address:
                    address_line_1: 'Calle 34 # 56 - 78'
                    address_line_2: Apartamento 502, Torre I
                    city: Bogota
                    country: CO
                    state: Cundinamarca
                    zip_code: '111111'
                  withdrawal_methods:
                    bank:
                      code: '246'
                      branch: XXXX
                      account: '1093333333'
                      account_type: SAVINGS
                  onboardings:
                    - type: PREVIOUSLY_ONBOARDED
                      workflow: DIRECT
                      description: Onboarding Description
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: VR
                        connection_id: '{{connection_id}}'
                        recipient_id: adct_1SB05NPD2RTdZORd
                        recipient_type: FLEET
                      documentation:
                        - file_name: onboarding12.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==
                      terms_of_service:
                        acceptance: true
                        date: '2025-07-21T20:43:54.786342Z'
                        ip: 129.21.111.11
              Create Recipient - US:
                value:
                  account_id: '{{account_id}}'
                  merchant_recipient_id: MERCHANT_usa_example_10
                  national_entity: INDIVIDUAL
                  entity_type: PRIVATE
                  first_name: NACHOSOS
                  last_name: UNCAPO
                  legal_name: null
                  email: nach.dos@example.com
                  date_of_birth: '1990-01-15'
                  country: US
                  website: https://johndoe.com
                  industry: Software
                  merchant_category_code: '5734'
                  document:
                    document_number: 123-45-6789
                    document_type: SSN
                  phone:
                    country_code: '1'
                    number: '4151234567'
                  address:
                    address_line_1: 1234 Market Street
                    address_line_2: Suite 100
                    city: San Francisco
                    country: US
                    state: California
                    zip_code: '94103'
                    neighborhood: SoMa
                  legal_representatives:
                    - merchant_reference: REP_US_001
                      first_name: Jane
                      last_name: Smith
                      email: jane.smith@example.com
                      date_of_birth: '1985-05-20'
                      country: US
                      nationality: US
                      title: CEO
                      publicly_exposed_person: false
                      ultimate_beneficial_owner: true
                      document:
                        document_type: SSN
                        document_number: 987-65-4321
                      phone:
                        number: '6469876543'
                        country_code: '1'
                      address:
                        address_line_1: 1600 Amphitheatre Parkway
                        address_line_2: null
                        country: US
                        state: CA
                        city: Mountain View
                        zip_code: '94043'
                  withdrawal_methods:
                    bank:
                      code: '001'
                      branch: '001'
                      branch_digit: '001'
                      account: '000123456789'
                      account_digit: '001'
                      account_type: CHECKINGS
                      routing: '021000021'
                      country: US
                      currency: USD
                  documentation:
                    - file_name: document
                      content_type: application/pdf
                      content_category: SELFIE
                      content: >-
                        iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAIAAAACUFjqAAAAEklEQVR4nGP8z4APMOGVHbHSAEEsAROxCnMTAAAAAElFTkSuQmCC
                  onboardings:
                    - type: TWO_STEP_ONBOARDING
                      workflow: DIRECT
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: YUNO_TEST_PAYMENT_GW
                        connection_id: '{{connection_id}}'
                        recipient_id: null
                      documentation: null
                      withdrawal_methods:
                        bank:
                          code: '001'
                          branch: '001'
                          branch_digit: null
                          account: '000123456789'
                          account_digit: null
                          account_type: CHECKINGS
                          routing: '021000021'
                          country: US
                          currency: USD
                      terms_of_service:
                        acceptance: true
                        date: '2025-06-18T00:00:00Z'
                        ip: 192.168.1.100
              Entity Recipient:
                value:
                  account_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                  merchant_recipient_id: AAAA02
                  national_entity: ENTITY
                  first_name: Business
                  last_name: Corp
                  legal_name: Arcos dorados S.A.
                  email: business@corp.com
                  country: CO
                  document:
                    document_number: '900123456'
                    document_type: NIT
                  phone:
                    country_code: '57'
                    number: '1234567890'
                  address:
                    address_line_1: 'Calle 123 # 45 - 67'
                    city: Medellin
                    country: CO
                    state: Antioquia
                    zip_code: '050001'
                  onboardings:
                    - type: TWO_STEP_ONBOARDING
                      callback_url: https://myapp.com/callback
                      provider:
                        id: STRIPE
                        connection_id: 02ea2568-d99e-4fb9-9bd3-7bb13a822d33
      responses:
        '201':
          description: Destinatário criado com sucesso
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse'
              examples:
                Success Response:
                  value:
                    id: 3aaa4d82-11e8-48ce-8ef5-04eee3a10802
                    account_id: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
                    merchant_recipient_id: MERCHANT_182acf1d-faeb-4ff0-94cd-7fab11b282f6
                    national_entity: INDIVIDUAL
                    entity_type: PRIVATE
                    first_name: Juan
                    last_name: Pérez
                    legal_name: null
                    email: juan.perez@example.com
                    date_of_birth: '1990-01-15'
                    country: CO
                    website: https://juanperez.com
                    industry: Technology
                    merchant_category_code: '5734'
                    document:
                      document_number: '1234567890'
                      document_type: CC
                    phone:
                      country_code: '57'
                      number: '3001234567'
                    address:
                      address_line_1: 'Carrera 7 # 32-16'
                      address_line_2: Oficina 201
                      city: Bogotá
                      country: CO
                      state: Cundinamarca
                      zip_code: '110311'
                      neighborhood: Centro
                    legal_representatives:
                      - merchant_reference: REP_001
                        first_name: María
                        last_name: González
                        email: maria.gonzalez@example.com
                        date_of_birth: '1985-05-20'
                        country: CO
                        nationality: CO
                        title: CEO
                        publicly_exposed_person: false
                        ultimate_beneficial_owner: true
                        document:
                          document_type: CC
                          document_number: '0987654321'
                        phone:
                          country_code: '57'
                          number: '3109876543'
                        address:
                          address_line_1: 'Calle 26 # 13-19'
                          address_line_2: null
                          country: CO
                          state: Cundinamarca
                          city: Bogotá
                          zip_code: '110311'
                    withdrawal_methods:
                      bank:
                        code: '001'
                        branch: '004'
                        branch_digit: '123'
                        account: '1234567890'
                        account_digit: '123'
                        account_type: SAVINGS
                        routing: '021000021'
                        country: CO
                        currency: COP
                    documentation:
                      - file_name: cc-front.pdf
                        content_type: application/pdf
                        content_category: IDENTIFICATION
                        content: JVBERi0xLjQKJ...
                    onboardings:
                      - id: 84c42684-dbe5-4e0f-bd17-4d094e19762d
                        type: TWO_STEP_ONBOARDING
                        workflow: DIRECT
                        status: PENDING
                        callback_url: https://merchant.example.com/webhook/onboarding
                        provider:
                          id: ALELO
                          connection_id: cc389b51-53a1-4a29-af40-c8cee26c3399
                          recipient_id: null
                          redirect_url: null
                          onboarding_url: null
                          legal_entity: null
                          balance_account_id: null
                          legal_entity_id: null
                        documentation:
                          - file_name: utility-bill.pdf
                            content_type: application/pdf
                            content_category: ADDRESS_PROOF
                            content: JVBERi0xLjQKJ...
                        requirements:
                          - field: document.cc
                            message: Provide CC document image
                            status: PENDING
                          - field: address.proof
                            message: Upload proof of address
                            status: PENDING
                        withdrawal_methods:
                          bank:
                            code: '002'
                            branch: '002'
                            branch_digit: null
                            account: '9876543210'
                            account_digit: null
                            account_type: SAVINGS
                            routing: '021000022'
                            country: CO
                            currency: COP
                        terms_of_service:
                          acceptance: true
                          date: '2025-07-21T20:43:54Z'
                          ip: 129.21.111.11
                        created_at: '2025-08-27T15:41:19.516982Z'
                        updated_at: '2025-08-27T15:41:19.516989Z'
                    created_at: '2025-08-27T15:41:19.497413Z'
                    updated_at: '2025-08-27T15:41:19.497425Z'
                Create Recipient - US:
                  value:
                    id: 3aaa4d82-11e8-48ce-8ef5-04eee3a10802
                    account_id: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
                    merchant_recipient_id: MERCHANT_182acf1d-faeb-4ff0-94cd-7fab11b282f6
                    national_entity: INDIVIDUAL
                    entity_type: PRIVATE
                    first_name: John
                    last_name: Smith
                    legal_name: null
                    email: john.smith@example.com
                    date_of_birth: '1990-01-15'
                    country: US
                    website: https://johnsmith.com
                    industry: Technology
                    merchant_category_code: '5734'
                    document:
                      document_number: '987654321'
                      document_type: SSN
                    phone:
                      country_code: '1'
                      number: '6465551234'
                    address:
                      address_line_1: 123 Main Street
                      address_line_2: Apt 4B
                      city: New York
                      country: US
                      state: New York
                      zip_code: '10001'
                      neighborhood: null
                    legal_representatives:
                      - merchant_reference: REP_001
                        first_name: Emily
                        last_name: Johnson
                        email: emily.johnson@example.com
                        date_of_birth: '1985-05-20'
                        country: US
                        nationality: US
                        title: CEO
                        publicly_exposed_person: false
                        ultimate_beneficial_owner: true
                        document:
                          document_type: SSN
                          document_number: '123456789'
                        phone:
                          number: '9175559876'
                          country_code: '1'
                        address:
                          address_line_1: 456 Park Avenue
                          address_line_2: null
                          country: US
                          state: New York
                          city: New York
                          zip_code: '10022'
                    withdrawal_methods:
                      bank:
                        code: '001'
                        branch: '001'
                        branch_digit: '001'
                        account: '1234567890'
                        account_digit: '001'
                        account_type: CHECKINGS
                        routing: '021000021'
                        country: US
                        currency: USD
                    documentation:
                      - file_name: ssn-proof.pdf
                        content_type: application/pdf
                        content_category: IDENTIFICATION
                        content: JVBERi0xLjQKJ...
                    onboardings:
                      - id: 84c42684-dbe5-4e0f-bd17-4d094e19762d
                        type: TWO_STEP_ONBOARDING
                        workflow: DIRECT
                        status: PENDING
                        callback_url: https://merchant.example.com/webhook/onboarding
                        provider:
                          id: ALELO
                          connection_id: cc389b51-53a1-4a29-af40-c8cee26c3399
                          recipient_id: null
                          redirect_url: null
                          onboarding_url: null
                          legal_entity: null
                          balance_account_id: null
                          legal_entity_id: null
                        documentation:
                          - file_name: utility-bill.pdf
                            content_type: application/pdf
                            content_category: ADDRESS_PROOF
                            content: JVBERi0xLjQKJ...
                        requirements:
                          - field: document.ssn
                            message: Provide SSN document image
                            status: PENDING
                          - field: address.proof
                            message: Upload proof of address
                            status: PENDING
                        withdrawal_methods:
                          bank:
                            code: '002'
                            branch: '002'
                            branch_digit: null
                            account: '9876543210'
                            account_digit: null
                            account_type: CHECKINGS
                            routing: '021000022'
                            country: US
                            currency: USD
                        terms_of_service:
                          acceptance: true
                          date: '2025-07-21T20:43:54Z'
                          ip: 129.21.111.11
                        created_at: '2025-08-27T15:41:19.516982Z'
                        updated_at: '2025-08-27T15:41:19.516989Z'
                    created_at: '2025-08-27T15:41:19.497413Z'
                    updated_at: '2025-08-27T15:41:19.497425Z'
        '400':
          description: Requisição inválida
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request format
                Transfer Error:
                  value:
                    id: 9778f631-504d-448f-b2c1-f7b903781df7
                    recipient_id: 82b12c8c-7d3d-4a21-a3c6-165cc04ca741
                    amount:
                      currency: USD
                      value: 50000
                    status: ERROR
                    description: test transfer
                    merchant_reference: cb18df20-21ae-4fed-8da9-fb81cfd56797
                    metadata: []
                    provider: null
                    transactions:
                      - code: 9eee65d1-6c3a-4076-9ef9-fa4bff73d597
                        type: SPLIT_TRANSFER
                        status: ERROR
                        provider_transfer_id: tr_1T9PTLIiMnPsFcbbFKyh1Nds
                        provider_response_message: |-
                          {
                            "id": "tr_1T9PTLIiMnPsFcbbFKyh1Nds",
                            "object": "transfer",
                            "amount": 10000,
                            "amount_reversed": 0,
                            "balance_transaction": "txn_1T9PTMIiMnPsFcbbxRKvaZ3G",
                            "created": 1773145996,
                            "currency": "usd",
                            "description": "test transfer"
                          }
                        provider_raw_response: '{.... }'
                        created_at: '2026-03-10T13:39:19.342902Z'
                        updated_at: '2026-03-10T13:39:19.342914Z'
                    created_at: '2026-03-10T13:39:19.241990247Z'
                    updated_at: '2026-03-10T13:39:19.242012664Z'
        '401':
          description: Não autorizado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Proibido
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
components:
  schemas:
    Recipient:
      type: object
      required:
        - account_id
        - merchant_recipient_id
        - national_entity
        - first_name
        - last_name
        - country
      properties:
        account_id:
          type: string
          description: Id único da conta na Yuno (MAX 64; MIN 36).
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
        merchant_recipient_id:
          type: string
          description: >-
            Identificador único do destinatário definido pelo lojista (MAX 255;
            MIN 1).
          example: AAAA01
        national_entity:
          type: string
          enum:
            - INDIVIDUAL
            - ENTITY
          description: >-
            Tipo de entidade nacional do beneficiário. Pode ser INDIVIDUAL ou
            ENTITY.
          example: INDIVIDUAL
        entity_type:
          type: string
          enum:
            - GOVERNMENTAL
            - PUBLIC
            - NON_PROFIT
            - PRIVATE
          description: >-
            O tipo de organização do beneficiário. GOVERNMENTAL, PUBLIC,
            NON_PROFIT, PRIVATE
          example: PRIVATE
        first_name:
          type: string
          description: Nome do beneficiário. (MAX 80; MIN 1).
          example: John
        last_name:
          type: string
          description: Sobrenome do beneficiário. (MAX 80; MIN 1).
          example: Doe
        date_of_birth:
          type: string
          description: >-
            A data de nascimento do beneficiário no formato YYYY-MM-DD (MAX 10;
            MIN 10).
          example: '1990-02-28'
          minLength: 10
          maxLength: 10
        legal_name:
          type: string
          description: >-
            Nome do beneficiário. (MAX 80; MIN 1) Necessário somente quando a
            entidade nacional é ENTITY.
          example: Arcos dorados S.A.
        email:
          type: string
          description: O e-mail do beneficiário (MAX 255; MIN 3).
          example: john.doe@email.com
        country:
          type: string
          description: O país do beneficiário (ISO 3166-1 MAX 2; MIN 2).
          example: CO
        website:
          type: string
          description: A URL do site do vendedor (MAX 255; MIN 3).
          example: https://y.uno
          minLength: 3
          maxLength: 255
        industry:
          type: string
          description: >-
            O setor de atuação do vendedor (MAX 235; MIN 1). Para mais
            informações, acesse a página de referência de categorias de setor.
          example: VIRTUAL_GOODS
          minLength: 1
          maxLength: 235
        merchant_category_code:
          type: string
          description: 'MCC: o código de categoria do lojista (MAX 235; MIN 1).'
        document:
          type: object
          description: Informações do documento do beneficiário
          required:
            - document_number
            - document_type
          properties:
            document_number:
              type: string
              description: Id do documento nacional do beneficiário (MAX 40; MIN 3).
              example: '1093333333'
            document_type:
              type: string
              description: Tipo de documento do beneficiário (MAX 6; MIN 2).
              example: CC
        phone:
          type: object
          description: Especifica o objeto de número de telefone do cliente.
          required:
            - country_code
            - number
          properties:
            country_code:
              type: string
              description: >-
                O código de discagem do país do telefone do cliente (MAX 3; MIN
                1). Consulte a referência de países para ver os códigos de
                telefone. Este campo é obrigatório se o objeto 'phone' for
                incluído na requisição.
              example: '1'
            number:
              type: string
              description: >-
                O número de telefone do cliente, sem o código do país (MAX 32;
                MIN 1). Este campo é obrigatório se o objeto 'phone' for
                incluído na requisição.
              example: '5551234567'
        address:
          type: object
          description: Endereço
          properties:
            address_line_1:
              type: string
              description: A linha principal do endereço de cobrança (MAX 255; MIN 3).
              example: 'Calle 34 # 56 - 78'
            address_line_2:
              type: string
              description: A linha secundária do endereço de cobrança (MAX 255; MIN 3).
              example: Apartamento 502, Torre I
            city:
              type: string
              description: A cidade considerada para o endereço (MAX 255; MIN 3).
              example: Bogota
            country:
              type: string
              description: >-
                O país considerado para o endereço (ISO 3166-1 MAX 2; MIN 2).
                Obrigatório se o endereço estiver presente.
              example: CO
            state:
              type: string
              description: >-
                O estado / província considerado para o endereço (MAX 255; MIN
                3).
              example: Cundinamarca
            zip_code:
              type: string
              description: O CEP considerado para o endereço (MAX 11; MIN 4).
              example: '111111'
            neighborhood:
              type: string
              description: A linha de bairro do endereço (MAX 255; MIN 3).
              example: Downtown
        split_configuration:
          type: object
          description: Regras para o cálculo automático do split no nível do destinatário.
          required:
            - calculation_type
            - currency
          properties:
            calculation_type:
              type: string
              description: O método usado para calcular o valor do split.
              enum:
                - PERCENTAGE
                - FIXED
                - MIXED
              example: PERCENTAGE
            percentage:
              type: number
              description: >-
                Porcentagem do valor total do pagamento a ser dividida
                (0.01-100.00). Obrigatório se calculation_type for PERCENTAGE ou
                MIXED.
              minimum: 0.01
              maximum: 100
              example: 10.5
            fixed_amount:
              type: number
              description: >-
                Valor fixo a ser dividido. Obrigatório se calculation_type for
                FIXED ou MIXED.
              minimum: 0.0001
              example: 5
            currency:
              type: string
              description: >-
                Código de moeda ISO 4217. Obrigatório para todos os tipos de
                cálculo.
              example: USD
            rounding_mode:
              type: string
              description: >-
                A estratégia de arredondamento dos valores calculados.
                Obrigatório para PERCENTAGE e MIXED.
              enum:
                - STANDARD
                - ROUND_UP
                - ROUND_DOWN
              example: STANDARD
        legal_representatives:
          type: array
          description: >-
            Proprietários/beneficiários do destinatário. Obrigatório quando
            `national_entity = ENTITY`.
          items:
            type: object
            properties:
              merchant_reference:
                type: string
                minLength: 3
                maxLength: 255
                description: Id de identificação do representante legal (MAX 255; MIN 3).
              first_name:
                type: string
                minLength: 1
                maxLength: 255
                description: Nome (MAX 255; MIN 1).
              last_name:
                type: string
                minLength: 1
                maxLength: 255
                description: Sobrenome (MAX 255; MIN 1).
              email:
                type: string
                format: email
                minLength: 1
                maxLength: 255
                description: E-mail (MAX 255; MIN 1).
              date_of_birth:
                type: string
                format: date
                minLength: 10
                maxLength: 10
                description: YYYY-MM-DD (MAX 10; MIN 10).
              country:
                type: string
                minLength: 2
                maxLength: 2
                description: País ISO 3166-1 (2).
              nationality:
                type: string
                minLength: 2
                maxLength: 2
                description: Nacionalidade ISO 3166-1 (2).
              title:
                type: string
                minLength: 1
                maxLength: 255
                description: Cargo (MAX 255; MIN 1).
              publicly_exposed_person:
                type: boolean
                description: Indicador de PEP.
              ultimate_beneficial_owner:
                type: boolean
                description: Indicador de UBO.
        withdrawal_methods:
          type: object
          description: Métodos de saque do lojista
          properties:
            bank:
              type: object
              description: Informações da conta bancária
              properties:
                code:
                  type: string
                  description: Código do banco (MAX 3; MIN 3).
                  example: '246'
                branch:
                  type: string
                  description: Agência do banco (MAX 3; MIN 3).
                  example: XXXX
                branch_digit:
                  type: string
                  description: Dígito da agência do banco (MAX 3; MIN 3).
                account:
                  type: string
                  description: Número da conta bancária do beneficiário (MAX 250; MIN 3).
                  example: '1093333333'
                account_digit:
                  type: string
                  description: Dígito da conta bancária do beneficiário (MAX 250; MIN 3).
                account_type:
                  type: string
                  enum:
                    - CHECKINGS
                    - SAVINGS
                  description: >-
                    Tipo de conta bancária do beneficiário. Valores permitidos:
                    CHECKINGS, SAVINGS.
                  example: SAVINGS
                routing:
                  type: string
                  description: Routing number da conta bancária do beneficiário.
                  example: XXXXYYYYC
                country:
                  type: string
                  description: O país da conta bancária (ISO 3166-1 MAX 2; MIN 2).
                  example: CO
                currency:
                  type: string
                  description: A moeda da conta bancária (ISO 4217 MAX 3; MIN 3).
                  example: COP
                payout_schedule:
                  type: string
                  enum:
                    - DAY
                    - WEEK
                    - MONTH
                    - HOLD
                  description: Preferência de agenda de payout.
        documentation:
          type: array
          description: Array de objetos de documentação
          items:
            type: object
            required:
              - file_name
              - content_type
              - content_category
              - content
            properties:
              file_name:
                type: string
                description: O nome da documentação enviada (MAX 255; MIN 3).
                example: PDF
              content_type:
                type: string
                enum:
                  - application/pdf
                  - image/jpeg
                  - image/png
                description: O tipo da documentação enviada pelo lojista.
                example: application/pdf
              content_category:
                type: string
                enum:
                  - ACCOUNT_REQUIREMENT
                  - BANK_STATEMENT
                  - BUSINESS_ICON
                  - BUSINESS_LOGO
                  - CANCEL_POLICY
                  - CUSTOMER_INTERACTION
                  - DRIVERS_LICENCE
                  - IDENTIFICATION_DOCUMENT
                  - IDENTIFICATION_DOCUMENT_BACK
                  - IDENTIFICATION_DOCUMENT_FRONT
                  - LEGAL_AGREEMENT
                  - OTHERS
                  - PASSPORT
                  - PAYMENT_DETAIL
                  - PROOF_OF_ADDRESS
                  - PROOF_OF_AUTHENTICITY
                  - PROOF_OF_DELIVERY
                  - PROOF_OF_DIRECTOR
                  - PROOF_OF_INDUSTRY
                  - PROOF_OF_NATIONAL_ID_NUMBER
                  - PROOF_OF_OWNERSHIP
                  - PROOF_OF_REGISTRATION
                  - PROOF_OF_RELATIONSHIP
                  - PROOF_OF_SERVICE
                  - PROOF_OF_SOURCE_OF_FUNDS
                  - PROOF_OF_SOURCE_OF_WEALTH
                  - PROOF_OF_TAX
                  - PROVIDER_IDENTITY_DOCUMENT
                  - RECEIPT
                  - REFUND_POLICY
                  - SELFIE
                  - SERVICE_AGREEMENT
                  - SIGNATURE
                  - TERMS_AND_CONDITIONS
                  - VAT_DOCUMENT
                description: A categoria da documentação enviada pelo lojista.
              content:
                type: string
                description: >-
                  O conteúdo da documentação enviada pelo lojista, codificado em
                  base64. Tamanho máximo: 2MB.
                example: >-
                  JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg==
        onboardings:
          type: array
          description: >-
            Array de objetos de onboarding para diferentes provedores de
            pagamento
          items:
            type: object
            required:
              - type
              - workflow
              - provider
            properties:
              account_id:
                type: string
                description: >-
                  Id de conta opcional para este onboarding. Se omitido, vale o
                  account_id do destinatário no nível superior.
              type:
                type: string
                enum:
                  - PREVIOUSLY_ONBOARDED
                  - ONBOARD_ONTO_THE_PROVIDER
                description: Tipo de onboarding. Se é feito pela Yuno.
                example: PREVIOUSLY_ONBOARDED
              workflow:
                type: string
                enum:
                  - HOSTED_BY_PROVIDER
                  - DIRECT
                description: Workflow do onboarding.
                example: HOSTED_BY_PROVIDER
              description:
                type: string
                description: Descrição opcional do onboarding (MAX 255; MIN 3).
              callback_url:
                type: string
                description: >-
                  URL para redirecionar seu cliente após o processo de
                  onboarding com o provedor, se necessário.
                example: https://www.google.com
              provider:
                type: object
                required:
                  - id
                  - connection_id
                properties:
                  id:
                    type: string
                    enum:
                      - PAGARME
                      - ALELO
                      - EDENRED
                      - PLUXEE
                      - VR
                      - STRIPE
                      - ADYEN
                      - YUNO_TEST_PAYMENT_GW
                    description: ID do provedor.
                    example: PAGARME
                  connection_id:
                    type: string
                    description: >-
                      ID da conexão na Yuno. A conexão deve pertencer à conta
                      que faz a chamada, e seu provedor deve corresponder a
                      `provider.id`. Caso contrário, a API retorna 400
                      INVALID_PARAMETERS com a mensagem "Provider X with
                      connection ID Y is invalid."
                  recipient_id:
                    type: string
                    description: O identificador único do destinatário no provedor.
                    example: AAAAA01
                  recipient_type:
                    type: string
                    description: O tipo de destinatário para o provedor.
                    enum:
                      - MEAL
                      - FOOD
                      - MULTI_BENEFITS
                      - FLEET
                    example: MEAL
              documentation:
                type: array
                description: Array de objetos de documentação para este onboarding
                items:
                  type: object
                  required:
                    - file_name
                    - content_type
                    - content_category
                    - content
                  properties:
                    file_name:
                      type: string
                      description: O nome da documentação enviada (MAX 255; MIN 3).
                      example: PDF
                    content_type:
                      type: string
                      enum:
                        - application/pdf
                        - image/jpeg
                        - image/png
                      description: O tipo da documentação enviada pelo lojista.
                      example: application/pdf
                    content_category:
                      type: string
                      enum:
                        - ACCOUNT_REQUIREMENT
                        - BANK_STATEMENT
                        - BUSINESS_ICON
                        - BUSINESS_LOGO
                        - CANCEL_POLICY
                        - CUSTOMER_INTERACTION
                        - DRIVERS_LICENCE
                        - IDENTIFICATION_DOCUMENT
                        - IDENTIFICATION_DOCUMENT_BACK
                        - IDENTIFICATION_DOCUMENT_FRONT
                        - LEGAL_AGREEMENT
                        - OTHERS
                        - PASSPORT
                        - PAYMENT_DETAIL
                        - PROOF_OF_ADDRESS
                        - PROOF_OF_AUTHENTICITY
                        - PROOF_OF_DELIVERY
                        - PROOF_OF_DIRECTOR
                        - PROOF_OF_INDUSTRY
                        - PROOF_OF_NATIONAL_ID_NUMBER
                        - PROOF_OF_OWNERSHIP
                        - PROOF_OF_REGISTRATION
                        - PROOF_OF_RELATIONSHIP
                        - PROOF_OF_SERVICE
                        - PROOF_OF_SOURCE_OF_FUNDS
                        - PROOF_OF_SOURCE_OF_WEALTH
                        - PROOF_OF_TAX
                        - PROVIDER_IDENTITY_DOCUMENT
                        - RECEIPT
                        - REFUND_POLICY
                        - SELFIE
                        - SERVICE_AGREEMENT
                        - SIGNATURE
                        - TERMS_AND_CONDITIONS
                        - VAT_DOCUMENT
                      description: A categoria da documentação enviada pelo lojista.
                    content:
                      type: string
                      description: >-
                        O conteúdo da documentação enviada pelo lojista,
                        codificado em base64. Tamanho máximo: 1MB.
                      example: >-
                        JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg==
              withdrawal_methods:
                type: array
                description: Métodos de saque para este onboarding
                items:
                  type: object
                  properties:
                    bank:
                      type: object
                      description: Informações da conta bancária
                      properties:
                        code:
                          type: string
                          description: Código do banco (MAX 3; MIN 3).
                          example: '246'
                        branch:
                          type: string
                          description: Agência do banco (MAX 3; MIN 3).
                          example: XXXX
                        branch_digit:
                          type: string
                          description: Dígito da agência do banco (MAX 3; MIN 3).
                        account:
                          type: string
                          description: >-
                            Número da conta bancária do beneficiário (MAX 250;
                            MIN 3).
                          example: '1093333333'
                        account_digit:
                          type: string
                          description: >-
                            Dígito da conta bancária do beneficiário (MAX 250;
                            MIN 3).
                        account_type:
                          type: string
                          enum:
                            - CHECKINGS
                            - SAVINGS
                            - VISTA
                            - PIX_EMAIL
                            - PIX_PHONE
                            - PIX_DOCUMENT_ID
                            - PIX_BANK_ACCOUNT
                          description: >-
                            Tipo de conta bancária do beneficiário (MAX 3; MIN
                            1). Pode ser: CHECKINGS, SAVINGS, VISTA, PIX_EMAIL,
                            PIX_PHONE, PIX_DOCUMENT_ID, PIX_BANK_ACCOUNT.
                          example: SAVINGS
                        routing:
                          type: string
                          description: Routing number da conta bancária do beneficiário.
                          example: XXXXYYYYC
                        country:
                          type: string
                          description: O país da conta bancária (ISO 3166-1 MAX 2; MIN 2).
                          example: CO
                        currency:
                          type: string
                          description: A moeda da conta bancária (ISO 4217 MAX 3; MIN 3).
                          example: COP
    RecipientResponse:
      type: object
      properties:
        id:
          type: string
          description: O identificador único do destinatário.
          example: 3aaa4d82-11e8-48ce-8ef5-04eee3a10802
        account_id:
          type: string
          description: O identificador da conta associada a este destinatário.
          example: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
        merchant_recipient_id:
          type: string
          description: Identificador único do destinatário definido pelo lojista.
          example: MERCHANT_182acf1d-faeb-4ff0-94cd-7fab11b282f6
        national_entity:
          type: string
          description: Tipo de entidade nacional do beneficiário.
          example: INDIVIDUAL
        entity_type:
          type: string
          description: Tipo de organização do beneficiário.
          example: PRIVATE
        first_name:
          type: string
          description: Nome do beneficiário.
          example: Juan
        last_name:
          type: string
          description: Sobrenome do beneficiário.
          example: Perez
        legal_name:
          type:
            - string
            - 'null'
          description: Razão social do beneficiário.
          example: null
        email:
          type: string
          description: O e-mail do beneficiário.
          example: juan.perez@example.com
        date_of_birth:
          type: string
          description: Data de nascimento do beneficiário.
          example: '1990-01-15'
        country:
          type: string
          description: O país do beneficiário.
          example: CO
        website:
          type: string
          description: A URL do site do vendedor.
          example: https://juanperez.com
        industry:
          type: string
          description: O setor de atuação do vendedor.
          example: Technology
        merchant_category_code:
          type: string
          description: O código de categoria do lojista (MCC) (MAX 235; MIN 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: >-
            Regras para o cálculo automático do split no nível do destinatário.
            Retornado como um array que contém a regra de split atual, embora as
            requisições enviem `split_configuration` como um objeto. `null`
            quando nenhuma configuração de split está definida.
          items:
            type: object
            required:
              - calculation_type
              - currency
            properties:
              calculation_type:
                type: string
                description: O método usado para calcular o valor do split.
                enum:
                  - PERCENTAGE
                  - FIXED
                  - MIXED
                example: PERCENTAGE
              percentage:
                type: number
                description: >-
                  Porcentagem do valor total do pagamento a ser dividida
                  (0.01-100.00). Obrigatório se calculation_type for PERCENTAGE
                  ou MIXED.
                minimum: 0.01
                maximum: 100
                example: 10.5
              fixed_amount:
                type: number
                description: >-
                  Valor fixo a ser dividido. Obrigatório se calculation_type for
                  FIXED ou MIXED.
                minimum: 0.0001
                example: 5
              currency:
                type: string
                description: >-
                  Código de moeda ISO 4217. Obrigatório para todos os tipos de
                  cálculo.
                example: USD
              rounding_mode:
                type: string
                description: >-
                  A estratégia de arredondamento dos valores calculados.
                  Obrigatório para PERCENTAGE e MIXED.
                enum:
                  - STANDARD
                  - ROUND_UP
                  - ROUND_DOWN
                example: STANDARD
              created_at:
                type: string
                format: date-time
                description: >-
                  Data e hora em que a configuração de split foi definida (ISO
                  8601).
                example: '2026-10-13T19:31:45.154978Z'
        created_at:
          type: string
          format: date-time
          description: Data de criação do destinatário (ISO 8601 MAX 27; MIN 27).
          example: '2025-08-27T15:41:19.497413Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            Data da última atualização do destinatário (ISO 8601 MAX 27; MIN
            27).
          example: '2025-08-27T15:41:19.497425Z'
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          example: INVALID_REQUEST
        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.