openapi: 3.1.0
info:
  title: Yuno Payments API
  version: 1.0.0
  description: |
    Yuno is a payment orchestration platform that connects merchants to multiple
    payment providers through a single API. Process payments, manage customers,
    handle subscriptions, and disburse payouts across Latin America, Asia, and beyond.
  contact:
    name: Yuno Support
    url: https://docs.y.uno
    email: support@y.uno
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - PublicApiKey: []
    PrivateSecretKey: []
tags:
  - name: AI Caller
  - name: Accounts (Banking Connectivity)
  - name: Checkout Builder
  - name: Checkout Sessions
  - name: Communications Campaigns
  - name: Conversion Rate
  - name: Customer Sessions Enrollment
  - name: Customers
  - name: Dry Run
  - name: Entities (Banking Connectivity)
  - name: Entity Onboarding (Banking Connectivity)
  - name: Entity Transfers (Banking Connectivity)
  - name: Fx Rates
  - name: Installments
  - name: Network Tokens
  - name: Organizations
  - name: Payment Links
  - name: Payment Methods Checkout
  - name: Payment Methods Direct Workflow
  - name: Payments
  - name: Payouts
  - name: Pci Proxy
  - name: Plans
  - name: Pre Debit Notifications
  - name: Recipients For Marketplace
  - name: Reporting
  - name: Reports
  - name: Sellers
  - name: Subscriptions
  - name: Three D Secure Setups
  - name: Transfers
  - name: Webhooks
paths:
  /banking/accounts:
    post:
      description: >-
        Creates a bank account for an onboarded entity. An onboarding of type PREVIOUSLY_ONBOARDED cannot create an
        account today: the API answers 500 PROVIDER_ACCOUNT_CREATION_FAILED.
      responses:
        '200':
          description: ''
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The unique identifier of the Banking Connectivity account (UUID, 36 characters).
                    example: aa0e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    description: The `id` of the entity associated with this account.
                    example: 660e8400-e29b-41d4-a716-446655440000
                  onboarding_id:
                    type: string
                    description: The `id` of the onboarding used to create this account.
                    example: 990e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    description: The merchant's Yuno account identifier.
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    description: Provider-side identifiers for the account.
                    properties:
                      account_id:
                        type: string
                        description: The provider's internal account identifier.
                        example: col_bank_account_789
                  account_type:
                    type: string
                    description: The type of bank account.
                    enum:
                      - CHECKING
                      - SAVINGS
                      - INVESTMENT
                    example: CHECKING
                  status:
                    type: string
                    description: The current status of the account.
                    enum:
                      - ACTIVE
                      - PENDING
                      - INACTIVE
                    example: ACTIVE
                  account_number:
                    type: string
                    description: The bank account number.
                    example: '1234567890'
                  routing_number:
                    type:
                      - string
                      - 'null'
                    description: The US routing number. Present for US-based accounts.
                    example: '123456789'
                  iban:
                    type:
                      - string
                      - 'null'
                    description: The International Bank Account Number. Present for UK and EU accounts.
                    example: null
                  currency:
                    type: string
                    description: The account currency ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)).
                    example: USD
                  balance:
                    type: object
                    description: The current balance information for the account.
                    properties:
                      available:
                        type: number
                        description: The available balance that can be used for transfers.
                        example: 0
                      current:
                        type: number
                        description: The current total balance including pending transactions.
                        example: 0
                      pending:
                        type: number
                        description: The amount currently in pending transactions.
                        example: 0
                  account_details:
                    type: object
                    description: Additional account details and region-specific identifiers.
                    properties:
                      account_name:
                        type: string
                        description: The display name for the account.
                        example: John Doe - Checking
                      sort_code:
                        type:
                          - string
                          - 'null'
                        description: The UK sort code. Present for UK-based accounts.
                        example: null
                      bsb:
                        type:
                          - string
                          - 'null'
                        description: The Australian BSB number. Present for Australia-based accounts.
                        example: null
                      swift:
                        type:
                          - string
                          - 'null'
                        description: The SWIFT/BIC code for international transfers.
                        example: null
                  payment_rails:
                    type: object
                    description: The payment rails supported by this account.
                    properties:
                      incoming:
                        type: array
                        description: Payment rails available for receiving funds.
                        items:
                          type: string
                        example:
                          - ACH_STANDARD
                          - WIRE
                      outgoing:
                        type: array
                        description: Payment rails available for sending funds.
                        items:
                          type: string
                        example:
                          - ACH_STANDARD
                          - WIRE
                  supports_book_transfers:
                    type: boolean
                    description: Whether the account supports internal (book) transfers between accounts on the same provider.
                    example: true
                  created_at:
                    type: string
                    description: The timestamp when the account was created (ISO 8601).
                    example: '2026-02-01T10:10:00Z'
                  updated_at:
                    type: string
                    description: The timestamp when the account was last updated (ISO 8601).
                    example: '2026-02-01T10:10:00Z'
              examples:
                Created (Account):
                  summary: Created (Account)
                  value:
                    id: aa0e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    onboarding_id: 990e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      account_id: col_bank_account_789
                    account_type: CHECKING
                    status: ACTIVE
                    account_number: '1234567890'
                    routing_number: '123456789'
                    iban: null
                    currency: USD
                    balance:
                      available: 0
                      current: 0
                      pending: 0
                    account_details:
                      account_name: John Doe - Checking
                      sort_code: null
                      bsb: null
                      swift: null
                    payment_rails:
                      incoming:
                        - ACH_STANDARD
                        - WIRE
                      outgoing:
                        - ACH_STANDARD
                        - WIRE
                    supports_book_transfers: true
                    created_at: '2026-02-01T10:10:00Z'
                    updated_at: '2026-02-01T10:10:00Z'
          description: Created
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: Onboarding status must be SUCCEEDED to create an account
                  http_code:
                    type: integer
                    example: 400
                    default: 0
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - Onboarding status must be SUCCEEDED to create an account
                    http_code: 400
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ONBOARDING_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Onboarding not found
                  http_code:
                    type: integer
                    example: 404
                    default: 0
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ONBOARDING_NOT_FOUND
                    messages:
                      - Onboarding not found
                    http_code: 404
          description: Not Found
      parameters:
        - in: header
          name: x-idempotency-key
          schema:
            type: string
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts. See [authentication](/reference/authentication#idempotency) for
            details (UUID).
          required: true
      operationId: post_v1-banking-connectivity-accounts
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - entity_id
                - onboarding_id
                - connection_id
                - account_type
                - country
                - currency
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the merchant's Yuno account. Found on the [Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 characters).
                  example: 550e8400-e29b-41d4-a716-446655440000
                entity_id:
                  type: string
                  description: >-
                    The `id` of the entity that owns the account, obtained from [Create
                    Entity](/reference/create-entity) (UUID, 36 characters).
                  example: 660e8400-e29b-41d4-a716-446655440000
                onboarding_id:
                  type: string
                  description: >-
                    The `id` of a successful onboarding obtained from [Create Entity
                    Onboarding](/reference/create-entity-onboarding) (UUID, 36 characters). The onboarding must have
                    `status: SUCCEEDED`.
                  example: 990e8400-e29b-41d4-a716-446655440000
                connection_id:
                  type: string
                  description: The `id` of the banking provider connection to open the account on (UUID, 36 characters).
                  example: bb0e8400-e29b-41d4-a716-446655440000
                account_type:
                  type: string
                  description: The type of bank account to create.
                  enum:
                    - CHECKING
                    - SAVINGS
                    - INVESTMENT
                  example: CHECKING
                currency:
                  type: string
                  description: >-
                    The currency for the account ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217), 3 characters).
                    Supported values depend on the provider region: `USD` (US), `GBP` (UK), `AUD` (Australia), `EUR`
                    (EU).
                  example: USD
                country:
                  type: string
                  description: >-
                    The country of the account ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2),
                    2 characters).
                  example: US
            examples:
              Create Account:
                summary: Create Account
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  entity_id: 660e8400-e29b-41d4-a716-446655440000
                  onboarding_id: 990e8400-e29b-41d4-a716-446655440000
                  connection_id: bb0e8400-e29b-41d4-a716-446655440000
                  account_type: CHECKING
                  country: US
                  currency: USD
      summary: Create Account (Banking Connectivity)
      tags:
        - Accounts (Banking Connectivity)
  /banking/accounts/{account_id}:
    get:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    id: aa0e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    onboarding_id: 990e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      account_id: col_bank_account_789
                    account_type: CHECKING
                    status: ACTIVE
                    account_number: '1234567890'
                    routing_number: '123456789'
                    iban: null
                    currency: USD
                    balance:
                      available: 0
                      current: 0
                      pending: 0
                    account_details:
                      account_name: John Doe - Checking
                      sort_code: null
                      bsb: null
                      swift: null
                    payment_rails:
                      incoming:
                        - ACH
                        - WIRE
                      outgoing:
                        - ACH
                        - WIRE
                    supports_book_transfers: true
                    created_at: '2026-02-01T10:10:00Z'
                    updated_at: '2026-02-01T10:10:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: aa0e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  onboarding_id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      account_id:
                        type: string
                        example: col_bank_account_789
                  account_type:
                    type: string
                    example: CHECKING
                  status:
                    type: string
                    example: ACTIVE
                  account_number:
                    type: string
                    example: '1234567890'
                  routing_number:
                    type: string
                    example: '123456789'
                  iban: {}
                  currency:
                    type: string
                    example: USD
                  balance:
                    type: object
                    properties:
                      available:
                        type: integer
                        example: 0
                        default: 0
                      current:
                        type: integer
                        example: 0
                        default: 0
                      pending:
                        type: integer
                        example: 0
                        default: 0
                  account_details:
                    type: object
                    properties:
                      account_name:
                        type: string
                        example: John Doe - Checking
                      sort_code: {}
                      bsb: {}
                      swift: {}
                  payment_rails:
                    type: object
                    properties:
                      incoming:
                        type: array
                        items:
                          type: string
                          example: ACH
                      outgoing:
                        type: array
                        items:
                          type: string
                          example: ACH
                  supports_book_transfers:
                    type: boolean
                    example: true
                    default: true
                  created_at:
                    type: string
                    example: '2026-02-01T10:10:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T10:10:00Z'
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ACCOUNT_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account not found.
              examples:
                Account Not Found:
                  summary: Account Not Found
                  value:
                    code: ACCOUNT_NOT_FOUND
                    messages:
                      - Account not found.
          description: Bad Request. No account exists with this `account_id`.
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                      example: Missing required authentication headers
              examples:
                Unauthorized:
                  summary: Unauthorized
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Missing required authentication headers
          description: Unauthorized
      parameters:
        - in: path
          name: account_id
          schema:
            type: string
          required: true
          description: >-
            The unique identifier of the account. Found on the [Yuno dashboard](https://dashboard.y.uno/) (UUID, 36
            chars).
      operationId: get_v1-banking-connectivity-accounts-account-id
      summary: Get Account Details (Banking Connectivity)
      tags:
        - Accounts (Banking Connectivity)
    patch:
      description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The unique identifier of the Banking Connectivity account (UUID, 36 characters).
                    example: aa0e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    description: The `id` of the entity associated with this account.
                    example: 660e8400-e29b-41d4-a716-446655440000
                  onboarding_id:
                    type: string
                    description: The `id` of the onboarding used to create this account.
                    example: 990e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    description: The merchant's Yuno account identifier.
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      account_id:
                        type: string
                        example: col_bank_account_789
                  account_type:
                    type: string
                    enum:
                      - CHECKING
                      - SAVINGS
                      - INVESTMENT
                    example: CHECKING
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - PENDING
                      - INACTIVE
                    example: ACTIVE
                  account_number:
                    type: string
                    example: '1234567890'
                  routing_number:
                    type:
                      - string
                      - 'null'
                    example: '123456789'
                  iban:
                    type:
                      - string
                      - 'null'
                    example: null
                  currency:
                    type: string
                    example: USD
                  balance:
                    type: object
                    properties:
                      available:
                        type: number
                        example: 5000
                      current:
                        type: number
                        example: 5000
                      pending:
                        type: number
                        example: 0
                  account_details:
                    type: object
                    properties:
                      account_name:
                        type: string
                        example: John Doe - Primary Checking
                      sort_code:
                        type:
                          - string
                          - 'null'
                        example: null
                      bsb:
                        type:
                          - string
                          - 'null'
                        example: null
                      swift:
                        type:
                          - string
                          - 'null'
                        example: null
                  payment_rails:
                    type: object
                    properties:
                      incoming:
                        type: array
                        items:
                          type: string
                        example:
                          - ACH
                          - WIRE
                      outgoing:
                        type: array
                        items:
                          type: string
                        example:
                          - ACH
                          - WIRE
                  supports_book_transfers:
                    type: boolean
                    example: true
                  created_at:
                    type: string
                    example: '2026-02-01T10:10:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T12:00:00Z'
              examples:
                OK (Updated Account):
                  summary: OK (Updated Account)
                  value:
                    id: aa0e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    onboarding_id: 990e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      account_id: col_bank_account_789
                    account_type: CHECKING
                    status: ACTIVE
                    account_number: '1234567890'
                    routing_number: '123456789'
                    iban: null
                    currency: USD
                    balance:
                      available: 5000
                      current: 5000
                      pending: 0
                    account_details:
                      account_name: John Doe - Primary Checking
                      sort_code: null
                      bsb: null
                      swift: null
                    payment_rails:
                      incoming:
                        - ACH
                        - WIRE
                      outgoing:
                        - ACH
                        - WIRE
                    supports_book_transfers: true
                    created_at: '2026-02-01T10:10:00Z'
                    updated_at: '2026-02-01T12:00:00Z'
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: Request validation failed
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - Request validation failed
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ACCOUNT_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ACCOUNT_NOT_FOUND
                    messages:
                      - Account not found
          description: Not Found
      parameters:
        - in: path
          name: account_id
          schema:
            type: string
          required: true
          description: >-
            The unique identifier of the account. Found on the [Yuno dashboard](https://dashboard.y.uno/) (UUID, 36
            chars).
      operationId: patch_v1-banking-connectivity-accounts-account-id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                account_type:
                  type: string
                  description: >-
                    The account type. It cannot be changed: sending a value different from the stored type returns 400
                    `ACCOUNT_TYPE_CHANGE_NOT_ALLOWED`.
                  example: CHECKING
                  enum:
                    - CHECKING
                    - SAVINGS
                    - INVESTMENT
                status:
                  type: string
                  description: >-
                    The account status. Allowed values are `ACTIVE`, `PENDING` and `FAILED`. Setting `INACTIVE` returns
                    400 `ACCOUNT_STATUS_CHANGE_NOT_ALLOWED`; use [Close Account](/reference/close-account-banking)
                    instead.
                  example: ACTIVE
                  enum:
                    - ACTIVE
                    - PENDING
                    - FAILED
                account_number:
                  type: string
                  description: The account number.
                  example: '1234567890'
                routing_number:
                  type: string
                  description: The routing number (US).
                  example: '123456789'
                iban:
                  type: string
                  description: The IBAN (EU).
                  example: DE89370400440532013000
                balance:
                  type: object
                  description: The account balance.
                  properties:
                    available:
                      type: number
                      example: 1000
                    current:
                      type: number
                      example: 1000
                    pending:
                      type: number
                      example: 0
                    currency:
                      type: string
                      description: Currency of the balance (ISO 4217).
                      example: USD
                payment_rails:
                  type: object
                  description: The payment rails the account supports.
                  properties:
                    incoming:
                      type: array
                      items:
                        type: string
                      example:
                        - ACH
                        - WIRE
                    outgoing:
                      type: array
                      items:
                        type: string
                      example:
                        - ACH
                        - WIRE
                provider:
                  type: object
                  description: Provider-side details of the account.
                  properties:
                    name:
                      type: string
                      description: Provider name.
                    account_id:
                      type: string
                      description: The account identifier at the provider.
                      example: col_bank_account_789
                    status:
                      type: string
                      description: The account status at the provider.
                    metadata:
                      type: object
                      description: Free-form provider metadata.
              description: >-
                All fields are optional. Send only the fields you want to change. The account is identified by the
                `account_id` path parameter, so the body does not repeat it.
            examples:
              Update Account:
                summary: Update Account
                value:
                  status: ACTIVE
                  routing_number: '123456789'
      summary: Update Account (Banking Connectivity)
      tags:
        - Accounts (Banking Connectivity)
    delete:
      description: ''
      responses:
        '204':
          description: No Content. The account is closed and the response has no body.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account must have a zero balance before it can be closed
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - Account must have a zero balance before it can be closed
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ACCOUNT_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ACCOUNT_NOT_FOUND
                    messages:
                      - Account not found
          description: Not Found
      parameters:
        - in: path
          name: account_id
          schema:
            type: string
          required: true
          description: >-
            The unique identifier of the account. Found on the [Yuno dashboard](https://dashboard.y.uno/) (UUID, 36
            chars).
      operationId: delete_v1-banking-connectivity-accounts-account-id
      summary: Close Account (Banking Connectivity)
      tags:
        - Accounts (Banking Connectivity)
  /banking/entities:
    post:
      description: ''
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 770e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  merchant_entity_id:
                    type: string
                    example: merchant_company_789
                  entity_type:
                    type: string
                    example: BUSINESS
                  phone:
                    type: object
                    properties:
                      country_code:
                        type: string
                        example: '+1'
                      number:
                        type: string
                        example: '4155551234'
                  address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 456 Market St
                      address_line_2: {}
                      building_number:
                        type: string
                        example: '456'
                      city:
                        type: string
                        example: San Francisco
                      state:
                        type: string
                        example: CA
                      zip_code:
                        type: string
                        example: '94102'
                      country:
                        type: string
                        example: US
                  entity_detail:
                    type: object
                    properties:
                      individual: {}
                      business:
                        type: object
                        properties:
                          business_name:
                            type: string
                            example: Acme Corporation Inc
                          country:
                            type: string
                            example: US
                          tax_information:
                            type: array
                            items:
                              type: object
                              properties:
                                country:
                                  type: string
                                  example: US
                                tax_id_last4:
                                  type: string
                                  example: '*******6789'
                                tax_id_type:
                                  type: string
                                  example: EIN
                                is_primary:
                                  type: boolean
                                  example: true
                                  default: true
                          business_type:
                            type: string
                            example: CORPORATION
                          beneficial_owners:
                            type: array
                            items:
                              type: object
                              properties:
                                first_name:
                                  type: string
                                  example: Jane
                                last_name:
                                  type: string
                                  example: Smith
                                email:
                                  type: string
                                  example: jane@acme.com
                                date_of_birth:
                                  type: string
                                  example: '1985-03-20'
                                gender:
                                  type: string
                                  example: FEMALE
                                country_of_residence:
                                  type: string
                                  example: US
                                tax_information:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      country:
                                        type: string
                                        example: US
                                      tax_id_last4:
                                        type: string
                                        example: '*******4321'
                                      tax_id_type:
                                        type: string
                                        example: SSN
                                      is_primary:
                                        type: boolean
                                        example: true
                                        default: true
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number_last4:
                                      type: string
                                      example: '*******4321'
                                    issuing_country:
                                      type: string
                                      example: US
                                    issuing_date:
                                      type: string
                                      example: '2005-03-20'
                                    expiry_date: {}
                                ownership_percentage:
                                  type: integer
                                  example: 100
                                  default: 0
                                title:
                                  type: string
                                  example: CEO
                                address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 789 Oak St
                                    address_line_2: {}
                                    building_number:
                                      type: string
                                      example: '789'
                                    city:
                                      type: string
                                      example: San Francisco
                                    state:
                                      type: string
                                      example: CA
                                    zip_code:
                                      type: string
                                      example: '94103'
                                    country:
                                      type: string
                                      example: US
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
              examples:
                Created (Individual):
                  summary: Created (Individual)
                  value:
                    id: 660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_entity_id: merchant_user_12345
                    entity_type: INDIVIDUAL
                    phone:
                      country_code: '+1'
                      number: '2025551234'
                    address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 4B
                      building_number: '123'
                      city: San Francisco
                      state: CA
                      zip_code: '94102'
                      country: US
                    entity_detail:
                      individual:
                        first_name: John
                        last_name: Doe
                        email: john@example.com
                        date_of_birth: '1990-01-15'
                        gender: MALE
                        country_of_residence: US
                        tax_information:
                          - country: US
                            tax_id_last4: '*******6789'
                            tax_id_type: SSN
                            is_primary: true
                        document:
                          document_type: SSN
                          document_number_last4: '*******6789'
                          issuing_country: US
                          issuing_date: '2010-01-15'
                          expiry_date: '2030-01-15'
                      business: null
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-01T10:00:00Z'
                Created (Entity):
                  summary: Created (Entity)
                  value:
                    id: 770e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_entity_id: merchant_company_789
                    entity_type: BUSINESS
                    phone:
                      country_code: '+1'
                      number: '4155551234'
                    address:
                      address_line_1: 456 Market St
                      address_line_2: null
                      building_number: '456'
                      city: San Francisco
                      state: CA
                      zip_code: '94102'
                      country: US
                    entity_detail:
                      individual: null
                      business:
                        business_name: Acme Corporation Inc
                        country: US
                        tax_information:
                          - country: US
                            tax_id_last4: '*******6789'
                            tax_id_type: EIN
                            is_primary: true
                        business_type: CORPORATION
                        beneficial_owners:
                          - first_name: Jane
                            last_name: Smith
                            email: jane@acme.com
                            date_of_birth: '1985-03-20'
                            gender: FEMALE
                            country_of_residence: US
                            tax_information:
                              - country: US
                                tax_id_last4: '*******4321'
                                tax_id_type: SSN
                                is_primary: true
                            document:
                              document_type: SSN
                              document_number_last4: '*******4321'
                              issuing_country: US
                              issuing_date: '2005-03-20'
                              expiry_date: null
                            ownership_percentage: 100
                            title: CEO
                            address:
                              address_line_1: 789 Oak St
                              address_line_2: null
                              building_number: '789'
                              city: San Francisco
                              state: CA
                              zip_code: '94103'
                              country: US
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-01T10:00:00Z'
          description: Created (Individual)
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
                      example: The field 'entity_type' is required.
                  http_code:
                    type: integer
                    example: 400
                    default: 0
              examples:
                Missing entity_type:
                  summary: Missing entity_type
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'entity_type' is required.
                    http_code: 400
                Invalid gender:
                  summary: Invalid gender
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - 'Invalid value ''M'' on json field: ''entity_detail.individual.gender'''
                    http_code: 400
                Entity detail mismatch:
                  summary: Entity detail mismatch
                  value:
                    code: ENTITY_DETAIL_MISMATCH
                    messages:
                      - >-
                        entity_detail must match entity_type: provide 'individual' for INDIVIDUAL or 'business' for
                        BUSINESS.
                    http_code: 400
          description: Bad Request
        '409':
          content:
            application/json:
              schema:
                type: object
                properties: {}
              examples:
                Duplicate Entity:
                  summary: Duplicate Entity
                  value:
                    code: DUPLICATE_ENTITY
                    messages:
                      - Entity with merchant_entity_id 'merchant_user_12345' already exists
                    http_code: 409
          description: Conflict
      parameters:
        - in: header
          name: x-idempotency-key
          schema:
            type: string
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts. See [authentication](/reference/authentication#idempotency) for
            details (UUID).
          required: true
      operationId: post_v1-banking-connectivity-entities
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - merchant_entity_id
                - entity_type
                - phone
                - address
                - entity_detail
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the merchant's Yuno account. Found on the [Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 characters).
                  example: 550e8400-e29b-41d4-a716-446655440000
                merchant_entity_id:
                  type: string
                  description: The merchant's own identifier for this entity, used for reconciliation.
                  example: merchant_user_12345
                entity_type:
                  type: string
                  description: The type of entity being created.
                  enum:
                    - INDIVIDUAL
                    - BUSINESS
                  example: INDIVIDUAL
                phone:
                  type: object
                  description: The entity's phone number.
                  required:
                    - country_code
                    - number
                  properties:
                    country_code:
                      type: string
                      description: The phone country code (e.g., `+1`).
                      example: '+1'
                    number:
                      type: string
                      description: The phone number without the country code.
                      example: '2025551234'
                address:
                  type: object
                  description: The entity's primary address.
                  required:
                    - address_line_1
                    - city
                    - state
                    - zip_code
                    - country
                  properties:
                    address_line_1:
                      type: string
                      description: The primary street address.
                      example: 123 Main St
                    address_line_2:
                      type:
                        - string
                        - 'null'
                      description: The secondary address line (apartment, suite, etc.).
                      example: Apt 4B
                    building_number:
                      type:
                        - string
                        - 'null'
                      description: The primary building number.
                      example: '123'
                    city:
                      type: string
                      description: The city name.
                      example: San Francisco
                    state:
                      type: string
                      description: The state or province.
                      example: CA
                    zip_code:
                      type: string
                      description: The postal or ZIP code.
                      example: '94102'
                    country:
                      type: string
                      description: The country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                      example: US
                entity_detail:
                  type: object
                  description: >-
                    The detailed information for the entity. Provide either `individual` or `business` based on the
                    `entity_type` value.
                  properties:
                    individual:
                      type:
                        - object
                        - 'null'
                      description: Individual person details. Required when `entity_type` is `INDIVIDUAL`.
                      properties:
                        first_name:
                          type: string
                          description: The individual's first name.
                          example: John
                        last_name:
                          type: string
                          description: The individual's last name.
                          example: Doe
                        email:
                          type: string
                          description: The individual's email address.
                          example: john@example.com
                        date_of_birth:
                          type: string
                          description: The date of birth (YYYY-MM-DD).
                          example: '1990-01-15'
                        gender:
                          type: string
                          description: The individual's gender.
                          enum:
                            - MALE
                            - FEMALE
                            - OTHER
                          example: MALE
                        country_of_residence:
                          type: string
                          description: >-
                            The country of residence ([ISO 3166-1
                            alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                          example: US
                        tax_information:
                          type: array
                          description: Tax identification records for the individual.
                          items:
                            type: object
                            required:
                              - country
                              - tax_id
                              - tax_id_type
                              - is_primary
                            properties:
                              country:
                                type: string
                                description: The tax jurisdiction country code.
                                example: US
                              tax_id:
                                type: string
                                description: The tax identification number.
                                example: 123-45-6789
                              tax_id_type:
                                type: string
                                description: The type of tax identification.
                                enum:
                                  - SSN
                                  - EIN
                                  - ITIN
                                  - VAT
                                  - ABN
                                  - NIF
                                  - TIN
                                  - OTHER
                                example: SSN
                              is_primary:
                                type: boolean
                                description: Whether this is the primary tax residency.
                                example: true
                        document:
                          type: object
                          description: The primary identification document.
                          required:
                            - document_type
                            - document_number
                            - issuing_country
                          properties:
                            document_type:
                              type: string
                              description: The type of identity document.
                              example: SSN
                            document_number:
                              type: string
                              description: The document number.
                              example: 123-45-6789
                            issuing_country:
                              type: string
                              description: >-
                                The country that issued the document ([ISO 3166-1
                                alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                              example: US
                            issuing_date:
                              type:
                                - string
                                - 'null'
                              description: The date the document was issued (YYYY-MM-DD).
                              example: '2010-01-15'
                            expiry_date:
                              type:
                                - string
                                - 'null'
                              description: The document expiration date (YYYY-MM-DD).
                              example: '2030-01-15'
                    business:
                      type:
                        - object
                        - 'null'
                      description: Business or organization details. Required when `entity_type` is `BUSINESS`.
                      properties:
                        business_name:
                          type: string
                          description: The business or organization name.
                          example: Acme Corporation Inc
                        country:
                          type: string
                          description: >-
                            The country of incorporation ([ISO 3166-1
                            alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                          example: US
                        tax_information:
                          type: array
                          description: Business tax identification records.
                          items:
                            type: object
                            required:
                              - country
                              - tax_id
                              - tax_id_type
                              - is_primary
                            properties:
                              country:
                                type: string
                                description: The tax jurisdiction country code.
                                example: US
                              tax_id:
                                type: string
                                description: The tax identification number.
                                example: 12-3456789
                              tax_id_type:
                                type: string
                                description: The type of tax identification.
                                enum:
                                  - SSN
                                  - EIN
                                  - ITIN
                                  - VAT
                                  - ABN
                                  - NIF
                                  - TIN
                                  - OTHER
                                example: EIN
                              is_primary:
                                type: boolean
                                description: Whether this is the primary tax residency.
                                example: true
                        business_type:
                          type: string
                          description: The type of business entity.
                          enum:
                            - CORPORATION
                            - PARTNERSHIP
                            - SOLE_PROPRIETOR
                            - LLC
                            - NONPROFIT
                          example: CORPORATION
                        beneficial_owners:
                          type: array
                          description: The beneficial owners of the business entity.
                          items:
                            type: object
                            required:
                              - first_name
                              - last_name
                              - email
                              - date_of_birth
                              - country_of_residence
                              - ownership_percentage
                            properties:
                              first_name:
                                type: string
                                description: The owner's first name.
                                example: Jane
                              last_name:
                                type: string
                                description: The owner's last name.
                                example: Smith
                              email:
                                type: string
                                description: The owner's email address.
                                example: jane@acme.com
                              date_of_birth:
                                type: string
                                description: The owner's date of birth (YYYY-MM-DD).
                                example: '1985-03-20'
                              gender:
                                type: string
                                description: The owner's gender.
                                enum:
                                  - MALE
                                  - FEMALE
                                  - OTHER
                                example: FEMALE
                              country_of_residence:
                                type: string
                                description: >-
                                  The owner's country of residence ([ISO 3166-1
                                  alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                                example: US
                              tax_information:
                                type: array
                                description: Tax identification records for the owner.
                                items:
                                  type: object
                                  properties:
                                    country:
                                      type: string
                                      description: The tax jurisdiction country code.
                                      example: US
                                    tax_id:
                                      type: string
                                      description: The tax identification number.
                                      example: 987-65-4321
                                    tax_id_type:
                                      type: string
                                      description: The type of tax identification.
                                      enum:
                                        - SSN
                                        - EIN
                                        - ITIN
                                        - VAT
                                        - ABN
                                        - NIF
                                        - TIN
                                        - OTHER
                                      example: SSN
                                    is_primary:
                                      type: boolean
                                      description: Whether this is the primary tax residency.
                                      example: true
                              document:
                                type: object
                                description: The owner's primary identification document.
                                properties:
                                  document_type:
                                    type: string
                                    description: The type of identity document.
                                    example: SSN
                                  document_number:
                                    type: string
                                    description: The document number.
                                    example: 987-65-4321
                                  issuing_country:
                                    type: string
                                    description: The country that issued the document.
                                    example: US
                                  issuing_date:
                                    type:
                                      - string
                                      - 'null'
                                    description: The date the document was issued (YYYY-MM-DD).
                                    example: '2005-03-20'
                                  expiry_date:
                                    type:
                                      - string
                                      - 'null'
                                    description: The document expiration date (YYYY-MM-DD).
                                    example: null
                              ownership_percentage:
                                type: number
                                description: The percentage of ownership in the business (0-100).
                                example: 100
                              title:
                                type: string
                                description: The owner's title or role in the organization.
                                example: CEO
                              address:
                                type: object
                                description: The owner's residential address.
                                properties:
                                  address_line_1:
                                    type: string
                                    description: The primary street address.
                                    example: 789 Oak St
                                  address_line_2:
                                    type:
                                      - string
                                      - 'null'
                                    description: The secondary address line.
                                    example: null
                                  building_number:
                                    type:
                                      - string
                                      - 'null'
                                    description: The primary building number.
                                    example: '789'
                                  city:
                                    type: string
                                    description: The city name.
                                    example: San Francisco
                                  state:
                                    type: string
                                    description: The state or province.
                                    example: CA
                                  zip_code:
                                    type: string
                                    description: The postal or ZIP code.
                                    example: '94103'
                                  country:
                                    type: string
                                    description: >-
                                      The country code ([ISO 3166-1
                                      alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                                    example: US
            examples:
              Create Individual:
                summary: Create Individual
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  merchant_entity_id: merchant_user_12345
                  entity_type: INDIVIDUAL
                  phone:
                    country_code: '+1'
                    number: '2025551234'
                  address:
                    address_line_1: 123 Main St
                    address_line_2: Apt 4B
                    building_number: '123'
                    city: San Francisco
                    state: CA
                    zip_code: '94102'
                    country: US
                  entity_detail:
                    individual:
                      first_name: John
                      last_name: Doe
                      email: john@example.com
                      date_of_birth: '1990-01-15'
                      gender: MALE
                      country_of_residence: US
                      tax_information:
                        - country: US
                          tax_id: 123-45-6789
                          tax_id_type: SSN
                          is_primary: true
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                        issuing_country: US
                        issuing_date: '2010-01-15'
                        expiry_date: '2030-01-15'
              Create Entity:
                summary: Create Entity
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  merchant_entity_id: merchant_company_789
                  entity_type: BUSINESS
                  phone:
                    country_code: '+1'
                    number: '4155551234'
                  address:
                    address_line_1: 456 Market St
                    address_line_2: null
                    building_number: '456'
                    city: San Francisco
                    state: CA
                    zip_code: '94102'
                    country: US
                  entity_detail:
                    business:
                      business_name: Acme Corporation Inc
                      country: US
                      tax_information:
                        - country: US
                          tax_id: 12-3456789
                          tax_id_type: EIN
                          is_primary: true
                      business_type: CORPORATION
                      beneficial_owners:
                        - first_name: Jane
                          last_name: Smith
                          email: jane@acme.com
                          date_of_birth: '1985-03-20'
                          gender: FEMALE
                          country_of_residence: US
                          tax_information:
                            - country: US
                              tax_id: 987-65-4321
                              tax_id_type: SSN
                              is_primary: true
                          document:
                            document_type: SSN
                            document_number: 987-65-4321
                            issuing_country: US
                            issuing_date: '2005-03-20'
                            expiry_date: null
                          ownership_percentage: 100
                          title: CEO
                          address:
                            address_line_1: 789 Oak St
                            address_line_2: null
                            building_number: '789'
                            city: San Francisco
                            state: CA
                            zip_code: '94103'
                            country: US
      summary: Create Entity (Banking Connectivity)
      tags:
        - Entities (Banking Connectivity)
  /banking/entities/{entity_id}:
    get:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_entity_id: merchant_user_12345
                    phone:
                      country_code: '+1'
                      number: '2025551234'
                    address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 4B
                      building_number: '123'
                      city: San Francisco
                      state: CA
                      zip_code: '94102'
                      country: US
                    entity_detail:
                      individual:
                        first_name: John
                        last_name: Doe
                        email: john@example.com
                        date_of_birth: '1990-01-15'
                        gender: M
                        country_of_residence: US
                        tax_information:
                          - country: US
                            tax_id_last4: '*******6789'
                            tax_id_type: SSN
                            is_primary: true
                        document:
                          document_type: SSN
                          document_number_last4: '*******6789'
                          issuing_country: US
                          issuing_date: '2010-01-15'
                          expiry_date: '2030-01-15'
                      entity: null
                    id: d9266469-850a-4ccf-868b-af832c2f081d
                    entity_type: INDIVIDUAL
                    created_at: '2026-10-23T08:50:39.887085Z'
                    updated_at: '2026-10-23T08:50:39.88711Z'
              schema:
                type: object
                properties:
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  merchant_entity_id:
                    type: string
                    example: merchant_user_12345
                  phone:
                    type: object
                    properties:
                      country_code:
                        type: string
                        example: '+1'
                      number:
                        type: string
                        example: '2025551234'
                  address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 123 Main St
                      address_line_2:
                        type: string
                        example: Apt 4B
                      building_number:
                        type: string
                        example: '123'
                      city:
                        type: string
                        example: San Francisco
                      state:
                        type: string
                        example: CA
                      zip_code:
                        type: string
                        example: '94102'
                      country:
                        type: string
                        example: US
                  entity_detail:
                    type: object
                    properties:
                      individual:
                        type: object
                        properties:
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          email:
                            type: string
                            example: john@example.com
                          date_of_birth:
                            type: string
                            example: '1990-01-15'
                          gender:
                            type: string
                            example: M
                          country_of_residence:
                            type: string
                            example: US
                          tax_information:
                            type: array
                            items:
                              type: object
                              properties:
                                country:
                                  type: string
                                  example: US
                                tax_id_last4:
                                  type: string
                                  example: '*******6789'
                                tax_id_type:
                                  type: string
                                  example: SSN
                                is_primary:
                                  type: boolean
                                  example: true
                                  default: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number_last4:
                                type: string
                                example: '*******6789'
                              issuing_country:
                                type: string
                                example: US
                              issuing_date:
                                type: string
                                example: '2010-01-15'
                              expiry_date:
                                type: string
                                example: '2030-01-15'
                      entity: {}
                  id:
                    type: string
                    example: d9266469-850a-4ccf-868b-af832c2f081d
                    description: Id.
                  entity_type:
                    type: string
                    example: INDIVIDUAL
                    description: Entity type.
                  created_at:
                    type: string
                    example: '2026-10-23T08:50:39.887085Z'
                    description: Created at.
                  updated_at:
                    type: string
                    example: '2026-10-23T08:50:39.88711Z'
                    description: Updated at.
        '400':
          content:
            application/json:
              schema:
                type: object
                properties: {}
              examples:
                Entity Not Found:
                  summary: Entity Not Found
                  value:
                    code: ENTITY_NOT_FOUND
                    messages:
                      - Entity not found.
          description: Bad request. The entity does not exist for this account.
        '401':
          content:
            application/json:
              schema:
                type: object
                properties: {}
              examples:
                Unauthorized:
                  summary: Unauthorized
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Missing required authentication headers
                    http_code: 401
          description: Unauthorized
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: The `id` of the entity obtained from [Create Entity](/reference/create-entity)
      operationId: get_v1-banking-connectivity-entities-entity-id
      summary: Get Entity Details (Banking Connectivity)
      tags:
        - Entities (Banking Connectivity)
    patch:
      description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The unique identifier of the entity (prefixed `ent_`).
                    example: ent_660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    description: The merchant's Yuno account identifier.
                    example: 550e8400-e29b-41d4-a716-446655440000
                  merchant_entity_id:
                    type: string
                    description: The merchant's own identifier for this entity.
                    example: merchant_user_12345
                  phone:
                    type: object
                    properties:
                      country_code:
                        type: string
                        example: '+1'
                      number:
                        type: string
                        example: '2025559999'
                  address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 456 Oak Ave
                      address_line_2:
                        type:
                          - string
                          - 'null'
                        example: Suite 100
                      building_number:
                        type:
                          - string
                          - 'null'
                        example: '456'
                      city:
                        type: string
                        example: San Francisco
                      state:
                        type: string
                        example: CA
                      zip_code:
                        type: string
                        example: '94105'
                      country:
                        type: string
                        example: US
                  entity_detail:
                    type: object
                    properties:
                      individual:
                        type:
                          - object
                          - 'null'
                        properties:
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          email:
                            type: string
                            example: john.new@example.com
                          date_of_birth:
                            type: string
                            example: '1990-01-15'
                          gender:
                            type: string
                            example: M
                          country_of_residence:
                            type: string
                            example: US
                          tax_information:
                            type: array
                            items:
                              type: object
                              properties:
                                country:
                                  type: string
                                  example: US
                                tax_id_last4:
                                  type: string
                                  example: '6789'
                                tax_id_type:
                                  type: string
                                  example: SSN
                                is_primary:
                                  type: boolean
                                  example: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number_last4:
                                type: string
                                example: '6789'
                              issuing_country:
                                type: string
                                example: US
                              issuing_date:
                                type: string
                                example: '2010-01-15'
                              expiry_date:
                                type:
                                  - string
                                  - 'null'
                                example: '2030-01-15'
                      entity:
                        type:
                          - object
                          - 'null'
                  created_at:
                    type: string
                    description: The timestamp when the entity was created (ISO 8601).
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    description: The timestamp when the entity was last updated (ISO 8601).
                    example: '2026-02-01T12:00:00Z'
                  entity_type:
                    type: string
                    example: INDIVIDUAL
                    description: Entity type.
              examples:
                OK (Updated Individual):
                  summary: OK (Updated Individual)
                  value:
                    id: ent_660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_entity_id: merchant_user_12345
                    phone:
                      country_code: '+1'
                      number: '2025559999'
                    address:
                      address_line_1: 456 Oak Ave
                      address_line_2: Suite 100
                      building_number: '456'
                      city: San Francisco
                      state: CA
                      zip_code: '94105'
                      country: US
                    entity_detail:
                      individual:
                        first_name: John
                        last_name: Doe
                        email: john.new@example.com
                        date_of_birth: '1990-01-15'
                        gender: M
                        country_of_residence: US
                        tax_information:
                          - country: US
                            tax_id_last4: '*******6789'
                            tax_id_type: SSN
                            is_primary: true
                        document:
                          document_type: SSN
                          document_number_last4: '*******6789'
                          issuing_country: US
                          issuing_date: '2010-01-15'
                          expiry_date: '2030-01-15'
                      entity: null
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-01T12:00:00Z'
                    entity_type: INDIVIDUAL
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: national_entity type cannot be changed after creation
                  http_code:
                    type: integer
                    example: 400
                    default: 0
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - national_entity type cannot be changed after creation
                    http_code: 400
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ENTITY_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Entity not found
                  http_code:
                    type: integer
                    example: 404
                    default: 0
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ENTITY_NOT_FOUND
                    messages:
                      - Entity not found
                    http_code: 404
          description: Not Found
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: The `id` of the entity obtained from [Create Entity](/reference/create-entity).
      operationId: patch_v1-banking-connectivity-entities-entity-id
      summary: Update Entity (Banking Connectivity)
      tags:
        - Entities (Banking Connectivity)
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
              properties:
                account_id:
                  type: string
                  description: The unique identifier of the merchant's Yuno account (UUID, 36 characters).
                  example: 550e8400-e29b-41d4-a716-446655440000
                merchant_entity_id:
                  type: string
                  description: The merchant's own identifier for this entity.
                  example: merchant_user_12345
                phone:
                  type: object
                  description: Updated phone number.
                  properties:
                    country_code:
                      type: string
                      description: The phone country code.
                      example: '+1'
                    number:
                      type: string
                      description: The phone number without the country code.
                      example: '2025559999'
                address:
                  type: object
                  description: Updated address. Only include fields that need to change.
                  properties:
                    address_line_1:
                      type: string
                      description: The primary street address.
                      example: 456 Oak Ave
                    address_line_2:
                      type:
                        - string
                        - 'null'
                      description: The secondary address line.
                      example: Suite 100
                    building_number:
                      type:
                        - string
                        - 'null'
                      description: The primary building number.
                      example: '456'
                    city:
                      type: string
                      description: The city name.
                      example: San Francisco
                    state:
                      type: string
                      description: The state or province.
                      example: CA
                    zip_code:
                      type: string
                      description: The postal or ZIP code.
                      example: '94105'
                    country:
                      type: string
                      description: The country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                      example: US
                entity_detail:
                  type: object
                  description: Updated entity details. Only include fields that need to change.
                  properties:
                    individual:
                      type:
                        - object
                        - 'null'
                      description: Updated individual details.
                      properties:
                        email:
                          type: string
                          description: Updated email address.
                          example: john.new@example.com
                        country_of_residence:
                          type: string
                          description: Updated country of residence.
                          example: US
                    entity:
                      type:
                        - object
                        - 'null'
                      description: Updated business details.
                      properties:
                        name:
                          type: string
                          description: Updated business name.
                          example: Acme Corp LLC
            examples:
              Update Individual:
                summary: Update Individual
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  phone:
                    country_code: '+1'
                    number: '2025559999'
                  address:
                    address_line_1: 456 Oak Ave
                    address_line_2: Suite 100
                    building_number: '456'
                    city: San Francisco
                    state: CA
                    zip_code: '94105'
                    country: US
                  entity_detail:
                    individual:
                      email: john.new@example.com
  /banking/entities/{entity_id}/onboardings:
    post:
      description: ''
      responses:
        '200':
          description: ''
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The provider name.
                        example: example_bank
                      entity_id:
                        type: string
                        example: col_entity_onboarded_123
                      status:
                        type: string
                        example: verification_pending
                    description: 'The provider onboarding details. Optional: the field is omitted when empty.'
                  onboarding_type:
                    type: string
                    example: ONE_STEP
                  status:
                    type: string
                    example: PENDING
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                    description: 'Open requirements for the onboarding. Optional: the field is omitted when empty.'
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  expires_at:
                    type: string
                    example: '2026-02-08T10:00:00Z'
                    description: 'When the onboarding expires. Optional: the field is omitted when empty.'
              examples:
                Created (Entity onboarding):
                  summary: Created (Entity onboarding)
                  value:
                    id: 990e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      name: example_bank
                      entity_id: col_entity_onboarded_123
                      status: verification_pending
                    onboarding_type: ONE_STEP
                    status: PENDING
                    requirements: []
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-01T10:00:00Z'
                    expires_at: '2026-02-08T10:00:00Z'
          description: Created
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: compliance_declaration is required for ONE_STEP onboarding
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - compliance_declaration is required for ONE_STEP onboarding
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ENTITY_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Entity not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ENTITY_NOT_FOUND
                    messages:
                      - Entity not found
          description: Not Found
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: The `id` of the entity obtained from [Create Entity](/reference/create-entity).
        - in: header
          name: x-idempotency-key
          schema:
            type: string
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts. See [authentication](/reference/authentication#idempotency) for
            details (UUID).
          required: true
      operationId: post_v1-banking-connectivity-entities-entity-id-onboardings
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - onboarding_type
              properties:
                account_id:
                  type: string
                  description: The unique identifier of the merchant's Yuno account (UUID, 36 characters).
                  example: 550e8400-e29b-41d4-a716-446655440000
                connection_id:
                  type: string
                  description: The Banking Connectivity provider connection identifier (UUID, 36 characters).
                  example: bb0e8400-e29b-41d4-a716-446655440001
                onboarding_type:
                  type: string
                  description: >-
                    The onboarding workflow type. `ONE_STEP` submits all information at once for provider processing.
                    `PREVIOUSLY_ONBOARDED` generates an internal Yuno ID without contacting the provider.
                  enum:
                    - ONE_STEP
                    - PREVIOUSLY_ONBOARDED
                  example: ONE_STEP
                compliance_declaration:
                  type: object
                  description: Legal agreements accepted by the entity. Required for `ONE_STEP` onboarding.
                  properties:
                    terms_of_service:
                      type: object
                      description: Terms of service acceptance record.
                      required:
                        - accepted
                        - accepted_at
                      properties:
                        accepted:
                          type: boolean
                          description: Whether the terms of service were accepted.
                          example: true
                        version:
                          type: string
                          description: The version of terms accepted.
                          example: 1.2.0
                        accepted_at:
                          type: string
                          description: The timestamp when accepted (ISO 8601).
                          example: '2026-02-01T10:00:00Z'
                        accepted_ip:
                          type: string
                          description: The IP address from which the terms were accepted.
                          example: 192.168.1.1
                    privacy_policy:
                      type: object
                      description: Privacy policy acceptance record.
                      required:
                        - accepted
                        - accepted_at
                      properties:
                        accepted:
                          type: boolean
                          description: Whether the privacy policy was accepted.
                          example: true
                        version:
                          type: string
                          description: The version of the privacy policy accepted.
                          example: 2.1.0
                        accepted_at:
                          type: string
                          description: The timestamp when accepted (ISO 8601).
                          example: '2026-02-01T10:00:00Z'
                        accepted_ip:
                          type: string
                          description: The IP address from which the policy was accepted.
                          example: 192.168.1.1
                    ip_address:
                      type: string
                      description: IP address from which the compliance declaration was accepted.
                      example: 192.168.1.1
                    accepted_at:
                      type: string
                      format: date-time
                      description: Date and time when the compliance declaration was accepted (ISO 8601).
                      example: '2026-02-01T10:00:00Z'
                  required:
                    - ip_address
                    - accepted_at
                risk_assessment:
                  type: object
                  description: Pre-existing compliance screening results provided by the merchant.
                  properties:
                    assessed_at:
                      type: string
                      description: The timestamp when the assessment was performed (ISO 8601).
                      example: '2026-02-01T10:00:00Z'
                    pep_status:
                      type: object
                      description: Politically Exposed Person (PEP) screening results.
                      properties:
                        is_pep:
                          type: boolean
                          description: Whether the entity is a PEP.
                          example: false
                        pep_level:
                          type:
                            - string
                            - 'null'
                          description: The PEP classification level.
                          enum:
                            - DIRECT
                            - CLOSE_ASSOCIATE
                            - FAMILY_MEMBER
                            - null
                          example: null
                        position:
                          type:
                            - string
                            - 'null'
                          description: The political role or position, if applicable.
                          example: null
                        country:
                          type:
                            - string
                            - 'null'
                          description: The country of PEP status.
                          example: null
                    rca_status:
                      type: object
                      description: Risk Classification Assessment results.
                      properties:
                        risk_level:
                          type: string
                          description: The assessed risk level.
                          enum:
                            - LOW
                            - MEDIUM
                            - HIGH
                          example: LOW
                        classified_at:
                          type: string
                          description: The timestamp when classified (ISO 8601).
                          example: '2026-02-01T10:00:00Z'
                        assessed_by:
                          type: string
                          description: The name of the assessor or team.
                          example: Merchant Compliance Team
                    sanctions_screening:
                      type: object
                      description: Sanctions list screening results.
                      properties:
                        appears_on_sanctions_list:
                          type: boolean
                          description: Whether the entity appears on any sanctions list.
                          example: false
                        sanctions_list_name:
                          type:
                            - string
                            - 'null'
                          description: The name of the sanctions list, if matched.
                          example: null
                        screened_at:
                          type: string
                          description: The timestamp when the screening was performed (ISO 8601).
                          example: '2026-02-01T09:00:00Z'
                source_of_funds:
                  type: object
                  description: AML/KYC information about the source of funds.
                  properties:
                    primary_source:
                      type: string
                      description: The primary source of funds.
                      enum:
                        - EMPLOYMENT_SALARY
                        - BUSINESS_INCOME
                        - INVESTMENTS
                        - RENTAL_INCOME
                        - PENSION
                        - GOVERNMENT_BENEFITS
                        - INHERITANCE
                        - FAMILY_SUPPORT
                        - SAVINGS
                        - LOTTERY_GAMBLING
                        - SALE_OF_ASSETS
                        - CRYPTOCURRENCY
                        - FREELANCE_CONSULTING
                        - OTHER
                      example: EMPLOYMENT_SALARY
                    secondary_sources:
                      type: array
                      description: Additional sources of funds.
                      items:
                        type: string
                      example:
                        - INVESTMENTS
                    description:
                      type: string
                      description: A detailed explanation of the source of funds.
                      example: >-
                        Primary income from full-time employment as software engineer, supplemented by stock portfolio
                        dividends
                    estimated_annual_income:
                      type: object
                      description: The estimated annual income.
                      properties:
                        amount:
                          type: number
                          description: The annual income amount.
                          example: 175000
                        currency:
                          type: string
                          description: The currency ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)).
                          example: USD
                    primary:
                      type: string
                      description: The primary source of funds. Required by the API.
                      enum:
                        - EMPLOYMENT_SALARY
                        - BUSINESS_INCOME
                        - INVESTMENTS
                        - RENTAL_INCOME
                        - PENSION
                        - GOVERNMENT_BENEFITS
                        - INHERITANCE
                        - FAMILY_SUPPORT
                        - SAVINGS
                        - LOTTERY_GAMBLING
                        - SALE_OF_ASSETS
                        - CRYPTOCURRENCY
                        - FREELANCE_CONSULTING
                        - OTHER
                      example: EMPLOYMENT_SALARY
                  required:
                    - primary
                documentation:
                  type: array
                  description: >-
                    KYC/KYB documents. Each item has a `document_type` and one sub-object named after it
                    (`identity_document`, `proof_of_address`, `bank_statement`, `tax_information`,
                    `biometric_verification`, `employment_information`, `business_document`, `financial_document`).
                    Dates use `YYYY-MM-DD`. Files must be `image/jpeg`, `image/png`, `application/pdf` or `image/tiff`.
                  items:
                    type: object
                    required:
                      - document_type
                    properties:
                      document_type:
                        type: string
                        description: >-
                          The document type. It selects the sub-object you must send with the same name in lower case,
                          for example `BANK_STATEMENT` requires `bank_statement`.
                        example: BANK_STATEMENT
                        enum:
                          - IDENTITY_DOCUMENT
                          - PROOF_OF_ADDRESS
                          - BANK_STATEMENT
                          - TAX_INFORMATION
                          - BIOMETRIC_VERIFICATION
                          - EMPLOYMENT_INFORMATION
                          - BUSINESS_DOCUMENT
                          - FINANCIAL_DOCUMENT
                      identity_document:
                        type: object
                        required:
                          - document_number
                          - issuing_country
                          - files
                        properties:
                          document_number:
                            type: string
                            description: The document number.
                            example: D1234567
                          document_subtype:
                            type: string
                            description: The document subtype.
                            example: DRIVERS_LICENSE
                          issuing_country:
                            type: string
                            description: The issuing country (ISO 3166-1 alpha-2).
                            example: US
                          expires_at:
                            type: string
                            description: The expiry date. Format `YYYY-MM-DD`.
                            example: '2028-01-15'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      proof_of_address:
                        type: object
                        required:
                          - issuing_country
                          - files
                        properties:
                          issuing_country:
                            type: string
                            description: The issuing country (ISO 3166-1 alpha-2).
                            example: US
                          issued_at:
                            type: string
                            description: The issue date. Format `YYYY-MM-DD`.
                            example: '2026-01-01'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      bank_statement:
                        type: object
                        required:
                          - files
                        properties:
                          bank_name:
                            type: string
                            description: The bank name.
                            example: Chase Bank
                          account_number_last_4:
                            type: string
                            description: The last 4 characters of the account number. Must be exactly 4 characters.
                            example: '1234'
                          period_start_at:
                            type: string
                            description: The statement period start. Format `YYYY-MM-DD`.
                            example: '2025-12-01'
                          period_end_at:
                            type: string
                            description: The statement period end. Format `YYYY-MM-DD`.
                            example: '2025-12-31'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      tax_information:
                        type: object
                        required:
                          - tax_records
                        properties:
                          tax_records:
                            type: array
                            minItems: 1
                            items:
                              type: object
                              required:
                                - tax_number_type
                                - tax_number
                                - country
                              properties:
                                tax_number_type:
                                  type: string
                                  description: The tax number type.
                                  example: SSN
                                  enum:
                                    - SSN
                                    - EIN
                                    - ITIN
                                    - ABN
                                    - NINO
                                    - NIF
                                    - OTHER
                                tax_number:
                                  type: string
                                  description: The tax number.
                                  example: 123-45-6789
                                country:
                                  type: string
                                  description: The country (ISO 3166-1 alpha-2).
                                  example: US
                                is_primary:
                                  type: boolean
                                  example: true
                      biometric_verification:
                        type: object
                        required:
                          - verification_type
                          - files
                        properties:
                          verification_type:
                            type: string
                            description: The verification type.
                            example: FACE_MATCH
                          confidence_score:
                            type: number
                            minimum: 0
                            maximum: 1
                            description: A float between 0.0 and 1.0.
                            example: 0.98
                          verified_at:
                            type: string
                            description: The verification date. Format `YYYY-MM-DD`.
                            example: '2026-01-20'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      employment_information:
                        type: object
                        required:
                          - files
                        properties:
                          employer_name:
                            type: string
                            description: The employer name.
                            example: Acme Corp
                          job_title:
                            type: string
                            description: The job title.
                            example: Software Engineer
                          started_at:
                            type: string
                            description: The start date. Format `YYYY-MM-DD`.
                            example: '2020-03-01'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      business_document:
                        type: object
                        required:
                          - subtype
                          - files
                        properties:
                          subtype:
                            type: string
                            description: The business document subtype.
                            example: ARTICLES_OF_INCORPORATION
                            enum:
                              - ARTICLES_OF_INCORPORATION
                              - BUSINESS_LICENSE
                              - EIN_CONFIRMATION
                              - OPERATING_AGREEMENT
                              - CERTIFICATE_OF_GOOD_STANDING
                          registration_number:
                            type: string
                            description: The registration number.
                            example: REG-123456
                          registered_at:
                            type: string
                            description: The registration date. Format `YYYY-MM-DD`.
                            example: '2018-05-10'
                          issuing_state:
                            type: string
                            description: The issuing state.
                            example: DE
                          issuing_authority:
                            type: string
                            description: The issuing authority.
                            example: Delaware Secretary of State
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      financial_document:
                        type: object
                        required:
                          - subtype
                          - files
                        properties:
                          subtype:
                            type: string
                            description: The financial document subtype.
                            example: BALANCE_SHEET
                            enum:
                              - BALANCE_SHEET
                              - PROFIT_LOSS_STATEMENT
                              - CASH_FLOW_STATEMENT
                              - FINANCIAL_AUDIT
                          period_start_at:
                            type: string
                            description: The period start. Format `YYYY-MM-DD`.
                            example: '2025-01-01'
                          period_end_at:
                            type: string
                            description: The period end. Format `YYYY-MM-DD`.
                            example: '2025-12-31'
                          fiscal_year:
                            type: integer
                            example: 2025
                          audited:
                            type: boolean
                            example: true
                          auditor_name:
                            type: string
                            description: The auditor name.
                            example: Example Audit LLP
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
            examples:
              Create entity onboarding:
                summary: Create entity onboarding
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  connection_id: bb0e8400-e29b-41d4-a716-446655440001
                  onboarding_type: ONE_STEP
                  compliance_declaration:
                    terms_of_service:
                      accepted: true
                      version: 1.2.0
                      accepted_at: '2026-02-01T10:00:00Z'
                      accepted_ip: 192.168.1.1
                    privacy_policy:
                      accepted: true
                      version: 2.1.0
                      accepted_at: '2026-02-01T10:00:00Z'
                      accepted_ip: 192.168.1.1
                    ip_address: 192.168.1.1
                    accepted_at: '2026-02-01T10:00:00Z'
                  risk_assessment:
                    assessed_at: '2026-02-01T10:00:00Z'
                    pep_status:
                      is_pep: false
                      pep_level: null
                      position: null
                      country: null
                    rca_status:
                      risk_level: LOW
                      classified_at: '2026-02-01T10:00:00Z'
                      assessed_by: Merchant Compliance Team
                    sanctions_screening:
                      appears_on_sanctions_list: false
                      sanctions_list_name: null
                      screened_at: '2026-02-01T09:00:00Z'
                  source_of_funds:
                    primary_source: EMPLOYMENT_SALARY
                    secondary_sources:
                      - INVESTMENTS
                    description: >-
                      Primary income from full-time employment as software engineer, supplemented by stock portfolio
                      dividends
                    estimated_annual_income:
                      amount: 175000
                      currency: USD
                    primary: EMPLOYMENT_SALARY
                  documentation:
                    - document_type: IDENTITY_DOCUMENT
                      identity_document:
                        document_number: D1234567
                        document_subtype: DRIVERS_LICENSE
                        issuing_country: US
                        expires_at: '2028-01-15'
                        files:
                          - file_name: license_front.jpg
                            content_type: image/jpeg
                            content: base64_encoded_content
                          - file_name: license_back.jpg
                            content_type: image/jpeg
                            content: base64_encoded_content
                    - document_type: BANK_STATEMENT
                      bank_statement:
                        bank_name: Chase Bank
                        account_number_last_4: '1234'
                        period_start_at: '2025-12-01'
                        period_end_at: '2025-12-31'
                        files:
                          - file_name: bank_statement_dec_2025.pdf
                            content_type: application/pdf
                            content: base64_encoded_content
              Previously onboarded:
                summary: Previously onboarded
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  connection_id: bb0e8400-e29b-41d4-a716-446655440001
                  onboarding_type: PREVIOUSLY_ONBOARDED
      summary: Create Entity Onboarding (Banking Connectivity)
      tags:
        - Entity Onboarding (Banking Connectivity)
  /banking/entities/{entity_id}/onboardings/{onboarding_id}:
    get:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                Pending:
                  summary: Pending
                  value:
                    id: 990e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      name: example_bank
                      entity_id: col_entity_onboarded_123
                      status: verification_pending
                    onboarding_type: ONE_STEP
                    status: PENDING
                    requirements: []
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-01T10:00:00Z'
                    expires_at: '2026-02-08T10:00:00Z'
                Succeeded:
                  summary: Succeeded
                  value:
                    id: 990e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      name: example_bank
                      entity_id: col_entity_onboarded_123
                      status: active
                    onboarding_type: ONE_STEP
                    status: SUCCEEDED
                    requirements: []
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-03T14:30:00Z'
                    expires_at: '2026-02-08T10:00:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The provider name.
                        example: example_bank
                      entity_id:
                        type: string
                        example: col_entity_onboarded_123
                      status:
                        type: string
                        example: verification_pending
                    description: 'The provider onboarding details. Optional: the field is omitted when empty.'
                  onboarding_type:
                    type: string
                    example: ONE_STEP
                  status:
                    type: string
                    example: PENDING
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                    description: 'Open requirements for the onboarding. Optional: the field is omitted when empty.'
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  expires_at:
                    type: string
                    example: '2026-02-08T10:00:00Z'
                    description: 'When the onboarding expires. Optional: the field is omitted when empty.'
        '400':
          content:
            application/json:
              schema:
                type: object
                properties: {}
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ONBOARDING_NOT_FOUND
                    messages:
                      - Onboarding not found.
          description: Bad request. The onboarding does not exist for this entity.
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: The `id` of the entity obtained from [Create Entity](/reference/create-entity).
        - in: path
          name: onboarding_id
          schema:
            type: string
          required: true
          description: The `id` of the onboarding obtained from [Create Entity Onboarding](/reference/create-entity-onboarding).
      operationId: get_v1-banking-connectivity-entities-entity-id-onboardings-onboarding-id
      summary: Get Entity Onboarding Status (Banking Connectivity)
      tags:
        - Entity Onboarding (Banking Connectivity)
    patch:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    id: 990e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    status: PENDING
                    provider_status: verification_pending
                    requirements: []
                    updated_at: '2026-02-01T10:05:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  status:
                    type: string
                    example: PENDING
                  provider_status:
                    type: string
                    example: verification_pending
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                  updated_at:
                    type: string
                    example: '2026-02-01T10:05:00Z'
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
                      example: The field 'documentation[0].document_type' is required.
              examples:
                Invalid documentation:
                  summary: Invalid documentation
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'documentation[0].document_type' is required.
                Terminal status:
                  summary: Terminal status
                  value:
                    code: INVALID_STATE_TRANSITION
                    messages:
                      - Cannot transition from SUCCEEDED to PENDING.
          description: >-
            Bad Request. Returned when a document is missing a required field or has an invalid value
            (`INVALID_PARAMETERS`), and when the onboarding already has a terminal status such as `SUCCEEDED`
            (`INVALID_STATE_TRANSITION`).
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ONBOARDING_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Onboarding not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ONBOARDING_NOT_FOUND
                    messages:
                      - Onboarding not found
          description: Not Found
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: >-
            The `id` of the entity obtained from [Create
            Entity](https://temp-yuno-docs.readme.io/reference/create-entity).
        - in: path
          name: onboarding_id
          schema:
            type: string
          required: true
          description: >-
            The `id` of the onboarding obtained from [Create Entity
            Onboarding](https://temp-yuno-docs.readme.io/reference/create-entity-onboarding).
      operationId: patch_v1-banking-connectivity-entities-entity-id-onboardings-onboarding-id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - documentation
              description: >-
                Submit documents for an onboarding that has not reached a terminal status. Compliance declarations, risk
                assessment and source of funds cannot be updated through this endpoint.
              properties:
                account_id:
                  type: string
                  description: The unique identifier of the merchant's Yuno account (UUID, 36 characters).
                  example: 550e8400-e29b-41d4-a716-446655440000
                documentation:
                  type: array
                  description: >-
                    The documents to submit. At least one item is required. Each item has a `document_type` and one
                    sub-object named after it, which holds the `files` array. Dates use `YYYY-MM-DD`.
                  items:
                    type: object
                    required:
                      - document_type
                    properties:
                      document_type:
                        type: string
                        description: >-
                          The document type. It selects the sub-object you must send with the same name in lower case,
                          for example `BANK_STATEMENT` requires `bank_statement`.
                        example: BANK_STATEMENT
                        enum:
                          - IDENTITY_DOCUMENT
                          - PROOF_OF_ADDRESS
                          - BANK_STATEMENT
                          - TAX_INFORMATION
                          - BIOMETRIC_VERIFICATION
                          - EMPLOYMENT_INFORMATION
                          - BUSINESS_DOCUMENT
                          - FINANCIAL_DOCUMENT
                      identity_document:
                        type: object
                        required:
                          - document_number
                          - issuing_country
                          - files
                        properties:
                          document_number:
                            type: string
                            description: The document number.
                            example: D1234567
                          document_subtype:
                            type: string
                            description: The document subtype.
                            example: DRIVERS_LICENSE
                          issuing_country:
                            type: string
                            description: The issuing country (ISO 3166-1 alpha-2).
                            example: US
                          expires_at:
                            type: string
                            description: The expiry date. Format `YYYY-MM-DD`.
                            example: '2028-01-15'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      proof_of_address:
                        type: object
                        required:
                          - issuing_country
                          - files
                        properties:
                          issuing_country:
                            type: string
                            description: The issuing country (ISO 3166-1 alpha-2).
                            example: US
                          issued_at:
                            type: string
                            description: The issue date. Format `YYYY-MM-DD`.
                            example: '2026-01-01'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      bank_statement:
                        type: object
                        required:
                          - files
                        properties:
                          bank_name:
                            type: string
                            description: The bank name.
                            example: Chase Bank
                          account_number_last_4:
                            type: string
                            description: The last 4 characters of the account number. Must be exactly 4 characters.
                            example: '1234'
                          period_start_at:
                            type: string
                            description: The statement period start. Format `YYYY-MM-DD`.
                            example: '2025-12-01'
                          period_end_at:
                            type: string
                            description: The statement period end. Format `YYYY-MM-DD`.
                            example: '2025-12-31'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      tax_information:
                        type: object
                        required:
                          - tax_records
                        properties:
                          tax_records:
                            type: array
                            minItems: 1
                            items:
                              type: object
                              required:
                                - tax_number_type
                                - tax_number
                                - country
                              properties:
                                tax_number_type:
                                  type: string
                                  description: The tax number type.
                                  example: SSN
                                  enum:
                                    - SSN
                                    - EIN
                                    - ITIN
                                    - ABN
                                    - NINO
                                    - NIF
                                    - OTHER
                                tax_number:
                                  type: string
                                  description: The tax number.
                                  example: 123-45-6789
                                country:
                                  type: string
                                  description: The country (ISO 3166-1 alpha-2).
                                  example: US
                                is_primary:
                                  type: boolean
                                  example: true
                      biometric_verification:
                        type: object
                        required:
                          - verification_type
                          - files
                        properties:
                          verification_type:
                            type: string
                            description: The verification type.
                            example: FACE_MATCH
                          confidence_score:
                            type: number
                            minimum: 0
                            maximum: 1
                            description: A float between 0.0 and 1.0.
                            example: 0.98
                          verified_at:
                            type: string
                            description: The verification date. Format `YYYY-MM-DD`.
                            example: '2026-01-20'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      employment_information:
                        type: object
                        required:
                          - files
                        properties:
                          employer_name:
                            type: string
                            description: The employer name.
                            example: Acme Corp
                          job_title:
                            type: string
                            description: The job title.
                            example: Software Engineer
                          started_at:
                            type: string
                            description: The start date. Format `YYYY-MM-DD`.
                            example: '2020-03-01'
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      business_document:
                        type: object
                        required:
                          - subtype
                          - files
                        properties:
                          subtype:
                            type: string
                            description: The business document subtype.
                            example: ARTICLES_OF_INCORPORATION
                            enum:
                              - ARTICLES_OF_INCORPORATION
                              - BUSINESS_LICENSE
                              - EIN_CONFIRMATION
                              - OPERATING_AGREEMENT
                              - CERTIFICATE_OF_GOOD_STANDING
                          registration_number:
                            type: string
                            description: The registration number.
                            example: REG-123456
                          registered_at:
                            type: string
                            description: The registration date. Format `YYYY-MM-DD`.
                            example: '2018-05-10'
                          issuing_state:
                            type: string
                            description: The issuing state.
                            example: DE
                          issuing_authority:
                            type: string
                            description: The issuing authority.
                            example: Delaware Secretary of State
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                      financial_document:
                        type: object
                        required:
                          - subtype
                          - files
                        properties:
                          subtype:
                            type: string
                            description: The financial document subtype.
                            example: BALANCE_SHEET
                            enum:
                              - BALANCE_SHEET
                              - PROFIT_LOSS_STATEMENT
                              - CASH_FLOW_STATEMENT
                              - FINANCIAL_AUDIT
                          period_start_at:
                            type: string
                            description: The period start. Format `YYYY-MM-DD`.
                            example: '2025-01-01'
                          period_end_at:
                            type: string
                            description: The period end. Format `YYYY-MM-DD`.
                            example: '2025-12-31'
                          fiscal_year:
                            type: integer
                            example: 2025
                          audited:
                            type: boolean
                            example: true
                          auditor_name:
                            type: string
                            description: The auditor name.
                            example: Example Audit LLP
                          files:
                            type: array
                            minItems: 1
                            description: The files that support the document. At least one file is required.
                            items:
                              type: object
                              required:
                                - file_name
                                - content_type
                                - content
                              properties:
                                file_name:
                                  type: string
                                  description: The file name.
                                  example: document.pdf
                                content_type:
                                  type: string
                                  description: The file media type.
                                  example: application/pdf
                                  enum:
                                    - image/jpeg
                                    - image/png
                                    - application/pdf
                                    - image/tiff
                                content:
                                  type: string
                                  description: The file content, base64 encoded.
                                  example: base64_encoded_content
                  minItems: 1
            examples:
              Update Onboarding:
                summary: Update Onboarding
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  documentation:
                    - document_type: IDENTITY_DOCUMENT
                      identity_document:
                        document_number: D1234567
                        document_subtype: DRIVERS_LICENSE
                        issuing_country: US
                        expires_at: '2028-01-15'
                        files:
                          - file_name: license_front.jpg
                            content_type: image/jpeg
                            content: base64_encoded_content
                          - file_name: license_back.jpg
                            content_type: image/jpeg
                            content: base64_encoded_content
                    - document_type: BANK_STATEMENT
                      bank_statement:
                        bank_name: Chase Bank
                        account_number_last_4: '1234'
                        period_start_at: '2025-12-01'
                        period_end_at: '2025-12-31'
                        files:
                          - file_name: bank_statement_dec_2025.pdf
                            content_type: application/pdf
                            content: base64_encoded_content
      summary: Update Entity Onboarding (Banking Connectivity)
      tags:
        - Entity Onboarding (Banking Connectivity)
  /banking/entities/{entity_id}/onboardings/{onboarding_id}/cancel:
    post:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    id: 990e8400-e29b-41d4-a716-446655440000
                    entity_id: 660e8400-e29b-41d4-a716-446655440000
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    provider:
                      name: example_bank
                      entity_id: col_entity_onboarded_123
                      status: cancelled
                    onboarding_type: ONE_STEP
                    status: CANCELLED
                    requirements: []
                    created_at: '2026-02-01T10:00:00Z'
                    updated_at: '2026-02-02T08:45:00Z'
                    expires_at: '2026-02-08T10:00:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The provider name.
                        example: example_bank
                      entity_id:
                        type: string
                        example: col_entity_onboarded_123
                      status:
                        type: string
                        example: cancelled
                    description: 'The provider onboarding details. Optional: the field is omitted when empty.'
                  onboarding_type:
                    type: string
                    example: ONE_STEP
                  status:
                    type: string
                    example: CANCELLED
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                    description: 'Open requirements for the onboarding. Optional: the field is omitted when empty.'
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-02T08:45:00Z'
                  expires_at:
                    type: string
                    example: '2026-02-08T10:00:00Z'
                    description: 'When the onboarding expires. Optional: the field is omitted when empty.'
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 990e8400-e29b-41d4-a716-446655440000
                  entity_id:
                    type: string
                    example: 660e8400-e29b-41d4-a716-446655440000
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  provider:
                    type: object
                    properties:
                      name:
                        type: string
                        description: The provider name.
                        example: example_bank
                      entity_id:
                        type: string
                        example: col_entity_onboarded_123
                      status:
                        type: string
                        example: cancelled
                    description: 'The provider onboarding details. Optional: the field is omitted when empty.'
                  onboarding_type:
                    type: string
                    example: ONE_STEP
                  status:
                    type: string
                    example: CANCELLED
                  requirements:
                    type: array
                    items:
                      type: object
                      properties: {}
                    description: 'Open requirements for the onboarding. Optional: the field is omitted when empty.'
                  created_at:
                    type: string
                    example: '2026-02-01T10:00:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-02T08:45:00Z'
                  expires_at:
                    type: string
                    example: '2026-02-08T10:00:00Z'
                    description: 'When the onboarding expires. Optional: the field is omitted when empty.'
          description: Accepted
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: Onboarding has reached a terminal status and cannot be cancelled
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - Onboarding has reached a terminal status and cannot be cancelled
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ONBOARDING_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Onboarding not found
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ONBOARDING_NOT_FOUND
                    messages:
                      - Onboarding not found
          description: Not Found
      parameters:
        - in: path
          name: entity_id
          schema:
            type: string
          required: true
          description: The `id` of the entity obtained from [Create Entity](/reference/create-entity).
        - in: path
          name: onboarding_id
          schema:
            type: string
          required: true
          description: The `id` of the entity obtained from [Create Entity](/reference/create-entity).
      operationId: post_v1-banking-connectivity-entities-entity-id-onboardings-onboarding-id-cancel
      summary: Cancel Entity Onboarding (Banking Connectivity)
      tags:
        - Entity Onboarding (Banking Connectivity)
  /banking/transfers:
    post:
      description: ''
      responses:
        '202':
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: bb0e8400-e29b-41d4-a716-446655440000
                  source_account_id:
                    type: string
                    example: aa0e8400-e29b-41d4-a716-446655440000
                  destination_account_id: {}
                  account_id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  merchant_transfer_id:
                    type: string
                    example: merchant_txn_12345
                  provider:
                    type: object
                    properties:
                      account_id:
                        type: string
                        example: col_bank_account_789
                      transfer_id:
                        type: string
                        example: col_transfer_xyz123
                  status:
                    type: string
                    example: PENDING
                  transfer_type:
                    type: string
                    example: OUTGOING
                  destination_account:
                    type: object
                    properties:
                      account_number_last_4:
                        type: string
                        example: '3210'
                      routing_number:
                        type: string
                        example: '987654321'
                      iban: {}
                      bsb: {}
                      swift: {}
                      sort_code: {}
                      account_name:
                        type: string
                        example: Jane Smith
                      bank_name:
                        type: string
                        example: Chase Bank
                  amount:
                    type: object
                    properties:
                      value:
                        type: integer
                        example: 1000
                        default: 0
                      currency:
                        type: string
                        example: USD
                  payment_rail:
                    type: string
                    example: ACH_STANDARD
                  description:
                    type: string
                    example: Payment to vendor
                  created_at:
                    type: string
                    example: '2026-02-01T10:15:00Z'
                  updated_at:
                    type: string
                    example: '2026-02-01T10:15:00Z'
              examples:
                Accepted (Outgoing):
                  summary: Accepted (Outgoing)
                  value:
                    id: bb0e8400-e29b-41d4-a716-446655440000
                    source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                    destination_account_id: null
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_transfer_id: merchant_txn_12345
                    provider:
                      account_id: col_bank_account_789
                      transfer_id: col_transfer_xyz123
                    status: PENDING
                    transfer_type: OUTGOING
                    destination_account:
                      account_number_last_4: '3210'
                      routing_number: '987654321'
                      iban: null
                      bsb: null
                      swift: null
                      sort_code: null
                      account_name: Jane Smith
                      bank_name: Chase Bank
                    amount:
                      value: 1000
                      currency: USD
                    payment_rail: ACH_STANDARD
                    description: Payment to vendor
                    created_at: '2026-02-01T10:15:00Z'
                    updated_at: '2026-02-01T10:15:00Z'
          description: Accepted
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
                      example: The field 'transfer_type' is required.
                  http_code:
                    type: integer
                    example: 400
                    default: 0
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'transfer_type' is required.
                    http_code: 400
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ACCOUNT_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account not found
                  http_code:
                    type: integer
                    example: 404
                    default: 0
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: ACCOUNT_NOT_FOUND
                    messages:
                      - Account not found
                    http_code: 404
          description: Not Found
      parameters:
        - in: header
          name: x-idempotency-key
          schema:
            type: string
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts. See [authentication](/reference/authentication#idempotency) for
            details (UUID).
          required: true
      operationId: post_v1-banking-connectivity-transfers
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - source_account_id
                - transfer_type
                - amount
                - payment_rail
              properties:
                account_id:
                  type: string
                  description: The unique identifier of the merchant's Yuno account (UUID, 36 characters).
                  example: 550e8400-e29b-41d4-a716-446655440000
                source_account_id:
                  type: string
                  description: >-
                    The `id` of the source Banking Connectivity account obtained from [Create
                    Account](/reference/create-account-banking) (UUID, 36 characters).
                  example: aa0e8400-e29b-41d4-a716-446655440000
                transfer_type:
                  type: string
                  description: >-
                    The transfer type. `OUTGOING` sends funds to an external account (set `destination_account` with the
                    bank details). `BOOK` moves funds to another Banking Connectivity account (set
                    `destination_account.account_id`). `INCOMING` is an inbound transfer.
                  example: OUTGOING
                  enum:
                    - OUTGOING
                    - BOOK
                    - INCOMING
                amount:
                  type: object
                  description: The transfer amount. Currency must match the source account currency.
                  required:
                    - value
                    - currency
                  properties:
                    value:
                      type: number
                      description: The transfer amount (up to 4 decimal places, max 9,999,999,999).
                      example: 1000
                    currency:
                      type: string
                      description: >-
                        The currency ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217)). Must match the source account
                        currency.
                      example: USD
                payment_rail:
                  type: string
                  description: >-
                    The payment rail to use for the transfer. Use `BOOK` with `transfer_type: BOOK`. Available rails
                    depend on the provider region.
                  enum:
                    - ACH_STANDARD
                    - ACH_SAME_DAY
                    - WIRE
                    - RTP
                    - BOOK
                    - PUSH_TO_CARD
                  example: ACH_STANDARD
                description:
                  type: string
                  description: A description for the transfer.
                  example: Payment to vendor
                merchant_transfer_id:
                  type: string
                  description: The merchant's own reference ID for reconciliation.
                  example: merchant_txn_12345
                destination_account:
                  type: object
                  description: >-
                    The destination. For `OUTGOING` transfers, send the external bank details; required fields depend on
                    the region: US requires `account_number` and `routing_number`; UK requires `iban` or
                    `account_number` with `sort_code`; Australia requires `account_number` with `bsb`. For `BOOK`
                    transfers, send only `account_id` with the `id` of the target Banking Connectivity account.
                  properties:
                    account_id:
                      type: string
                      description: The `id` of the target Banking Connectivity account for `BOOK` transfers (UUID, 36 characters).
                      example: bb0e8400-e29b-41d4-a716-446655440000
                    account_number:
                      type: string
                      description: The destination bank account number.
                      example: '9876543210'
                    routing_number:
                      type:
                        - string
                        - 'null'
                      description: The US routing number. Required for US destinations.
                      example: '987654321'
                    iban:
                      type:
                        - string
                        - 'null'
                      description: The IBAN. Required for UK and SEPA destinations.
                      example: null
                    bsb:
                      type:
                        - string
                        - 'null'
                      description: The Australian BSB number. Required for Australian destinations.
                      example: null
                    swift:
                      type:
                        - string
                        - 'null'
                      description: The SWIFT/BIC code. Required for international and SEPA transfers.
                      example: null
                    sort_code:
                      type:
                        - string
                        - 'null'
                      description: The UK sort code. Required for UK destinations.
                      example: null
                    account_name:
                      type: string
                      description: The destination account holder name.
                      example: Jane Smith
                    bank_name:
                      type: string
                      description: The destination bank name.
                      example: Chase Bank
            examples:
              Outgoing Transfer:
                summary: Outgoing Transfer
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                  transfer_type: OUTGOING
                  amount:
                    value: 1000
                    currency: USD
                  payment_rail: ACH_STANDARD
                  description: Payment to vendor
                  merchant_transfer_id: merchant_txn_12345
                  destination_account:
                    account_number: '9876543210'
                    routing_number: '987654321'
                    account_name: Jane Smith
                    bank_name: Chase Bank
              Book Transfer (Internal):
                summary: Book Transfer (Internal)
                value:
                  account_id: 550e8400-e29b-41d4-a716-446655440000
                  source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                  transfer_type: BOOK
                  amount:
                    value: 500
                    currency: USD
                  payment_rail: BOOK
                  description: Internal transfer between accounts
                  merchant_transfer_id: merchant_book_67890
                  destination_account:
                    account_id: bb0e8400-e29b-41d4-a716-446655440000
      summary: Initiate Entity Transfer (Banking Connectivity)
      tags:
        - Entity Transfers (Banking Connectivity)
  /banking/transfers/{transfer_id}:
    get:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                Pending:
                  summary: Pending
                  value:
                    id: bb0e8400-e29b-41d4-a716-446655440000
                    source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                    destination_account_id: null
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_transfer_id: merchant_txn_12345
                    provider:
                      account_id: col_bank_account_789
                      transfer_id: col_transfer_xyz123
                    status: PENDING
                    transfer_type: OUTGOING
                    destination_account:
                      account_number_last_4: '3210'
                      routing_number: '987654321'
                      iban: null
                      bsb: null
                      swift: null
                      sort_code: null
                      account_name: Jane Smith
                      bank_name: Chase Bank
                    amount:
                      value: 1000
                      currency: USD
                    payment_rail: ACH_STANDARD
                    description: Payment to vendor
                    created_at: '2026-02-01T10:15:00Z'
                    updated_at: '2026-02-01T10:15:00Z'
                Completed:
                  summary: Completed
                  value:
                    id: bb0e8400-e29b-41d4-a716-446655440000
                    source_account_id: aa0e8400-e29b-41d4-a716-446655440000
                    destination_account_id: null
                    account_id: 550e8400-e29b-41d4-a716-446655440000
                    merchant_transfer_id: merchant_txn_12345
                    provider:
                      account_id: col_bank_account_789
                      transfer_id: col_transfer_xyz123
                    status: COMPLETED
                    transfer_type: OUTGOING
                    destination_account:
                      account_number_last_4: '3210'
                      routing_number: '987654321'
                      iban: null
                      bsb: null
                      swift: null
                      sort_code: null
                      account_name: Jane Smith
                      bank_name: Chase Bank
                    amount:
                      value: 1000
                      currency: USD
                    payment_rail: ACH_STANDARD
                    description: Payment to vendor
                    created_at: '2026-02-01T10:15:00Z'
                    updated_at: '2026-02-02T14:30:00Z'
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                      example: Missing required authentication headers
              examples:
                Unauthorized:
                  summary: Unauthorized
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Missing required authentication headers
          description: Unauthorized
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: TRANSFER_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Transfer not found.
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: TRANSFER_NOT_FOUND
                    messages:
                      - Transfer not found.
          description: Not Found
      parameters:
        - in: path
          name: transfer_id
          schema:
            type: string
          required: true
          description: >-
            The `id` of the transfer obtained from [Initiate Entity Transfer](/reference/initiate-entity-transfer)
            (UUID, 36 chars).
      operationId: get_v1-banking-transfers-transfer-id
      summary: Get Entity Transfer Status (Banking Connectivity)
      tags:
        - Entity Transfers (Banking Connectivity)
  /banking/transfers/{transfer_id}/cancel:
    post:
      description: ''
      responses:
        '200':
          description: ''
        '400':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                      example: Only transfers in PENDING status can be cancelled
              examples:
                Bad Request:
                  summary: Bad Request
                  value:
                    code: VALIDATION_ERROR
                    messages:
                      - Only transfers in PENDING status can be cancelled
          description: Bad Request
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: TRANSFER_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Transfer not found.
              examples:
                Not Found:
                  summary: Not Found
                  value:
                    code: TRANSFER_NOT_FOUND
                    messages:
                      - Transfer not found.
          description: Not Found
      parameters:
        - in: path
          name: transfer_id
          schema:
            type: string
          required: true
          description: >-
            The `id` of the transfer obtained from [Initiate Entity Transfer](/reference/initiate-entity-transfer)
            (UUID, 36 chars).
      operationId: post_v1-banking-transfers-transfer-id-cancel
      summary: Cancel Entity Transfer (Banking Connectivity)
      tags:
        - Entity Transfers (Banking Connectivity)
  /campaigns:
    get:
      description: ''
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                        name:
                          type: string
                          example: Declined Payment Recovery - Colombia
                        country:
                          type: string
                          example: CO
                        channel:
                          type: string
                          example: WHATSAPP_MESSAGE
                        status:
                          type: string
                          example: ACTIVE
                        duration:
                          type: object
                          properties:
                            start_at:
                              type: string
                              example: '2025-07-01T00:00:00Z'
                            end_at:
                              type: string
                              example: '2026-07-01T00:00:00Z'
                        created_at:
                          type: string
                          example: '2025-07-01T12:00:00Z'
                        updated_at:
                          type: string
                          example: '2025-07-01T12:00:00Z'
                  meta:
                    type: object
                    properties:
                      total:
                        type: integer
                        example: 5
                      limit:
                        type: integer
                        example: 10
                      offset:
                        type: integer
                        example: 0
              examples:
                OK:
                  summary: OK
                  value:
                    data:
                      - id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                        name: Declined Payment Recovery - Colombia
                        country: CO
                        channel: WHATSAPP_MESSAGE
                        status: ACTIVE
                        duration:
                          start_at: '2025-07-01T00:00:00Z'
                          end_at: '2026-07-01T00:00:00Z'
                        created_at: '2025-07-01T12:00:00Z'
                        updated_at: '2025-07-01T12:00:00Z'
                    meta:
                      total: 5
                      limit: 10
                      offset: 0
          description: ''
      parameters:
        - in: query
          name: limit
          description: Results per page (1-100)
          schema:
            type: integer
            default: 20
          required: false
        - in: query
          name: offset
          description: Number of results to skip
          schema:
            type: integer
            default: 0
          required: false
        - in: query
          name: start_date
          description: Filter by start date (ISO 8601)
          schema:
            type: string
          required: false
        - in: query
          name: end_date
          description: Filter by end date (ISO 8601)
          schema:
            type: string
          required: false
      operationId: get_campaigns
      tags:
        - Communications Campaigns
    post:
      description: ''
      responses:
        '200':
          description: ''
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      name:
                        type: string
                        example: Declined Payment Recovery - Colombia
                      account_id:
                        type: string
                        example: 2404911d-5df9-429e-8488-ad41abea1a4b
                      organization_code:
                        type: string
                        example: 550e8400-e29b-41d4-a716-446655440000
                      country:
                        type: string
                        example: CO
                      channel:
                        type: string
                        example: WHATSAPP_MESSAGE
                      schedule:
                        type: object
                        properties:
                          daily_start_time:
                            type: string
                            example: '08:00'
                          daily_end_time:
                            type: string
                            example: '21:00'
                          time_zone:
                            type: string
                            example: America/Bogota
                      duration:
                        type: object
                        properties:
                          start_at:
                            type: string
                            example: '2025-07-01T00:00:00Z'
                          end_at:
                            type: string
                            example: '2026-07-01T00:00:00Z'
                      status:
                        type: string
                        example: ACTIVE
                      created_at:
                        type: string
                        example: '2025-07-01T12:00:00Z'
                      updated_at:
                        type: string
                        example: '2025-07-01T12:00:00Z'
              examples:
                Created:
                  summary: Created
                  value:
                    data:
                      id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      name: Declined Payment Recovery - Colombia
                      account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                      organization_code: 550e8400-e29b-41d4-a716-446655440000
                      country: CO
                      channel: WHATSAPP_MESSAGE
                      schedule:
                        daily_start_time: '08:00'
                        daily_end_time: '21:00'
                        time_zone: America/Bogota
                      duration:
                        start_at: '2025-07-01T00:00:00Z'
                        end_at: '2026-07-01T00:00:00Z'
                      status: ACTIVE
                      created_at: '2025-07-01T12:00:00Z'
                      updated_at: '2025-07-01T12:00:00Z'
          description: Created
      parameters: []
      operationId: post_campaigns
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Campaign name for identification.
                account_id:
                  type: string
                  description: Your Yuno account ID, found in the [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID).
                organization_code:
                  type: string
                  description: Your organization identifier (UUID).
                country:
                  type: string
                  description: ISO 3166-1 alpha-2 country code (e.g., `CO`, `MX`, `BR`).
                channel:
                  type: string
                  description: Communication channel.
                  enum:
                    - WHATSAPP_MESSAGE
                    - PHONE_CALL
                focus:
                  type: string
                  description: Campaign focus descriptor (e.g., `payment_recovery`).
                schedule:
                  type: object
                  properties:
                    daily_start_time:
                      type: string
                      description: Start of daily send window in `HH:MM` format.
                    daily_end_time:
                      type: string
                      description: End of daily send window in `HH:MM` format.
                    time_zone:
                      type: string
                      description: IANA timezone (e.g., `America/Bogota`) or UTC offset (e.g., `-05:00`)
                  required:
                    - daily_start_time
                    - daily_end_time
                    - time_zone
                  description: Scheduling configuration.
                duration:
                  type: object
                  properties:
                    start_at:
                      type: string
                      description: Campaign start date in ISO 8601 format.
                    end_at:
                      type: string
                      description: Campaign end date in ISO 8601 format. Must be after `start_at`.
                  required:
                    - end_at
                    - start_at
                  description: Campaign active period.
              required:
                - name
                - duration
                - schedule
                - channel
                - country
                - organization_code
                - account_id
            examples:
              Basic declined payment recovery:
                summary: Basic declined payment recovery
                value:
                  name: Mexico Card Recovery
                  account_id: YOUR_ACCOUNT_ID
                  organization_code: YOUR_ORGANIZATION_CODE
                  country: MX
                  channel: WHATSAPP_MESSAGE
                  focus: payment_recovery
                  schedule:
                    daily_start_time: '09:00'
                    daily_end_time: '20:00'
                    time_zone: America/Mexico_City
                  duration:
                    start_at: '2025-08-01T00:00:00Z'
                    end_at: '2026-08-01T00:00:00Z'
              High-value transaction recovery via phone call:
                summary: High-value transaction recovery via phone call
                value:
                  name: High Value Recovery - Phone
                  account_id: YOUR_ACCOUNT_ID
                  organization_code: YOUR_ORGANIZATION_CODE
                  country: CO
                  channel: PHONE_CALL
                  focus: payment_recovery
                  schedule:
                    daily_start_time: '09:00'
                    daily_end_time: '18:00'
                    time_zone: America/Bogota
                  duration:
                    start_at: '2025-08-01T00:00:00Z'
                    end_at: '2026-08-01T00:00:00Z'
      tags:
        - Communications Campaigns
  /campaigns/{campaign_id}:
    get:
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      name:
                        type: string
                        example: Declined Payment Recovery - Colombia
                      account_id:
                        type: string
                        example: 2404911d-5df9-429e-8488-ad41abea1a4b
                      organization_code:
                        type: string
                        example: 550e8400-e29b-41d4-a716-446655440000
                      country:
                        type: string
                        example: CO
                      channel:
                        type: string
                        example: WHATSAPP_MESSAGE
                      schedule:
                        type: object
                        properties:
                          daily_start_time:
                            type: string
                            example: '08:00'
                          daily_end_time:
                            type: string
                            example: '21:00'
                          time_zone:
                            type: string
                            example: America/Bogota
                      duration:
                        type: object
                        properties:
                          start_at:
                            type: string
                            example: '2025-07-01T00:00:00Z'
                          end_at:
                            type: string
                            example: '2026-07-01T00:00:00Z'
                      status:
                        type: string
                        example: ACTIVE
                      rules:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: f1e2d3c4-b5a6-7890-abcd-ef1234567890
                            rule_type:
                              type: string
                              example: PAYMENT_STATUS
                            values:
                              type: array
                              items:
                                type: string
                              example:
                                - DECLINED
                            conditional:
                              type: string
                              example: EQUAL
                            metadata_key:
                              type:
                                - string
                                - 'null'
                              example: null
                            status:
                              type: string
                              example: ACTIVE
                            created_at:
                              type: string
                              example: '2025-07-01T12:05:00Z'
                            updated_at:
                              type: string
                              example: '2025-07-01T12:05:00Z'
                      created_at:
                        type: string
                        example: '2025-07-01T12:00:00Z'
                      updated_at:
                        type: string
                        example: '2025-07-01T12:00:00Z'
              examples:
                OK:
                  summary: OK
                  value:
                    data:
                      id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      name: Declined Payment Recovery - Colombia
                      account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                      organization_code: 550e8400-e29b-41d4-a716-446655440000
                      country: CO
                      channel: WHATSAPP_MESSAGE
                      schedule:
                        daily_start_time: '08:00'
                        daily_end_time: '21:00'
                        time_zone: America/Bogota
                      duration:
                        start_at: '2025-07-01T00:00:00Z'
                        end_at: '2026-07-01T00:00:00Z'
                      status: ACTIVE
                      rules:
                        - id: f1e2d3c4-b5a6-7890-abcd-ef1234567890
                          rule_type: PAYMENT_STATUS
                          values:
                            - DECLINED
                          conditional: EQUAL
                          metadata_key: null
                          status: ACTIVE
                          created_at: '2025-07-01T12:05:00Z'
                          updated_at: '2025-07-01T12:05:00Z'
                      created_at: '2025-07-01T12:00:00Z'
                      updated_at: '2025-07-01T12:00:00Z'
          description: OK
        '404':
          description: Not found. The campaign does not exist for this account.
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Not Found
      parameters:
        - in: path
          name: campaign_id
          description: The campaign identifier (UUID).
          schema:
            type: string
          required: true
      operationId: get_campaigns-campaign-id
      tags:
        - Communications Campaigns
    patch:
      description: ''
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      name:
                        type: string
                        example: Declined Payment Recovery - Colombia
                      status:
                        type: string
                        example: PAUSED
                      updated_at:
                        type: string
                        example: '2025-07-15T10:00:00Z'
              examples:
                OK:
                  summary: OK
                  value:
                    data:
                      id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                      name: Declined Payment Recovery - Colombia
                      status: PAUSED
                      updated_at: '2025-07-15T10:00:00Z'
          description: ''
        '404':
          description: Not found. The campaign does not exist for this account.
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Not Found
      parameters:
        - in: path
          name: campaign_id
          schema:
            type: string
          required: true
          description: The campaign identifier (UUID).
      operationId: patch_campaigns-campaign-id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  description: New status for the campaign.
                  enum:
                    - ACTIVE
                    - PAUSED
                    - COMPLETED
                    - CANCELLED
              required:
                - status
            examples:
              Example:
                summary: Example
                value:
                  status: PAUSED
      tags:
        - Communications Campaigns
  /campaigns/{campaign_id}/rules:
    post:
      description: ''
      responses:
        '201':
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: f1e2d3c4-b5a6-7890-abcd-ef1234567890
                        rule_type:
                          type: string
                          example: PAYMENT_STATUS
                        values:
                          type: array
                          items:
                            type: string
                          example:
                            - DECLINED
                        conditional:
                          type: string
                          example: EQUAL
                        metadata_key:
                          type:
                            - string
                            - 'null'
                          example: null
                        status:
                          type: string
                          example: ACTIVE
                        created_at:
                          type: string
                          example: '2025-07-01T12:05:00Z'
                        updated_at:
                          type: string
                          example: '2025-07-01T12:05:00Z'
              examples:
                Created:
                  summary: Created
                  value:
                    data:
                      - id: f1e2d3c4-b5a6-7890-abcd-ef1234567890
                        rule_type: PAYMENT_STATUS
                        values:
                          - DECLINED
                        conditional: EQUAL
                        metadata_key: null
                        status: ACTIVE
                        created_at: '2025-07-01T12:05:00Z'
                        updated_at: '2025-07-01T12:05:00Z'
                      - id: a9b8c7d6-e5f4-3210-abcd-ef1234567890
                        rule_type: CURRENCY
                        values:
                          - COP
                        conditional: EQUAL
                        metadata_key: null
                        status: ACTIVE
                        created_at: '2025-07-01T12:05:00Z'
                        updated_at: '2025-07-01T12:05:00Z'
                      - id: 11223344-5566-7788-99aa-bbccddeeff00
                        rule_type: AMOUNT
                        values:
                          - '50000'
                        conditional: GREATER_THAN
                        metadata_key: null
                        status: ACTIVE
                        created_at: '2025-07-01T12:05:00Z'
                        updated_at: '2025-07-01T12:05:00Z'
          description: Created
        '404':
          description: Not found. The campaign does not exist for this account.
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Not Found
      parameters:
        - in: path
          name: campaign_id
          schema:
            type: string
          required: true
          description: The campaign identifier (UUID).
      operationId: post_campaigns-campaign-id-rules
      requestBody:
        content:
          application/json:
            schema:
              type: array
              description: Array of rule objects. Send the array as the request body, without a wrapping object.
              items:
                type: object
                properties:
                  rule_type:
                    type: string
                    description: >-
                      Type of rule (see [Rule Types
                      Reference](/reference/communications-campaigns#rule-types-reference))
                  values:
                    type: array
                    items:
                      type: string
                    description: Array of string values for comparison. Not required for `UNIQUE_BY_USER`.
                  conditional:
                    type: string
                    description: >-
                      Comparison operator. Not required for `USER_COMMS_PER_DAY` or `UNIQUE_BY_USER`. See [Conditional
                      Operators Reference](/reference/communications-campaigns#conditional-operators-reference).
                  metadata_key:
                    type: string
                    description: Required when `rule_type` is `METADATA`. The metadata field name to evaluate.
                required:
                  - rule_type
            examples:
              Basic declined payment recovery:
                summary: Basic declined payment recovery
                value:
                  - rule_type: PAYMENT_STATUS
                    values:
                      - DECLINED
                    conditional: EQUAL
                  - rule_type: PAYMENT_METHOD
                    values:
                      - CARD
                    conditional: EQUAL
              High-value transaction recovery via phone call:
                summary: High-value transaction recovery via phone call
                value:
                  - rule_type: PAYMENT_STATUS
                    values:
                      - DECLINED
                    conditional: EQUAL
                  - rule_type: AMOUNT_AND_CURRENCY
                    values:
                      - '500'
                      - USD
                    conditional: GREATER_THAN
                  - rule_type: USER_COMMS_PER_DAY
                    values:
                      - '1'
              Provider-specific recovery with amount range:
                summary: Provider-specific recovery with amount range
                value:
                  - rule_type: PAYMENT_STATUS
                    values:
                      - DECLINED
                    conditional: EQUAL
                  - rule_type: PROVIDER
                    values:
                      - stripe
                      - adyen
                    conditional: ONE_OF
                  - rule_type: AMOUNT
                    values:
                      - '10000'
                      - '500000'
                    conditional: BETWEEN
                  - rule_type: CURRENCY
                    values:
                      - COP
                    conditional: EQUAL
              Metadata-based segmentation:
                summary: Metadata-based segmentation
                value:
                  - rule_type: PAYMENT_STATUS
                    values:
                      - DECLINED
                    conditional: EQUAL
                  - rule_type: METADATA
                    metadata_key: vertical
                    values:
                      - restaurant
                      - grocery
                    conditional: ONE_OF
                  - rule_type: METADATA
                    metadata_key: customer_tier
                    values:
                      - premium
                      - gold
                    conditional: ONE_OF
                  - rule_type: UNIQUE_BY_USER
              Exclude specific response codes:
                summary: Exclude specific response codes
                value:
                  - rule_type: PAYMENT_STATUS
                    values:
                      - DECLINED
                    conditional: EQUAL
                  - rule_type: ISO_RESPONSE_CODE
                    values:
                      - '14'
                      - '43'
                      - '59'
                    conditional: NOT_ONE_OF
      tags:
        - Communications Campaigns
  /campaigns/{campaign_id}/rules/{rule_id}:
    get:
      description: ''
      responses:
        '200':
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: f1e2d3c4-b5a6-7890-abcd-ef1234567890
                      rule_type:
                        type: string
                        example: PAYMENT_STATUS
                      values:
                        type: array
                        items:
                          type: string
                        example:
                          - DECLINED
                      conditional:
                        type: string
                        example: EQUAL
                      metadata_key:
                        type:
                          - string
                          - 'null'
                        example: null
                      status:
                        type: string
                        example: ACTIVE
                      created_at:
                        type: string
                        example: '2025-07-01T12:05:00Z'
                      updated_at:
                        type: string
                        example: '2025-07-01T12:05:00Z'
              examples:
                Success:
                  summary: Success
                  value:
                    data:
                      id: f1e2d3c4-b5a6-7890-abcd-ef1234567890
                      rule_type: PAYMENT_STATUS
                      values:
                        - DECLINED
                      conditional: EQUAL
                      metadata_key: null
                      status: ACTIVE
                      created_at: '2025-07-01T12:05:00Z'
                      updated_at: '2025-07-01T12:05:00Z'
          description: ''
        '404':
          description: Not found. The campaign or rule does not exist for this account.
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Not Found
      parameters:
        - in: path
          name: campaign_id
          schema:
            type: string
          required: true
          description: The campaign identifier (UUID).
        - in: path
          name: rule_id
          schema:
            type: string
          required: true
          description: The rule identifier (UUID).
      operationId: get_campaigns-campaign-id-rules-rule-id
      tags:
        - Communications Campaigns
    patch:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    data:
                      id: f1e2d3c4-b5a6-7890-abcd-ef1234567890
                      rule_type: PAYMENT_STATUS
                      values:
                        - DECLINED
                      conditional: EQUAL
                      metadata_key: null
                      status: ACTIVE
                      created_at: '2025-07-01T12:05:00Z'
                      updated_at: '2025-07-01T12:05:00Z'
        '404':
          description: Not found. The campaign or rule does not exist for this account.
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Not Found
      parameters:
        - in: path
          name: campaign_id
          schema:
            type: string
          required: true
          description: The campaign identifier (UUID).
        - in: path
          name: rule_id
          schema:
            type: string
          required: true
          description: The rule identifier (UUID).
      operationId: patch_campaigns-campaign-id-rules-rule-id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                rule_type:
                  type: string
                  description: New rule type (see [Rule Types Reference](/reference/communications-campaigns#rule-types-reference))
                values:
                  type: array
                  items:
                    type: string
                  description: New values array. Not required for `UNIQUE_BY_USER`.
                conditional:
                  type: string
                  description: >-
                    New comparison operator. Not required for `USER_COMMS_PER_DAY` or `UNIQUE_BY_USER`. See [Conditional
                    Operators Reference](/reference/communications-campaigns#conditional-operators-reference).
                metadata_key:
                  type: string
                  description: New metadata key. Required when `rule_type` is `METADATA`. The metadata field name to evaluate.
            examples:
              Basic Example:
                summary: Basic Example
                value:
                  values:
                    - DECLINED
                    - REJECTED
                  conditional: ONE_OF
      tags:
        - Communications Campaigns
  /campaigns/{campaign_id}/rules/{rule_id}/status:
    patch:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    data:
                      id: 2383cfa3-f743-412b-aa8d-1d8045cb4bcd
                      campaign_id: a50d838e-4e93-4bc9-93ea-6be4ae8b1d44
                      rule_type: PAYMENT_STATUS
                      values:
                        - DECLINED
                        - REJECTED
                      conditional: ONE_OF
                      status: INACTIVE
                      created_at: '2026-10-22T03:48:20.092358Z'
                      updated_at: '2026-10-22T03:48:49.88105Z'
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 2383cfa3-f743-412b-aa8d-1d8045cb4bcd
                      campaign_id:
                        type: string
                        example: a50d838e-4e93-4bc9-93ea-6be4ae8b1d44
                      rule_type:
                        type: string
                        example: PAYMENT_STATUS
                      values:
                        type: array
                        items:
                          type: string
                        example:
                          - DECLINED
                          - REJECTED
                      conditional:
                        type: string
                        example: ONE_OF
                      status:
                        type: string
                        example: INACTIVE
                      created_at:
                        type: string
                        example: '2026-10-22T03:48:20.092358Z'
                      updated_at:
                        type: string
                        example: '2026-10-22T03:48:49.88105Z'
        '404':
          description: Not found. The campaign or rule does not exist for this account.
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Not Found
      parameters:
        - in: path
          name: campaign_id
          schema:
            type: string
          required: true
          description: The campaign identifier (UUID).
        - in: path
          name: rule_id
          schema:
            type: string
          required: true
          description: The rule identifier (UUID).
      operationId: patch_campaigns-campaign-id-rules-rule-id-status
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                status:
                  type: string
                  description: '`ACTIVE` or `INACTIVE`'
              required:
                - status
            examples:
              Example:
                summary: Example
                value:
                  status: INACTIVE
      tags:
        - Communications Campaigns
  /checkout/customers/sessions/{customer_session}/payment-methods:
    get:
      summary: Retrieve Payment Methods To Enroll
      description: ''
      operationId: retrieve-payment-methods-to-enroll-checkout
      parameters:
        - name: customer_session
          in: path
          description: >-
            The customer session that has been created for the enrollment using the [Create Customer
            Session](https://docs.y.uno/reference/create-customer-session) endpoint (UUID, 36 chars).
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    payment_methods:
                      - name: Visa Credit Card
                        description: Visa Credit Card
                        type: VISA
                        category: CARD
                        icon: https://icons.prod.y.uno/visa_logosimbolo.png
                        enrollment:
                          session: 6641e30d-ca7a-440f-b97c-24231eac6dab
                          sdk_required_action: false
                      - name: Mastercard Credit Card
                        description: Mastercard Credit Card
                        type: MASTERCARD
                        category: CARD
                        icon: https://icons.prod.y.uno/mastercard_logosimbolo.png
                        enrollment:
                          session: 6641e30d-ca7a-440f-b97c-24231eac6dab
                          sdk_required_action: false
                      - name: PayPal Wallet
                        description: PayPal Wallet
                        type: PAYPAL
                        category: WALLET
                        icon: https://icons.prod.y.uno/paypal_logosimbolo.png
                        enrollment:
                          session: 6641e30d-ca7a-440f-b97c-24231eac6dab
                          sdk_required_action: false
              schema:
                type: object
                properties:
                  payment_methods:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          example: Visa Credit Card
                        description:
                          type: string
                          example: Visa Credit Card
                        type:
                          type: string
                          example: VISA
                        category:
                          type: string
                          example: CARD
                        icon:
                          type: string
                          example: https://icons.prod.y.uno/visa_logosimbolo.png
                        enrollment:
                          type: object
                          properties:
                            session:
                              type: string
                              example: 6641e30d-ca7a-440f-b97c-24231eac6dab
                            sdk_required_action:
                              type: boolean
                              example: false
                              default: true
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Checkout
  /checkout/sessions:
    post:
      summary: Create Checkout Session
      description: ''
      operationId: create-checkout-session
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_order_id
                - payment_description
                - country
                - account_id
              properties:
                customer_id:
                  type: string
                  description: >-
                    The unique identifier of the customer, created using the [Create
                    Customer](https://docs.y.uno/reference/create-customer) endpoint (UUID, 36 chars).
                merchant_order_id:
                  type: string
                  description: The unique identifier of the customer's order (MAX 255; MIN 3).
                payment_description:
                  type: string
                  description: The description of the payment (MAX 255; MIN 3).
                callback_url:
                  type: string
                  description: >-
                    The URL where we will redirect your customer after making the purchase. Required for alternative
                    payment methods with redirection. (MAX 526; MIN 3)
                country:
                  type: string
                  description: >-
                    Country where the transaction must be processed (MAX 2; MIN 2; [ISO
                    3166-1](/reference/country-reference)).
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [the Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 chars).
                amount:
                  type: object
                  description: Specifies the payment amount object, with the value and currency.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      description: >-
                        The payment amount (multiple of 0.0001). For a zero-decimal currency (for example KRW, JPY, or
                        CLP) the value must be a whole number: see [Amounts and
                        currencies](/docs/basic-concepts/amounts-and-currencies).
                      format: float
                alternative_amount:
                  type: object
                  description: Alternative currency representation of the transaction amount.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type:
                        - string
                        - 'null'
                      description: >-
                        The alternative currency code. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      description: >-
                        The alternative amount value (multiple of 0.0001). For a zero-decimal currency (for example KRW,
                        JPY, or CLP) the value must be a whole number: see [Amounts and
                        currencies](/docs/basic-concepts/amounts-and-currencies).
                      format: float
                shipping_methods:
                  type: array
                  description: >-
                    Delivery options the customer can pick from inside a wallet widget (Fast Checkout). The first method
                    is preselected. The currency of every amount must match the session currency.
                  items:
                    required:
                      - id
                      - label
                      - amount
                      - summary_items
                    properties:
                      id:
                        type: string
                        description: >-
                          Merchant-defined identifier of the delivery method (MAX 255). Echoed back as
                          shipping.method.id on the payment.
                      label:
                        type: string
                        description: Name the wallet displays for the method (MAX 255).
                      detail:
                        type: string
                        description: Optional secondary text, such as the delivery promise (MAX 255).
                      amount:
                        type: object
                        description: Cost of the delivery method.
                        required:
                          - currency
                          - value
                        properties:
                          currency:
                            type: string
                            description: ISO 4217 currency code. Must match the session currency.
                          value:
                            type: number
                            description: Cost value (multiple of 0.0001).
                            format: float
                      delivery_estimate:
                        type: object
                        description: Optional delivery window (date-only, format YYYY-MM-DD).
                        properties:
                          from:
                            type: string
                            description: Earliest delivery date.
                          to:
                            type: string
                            description: Latest delivery date.
                      summary_items:
                        type: array
                        description: >-
                          Order breakdown the wallet sheet displays when this method is selected (at least one item; the
                          last entry is the grand total).
                        items:
                          required:
                            - id
                            - label
                            - amount
                          properties:
                            id:
                              type: string
                              description: Identifier of the line item (MAX 255).
                            label:
                              type: string
                              description: Name the wallet displays for the line item (MAX 255).
                            amount:
                              type: object
                              description: Amount of the line item. Currency must match the session currency.
                              required:
                                - currency
                                - value
                              properties:
                                currency:
                                  type: string
                                  description: ISO 4217 currency code.
                                value:
                                  type: number
                                  description: Amount value (multiple of 0.0001).
                                  format: float
                metadata:
                  type: array
                  description: Specifies a list of metadata objects. You can add up to 120 metadata objects.
                  items:
                    properties:
                      key:
                        type: string
                        description: The metadata key (MAX 48)
                      value:
                        type: string
                        description: The metadata key value (MAX 512)
                    required:
                      - key
                      - value
                    type: object
                workflow:
                  type: string
                  description: Checkout workflow type.
                  enum:
                    - SDK_CHECKOUT
                    - CHECKOUT
                    - SDK_SEAMLESS
                installments:
                  type: object
                  description: >-
                    The object to send the installment plan created in Yuno to show your customers and let them choose
                    from. This optional field is used in case a particular installments plan needs to be used in the
                    session. if not sent, we will display the installment plan created for the account for each
                    scenario, if any.
                  properties:
                    plan_id:
                      type: string
                      description: Plan Id of the installment plan created in Yuno
                    plan:
                      type: array
                      description: >-
                        Installments to show the customer in with the checkout_session. This optional struct is used in
                        case a particular installments plan needs to be used in the session and does not have an
                        installments plan created for it. if not sent, we will display the installment plan created for
                        the account for each scenario, if any.
                      items:
                        properties:
                          installment:
                            type: integer
                            description: The number of monthly installments shoppers can choose
                            format: int32
                          rate:
                            type: number
                            description: >-
                              The rate applied to the final amount of the transaction by the payment provider after
                              using installments. The value should be entered as a multiplier, not a percentage. For
                              example, to apply a 20% rate, enter `1.20` instead of `20`.
                            format: float
                        required:
                          - installment
                          - rate
                        type: object
                recurring_payment:
                  type: object
                  description: Optional object to enable and configure recurring payments (subscriptions).
                  properties:
                    description:
                      type: string
                      description: Description of the subscription plan.
                    management_url:
                      type: string
                      description: URL where the user can manage their subscription.
                    billing_agreement:
                      type: string
                      description: Billing agreement identifier.
                    regular_billing:
                      type: object
                      description: Configuration for the recurring billing cycle.
                      required:
                        - label
                        - amount
                        - interval_unit
                        - interval_count
                      properties:
                        label:
                          type: string
                          description: Descriptive label for the billing cycle (e.g. "Monthly").
                        amount:
                          type: string
                          description: Billing amount (e.g. "9.99").
                        interval_unit:
                          type: string
                          description: Unit of the billing interval.
                          enum:
                            - year
                            - month
                            - day
                            - hour
                            - minute
                        interval_count:
                          type: integer
                          description: Number of units between each billing cycle.
                    trial_billing:
                      type: object
                      description: (Optional) Trial period configuration.
                      required:
                        - label
                        - amount
                        - interval_unit
                        - interval_count
                      properties:
                        label:
                          type: string
                          description: Descriptive label for the trial billing cycle (e.g. "Free trial").
                        amount:
                          type: string
                          description: Billing amount for trial (e.g. "0.00").
                        interval_unit:
                          type: string
                          description: Unit of the trial billing interval.
                          enum:
                            - year
                            - month
                            - day
                            - hour
                            - minute
                        interval_count:
                          type: integer
                          description: Number of units for the trial period.
                checkout_id:
                  type: string
                  description: >-
                    The unique identifier (UUID) of the Custom Checkout to use for this session. Optional. When omitted,
                    the session uses the account's default checkout. The checkout must be a checkout configuration
                    published on the same account as the session, otherwise the API rejects the request with `400
                    INVALID_CHECKOUT_CODE`.
                wallet_card_acceptance:
                  type: object
                  description: >-
                    Optional. Limits which cards the customer can select in the Apple Pay payment sheet. Cards that do
                    not match are shown greyed out. Every field is optional; a field that is not sent keeps the default
                    behaviour. Values must be uppercase, and an empty list is rejected with 400 INVALID_PARAMETERS. It
                    can only be set when the session is created.
                  properties:
                    supported_countries:
                      type: array
                      description: >-
                        Countries that issued the card, as ISO 3166-1 alpha-2 codes. This is the card's issuing country,
                        not the customer's location.
                      items:
                        type: string
                      example:
                        - BR
                    supported_networks:
                      type: array
                      description: >-
                        Card networks the customer can select. Replaces the default list (AMEX, DISCOVER, ELECTRON, ELO,
                        MASTERCARD, VISA, MAESTRO).
                      items:
                        type: string
                      example:
                        - VISA
                        - MASTERCARD
                    supported_funding_types:
                      type: array
                      description: 'Funding types the customer can select: CREDIT, DEBIT, or both.'
                      items:
                        type: string
                        enum:
                          - CREDIT
                          - DEBIT
                      example:
                        - CREDIT
                summary_items:
                  type: array
                  description: >-
                    Order breakdown the wallet sheet displays (at least one item; the last entry is the grand total).
                    The currency of every amount must match the session currency. When `shipping_methods` is also sent,
                    Apple Pay uses the first method's `summary_items` instead; Google Pay does the same only when the
                    shipping address handler is registered.
                  items:
                    required:
                      - id
                      - label
                      - amount
                    properties:
                      id:
                        type: string
                        description: Identifier of the line item (MAX 255).
                      label:
                        type: string
                        description: Name the wallet displays for the line item (MAX 255).
                      amount:
                        type: object
                        description: Amount of the line item. Currency must match the session currency.
                        required:
                          - currency
                          - value
                        properties:
                          currency:
                            type: string
                            description: ISO 4217 currency code.
                          value:
                            type: number
                            description: Amount value (multiple of 0.0001).
                            format: float
            examples:
              Checkout Session (full data):
                value:
                  account_id: '{{account_id}}'
                  merchant_order_id: '1717681150'
                  payment_description: Test Cards
                  country: CO
                  customer_id: '{{customer_id}}'
                  callback_url: https://www.example.com
                  amount:
                    currency: COP
                    value: 8000
                  alternative_amount:
                    currency: USD
                    value: 2
                  metadata:
                    - key: ID
                      value: '123456'
                  recurring_payment:
                    description: Monthly subscription
                    management_url: https://example.com/manage
                    billing_agreement: BA-123
                    regular_billing:
                      label: Monthly
                      amount: '9.99'
                      interval_unit: month
                      interval_count: 1
                    trial_billing:
                      label: Free trial
                      amount: '0.00'
                      interval_unit: month
                      interval_count: 1
                  checkout_id: 6822f80c-684e-41a3-8628-78963d3d60f7
              Checkout Session (min data):
                value:
                  country: US
                  amount:
                    currency: USD
                    value: 100
                  alternative_amount:
                    currency: ARS
                    value: '140000'
                  account_id: '{{account_id}}'
                  merchant_order_id: '1717681150'
                  payment_description: Test Cards
                  customer_id: '{{customer_id}}'
              Checkout Session (alternative currency omitted):
                value:
                  account_id: '{{account_id}}'
                  merchant_order_id: '1717681150'
                  payment_description: Test Cards
                  country: CO
                  customer_id: '{{customer_id}}'
                  amount:
                    currency: COP
                    value: 8000
                summary: Checkout Session (alternative currency omitted)
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Checkout Session (min. data):
                  value:
                    merchant_order_id: '1717681150'
                    checkout_session: d313047b-4f96-44ef-bbad-caf1d7ba4c2b
                    country: US
                    payment_description: Test Cards
                    customer_id: a577ad8f-08f1-4590-9cf1-e7679b15ee84
                    callback_url: https://www.example.com/callback
                    amount:
                      currency: USD
                      value: 520
                    created_at: '2024-06-06T13:39:10.932297Z'
                    metadata: null
                    workflow: SDK_CHECKOUT
                    installments:
                      plan_id: null
                      plan: null
                    checkout_id: 6822f80c-684e-41a3-8628-78963d3d60f7
                    used: false
                Checkout Session (full data):
                  value:
                    merchant_order_id: '1717681150'
                    checkout_session: c437f4cc-7d66-40e6-a8df-7c3cde1ddca7
                    country: US
                    payment_description: Test Cards
                    customer_id: 55006822-7c79-490b-bea1-81798b9afc74
                    callback_url: https://www.example.com/?checkoutSession=c437f4cc-7d66-40e6-a8df-7c3cde1ddca7
                    amount:
                      currency: USD
                      value: 520
                    created_at: '2023-07-20T17:06:17.232130Z'
                    metadata:
                      - key: ID
                        value: '123456'
                    workflow: SDK_CHECKOUT
                    installments:
                      plan_id: null
                      plan: null
                    checkout_id: 6822f80c-684e-41a3-8628-78963d3d60f7
                    used: false
              schema:
                title: Checkout Session
                type: object
                properties:
                  merchant_order_id:
                    type: string
                    example: '1717681150'
                  checkout_session:
                    type: string
                    example: c437f4cc-7d66-40e6-a8df-7c3cde1ddca7
                  country:
                    type: string
                    example: US
                  payment_description:
                    type: string
                    example: Test Cards
                  customer_id:
                    type: string
                    example: 55006822-7c79-490b-bea1-81798b9afc74
                  callback_url:
                    type:
                      - string
                      - 'null'
                    example: https://www.example.com/?checkoutSession=c437f4cc-7d66-40e6-a8df-7c3cde1ddca7
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: integer
                        example: 520
                        default: 0
                  created_at:
                    type: string
                    example: '2023-07-20T17:06:17.232130Z'
                  metadata:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: ID
                        value:
                          type: string
                          example: '123456'
                  workflow:
                    type: string
                    example: SDK_CHECKOUT
                  installments:
                    type: object
                    properties:
                      plan_id: {}
                      plan: {}
                  checkout_id:
                    type: string
                    example: 6822f80c-684e-41a3-8628-78963d3d60f7
                  used:
                    type: boolean
                    example: false
                    description: Used.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                Invalid checkout_id:
                  value:
                    code: INVALID_CHECKOUT_CODE
                    messages:
                      - >-
                        The checkout_code is invalid for this account or is not published:
                        6822f80c-684e-41a3-8628-78963d3d60f7
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Checkout Sessions
  /checkout/sessions/{checkout_session}:
    get:
      summary: Retrieve Checkout Session
      operationId: get-checkout-session
      parameters:
        - name: checkout_session
          in: path
          description: The unique identifier of the checkout session (UUID, 36 chars).
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    merchant_order_id: '1752072398'
                    country: AR
                    payment_description: Test Cards
                    customer_id: e937e18e-a684-4d7b-a1a1-ab64c10a941d
                    callback_url: https://google.com/?checkoutSession=02caeb08-45c0-4670-9736-5bdee1b311f8
                    amount:
                      currency: ARS
                      value: 520
                    created_at: '2025-07-09T14:46:39.515251Z'
                    metadata: null
                    workflow: SDK_CHECKOUT
                    installments:
                      plan_id: null
                      plan: null
                    used: true
                    checkout_id: 6822f80c-684e-41a3-8628-78963d3d60f7
                    checkout_session: 87749bc1-1ce4-47f3-8745-72602bb6bcea
                    recurring_payment:
                      description: Monthly subscription
                      management_url: https://example.com/manage
                      billing_agreement: BA-123
                      regular_billing:
                        label: Monthly
                        amount: 9.99
                        interval_unit: month
                        interval_count: 1
                      trial_billing:
                        label: Free trial
                        amount: 0
                        interval_unit: month
                        interval_count: 1
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The unique identifier of the checkout session (MAX 64; MIN 36).
                    example: 02caeb08-45c0-4670-9736-5bdee1b311f8
                  merchant_order_id:
                    type: string
                    description: The unique identifier of the customer's order (MAX 255; MIN 3).
                    example: '1752072398'
                  country:
                    type: string
                    description: Country where the transaction must be processed (MAX 2; MIN 2; ISO 3166-1).
                    example: AR
                  payment_description:
                    type: string
                    description: The description of the payment (MAX 255; MIN 3).
                    example: Test Cards
                  customer_id:
                    type: string
                    description: The unique identifier of the customer (MAX 64; MIN 36).
                    example: e937e18e-a684-4d7b-a1a1-ab64c10a941d
                  callback_url:
                    type:
                      - string
                      - 'null'
                    description: The URL where to redirect the customer after the payment (MAX 526; MIN 3).
                    example: https://google.com/?checkoutSession=02caeb08-45c0-4670-9736-5bdee1b311f8
                  amount:
                    type: object
                    description: Specifies the payment amount object, with the value and currency.
                    properties:
                      currency:
                        type: string
                        description: The currency used to make the payment (MAX 3; MIN 3; ISO 4217).
                        example: ARS
                      value:
                        type: number
                        description: The payment amount (multiple of 0.0001).
                        example: 520
                  created_at:
                    type: string
                    description: Checkout Session creation date and time (MAX 27; MIN 27; ISO 8601).
                    example: '2025-07-09T14:46:39.515251Z'
                  metadata:
                    type:
                      - array
                      - 'null'
                    description: Specifies a list of metadata objects. You can add up to 50 metadata objects.
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          description: Specifies one metadata key.
                          example: age
                        value:
                          type: string
                          description: Specifies the value for the defined metadata key.
                          example: '28'
                  workflow:
                    type: string
                    description: The payment workflow type that specifies how the checkout session will be processed.
                    example: SDK_CHECKOUT
                  installments:
                    type: object
                    description: >-
                      The object to send the installment plan created in Yuno to show your customers and let them choose
                      from.
                    properties:
                      plan_id:
                        type:
                          - string
                          - 'null'
                        description: >-
                          Specifies a plan id created in Yuno to show your customer in the checkout session (MAX 64; MIN
                          64).
                      plan:
                        type:
                          - array
                          - 'null'
                        description: Installments to show the customer with the checkout session.
                        items:
                          type: object
                          properties:
                            installment:
                              type: integer
                              description: The number of monthly installments shoppers can choose.
                              example: 3
                            rate:
                              type: number
                              description: >-
                                The rate that will be applied to the final amount of the transaction by the payment
                                provider after using installments.
                              example: 1.5
                  used:
                    type: boolean
                    description: Specifies whether a checkout session was used previously or not.
                    example: true
                  checkout_id:
                    type: string
                    example: 6822f80c-684e-41a3-8628-78963d3d60f7
                  wallet_card_acceptance:
                    type: object
                    description: >-
                      Card acceptance rules sent when the checkout session was created. Returned only when the session
                      was created with it.
                    properties:
                      supported_countries:
                        type: array
                        description: >-
                          Countries that issued the card, as ISO 3166-1 alpha-2 codes. This is the card's issuing
                          country, not the customer's location.
                        items:
                          type: string
                        example:
                          - BR
                      supported_networks:
                        type: array
                        description: >-
                          Card networks the customer can select. Replaces the default list (AMEX, DISCOVER, ELECTRON,
                          ELO, MASTERCARD, VISA, MAESTRO).
                        items:
                          type: string
                        example:
                          - VISA
                          - MASTERCARD
                      supported_funding_types:
                        type: array
                        description: 'Funding types the customer can select: CREDIT, DEBIT, or both.'
                        items:
                          type: string
                          enum:
                            - CREDIT
                            - DEBIT
                        example:
                          - CREDIT
                  checkout_session:
                    type: string
                    example: 87749bc1-1ce4-47f3-8745-72602bb6bcea
                    description: Checkout session.
                  recurring_payment:
                    type: object
                    properties:
                      description:
                        type: string
                        example: Monthly subscription
                      management_url:
                        type: string
                        example: https://example.com/manage
                      billing_agreement:
                        type: string
                        example: BA-123
                      regular_billing:
                        type: object
                        properties:
                          label:
                            type: string
                            example: Monthly
                          amount:
                            type: number
                            example: 9.99
                          interval_unit:
                            type: string
                            example: month
                          interval_count:
                            type: integer
                            example: 1
                      trial_billing:
                        type: object
                        properties:
                          label:
                            type: string
                            example: Free trial
                          amount:
                            type: number
                            example: 0
                          interval_unit:
                            type: string
                            example: month
                          interval_count:
                            type: integer
                            example: 1
                    description: Recurring payment.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Checkout Sessions
    patch:
      summary: Update Checkout Session
      description: ''
      operationId: update-checkout-session
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_order_id
                - payment_description
                - country
                - account_id
              properties:
                customer_id:
                  type: string
                  description: >-
                    The unique identifier of the customer, created using the [Create
                    Customer](https://docs.y.uno/reference/create-customer) endpoint (UUID, 36 chars).
                merchant_order_id:
                  type: string
                  description: The unique identifier of the customer's order (MAX 255; MIN 3).
                payment_description:
                  type: string
                  description: The description of the payment (MAX 255; MIN 3).
                callback_url:
                  type: string
                  description: >-
                    The URL where we will redirect your customer after making the purchase. Required for alternative
                    payment methods with redirection. (MAX 526; MIN 3)
                country:
                  type: string
                  description: >-
                    Country where the transaction must be processed (MAX 2; MIN 2; [ISO
                    3166-1](/reference/country-reference)).
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [the Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 chars).
                  default: '{{account_id}}'
                amount:
                  type: object
                  description: Specifies the payment amount object, with the value and currency.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      description: The payment amount (multiple of 0.0001).
                      format: float
                alternative_amount:
                  type: object
                  description: Alternative currency representation of the transaction amount.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type:
                        - string
                        - 'null'
                      description: >-
                        The alternative currency code. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      description: The alternative amount value (multiple of 0.0001).
                      format: float
                metadata:
                  type: array
                  description: Specifies a list of metadata objects. You can add up to 120 metadata objects.
                  items:
                    properties:
                      key:
                        type: string
                        description: The metadata key (MAX 48)
                      value:
                        type: string
                        description: The metadata key value (MAX 512)
                    required:
                      - key
                      - value
                    type: object
                workflow:
                  type: string
                  description: Checkout workflow type.
                  enum:
                    - SDK_CHECKOUT
                    - CHECKOUT
                    - SDK_SEAMLESS
                installments:
                  type: object
                  description: >-
                    The object to send the installment plan created in Yuno to show your customers and let them choose
                    from. This optional field is used in case a particular installments plan needs to be used in the
                    session. if not sent, we will display the installment plan created for the account for each
                    scenario, if any.
                  properties:
                    plan_id:
                      type: string
                      description: Plan Id of the installment plan created in Yuno
                    plan:
                      type: array
                      description: >-
                        Installments to show the customer in with the checkout_session. This optional struct is used in
                        case a particular installments plan needs to be used in the session and does not have an
                        installments plan created for it. if not sent, we will display the installment plan created for
                        the account for each scenario, if any.
                      items:
                        properties:
                          installment:
                            type: integer
                            description: The number of monthly installments shoppers can choose
                            format: int32
                          rate:
                            type: number
                            description: >-
                              The rate applied to the final amount of the transaction by the payment provider after
                              using installments. The value should be entered as a multiplier, not a percentage. For
                              example, to apply a 20% rate, enter `1.20` instead of `20`.
                            format: float
                        required:
                          - installment
                          - rate
                        type: object
            examples:
              Update checkout session:
                value:
                  country: BR
                  amount:
                    currency: ARS
                  alternative_amount:
                    currency: ARS
                  merchant_order_id: '007'
                  payment_description: Payment Test
                  account_id: '{{account_id}}'
                summary: Update checkout session
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Success:
                  value:
                    merchant_order_id: '007'
                    checkout_session: c67ce158-6053-4661-a1de-aed5c945b935
                    country: BR
                    payment_description: Payment Test
                    callback_url: null
                    amount:
                      currency: ARS
                      value: 100
                    created_at: '2025-11-14T00:43:22.719648Z'
                    metadata: null
                    workflow: SDK_CHECKOUT
                    installments:
                      plan_id: null
                      plan: null
                    used: false
                    customer_id: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                    recurring_payment:
                      description: Monthly subscription
                      management_url: https://example.com/manage
                      billing_agreement: BA-123
                      regular_billing:
                        label: Monthly
                        amount: 9.99
                        interval_unit: month
                        interval_count: 1
                      trial_billing:
                        label: Free trial
                        amount: 0
                        interval_unit: month
                        interval_count: 1
                    checkout_id: fd9b15a0-92a4-4e2c-8e4c-27764a1aa43e
                  summary: Success
              schema:
                type: object
                properties:
                  merchant_order_id:
                    type: string
                    example: '007'
                  checkout_session:
                    type: string
                    example: c67ce158-6053-4661-a1de-aed5c945b935
                  country:
                    type: string
                    example: BR
                  payment_description:
                    type: string
                    example: Payment Test
                  callback_url: {}
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: ARS
                      value:
                        type: integer
                        example: 100
                        default: 0
                  created_at:
                    type: string
                    example: '2025-11-14T00:43:22.719648Z'
                  metadata: {}
                  workflow:
                    type: string
                    example: SDK_CHECKOUT
                  installments:
                    type: object
                    properties:
                      plan_id: {}
                      plan: {}
                  used:
                    type: boolean
                    example: false
                    default: true
                  customer_id:
                    type: string
                    example: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                    description: Customer id.
                  recurring_payment:
                    type: object
                    properties:
                      description:
                        type: string
                        example: Monthly subscription
                      management_url:
                        type: string
                        example: https://example.com/manage
                      billing_agreement:
                        type: string
                        example: BA-123
                      regular_billing:
                        type: object
                        properties:
                          label:
                            type: string
                            example: Monthly
                          amount:
                            type: number
                            example: 9.99
                          interval_unit:
                            type: string
                            example: month
                          interval_count:
                            type: integer
                            example: 1
                      trial_billing:
                        type: object
                        properties:
                          label:
                            type: string
                            example: Free trial
                          amount:
                            type: number
                            example: 0
                          interval_unit:
                            type: string
                            example: month
                          interval_count:
                            type: integer
                            example: 1
                    description: Recurring payment.
                  checkout_id:
                    type: string
                    example: fd9b15a0-92a4-4e2c-8e4c-27764a1aa43e
                    description: Checkout id.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      parameters:
        - in: path
          name: checkout_session
          schema:
            type: string
          required: true
      tags:
        - Checkout Sessions
  /checkout/sessions/{checkout_session}/payment-methods:
    get:
      summary: Retrieve Payment Methods for Checkout
      description: ''
      operationId: retrieve-payment-methods-for-checkout
      parameters:
        - name: checkout_session
          in: path
          description: The unique identifier of the checkout session (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: category
          in: query
          description: Optional category filter.
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    - name: VISA ****1111
                      vaulted_token: de00c1bd-624b-4e7b-ae28-47d86c94b15f
                      description: VISA ****1111
                      type: CARD
                      category: CARD
                      icon: https://icons.prod.y.uno/visa_logosimbolo.png
                      last_successfully_used: false
                      last_successfully_used_at: ''
                      checkout:
                        session: d313047b-4f96-44ef-bbad-caf1d7ba4c2b
                        sdk_required_action: false
                        conditions:
                          enabled: true
                          rules: null
                      card_data:
                        iin: '41111111'
                        lfd: '1111'
                        expiration_month: 3
                        expiration_year: 26
                        number_length: 16
                        security_code_length: 3
                        brand: VISA
                        issuer: JPMORGAN CHASE BANK N A
                        issuer_code: null
                        category: CREDIT
                        type: CREDIT
                      preferred: false
                    - name: Card
                      vaulted_token: null
                      description: Card
                      type: CARD
                      category: CARD
                      icon: https://icons.prod.y.uno/card_logosimbolo.png
                      last_successfully_used: null
                      last_successfully_used_at: null
                      checkout:
                        session: d313047b-4f96-44ef-bbad-caf1d7ba4c2b
                        sdk_required_action: true
                        conditions:
                          enabled: true
                          rules: null
                      preferred: false
                    - name: Bank Transfer
                      vaulted_token: null
                      description: Bank Transfer
                      type: BANK_TRANSFER
                      category: BANK_TRANSFER
                      icon: https://icons.prod.y.uno/banktransfer_logosimbolo.png
                      last_successfully_used: null
                      last_successfully_used_at: null
                      checkout:
                        session: d313047b-4f96-44ef-bbad-caf1d7ba4c2b
                        sdk_required_action: true
                        conditions:
                          enabled: false
                          rules:
                            - condition: INCLUDE
                              condition_group_code: 2b273309-2c63-4ef8-b5f8-2953abf7ad4a
                              condition_name: Country-US
                              type: COUNTRY
                              values:
                                countries:
                                  - US
                                currency: null
                                max: null
                                metadata: null
                                min: null
                      preferred: false
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      example: VISA ****1111
                    vaulted_token:
                      type: string
                      example: de00c1bd-624b-4e7b-ae28-47d86c94b15f
                    description:
                      type: string
                      example: VISA ****1111
                    type:
                      type: string
                      example: CARD
                    category:
                      type: string
                      example: CARD
                    icon:
                      type: string
                      example: https://icons.prod.y.uno/visa_logosimbolo.png
                    last_successfully_used:
                      type: boolean
                      example: false
                      default: true
                    last_successfully_used_at:
                      type: string
                      example: ''
                    checkout:
                      type: object
                      properties:
                        session:
                          type: string
                          example: d313047b-4f96-44ef-bbad-caf1d7ba4c2b
                        sdk_required_action:
                          type: boolean
                          example: false
                          default: true
                        conditions:
                          type: object
                          properties:
                            enabled:
                              type: boolean
                              example: true
                              default: true
                            rules:
                              type: array
                              description: >-
                                List of condition rules (INCLUDE/EXCLUDE) applied to the payment method. Each rule has a
                                type (e.g. METADATA, AMOUNT, COUNTRY) and values.
                              items:
                                type: object
                                properties:
                                  condition:
                                    type: string
                                    description: INCLUDE or EXCLUDE
                                    example: INCLUDE
                                  condition_group_code:
                                    type: string
                                    description: UUID of the condition group
                                    example: 2b273309-2c63-4ef8-b5f8-2953abf7ad4a
                                  condition_name:
                                    type: string
                                    description: Human-readable name of the condition
                                    example: Country-US
                                  type:
                                    type: string
                                    description: 'Rule type: METADATA, AMOUNT, COUNTRY, etc.'
                                    example: COUNTRY
                                  values:
                                    type: object
                                    description: >-
                                      Values used by the rule. Structure depends on rule type: `currency`, `max`, and
                                      `min` are strings (nullable); `countries` is an array of strings (e.g. ["AF"]);
                                      `metadata` is an array of objects with `key` and `value` (e.g. [{"key": "test",
                                      "value": "test"}]).
                                    properties:
                                      countries:
                                        type:
                                          - array
                                          - 'null'
                                        description: Array of country codes (e.g. ["AF"], ["US"]). Null when not used by the rule.
                                        items:
                                          type: string
                                        example:
                                          - AF
                                      currency:
                                        type:
                                          - string
                                          - 'null'
                                        description: Currency code when rule type is AMOUNT. Null otherwise.
                                        example: null
                                      max:
                                        type:
                                          - string
                                          - 'null'
                                        description: Maximum value when applicable. Null otherwise.
                                        example: null
                                      metadata:
                                        type:
                                          - array
                                          - 'null'
                                        description: >-
                                          Array of key-value objects (e.g. [{"key": "test", "value": "test"}]). Null
                                          when not used by the rule.
                                        items:
                                          type: object
                                          properties:
                                            key:
                                              type: string
                                            value:
                                              type: string
                                      min:
                                        type:
                                          - string
                                          - 'null'
                                        description: Minimum value when applicable. Null otherwise.
                                        example: null
                    card_data:
                      type: object
                      properties:
                        iin:
                          type: string
                          example: '41111111'
                        lfd:
                          type: string
                          example: '1111'
                        expiration_month:
                          type: integer
                          example: 3
                          default: 0
                        expiration_year:
                          type: integer
                          example: 26
                          default: 0
                        number_length:
                          type: integer
                          example: 16
                          default: 0
                        security_code_length:
                          type: integer
                          example: 3
                          default: 0
                        brand:
                          type: string
                          example: VISA
                        issuer:
                          type: string
                          example: JPMORGAN CHASE BANK N A
                        issuer_code: {}
                        category:
                          type: string
                          example: CREDIT
                        type:
                          type: string
                          example: CREDIT
                    preferred:
                      type: boolean
                      example: false
                      default: true
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Checkout Sessions
  /checkouts:
    get:
      summary: List Checkouts
      description: >-
        Lists the account's custom checkouts as summaries (no configuration or styling), sorted default-first and then
        most recently updated. Includes ARCHIVED checkouts. All filters are optional and combinable (ANDed). Without
        page or size the response is a bare array with every matching checkout; sending either switches to a paginated
        envelope.
      operationId: list-checkouts
      parameters:
        - name: name
          in: query
          description: Case-insensitive contains filter on the checkout name. LIKE metacharacters (% and _) match literally.
          schema:
            type: string
          required: false
        - name: id
          in: query
          description: Case-insensitive contains filter on the checkout identifier.
          schema:
            type: string
          required: false
        - name: status
          in: query
          description: >-
            Filter by status. Accepts one or several values (ORed): repeat the parameter or send a comma-separated list
            (status=PUBLISHED,ARCHIVED). Invalid values are rejected with 400. Absent: all statuses.
          schema:
            type: string
            enum:
              - PUBLISHED
              - NOT_PUBLISHED
              - ARCHIVED
          required: false
        - name: created_after
          in: query
          description: Inclusive lower bound on created_at (ISO-8601 instant, e.g. 2026-05-01T00:00:00Z).
          schema:
            type: string
            format: date-time
          required: false
        - name: created_before
          in: query
          description: Inclusive upper bound on created_at (ISO-8601 instant).
          schema:
            type: string
            format: date-time
          required: false
        - name: updated_after
          in: query
          description: Inclusive lower bound on updated_at (ISO-8601 instant).
          schema:
            type: string
            format: date-time
          required: false
        - name: updated_before
          in: query
          description: Inclusive upper bound on updated_at (ISO-8601 instant).
          schema:
            type: string
            format: date-time
          required: false
        - name: page
          in: query
          description: >-
            Page number (1-based). Opt-in pagination: sending page or size switches the response to the paginated
            envelope. Default 1. Non-numeric values are rejected with 400.
          schema:
            type: integer
            minimum: 1
            default: 1
          required: false
        - name: size
          in: query
          description: >-
            Page size. Opt-in pagination: sending page or size switches the response to the paginated envelope. Default
            25, capped at 100. Non-numeric values are rejected with 400.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          required: false
      responses:
        '200':
          description: >-
            The account's checkouts. A bare array when page and size are absent; a paginated envelope (data +
            pagination) when either is present. Items carry the same 7 fields in both shapes. pagination.total is the
            full filtered count, not the page's row count.
          content:
            application/json:
              schema:
                oneOf:
                  - type: array
                    items:
                      $ref: '#/components/schemas/CheckoutSummary'
                    description: Bare array of every matching checkout (page and size absent).
                    title: Without pagination
                  - type: object
                    description: Paginated envelope (page or size present).
                    properties:
                      data:
                        type: array
                        items:
                          $ref: '#/components/schemas/CheckoutSummary'
                      pagination:
                        type: object
                        properties:
                          page:
                            type: integer
                            description: Current page (1-based).
                          size:
                            type: integer
                            description: Page size.
                          total:
                            type: integer
                            description: Full filtered count, not the page's row count.
                    title: With pagination
              examples:
                Without pagination:
                  value:
                    - id: 2a8d6472-3117-4e85-8b28-d51ba3abab77
                      name: Default
                      description: Default
                      status: PUBLISHED
                      is_default: true
                      created_at: '2026-05-02T18:11:04.120Z'
                      updated_at: '2026-07-01T09:30:12.001Z'
                    - id: 0b28ff66-15f1-44c1-8d1e-bd1fefbc0a19
                      name: Promo Checkout
                      description: Seasonal promo
                      status: ARCHIVED
                      is_default: false
                      created_at: '2026-04-11T10:02:33.000Z'
                      updated_at: '2026-06-20T15:45:00.000Z'
                With pagination:
                  value:
                    data:
                      - id: 2a8d6472-3117-4e85-8b28-d51ba3abab77
                        name: Default
                        description: Default
                        status: PUBLISHED
                        is_default: true
                        created_at: '2026-05-02T18:11:04.120Z'
                        updated_at: '2026-07-01T09:30:12.001Z'
                    pagination:
                      page: 1
                      size: 25
                      total: 3
        '400':
          description: Invalid page/size values or an invalid status value.
          content:
            application/json:
              examples:
                Invalid pagination:
                  value:
                    code: ILLEGAL_ARGUMENT
                    messages:
                      - page must be a positive integer
        '401':
          description: Missing or invalid credentials, or the account is not in the beta allowlist.
      tags:
        - Checkout Builder
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          AccountCode: []
    post:
      summary: Create Checkout
      description: >-
        Creates a new custom checkout as a published clone of the account's default checkout: payment methods (including
        icon/name overrides and required-field condition sets) are copied from the default; general settings and styling
        inherit the account baseline until the checkout's first publish. The new checkout is born with status PUBLISHED
        and is never the account's default. The identifier is exposed as the top-level `id`.
      operationId: create-checkout
      parameters:
        - name: X-Idempotency-Key
          in: header
          description: >-
            Optional client key, up to 64 characters. Best-effort; re-sending the same key is not guaranteed to be
            de-duplicated.
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Checkout name. Required, non-blank, and unique per account (a duplicate name is rejected with 409).
                description:
                  type: string
                  description: Optional free-text description.
            examples:
              Name only:
                value:
                  name: Promo Checkout
              Name and description:
                value:
                  name: Promo Checkout
                  description: Seasonal promo storefront
      responses:
        '201':
          description: >-
            The created checkout. Born PUBLISHED as a clone of the account's default; `is_default` is always false on
            creation. Use `id` as the checkout_code in the other Checkout Builder endpoints.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutMutationResponse'
              examples:
                Created:
                  value:
                    id: 0b28ff66-15f1-44c1-8d1e-bd1fefbc0a19
                    name: Promo Checkout
                    description: Seasonal promo storefront
                    is_default: false
                    is_active: true
                    created_at: '2026-07-17T10:02:33.000Z'
        '400':
          description: Missing or blank `name`, or a malformed JSON body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing name:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - name is required
        '401':
          description: Not authenticated, or the account is not in the beta allowlist.
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Not authenticated
        '404':
          description: The account has no default checkout to clone from.
          content:
            application/json:
              examples:
                No default checkout:
                  value:
                    code: DEFAULT_CHECKOUT_NOT_FOUND
                    messages:
                      - 'No default Custom Checkout found for account: 78163a7c-c63c-4fdd-b72b-d5f77093a927'
        '409':
          description: A checkout with the same name already exists for the account.
          content:
            application/json:
              examples:
                Duplicate name:
                  value:
                    code: DUPLICATE_CHECKOUT_NAME
                    messages:
                      - A Custom Checkout with name 'Promo Checkout' already exists for this account
      tags:
        - Checkout Builder
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          AccountCode: []
  /checkouts/{checkout_code}:
    get:
      summary: Fetch Checkout Configuration
      description: >-
        Returns the full custom checkout for the given code: configuration and styling composed in a single response.
        The checkout identifier is exposed as the top-level `id`.
      operationId: get-checkout-configuration
      parameters:
        - name: checkout_code
          in: path
          description: >-
            The unique identifier of the checkout to retrieve (UUID, 36 chars). Non-UUID values are rejected with 400
            before processing.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: The custom checkout, with configuration and styling composed.
          content:
            application/json:
              examples:
                Success:
                  value:
                    id: 8005ca91-dcfb-4428-b9f6-49c6e3446474
                    name: Main Checkout
                    description: ''
                    status: PUBLISHED
                    is_default: true
                    created_at: '2026-01-01T00:00:00Z'
                    updated_at: '2026-05-18T13:06:08Z'
                    config:
                      payment_methods:
                        - payment_method_type: CARD
                          name: Card
                          description: Card
                          icon: https://sdk.prod.y.uno/brands/card_logosimbolo.png
                          category: CARD
                          short_name: Card
                          hint: ''
                          order_to_show: 1
                          is_active: true
                          type: PAYMENT_METHOD
                          has_enrollment: true
                          conditions_quantity: 1
                          active_enrollment_type: BOTH
                      general_settings:
                        country_documents:
                          - country_code: AR
                            documents:
                              - DNI
                              - CUIT
                      feature_flags:
                        custom_required_fields: true
                        custom_logo_icon: true
                    styling:
                      styles:
                        global:
                          accent_color: '#282A30'
                          primary_background_color: '#FFFFFF'
                          primary_text_color: '#282A30'
                          primary_button_text_color: '#FFFFFF'
                          secondary_background_color: '#ECEFF2'
                          secondary_text_color: '#84807F'
                          secondary_button_background_color: '#FFFFFF'
                          secondary_button_text_color: '#282A30'
                          font_family: Inter
                        header:
                          logo_border_size: 0
                          logo_border_color: '#282A30'
                          logo_corner_radius: 8
                          font_size: 18
                          font_weight: 700
                        button:
                          corner_radius: 8
                          border_size: 0
                          primary_border_color: '#282A30'
                          secondary_border_color: '#282A30'
                          font_size: 18
                          font_weight: 400
                      settings:
                        sdk_type:
                          web: SEAMLESS
                          mobile: SEAMLESS
                        card:
                          save_on_success: true
                          visualization_mode: ONE_STEP
                          enable_ocr: false
                          credit_card_only_processing: false
                          default_network: DOM
                        web_sdk:
                          render_mode: MODAL
                          hide_pay_button: false
                        payment_method_list:
                          unfolded_display: false
                          preselected_payment_method: false
                          condensed_checkout_view: false
                          edit_payment_method_list: false
                        ui:
                          dark_mode: false
                          show_secure_payment_tag: true
                        payment_link:
                          show_result_screen: false
                      external_fonts:
                        - family_name: Inter
                          files:
                            - weight: 400
                              url: https://staging.y.uno/sdk-static-bundles-ms/v1/static/fonts/Inter-Regular.ttf
                      payment_link_styles:
                        panel:
                          left:
                            background:
                              color: '#ECEFF2'
                            logo: data:image/jpeg;base64,...
                        checkbox:
                          color: '#282A30'
                        border:
                          color: '#282A30'
                        radio_button:
                          color: '#282A30'
                        button:
                          text:
                            color: '#876E6E'
                          background:
                            color: '#282A30'
                        published_at: '2026-05-14T19:34:06Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Checkout UUID (the checkout_code).
                    example: 8005ca91-dcfb-4428-b9f6-49c6e3446474
                  name:
                    type: string
                    description: Checkout name.
                    example: Main Checkout
                  description:
                    type: string
                    description: Checkout description.
                  status:
                    type: string
                    description: Checkout status.
                    example: PUBLISHED
                  is_default:
                    type: boolean
                    description: Whether this is the account's default checkout.
                    example: true
                  created_at:
                    type: string
                    description: Creation timestamp (ISO 8601).
                  updated_at:
                    type: string
                    description: Last updated timestamp (ISO 8601).
                  config:
                    type: object
                    description: Checkout configuration.
                    properties:
                      payment_methods:
                        type: array
                        description: >-
                          Payment methods configured for this checkout. Order is driven by `order_to_show` (lower =
                          first). Returns the full payment-method catalog available to the account, not only the ones
                          active for this checkout. Filter by `is_active: true` to get only the enabled ones.
                        items:
                          type: object
                      general_settings:
                        type: object
                        description: >-
                          General checkout settings, including accepted document types per country
                          (`country_documents`).
                      feature_flags:
                        type: object
                        description: Feature toggles for this checkout, including `custom_required_fields` and `custom_logo_icon`.
                  styling:
                    type: object
                    description: 'Checkout styling and SDK settings: `styles`, `settings`, `external_fonts`, `payment_link_styles`.'
        '400':
          description: '`checkout_code` is not a valid UUID.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
        '401':
          description: Not authenticated, or the account is not in the beta allowlist.
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Not authenticated
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
        '404':
          description: The checkout was not found for this account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
      deprecated: false
      tags:
        - Checkout Builder
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          AccountCode: []
    put:
      summary: Publish Checkout Configuration
      description: >-
        Writes configuration and/or styling for the checkout in a single call. The body may contain a `config` object, a
        `styling` object, or both; at least one is required. When the body includes `config`, `name` is also required.
        Each part is validated independently before being applied; if any rule fails, the request is rejected with a
        single aggregated 400 and nothing is applied. Configuration is a sparse upsert (omitted payment methods keep
        their previous state; new methods cannot be created). Styling is a partial merge (omitted or null fields are
        preserved).
      operationId: publish-checkout-configuration
      parameters:
        - name: checkout_code
          in: path
          description: >-
            The unique identifier of the checkout to update (UUID, 36 chars). Non-UUID values are rejected with 400
            before processing.
          schema:
            type: string
          required: true
        - name: X-Idempotency-Key
          in: header
          description: Client-generated UUID. Re-sending the same request with the same key is safe and will not double-publish.
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            examples:
              Configuration and styling:
                value:
                  name: Main Checkout
                  config:
                    payment_methods:
                      - payment_method_type: CARD
                        type: PAYMENT_METHOD
                        order_to_show: 0
                        is_active: true
                        active_enrollment_type: BOTH
                        conditions_to_override: []
                        required_fields_to_override:
                          is_active: true
                          fields:
                            - field_name: security_code
                              is_active: true
                              current_value: ALWAYS
                              conditions_to_override:
                                - name: BR only
                                  is_active: true
                                  priority: 1
                                  conditions:
                                    - condition_type: COUNTRY
                                      conditional: ONE_OF
                                      values:
                                        - BR
                          enrollment_fields: []
                          is_enrollment_active: true
                    general_settings:
                      country_documents:
                        - country_code: BR
                          documents:
                            - CPF
                            - CNPJ
                  styling:
                    styles:
                      global:
                        accent_color: '#1A73E8'
                        primary_background_color: '#FFFFFF'
                        font_family: Inter
                      header:
                        logo: https://cdn.example.com/logo.png
                        font_weight: 600
                      button:
                        corner_radius: 8
                        font_weight: 500
                    flags:
                      force_default_styles: false
              Hide a field on the card form:
                value:
                  name: My Checkout
                  config:
                    payment_methods:
                      - payment_method_type: CARD
                        type: PAYMENT_METHOD
                        order_to_show: 1
                        is_active: true
                        active_enrollment_type: BOTH
                        required_fields_to_override:
                          is_active: true
                          fields:
                            - field_name: phone
                              is_active: false
            schema:
              type: object
              description: At least one of `config` or `styling` is required. `name` is required when `config` is sent.
              properties:
                name:
                  type: string
                  minLength: 1
                  maxLength: 50
                  description: >-
                    Name of the checkout configuration (1 to 50 characters). Required when the body includes `config`; a
                    request with `config` and no `name` returns 400 `name must not be blank`. A styling-only request
                    does not need it. The value replaces the current checkout name, so send the current name to keep it.
                  example: Main checkout
                config:
                  type: object
                  description: >-
                    Checkout configuration: payment methods and general settings. Sparse upsert; omitted payment methods
                    keep their previous state.
                  properties:
                    payment_methods:
                      type: array
                      description: Payment methods to update. Order is driven by `order_to_show` (lower = first).
                      items:
                        type: object
                        properties:
                          payment_method_type:
                            type: string
                            description: Payment method type, e.g. CARD, PAYPAL, NU_PAY, GOOGLE_PAY.
                            example: CARD
                          type:
                            type: string
                            enum:
                              - PAYMENT_METHOD
                              - ENROLLMENT
                            description: >-
                              Which stored row this entry updates for the given `payment_method_type`: the one-time
                              payment flow (`PAYMENT_METHOD`) or the enrollment/saved-card flow (`ENROLLMENT`). The
                              existing row is matched by this field; omitting it means no row matches, so `fields` is
                              silently ignored (the request still returns 200, but the non-enrolled card form doesn't
                              change). `enrollment_fields` still applies when the payment method already has a stored
                              enrollment row.
                          order_to_show:
                            type: integer
                            description: Display order (>= 0). Lower is shown first.
                            example: 0
                          is_active:
                            type: boolean
                            description: Whether the method is offered.
                            example: true
                          active_enrollment_type:
                            type: string
                            enum:
                              - ENROLLMENT
                              - NO_ENROLLMENT
                              - BOTH
                              - NONE
                            description: Enrollment posture for the method.
                          conditions_to_override:
                            type: array
                            description: >-
                              Payment-method-level condition sets that gate when the method appears. A client-supplied
                              set `code` (UUID) is preserved.
                            items:
                              type: object
                          required_fields_to_override:
                            type: object
                            description: >-
                              Per-field configuration. `fields` = non-enrolled flow; `enrollment_fields` = enrolled
                              (saved-card) flow. At most one condition set per field (a second is rejected with 400).
                            properties:
                              is_active:
                                type: boolean
                              fields:
                                type: array
                                description: Per-field overrides for the non-enrolled (one-time payment) flow.
                                items:
                                  type: object
                                  properties:
                                    field_name:
                                      type: string
                                      description: The form field to override, e.g. `phone`, `security_code`.
                                      example: phone
                                    is_active:
                                      type: boolean
                                      description: >-
                                        Whether the field is shown/required on the form. This is the on/off switch for
                                        the field — set `false` to hide it.
                                      example: false
                                    current_value:
                                      type: string
                                      enum:
                                        - ALWAYS
                                        - FIRST_TIME
                                        - NONE
                                      description: >-
                                        A fixed value to apply instead of letting the payer enter one. Only meaningful
                                        for `security_code`. `NONE` returns 400 on the non-enrolled CARD flow. Unrelated
                                        to `is_active`.
                                      example: ALWAYS
                                    conditions_to_override:
                                      type: array
                                      description: >-
                                        Conditions that gate when this field override applies, e.g. by country. At most
                                        one condition set per field; a second is rejected with 400.
                                      items:
                                        type: object
                                  required:
                                    - field_name
                                    - is_active
                              enrollment_fields:
                                type: array
                                description: Per-field overrides for the enrolled (saved-card) flow. Same shape as `fields`.
                                items:
                                  type: object
                                  properties:
                                    field_name:
                                      type: string
                                      description: The form field to override, e.g. `phone`, `security_code`.
                                      example: phone
                                    is_active:
                                      type: boolean
                                      description: >-
                                        Whether the field is shown/required on the form. This is the on/off switch for
                                        the field — set `false` to hide it.
                                      example: false
                                    current_value:
                                      type: string
                                      enum:
                                        - ALWAYS
                                        - FIRST_TIME
                                        - NONE
                                      description: >-
                                        A fixed value to apply instead of letting the payer enter one. Only meaningful
                                        for `security_code`. `NONE` returns 400 on the non-enrolled CARD flow. Unrelated
                                        to `is_active`.
                                      example: ALWAYS
                                    conditions_to_override:
                                      type: array
                                      description: >-
                                        Conditions that gate when this field override applies, e.g. by country. At most
                                        one condition set per field; a second is rejected with 400.
                                      items:
                                        type: object
                                  required:
                                    - field_name
                                    - is_active
                              is_enrollment_active:
                                type: boolean
                    general_settings:
                      type: object
                      properties:
                        country_documents:
                          type: array
                          items:
                            type: object
                            properties:
                              country_code:
                                type: string
                                description: ISO 3166-1 alpha-2 country code.
                                example: BR
                              documents:
                                type: array
                                items:
                                  type: string
                                example:
                                  - CPF
                                  - CNPJ
                styling:
                  type: object
                  description: >-
                    Checkout styling and SDK settings. Partial merge; omitted or null fields are preserved; use
                    `flags.force_default_styles` to reset. `settings.urls`, `settings.click_to_pay`, `settings.form` and
                    `settings.google_pay` are beta-locked and rejected if sent with a non-empty value.
                  properties:
                    styles:
                      type: object
                      description: >-
                        global, header and button styles. All `*_color` fields must be a 6- or 8-digit hex color
                        (#RRGGBB / #RRGGBBAA); `font_weight` must be one of 100..900 (step 100); `font_family` must be
                        in the supported catalog or declared in `external_fonts`. Logos must be an HTTPS URL to a public
                        host or a relative path (no data:/SVG/javascript:).
                    settings:
                      type: object
                      description: >-
                        SDK settings, forwarded to the checkout SDK. `settings.urls`, `settings.click_to_pay`,
                        `settings.form` and `settings.google_pay` are beta-locked and rejected if sent with a non-empty
                        value.
                      properties:
                        card:
                          type: object
                          description: Card SDK settings.
                          properties:
                            save_on_success:
                              type: boolean
                              description: Offer to save the card for future payments.
                            visualization_mode:
                              type: string
                              description: Card form visualization mode.
                            enable_ocr:
                              type: boolean
                              description: Enable card scanning (OCR).
                            credit_card_only_processing:
                              type: boolean
                              description: Process credit cards only.
                            enable_payment_retry:
                              type: boolean
                              description: Allow retrying a declined card payment.
                            default_network:
                              type: string
                              description: 'Default card network: DOM or INT.'
                        sdk_type:
                          type: object
                        web_sdk:
                          type: object
                        payment_method_list:
                          type: object
                        ui:
                          type: object
                    flags:
                      type: object
                      properties:
                        force_default_styles:
                          type: boolean
                    external_fonts:
                      type: array
                      description: Custom fonts. `files[].url` must be an HTTPS URL to a public host.
                      items:
                        type: object
                    payment_link_styles:
                      type: object
      responses:
        '200':
          description: >-
            Summary of the updated checkout. The configuration and styling are not returned in this response; read them
            with [Fetch checkout configuration](/reference/checkout-builder/fetch-checkout-configuration). Its
            identifier is exposed as the top-level `id`.
          content:
            application/json:
              examples:
                Success:
                  value:
                    id: 8005ca91-dcfb-4428-b9f6-49c6e3446474
                    name: Main Checkout
                    description: Default checkout
                    is_default: true
                    is_active: true
                    created_at: '2026-10-22T03:16:36Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 8005ca91-dcfb-4428-b9f6-49c6e3446474
                  name:
                    type: string
                    example: Main Checkout
                  description:
                    type: string
                    example: Default checkout
                  is_default:
                    type: boolean
                    example: true
                  is_active:
                    type: boolean
                    example: true
                  created_at:
                    type: string
                    example: '2026-10-22T03:16:36Z'
        '400':
          description: >-
            Validation failed. All violations are aggregated into a single response. A malformed JSON body also returns
            400.
          content:
            application/json:
              examples:
                Invalid parameters:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - payment_methods[0].order_to_show must be >= 0
                      - 'styles.global.accent_color must be a 6- or 8-digit hex color (#RRGGBB or #RRGGBBAA)'
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
        '401':
          description: Not authenticated, or the account is not in the beta allowlist.
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Not authenticated
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
        '404':
          description: The checkout was not found for this account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
      deprecated: false
      tags:
        - Checkout Builder
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          AccountCode: []
    patch:
      summary: Manage Checkout Lifecycle
      description: >-
        Renames, publishes, unpublishes, archives, restores, or promotes the checkout. The body carries any combination
        of `name`, `description`, `status`, and `is_default`; at least one field is required (an empty body is rejected
        with 400). Status transitions follow the lifecycle state machine: publish (`PUBLISHED`) is only valid from
        `NOT_PUBLISHED`; an ARCHIVED checkout is restored in two steps (`status: NOT_PUBLISHED` first, then `status:
        PUBLISHED`); patching to the current status is rejected. Metadata (`name`/`description`) remains editable while
        ARCHIVED. `is_default` accepts only `true`: it promotes the checkout to account default, force-publishing it
        from any state, and atomically demotes the previous default; when `is_default: true` is sent together with
        `status`, the promotion wins and `status` is ignored. The default checkout cannot be archived or unpublished.
      operationId: manage-checkout-lifecycle
      parameters:
        - name: checkout_code
          in: path
          description: >-
            The unique identifier of the checkout to update (UUID, 36 chars). Non-UUID values are rejected with 400
            before processing.
          schema:
            type: string
          required: true
        - name: X-Idempotency-Key
          in: header
          description: >-
            Optional client key, up to 64 characters. Best-effort; re-sending the same key is not guaranteed to be
            de-duplicated.
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: >-
                    New checkout name. Unique per account (a duplicate name is rejected with 409). Editable in any
                    status, including ARCHIVED.
                description:
                  type: string
                  description: New checkout description. Editable in any status, including ARCHIVED.
                status:
                  type: string
                  enum:
                    - PUBLISHED
                    - NOT_PUBLISHED
                    - ARCHIVED
                  description: >-
                    Target lifecycle status. PUBLISHED is only reachable from NOT_PUBLISHED; NOT_PUBLISHED is reachable
                    from PUBLISHED (unpublish) or ARCHIVED (restore); ARCHIVED is reachable from PUBLISHED or
                    NOT_PUBLISHED. Any other transition (including patching to the current status) is rejected with 400.
                    Unknown values are rejected with 400.
                is_default:
                  type: boolean
                  description: >-
                    Only `true` is accepted: promotes this checkout to account default, force-publishing it from any
                    state and atomically demoting the previous default. `false` is rejected with 400; demote by
                    promoting another checkout instead.
            examples:
              Rename:
                value:
                  name: Promo Checkout (renamed)
              Publish:
                value:
                  status: PUBLISHED
              Unpublish:
                value:
                  status: NOT_PUBLISHED
              Archive:
                value:
                  status: ARCHIVED
              Restore an archived checkout (step 1 of 2):
                value:
                  status: NOT_PUBLISHED
              Promote to default:
                value:
                  is_default: true
      responses:
        '200':
          description: >-
            The updated checkout summary. The identifier is exposed as the top-level `id`. Read the resulting `status`
            with the Fetch endpoint.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CheckoutMutationResponse_2'
              examples:
                Updated:
                  value:
                    id: 0b28ff66-15f1-44c1-8d1e-bd1fefbc0a19
                    name: Promo Checkout (renamed)
                    description: Seasonal promo storefront
                    is_default: false
                    is_active: true
                    created_at: '2026-07-17T10:02:33.000Z'
        '400':
          description: >-
            Empty body, invalid or same-status transition, unknown `status` value, `is_default: false`, a non-UUID
            `checkout_code`, or a malformed JSON body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Invalid transition (e.g. direct ARCHIVED → PUBLISHED):
                  value:
                    code: INVALID_STATUS_TRANSITION
                    messages:
                      - Cannot transition from 'ARCHIVED' via this operation
                Empty body:
                  value:
                    code: INVALID_PATCH_BODY
                    messages:
                      - body is empty
                is_default false:
                  value:
                    code: INVALID_OPERATION
                    messages:
                      - 'isDefault: false direct demotion is not allowed; promote another checkout instead'
        '401':
          description: Not authenticated, or the account is not in the beta allowlist.
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Not authenticated
        '404':
          description: The checkout was not found for this account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Checkout not found:
                  value:
                    code: CHECKOUT_NOT_FOUND
                    messages:
                      - 'No Custom Checkout found for checkout_code: 0b28ff66-15f1-44c1-8d1e-bd1fefbc0a19'
        '409':
          description: Duplicate name, or the checkout is the account's default and cannot be archived or unpublished.
          content:
            application/json:
              examples:
                Duplicate name:
                  value:
                    code: DUPLICATE_CHECKOUT_NAME
                    messages:
                      - A Custom Checkout with name 'Promo Checkout' already exists for this account
                Archive the default:
                  value:
                    code: CANNOT_ARCHIVE_DEFAULT_CHECKOUT
                    messages:
                      - Cannot archive the default Custom Checkout. Promote another checkout as default first.
                Unpublish the default:
                  value:
                    code: CANNOT_UNPUBLISH_DEFAULT_CHECKOUT
                    messages:
                      - Cannot unpublish the default Custom Checkout. Promote another checkout as default first.
      tags:
        - Checkout Builder
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          AccountCode: []
  /connections:
    post:
      summary: Create a Connection
      operationId: create-connection
      description: Creates a connection in ACTIVE status.
      parameters:
        - name: X-account-code
          in: header
          required: true
          description: The account that owns the connection.
          schema:
            type: string
        - name: X-Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_connection_id
                - provider_id
                - params
              properties:
                merchant_connection_id:
                  type: string
                  example: stripe-us-prod-001
                provider_id:
                  type: string
                  example: STRIPE
                flow_type:
                  type: string
                  description: Optional. Defaults to PAYIN.
                  example: PAYIN
                payment_methods:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  description: >-
                    Optional. Subset of the provider's payment_method_type[]. Omit it to enable every payment method the
                    provider supports, including ones added later. If sent, it must contain at least one value: an empty
                    array is rejected with 400 VALIDATION_ERROR.
                  example:
                    - CARD
                params:
                  type: array
                  items:
                    type: object
                    properties:
                      param_id:
                        type: string
                      value:
                        type:
                          - string
                          - boolean
                          - number
                          - array
                costs:
                  type: array
                  description: Optional. Per-connection cost configuration.
                  items:
                    type: object
                    properties:
                      sort_number:
                        type: integer
                      cost_name:
                        type: string
                      currency:
                        type: string
                      cost_values:
                        type: object
            example:
              merchant_connection_id: stripe-us-prod-001
              provider_id: STRIPE
              flow_type: PAYIN
              payment_methods:
                - CARD
              params:
                - param_id: INTEGRATION_TYPE
                  value: STRIPE_CHARGES
                - param_id: SECRET_KEY
                  value: sk_live_...
                - param_id: RADAR_FRAUD_ANALYSIS
                  value: false
                - param_id: SEND_RECEIPT_EMAIL_PARAMETER
                  value: false
                - param_id: SETUP_FUTURE_USAGE
                  value: false
                - param_id: ORDER_ID
                  value: DEFAULT
              costs:
                - sort_number: 1
                  cost_name: Transaction Fee
                  currency: USD
                  cost_values:
                    successful:
                      fixed_fee: 0.3
                      percentage: 2.9
                    unsuccessful:
                      fixed_fee: 0
                      percentage: 0
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  connection_id:
                    type: string
                    example: f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e
                  merchant_connection_id:
                    type: string
                    example: stripe-us-prod-001
                  provider_id:
                    type: string
                    example: STRIPE
                  status:
                    type: string
                    example: ACTIVE
                  flow_type:
                    type: string
                    example: PAYIN
                  payment_methods:
                    type: array
                    items:
                      type: string
                    example:
                      - CARD
                  params:
                    type: array
                    items:
                      type: object
                  costs:
                    type: array
                    items:
                      type: object
                  created_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T10:24:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T10:24:00Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: validation_error
                  code:
                    type: string
                    example: MISSING_REQUIRED_PARAM
                  message:
                    type: string
                    example: Required param 'SECRET_KEY' is missing
                  details:
                    type: object
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: auth_error
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  message:
                    type: string
                    example: Not authenticated
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: conflict
                  code:
                    type: string
                    example: CONNECTION_MERCHANT_ID_CONFLICT
                  message:
                    type: string
                    example: A connection with this merchant_connection_id already exists
      tags:
        - Organizations
  /connections/catalog/{provider_id}:
    get:
      summary: Get Provider Catalog
      operationId: get-provider-catalog
      description: Returns the schema you need to fill in to create a connection for a given provider.
      parameters:
        - name: provider_id
          in: path
          required: true
          schema:
            type: string
            example: ADYEN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  payment_method_type:
                    type: array
                    items:
                      type: string
                    example:
                      - CARD
                      - GOOGLE_PAY
                      - APPLE_PAY
                      - ACH
                      - KLARNA_PAY_NOW
                      - KLARNA_PAY_LATER
                      - IDEAL
                      - GIROPAY
                      - BANCONTACT
                      - SEPA_DEBIT
                  params:
                    type: array
                    items:
                      type: object
                      properties:
                        param_id:
                          type: string
                          example: API_KEY
                        field_type:
                          type: string
                          example: string
                          enum:
                            - string
                            - boolean
                            - array
                            - number
                        description:
                          type: string
                          example: Stripe Secret API Key
                        editable_field:
                          type: boolean
                          example: true
                        optional:
                          type: boolean
                          example: false
                        secret:
                          type: boolean
                          example: true
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: auth_error
                  code:
                    type: string
                    example: INSUFFICIENT_SCOPE
                  message:
                    type: string
                    example: API key is missing required scope 'connections:read'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: not_found
                  code:
                    type: string
                    example: PROVIDER_NOT_FOUND
                  message:
                    type: string
                    example: Provider 'NOT_A_PROVIDER' is not in the Yuno provider catalog
      tags:
        - Organizations
  /connections/{connection_id}:
    get:
      summary: Retrieve a Connection
      operationId: retrieve-connection
      description: Returns a connection you previously created.
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  connection_id:
                    type: string
                    example: f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e
                  merchant_connection_id:
                    type: string
                    example: stripe-us-prod-001
                  provider_id:
                    type: string
                    example: STRIPE
                  status:
                    type: string
                    example: ACTIVE
                  flow_type:
                    type: string
                    example: PAYIN
                  payment_methods:
                    type: array
                    items:
                      type: string
                    example:
                      - CARD
                      - GOOGLE_PAY
                      - APPLE_PAY
                  params:
                    type: array
                    items:
                      type: object
                      properties:
                        param_id:
                          type: string
                          example: merchantAccount
                        value:
                          type: string
                          example: ACME_LIVE
                  costs:
                    type: array
                    items:
                      type: object
                      properties:
                        sort_number:
                          type: integer
                          example: 1
                        cost_name:
                          type: string
                          example: Transaction Fee
                        currency:
                          type: string
                          example: USD
                  created_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T10:24:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T10:24:00Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: auth_error
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  message:
                    type: string
                    example: Not authenticated
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: not_found
                  code:
                    type: string
                    example: CONNECTION_NOT_FOUND
                  message:
                    type: string
                    example: Connection '...' was not found
      tags:
        - Organizations
    patch:
      summary: Update a Connection
      operationId: update-connection
      description: Partially updates a connection. Only the fields present in the body are applied.
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
              properties:
                account_id:
                  type: string
                  format: uuid
                  example: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                merchant_connection_id:
                  type: string
                  maxLength: 255
                  example: stripe-us-prod-002
                params:
                  type: array
                  items:
                    type: object
                    properties:
                      param_id:
                        type: string
                        example: SECRET_KEY
                      value:
                        type: string
                        example: sk_live_...
                costs:
                  type: array
                  items:
                    type: object
                    properties:
                      sort_number:
                        type: integer
                        example: 1
                      cost_name:
                        type: string
                        example: Transaction Fee
                      currency:
                        type: string
                        example: USD
                      cost_values:
                        type: object
                        properties:
                          successful:
                            type: object
                            properties:
                              fixed_fee:
                                type: number
                                example: 0.25
                              percentage:
                                type: number
                                example: 2.7
                          unsuccessful:
                            type: object
                            properties:
                              fixed_fee:
                                type: number
                                example: 0
                              percentage:
                                type: number
                                example: 0
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  connection_id:
                    type: string
                    example: f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e
                  merchant_connection_id:
                    type: string
                    example: stripe-us-prod-002
                  provider_id:
                    type: string
                    example: STRIPE
                  status:
                    type: string
                    example: ACTIVE
                  flow_type:
                    type: string
                    example: PAYIN
                  payment_methods:
                    type: array
                    items:
                      type: string
                    example:
                      - CARD
                  params:
                    type: array
                    items:
                      type: object
                      properties:
                        param_id:
                          type: string
                          example: SECRET_KEY
                        value:
                          type: string
                          example: '***'
                  costs:
                    type: array
                    items:
                      type: object
                      properties:
                        sort_number:
                          type: integer
                          example: 1
                        cost_name:
                          type: string
                          example: Transaction Fee
                        currency:
                          type: string
                          example: USD
                  created_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T10:24:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T11:02:17Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: validation_error
                  code:
                    type: string
                    example: UNKNOWN_PARAM
                  message:
                    type: string
                    example: Param 'FOO' is not part of provider 'STRIPE' catalog
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: auth_error
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  message:
                    type: string
                    example: Not authenticated
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: not_found
                  code:
                    type: string
                    example: CONNECTION_NOT_FOUND
                  message:
                    type: string
                    example: Connection '...' was not found
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: conflict
                  code:
                    type: string
                    example: CONNECTION_MERCHANT_ID_CONFLICT
                  message:
                    type: string
                    example: A connection with merchant_connection_id 'stripe-us-prod-002' already exists in this account
      tags:
        - Organizations
    delete:
      summary: Delete a Connection
      operationId: delete-connection
      description: >-
        Deletes a connection. Known issue: the call returns 204, but retrieving the connection afterwards still returns
        ACTIVE.
      parameters:
        - name: connection_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: X-Account-Code
          in: header
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: No Content
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: auth_error
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  message:
                    type: string
                    example: Not authenticated
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: not_found
                  code:
                    type: string
                    example: CONNECTION_NOT_FOUND
                  message:
                    type: string
                    example: Connection '...' was not found
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: conflict
                  code:
                    type: string
                    example: CONNECTION_IN_USE
                  message:
                    type: string
                    example: Connection '...' is still referenced by an active routing rule
      tags:
        - Organizations
  /currency-conversion:
    post:
      summary: Get Conversion Rate
      operationId: get-conversion-rate
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - amount
                - provider_data
                - payment_method
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on the [Yuno
                    dashboard](https://dashboard.y.uno) (UUID; 36 chars).
                amount:
                  type: object
                  description: Amount to be converted
                  required:
                    - value
                    - currency
                  properties:
                    value:
                      type: number
                      description: Amount to convert (must be equal or greater than 0).
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217); 3
                        chars).
                    currency_conversion:
                      type: object
                      description: Information to make the conversion
                      required:
                        - cardholder_currency
                      properties:
                        cardholder_currency:
                          type: string
                          description: >-
                            The currency to make the conversion ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217); 3
                            chars).
                provider_data:
                  type: object
                  description: Provider information
                  required:
                    - id
                  properties:
                    id:
                      type: string
                      description: >-
                        Identification of the provider. The provider must be connected to the account and appear in the
                        account's PAYMENT routing. Otherwise the API returns `PROVIDER_NOT_CONFIG`.
                      enum:
                        - CIBC
                        - MERCADO_PAGO
                payment_method:
                  type: object
                  description: Payment method information. Required. Provide one of `card`, `token` or `vaulted_token`.
                  properties:
                    token:
                      type: string
                      description: Payment method token (UUID; 36 chars).
                    vaulted_token:
                      type: string
                      description: Vaulted payment method token (UUID; 36 chars).
                    card:
                      type: object
                      description: Card information required for the currency conversion. Only for PCI compliant merchants.
                      properties:
                        card_data:
                          type: object
                          description: Card data information
                          required:
                            - number
                            - holder_name
                            - expiration_month
                            - expiration_year
                          properties:
                            number:
                              type: string
                              description: Card number without separators. Available for PCI-certified merchants (MIN 8).
                            expiration_month:
                              type: integer
                              description: Card expiration month (01-12). Available for PCI-certified merchants (2 chars).
                              format: int32
                            expiration_year:
                              type: integer
                              description: >-
                                Card expiration year as 4 digits, for example `2030`. The year cannot be in the past.
                                Available for PCI-certified merchants (4 chars).
                              format: int32
                            holder_name:
                              type: string
                              description: Cardholder full name. Available for PCI-certified merchants (MIN 3; MAX 255).
            examples:
              Example:
                value:
                  account_id: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
                  amount:
                    value: 10000
                    currency: COP
                    currency_conversion:
                      cardholder_currency: USD
                  provider_data:
                    id: CIBC
                  payment_method:
                    card:
                      card_data:
                        number: '4111111111111111'
                        holder_name: JOHN DOE
                        expiration_month: 12
                        expiration_year: 2030
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 599cc714-9bb6-4a3c-8465-c360cd47e04e
                    amount:
                      value: 10000
                      currency: COP
                      currency_conversion:
                        cardholder_currency: USD
                        cardholder_amount: 2.58
                        rate: 3879.812207
                        provider_data:
                          id: CIBC
                          transaction_id: 274c4fc9a1e3c27625fc4d925e0331783c3c5c94358280158d3980e97ac66795a80970d48c176078f394106345c05215431bbc6260a6980db3a2e0b753db1a3f32d0c8adfc02c18794dc07ac1c13a14e581a3d78ba4b9c5afdae537f38cc495628239b7470a997cc8d5b51ae787603b64de3b19cea09f825f6fd13896656b75092bd7fe19a0560df29b94
                          response_code: '2000'
                          response_message: Successful
                          raw_response:
                            fxRateInquiryResponse:
                              localDate: 210
                              localTime: 180927
                              merchantID: '18695684'
                              rateEndTime: 1739212767659
                              ratePreferenceCode: R1
                              rateStartTime: 1739210967659
                              rateValidityPeriod: 30
                              rates:
                                - cardholderAmount: 2.58
                                  cardholderCurrency: '840'
                                  merchantAmount: 10000
                                  merchantCurrency: '170'
                                  rate: 3879.812207
                                  rateInquiryRef: 274c4fc9a1e3c27625fc4d925e0331783c3c5c94358280158d3980e97ac66795a80970d48c176078f394106345c05215431bbc6260a6980db3a2e0b753db1a3f32d0c8adfc02c18794dc07ac1c13a14e581a3d78ba4b9c5afdae537f38cc495628239b7470a997cc8d5b51ae787603b64de3b19cea09f825f6fd13896656b75092bd7fe19a0560df29b94
                              responseCode: '2000'
                              responseMessage: Successful
                              sessionId: 2a587fa2-e7da-11ef-8b88-7e36493c761f
                              terminalID: CT000001
                              traceNumber: 3594
                    expired_at: '2025-02-10T18:39:27Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 599cc714-9bb6-4a3c-8465-c360cd47e04e
                  amount:
                    type: object
                    properties:
                      value:
                        type: integer
                        example: 10000
                        default: 0
                      currency:
                        type: string
                        example: COP
                      currency_conversion:
                        type: object
                        properties:
                          cardholder_currency:
                            type: string
                            example: USD
                          cardholder_amount:
                            type: number
                            example: 2.58
                            default: 0
                          rate:
                            type: number
                            example: 3879.812207
                            default: 0
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: CIBC
                              transaction_id:
                                type: string
                                example: 274c4fc9a1e3c27625fc4d925e0331783c3c5c94358280158d3980e97ac66795a80970d48c176078f394106345c05215431bbc6260a6980db3a2e0b753db1a3f32d0c8adfc02c18794dc07ac1c13a14e581a3d78ba4b9c5afdae537f38cc495628239b7470a997cc8d5b51ae787603b64de3b19cea09f825f6fd13896656b75092bd7fe19a0560df29b94
                              response_code:
                                type: string
                                example: '2000'
                              response_message:
                                type: string
                                example: Successful
                              raw_response:
                                type: object
                                properties:
                                  fxRateInquiryResponse:
                                    type: object
                                    properties:
                                      localDate:
                                        type: integer
                                        example: 210
                                        default: 0
                                      localTime:
                                        type: integer
                                        example: 180927
                                        default: 0
                                      merchantID:
                                        type: string
                                        example: '18695684'
                                      rateEndTime:
                                        type: integer
                                        example: 1739212767659
                                        default: 0
                                      ratePreferenceCode:
                                        type: string
                                        example: R1
                                      rateStartTime:
                                        type: integer
                                        example: 1739210967659
                                        default: 0
                                      rateValidityPeriod:
                                        type: integer
                                        example: 30
                                        default: 0
                                      rates:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            cardholderAmount:
                                              type: number
                                              example: 2.58
                                              default: 0
                                            cardholderCurrency:
                                              type: string
                                              example: '840'
                                            merchantAmount:
                                              type: integer
                                              example: 10000
                                              default: 0
                                            merchantCurrency:
                                              type: string
                                              example: '170'
                                            rate:
                                              type: number
                                              example: 3879.812207
                                              default: 0
                                            rateInquiryRef:
                                              type: string
                                              example: 274c4fc9a1e3c27625fc4d925e0331783c3c5c94358280158d3980e97ac66795a80970d48c176078f394106345c05215431bbc6260a6980db3a2e0b753db1a3f32d0c8adfc02c18794dc07ac1c13a14e581a3d78ba4b9c5afdae537f38cc495628239b7470a997cc8d5b51ae787603b64de3b19cea09f825f6fd13896656b75092bd7fe19a0560df29b94
                                      responseCode:
                                        type: string
                                        example: '2000'
                                      responseMessage:
                                        type: string
                                        example: Successful
                                      sessionId:
                                        type: string
                                        example: 2a587fa2-e7da-11ef-8b88-7e36493c761f
                                      terminalID:
                                        type: string
                                        example: CT000001
                                      traceNumber:
                                        type: integer
                                        example: 3594
                                        default: 0
                  expired_at:
                    type: string
                    example: '2025-02-10T18:39:27Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Conversion Rate
      security:
        - XPublicApiKey: []
          XPrivateSecretKey: []
  /customers:
    get:
      summary: Retrieve Customer by External ID
      description: ''
      operationId: retrieve-customer-by-external-id
      parameters:
        - name: merchant_customer_id
          in: query
          description: The unique identifier of the customer in the external merchant (MAX 255; MIN 1).
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 94121f98-98f7-4d57-aa5f-228401d35b12
                    merchant_customer_id: '1744402154'
                    first_name: John
                    last_name: Doe
                    gender: F
                    date_of_birth: '1990-02-28'
                    email: john.doe@gmail.com
                    nationality: CO
                    country: CO
                    document:
                      document_type: CC
                      document_number: '1010268952'
                    phone:
                      number: '3132450765'
                      country_code: '57'
                    billing_address:
                      address_line_1: 'Calle 34 # 56 - 78'
                      address_line_2: Apartamento 502, Torre I
                      country: CO
                      state: Cundinamarca
                      city: Bogotá
                      zip_code: '111111'
                      neighborhood: Test
                    shipping_address:
                      address_line_1: 'Calle 34 # 56 - 78'
                      address_line_2: Apartamento 502, Torre I
                      country: CO
                      state: Cundinamarca
                      city: Bogotá
                      zip_code: '111111'
                      neighborhood: Test
                    metadata:
                      - key: ID
                        value: '1234'
                    created_at: '2025-04-11T20:09:14.927971Z'
                    updated_at: '2025-04-11T20:09:14.927972Z'
                    merchant_customer_created_at: '2023-08-05T14:43:58.980718Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 94121f98-98f7-4d57-aa5f-228401d35b12
                  merchant_customer_id:
                    type: string
                    example: '1744402154'
                  first_name:
                    type: string
                    example: John
                  last_name:
                    type: string
                    example: Doe
                  gender:
                    type: string
                    example: F
                  date_of_birth:
                    type: string
                    example: '1990-02-28'
                  email:
                    type: string
                    example: john.doe@gmail.com
                  nationality:
                    type: string
                    example: CO
                  country:
                    type: string
                    example: CO
                  document:
                    type: object
                    properties:
                      document_type:
                        type: string
                        example: CC
                      document_number:
                        type: string
                        example: '1010268952'
                  phone:
                    type: object
                    properties:
                      number:
                        type: string
                        example: '3132450765'
                      country_code:
                        type: string
                        example: '57'
                  billing_address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 'Calle 34 # 56 - 78'
                      address_line_2:
                        type: string
                        example: Apartamento 502, Torre I
                      country:
                        type: string
                        example: CO
                      state:
                        type: string
                        example: Cundinamarca
                      city:
                        type: string
                        example: Bogotá
                      zip_code:
                        type: string
                        example: '111111'
                      neighborhood:
                        type: string
                        example: Test
                  shipping_address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 'Calle 34 # 56 - 78'
                      address_line_2:
                        type: string
                        example: Apartamento 502, Torre I
                      country:
                        type: string
                        example: CO
                      state:
                        type: string
                        example: Cundinamarca
                      city:
                        type: string
                        example: Bogotá
                      zip_code:
                        type: string
                        example: '111111'
                      neighborhood:
                        type: string
                        example: Test
                  metadata:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: ID
                        value:
                          type: string
                          example: '1234'
                  created_at:
                    type: string
                    example: '2025-04-11T20:09:14.927971Z'
                  updated_at:
                    type: string
                    example: '2025-04-11T20:09:14.927972Z'
                  merchant_customer_created_at:
                    type: string
                    example: '2023-08-05T14:43:58.980718Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Customer not found:
                  value:
                    code: CUSTOMER_NOT_FOUND
                    messages:
                      - Customer not found.
                  summary: Customer not found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Invalid credentials:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid Credentials
                  summary: Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Authorization required:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
                  summary: Authorization required
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
        '404':
          description: '404'
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: CUSTOMER_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Customer not found
      deprecated: false
      tags:
        - Customers
    post:
      summary: Create Customer
      description: ''
      operationId: create-customer
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_customer_id
              properties:
                merchant_customer_id:
                  type: string
                  description: >-
                    The unique identifier of the customer in the external merchant (MAX 255; MIN 3). Unique per
                    organization, not per account: reusing an id already used by another account in the same
                    organization returns CUSTOMER_ID_DUPLICATED.
                merchant_customer_created_at:
                  type: string
                  description: >-
                    Customer's registration date on the merchants platform (MAX 27; MIN 27; [ISO
                    8601](https://en.wikipedia.org/wiki/ISO_8601))
                  format: date-time
                first_name:
                  type: string
                  description: The customer's first name (MAX 255; MIN 3).
                last_name:
                  type: string
                  description: The customer's last name (MAX 255; MIN 3).
                gender:
                  type: string
                  description: The customer's gender.
                date_of_birth:
                  type: string
                  description: The customer's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
                email:
                  type: string
                  description: The customer's e-mail (MAX 255; MIN 3).
                nationality:
                  type: string
                  description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                  enum:
                    - AF
                    - AX
                    - AL
                    - DZ
                    - AS
                    - AD
                    - AO
                    - AI
                    - AQ
                    - AG
                    - AR
                    - AM
                    - AW
                    - AU
                    - AT
                    - AZ
                    - BS
                    - BH
                    - BD
                    - BB
                    - BY
                    - BE
                    - BZ
                    - BJ
                    - BM
                    - BT
                    - BO
                    - BQ
                    - BA
                    - BW
                    - BV
                    - BR
                    - IO
                    - BN
                    - BG
                    - BF
                    - BI
                    - CV
                    - KH
                    - CM
                    - CA
                    - KY
                    - CF
                    - TD
                    - CL
                    - CN
                    - CX
                    - CC
                    - CO
                    - KM
                    - CG
                    - CD
                    - CK
                    - CR
                    - CI
                    - HR
                    - CU
                    - CW
                    - CY
                    - CZ
                    - DK
                    - DJ
                    - DM
                    - DO
                    - EC
                    - EG
                    - SZ
                    - GQ
                    - ER
                    - EE
                    - ET
                    - FK
                    - FO
                    - FJ
                    - FI
                    - FR
                    - GF
                    - PF
                    - TF
                    - GA
                    - GM
                    - GE
                    - DE
                    - GH
                    - GI
                    - GR
                    - GL
                    - GD
                    - GP
                    - GU
                    - GT
                    - GG
                    - GN
                    - GW
                    - GY
                    - HT
                    - HM
                    - VA
                    - HN
                    - HK
                    - HU
                    - IS
                    - IN
                    - ID
                    - IR
                    - IQ
                    - IE
                    - IM
                    - IL
                    - IT
                    - JM
                    - JP
                    - JE
                    - JO
                    - KZ
                    - KE
                    - KI
                    - KR
                    - KW
                    - KG
                    - LA
                    - LV
                    - LB
                    - LS
                    - LR
                    - LY
                    - LI
                    - LT
                    - LU
                    - MO
                    - MK
                    - MG
                    - MW
                    - MY
                    - MV
                    - ML
                    - MT
                    - MH
                    - MQ
                    - MR
                    - MU
                    - YT
                    - MX
                    - FM
                    - MD
                    - MC
                    - MN
                    - ME
                    - MS
                    - MA
                    - MZ
                    - MM
                    - NA
                    - NR
                    - NP
                    - NL
                    - NC
                    - NZ
                    - NI
                    - NE
                    - NG
                    - NU
                    - NF
                    - MP
                    - 'NO'
                    - OM
                    - PK
                    - PW
                    - PS
                    - PA
                    - PG
                    - PY
                    - PE
                    - PH
                    - PN
                    - PL
                    - PT
                    - PR
                    - QA
                    - RE
                    - RO
                    - RU
                    - RW
                    - BL
                    - SH
                    - KN
                    - LC
                    - MF
                    - PM
                    - VC
                    - WS
                    - SM
                    - ST
                    - SA
                    - SN
                    - RS
                    - SC
                    - SL
                    - SG
                    - SX
                    - SK
                    - SI
                    - SB
                    - SO
                    - ZA
                    - GS
                    - SS
                    - ES
                    - LK
                    - SD
                    - SR
                    - SJ
                    - SE
                    - CH
                    - SY
                    - TW
                    - TJ
                    - TZ
                    - TH
                    - TL
                    - TG
                    - TK
                    - TO
                    - TT
                    - TN
                    - TR
                    - TM
                    - TC
                    - TV
                    - UG
                    - UA
                    - AE
                    - GB
                    - US
                    - UM
                    - UY
                    - UZ
                    - VU
                    - VE
                    - VN
                    - VG
                    - VI
                    - WF
                    - EH
                    - YE
                    - ZM
                    - ZW
                country:
                  type: string
                  description: The customer's country (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                  enum:
                    - AF
                    - AX
                    - AL
                    - DZ
                    - AS
                    - AD
                    - AO
                    - AI
                    - AQ
                    - AG
                    - AR
                    - AM
                    - AW
                    - AU
                    - AT
                    - AZ
                    - BS
                    - BH
                    - BD
                    - BB
                    - BY
                    - BE
                    - BZ
                    - BJ
                    - BM
                    - BT
                    - BO
                    - BQ
                    - BA
                    - BW
                    - BV
                    - BR
                    - IO
                    - BN
                    - BG
                    - BF
                    - BI
                    - CV
                    - KH
                    - CM
                    - CA
                    - KY
                    - CF
                    - TD
                    - CL
                    - CN
                    - CX
                    - CC
                    - CO
                    - KM
                    - CG
                    - CD
                    - CK
                    - CR
                    - CI
                    - HR
                    - CU
                    - CW
                    - CY
                    - CZ
                    - DK
                    - DJ
                    - DM
                    - DO
                    - EC
                    - EG
                    - SZ
                    - GQ
                    - ER
                    - EE
                    - ET
                    - FK
                    - FO
                    - FJ
                    - FI
                    - FR
                    - GF
                    - PF
                    - TF
                    - GA
                    - GM
                    - GE
                    - DE
                    - GH
                    - GI
                    - GR
                    - GL
                    - GD
                    - GP
                    - GU
                    - GT
                    - GG
                    - GN
                    - GW
                    - GY
                    - HT
                    - HM
                    - VA
                    - HN
                    - HK
                    - HU
                    - IS
                    - IN
                    - ID
                    - IR
                    - IQ
                    - IE
                    - IM
                    - IL
                    - IT
                    - JM
                    - JP
                    - JE
                    - JO
                    - KZ
                    - KE
                    - KI
                    - KR
                    - KW
                    - KG
                    - LA
                    - LV
                    - LB
                    - LS
                    - LR
                    - LY
                    - LI
                    - LT
                    - LU
                    - MO
                    - MK
                    - MG
                    - MW
                    - MY
                    - MV
                    - ML
                    - MT
                    - MH
                    - MQ
                    - MR
                    - MU
                    - YT
                    - MX
                    - FM
                    - MD
                    - MC
                    - MN
                    - ME
                    - MS
                    - MA
                    - MZ
                    - MM
                    - NA
                    - NR
                    - NP
                    - NL
                    - NC
                    - NZ
                    - NI
                    - NE
                    - NG
                    - NU
                    - NF
                    - MP
                    - 'NO'
                    - OM
                    - PK
                    - PW
                    - PS
                    - PA
                    - PG
                    - PY
                    - PE
                    - PH
                    - PN
                    - PL
                    - PT
                    - PR
                    - QA
                    - RE
                    - RO
                    - RU
                    - RW
                    - BL
                    - SH
                    - KN
                    - LC
                    - MF
                    - PM
                    - VC
                    - WS
                    - SM
                    - ST
                    - SA
                    - SN
                    - RS
                    - SC
                    - SL
                    - SG
                    - SX
                    - SK
                    - SI
                    - SB
                    - SO
                    - ZA
                    - GS
                    - SS
                    - ES
                    - LK
                    - SD
                    - SR
                    - SJ
                    - SE
                    - CH
                    - SY
                    - TW
                    - TJ
                    - TZ
                    - TH
                    - TL
                    - TG
                    - TK
                    - TO
                    - TT
                    - TN
                    - TR
                    - TM
                    - TC
                    - TV
                    - UG
                    - UA
                    - AE
                    - GB
                    - US
                    - UM
                    - UY
                    - UZ
                    - VU
                    - VE
                    - VN
                    - VG
                    - VI
                    - WF
                    - EH
                    - YE
                    - ZM
                    - ZW
                document:
                  type: object
                  description: >-
                    Specifies the customer's document object, including its number and type. This object is not
                    mandatory. However, if you send this information, the payment experience will be enhanced for your
                    user.
                  properties:
                    document_number:
                      type: string
                      description: >-
                        The customer's document number (MAX 40; MIN 3). This field is required if the 'document' object
                        is included in the request.
                    document_type:
                      type: string
                      description: The customer's document type (MAX 6, MIN 3; [Country reference](country-reference)).
                phone:
                  type: object
                  description: >-
                    Specifies the customer's phone number object. This object is not mandatory. However, if you send
                    this information, the payment experience will be enhanced for your user.
                  properties:
                    country_code:
                      type: string
                      description: >-
                        The country calling code of the customer's phone (MAX 3; MIN 1). Possible values values: Check
                        the [Country reference.](country-reference) This field is required if the 'phone' object is
                        included in the request.
                    number:
                      type: string
                      description: >-
                        The customer's phone number, without the country code (MAX 32; MIN 1). This field is required if
                        the 'phone' object is included in the request.
                billing_address:
                  type: object
                  description: >-
                    Specifies the customer's billing address object. This object is not mandatory. However, if you send
                    this information, the payment experience will be enhanced for your user.
                  properties:
                    address_line_1:
                      type: string
                      description: >-
                        The primary billing address line of the customer (MAX 255; MIN 3). This field is required if the
                        'billing_address' object is included in the request.
                    address_line_2:
                      type: string
                      description: The secondary billing address line of the customer (MAX 255; MIN 3).
                    building_number_1:
                      type: string
                      description: The primary building number of the customer (MAX 255; MIN 3)
                    building_number_2:
                      type: string
                      description: The secondary building number of the customer (MAX 255; MIN 3)
                    city:
                      type: string
                      description: >-
                        The city considered for the billing address (MAX 255; MIN 3). This field is required if the
                        'billing_address' object is included in the request.
                    country:
                      type: string
                      description: >-
                        The country considered for the billing address (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                        This field is required if the 'billing_address' object is included in the request.
                      enum:
                        - AF
                        - AX
                        - AL
                        - DZ
                        - AS
                        - AD
                        - AO
                        - AI
                        - AQ
                        - AG
                        - AR
                        - AM
                        - AW
                        - AU
                        - AT
                        - AZ
                        - BS
                        - BH
                        - BD
                        - BB
                        - BY
                        - BE
                        - BZ
                        - BJ
                        - BM
                        - BT
                        - BO
                        - BQ
                        - BA
                        - BW
                        - BV
                        - BR
                        - IO
                        - BN
                        - BG
                        - BF
                        - BI
                        - CV
                        - KH
                        - CM
                        - CA
                        - KY
                        - CF
                        - TD
                        - CL
                        - CN
                        - CX
                        - CC
                        - CO
                        - KM
                        - CG
                        - CD
                        - CK
                        - CR
                        - CI
                        - HR
                        - CU
                        - CW
                        - CY
                        - CZ
                        - DK
                        - DJ
                        - DM
                        - DO
                        - EC
                        - EG
                        - SZ
                        - GQ
                        - ER
                        - EE
                        - ET
                        - FK
                        - FO
                        - FJ
                        - FI
                        - FR
                        - GF
                        - PF
                        - TF
                        - GA
                        - GM
                        - GE
                        - DE
                        - GH
                        - GI
                        - GR
                        - GL
                        - GD
                        - GP
                        - GU
                        - GT
                        - GG
                        - GN
                        - GW
                        - GY
                        - HT
                        - HM
                        - VA
                        - HN
                        - HK
                        - HU
                        - IS
                        - IN
                        - ID
                        - IR
                        - IQ
                        - IE
                        - IM
                        - IL
                        - IT
                        - JM
                        - JP
                        - JE
                        - JO
                        - KZ
                        - KE
                        - KI
                        - KR
                        - KW
                        - KG
                        - LA
                        - LV
                        - LB
                        - LS
                        - LR
                        - LY
                        - LI
                        - LT
                        - LU
                        - MO
                        - MK
                        - MG
                        - MW
                        - MY
                        - MV
                        - ML
                        - MT
                        - MH
                        - MQ
                        - MR
                        - MU
                        - YT
                        - MX
                        - FM
                        - MD
                        - MC
                        - MN
                        - ME
                        - MS
                        - MA
                        - MZ
                        - MM
                        - NA
                        - NR
                        - NP
                        - NL
                        - NC
                        - NZ
                        - NI
                        - NE
                        - NG
                        - NU
                        - NF
                        - MP
                        - 'NO'
                        - OM
                        - PK
                        - PW
                        - PS
                        - PA
                        - PG
                        - PY
                        - PE
                        - PH
                        - PN
                        - PL
                        - PT
                        - PR
                        - QA
                        - RE
                        - RO
                        - RU
                        - RW
                        - BL
                        - SH
                        - KN
                        - LC
                        - MF
                        - PM
                        - VC
                        - WS
                        - SM
                        - ST
                        - SA
                        - SN
                        - RS
                        - SC
                        - SL
                        - SG
                        - SX
                        - SK
                        - SI
                        - SB
                        - SO
                        - ZA
                        - GS
                        - SS
                        - ES
                        - LK
                        - SD
                        - SR
                        - SJ
                        - SE
                        - CH
                        - SY
                        - TW
                        - TJ
                        - TZ
                        - TH
                        - TL
                        - TG
                        - TK
                        - TO
                        - TT
                        - TN
                        - TR
                        - TM
                        - TC
                        - TV
                        - UG
                        - UA
                        - AE
                        - GB
                        - US
                        - UM
                        - UY
                        - UZ
                        - VU
                        - VE
                        - VN
                        - VG
                        - VI
                        - WF
                        - EH
                        - YE
                        - ZM
                        - ZW
                    state:
                      type: string
                      description: The state considered for the billing address (MAX 255; MIN 3).
                    zip_code:
                      type: string
                      description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    neighborhood:
                      type: string
                      description: The neighborhood of the address line of the customer (MAX 255; MIN 1).
                  required:
                    - address_line_1
                    - city
                shipping_address:
                  type: object
                  description: >-
                    Specifies the customer's shipping address object. This object is not mandatory. However, if you send
                    this information, the payment experience will be enhanced for your user.
                  properties:
                    address_line_1:
                      type: string
                      description: >-
                        The primary shipping address line of the customer (MAX 255; MIN 3). This field is required if
                        the 'shipping_address' object is included in the request.
                    address_line_2:
                      type: string
                      description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                    building_number_1:
                      type: string
                      description: The primary building number of the customer (MAX 255; MIN 3)
                    building_number_2:
                      type: string
                      description: The secondary building number of the customer (MAX 255; MIN 3)
                    city:
                      type: string
                      description: >-
                        The city considered for the shipping address (MAX 255; MIN 3). This field is required if the
                        'shipping_address' object is included in the request.
                    country:
                      type: string
                      description: >-
                        The country considered for the shipping address (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                        This field is required if the 'shipping_address' object is included in the request.
                      enum:
                        - AF
                        - AX
                        - AL
                        - DZ
                        - AS
                        - AD
                        - AO
                        - AI
                        - AQ
                        - AG
                        - AR
                        - AM
                        - AW
                        - AU
                        - AT
                        - AZ
                        - BS
                        - BH
                        - BD
                        - BB
                        - BY
                        - BE
                        - BZ
                        - BJ
                        - BM
                        - BT
                        - BO
                        - BQ
                        - BA
                        - BW
                        - BV
                        - BR
                        - IO
                        - BN
                        - BG
                        - BF
                        - BI
                        - CV
                        - KH
                        - CM
                        - CA
                        - KY
                        - CF
                        - TD
                        - CL
                        - CN
                        - CX
                        - CC
                        - CO
                        - KM
                        - CG
                        - CD
                        - CK
                        - CR
                        - CI
                        - HR
                        - CU
                        - CW
                        - CY
                        - CZ
                        - DK
                        - DJ
                        - DM
                        - DO
                        - EC
                        - EG
                        - SZ
                        - GQ
                        - ER
                        - EE
                        - ET
                        - FK
                        - FO
                        - FJ
                        - FI
                        - FR
                        - GF
                        - PF
                        - TF
                        - GA
                        - GM
                        - GE
                        - DE
                        - GH
                        - GI
                        - GR
                        - GL
                        - GD
                        - GP
                        - GU
                        - GT
                        - GG
                        - GN
                        - GW
                        - GY
                        - HT
                        - HM
                        - VA
                        - HN
                        - HK
                        - HU
                        - IS
                        - IN
                        - ID
                        - IR
                        - IQ
                        - IE
                        - IM
                        - IL
                        - IT
                        - JM
                        - JP
                        - JE
                        - JO
                        - KZ
                        - KE
                        - KI
                        - KR
                        - KW
                        - KG
                        - LA
                        - LV
                        - LB
                        - LS
                        - LR
                        - LY
                        - LI
                        - LT
                        - LU
                        - MO
                        - MK
                        - MG
                        - MW
                        - MY
                        - MV
                        - ML
                        - MT
                        - MH
                        - MQ
                        - MR
                        - MU
                        - YT
                        - MX
                        - FM
                        - MD
                        - MC
                        - MN
                        - ME
                        - MS
                        - MA
                        - MZ
                        - MM
                        - NA
                        - NR
                        - NP
                        - NL
                        - NC
                        - NZ
                        - NI
                        - NE
                        - NG
                        - NU
                        - NF
                        - MP
                        - 'NO'
                        - OM
                        - PK
                        - PW
                        - PS
                        - PA
                        - PG
                        - PY
                        - PE
                        - PH
                        - PN
                        - PL
                        - PT
                        - PR
                        - QA
                        - RE
                        - RO
                        - RU
                        - RW
                        - BL
                        - SH
                        - KN
                        - LC
                        - MF
                        - PM
                        - VC
                        - WS
                        - SM
                        - ST
                        - SA
                        - SN
                        - RS
                        - SC
                        - SL
                        - SG
                        - SX
                        - SK
                        - SI
                        - SB
                        - SO
                        - ZA
                        - GS
                        - SS
                        - ES
                        - LK
                        - SD
                        - SR
                        - SJ
                        - SE
                        - CH
                        - SY
                        - TW
                        - TJ
                        - TZ
                        - TH
                        - TL
                        - TG
                        - TK
                        - TO
                        - TT
                        - TN
                        - TR
                        - TM
                        - TC
                        - TV
                        - UG
                        - UA
                        - AE
                        - GB
                        - US
                        - UM
                        - UY
                        - UZ
                        - VU
                        - VE
                        - VN
                        - VG
                        - VI
                        - WF
                        - EH
                        - YE
                        - ZM
                        - ZW
                    state:
                      type: string
                      description: The state considered for the shipping address (MAX 255; MIN 3).
                    zip_code:
                      type: string
                      description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                    neighborhood:
                      type: string
                      description: The neighborhood of the address line of the customer(MAX 255; MIN 1).
                  required:
                    - address_line_1
                    - city
                    - country
                metadata:
                  type: array
                  description: Specifies a list of metadata objects. You can add up to 50 metadata objects.
                  items:
                    properties:
                      key:
                        type: string
                        description: The metadata key (MAX 48).
                      value:
                        type: string
                        description: The metadata key value (MAX 512).
                    required:
                      - key
                      - value
                    type: object
            examples:
              Customer (full data):
                value:
                  merchant_customer_id: '4321'
                  merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                  first_name: John
                  last_name: Doe
                  email: john.doe@email.com
                  gender: M
                  date_of_birth: '1990-02-28'
                  nationality: US
                  country: US
                  document:
                    document_type: SSN
                    document_number: 123-45-6789
                  phone:
                    number: '5551234567'
                    country_code: '1'
                  billing_address:
                    address_line_1: 123 Main St
                    address_line_2: Apt 4B
                    country: US
                    state: NY
                    city: New York
                    zip_code: '10001'
                    neighborhood: Manhattan
                  shipping_address:
                    address_line_1: 123 Main St
                    address_line_2: Apt 4B
                    country: US
                    state: NY
                    city: New York
                    zip_code: '10001'
                    neighborhood: Manhattan
                  metadata:
                    - key: ID
                      value: '123456'
              Customer (min. data):
                value:
                  merchant_customer_id: '4321'
                  first_name: John
                  last_name: Doe
                  email: john.doe@email.com
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Customer (full data):
                  value:
                    id: bf64527c-5531-4ece-bf2c-51a8e775d8e1
                    merchant_customer_id: AAAAAAAAAAAAAA0002
                    first_name: John
                    last_name: Doe
                    gender: M
                    date_of_birth: '1990-02-28'
                    email: john.doe@email.com
                    nationality: US
                    country: US
                    document:
                      document_type: SSN
                      document_number: 123-45-6789
                    phone:
                      number: '5551234567'
                      country_code: '1'
                    billing_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 4B
                      country: US
                      state: NY
                      city: New York
                      zip_code: '10001'
                      neighborhood: Manhattan
                    shipping_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 4B
                      country: US
                      state: NY
                      city: New York
                      zip_code: '10001'
                      neighborhood: Manhattan
                    metadata:
                      - key: ID
                        value: '123456'
                    created_at: '2025-04-24T18:54:54.351969Z'
                    updated_at: '2025-04-24T18:54:54.351971Z'
                    merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                Customer (min. data):
                  value:
                    id: fe17085f-e9fd-4882-a42a-21eacc10fbb6
                    merchant_customer_id: AAAAAAA000001
                    first_name: John
                    last_name: Doe
                    gender: null
                    date_of_birth: null
                    email: john.doe@email.com
                    nationality: null
                    country: null
                    document: null
                    phone: null
                    billing_address: null
                    shipping_address: null
                    created_at: '2025-04-24T18:54:15.805086Z'
                    updated_at: '2025-04-24T18:54:15.805088Z'
                    merchant_customer_created_at: null
              schema:
                oneOf:
                  - title: Customer (full data)
                    type: object
                    properties:
                      id:
                        type: string
                        example: bf64527c-5531-4ece-bf2c-51a8e775d8e1
                      merchant_customer_id:
                        type: string
                        example: AAAAAAAAAAAAAA0002
                      first_name:
                        type: string
                        example: John
                      last_name:
                        type: string
                        example: Doe
                      gender:
                        type: string
                        example: M
                      date_of_birth:
                        type: string
                        example: '1990-02-28'
                      email:
                        type: string
                        example: john.doe@email.com
                      nationality:
                        type: string
                        example: US
                      country:
                        type: string
                        example: US
                      document:
                        type: object
                        properties:
                          document_type:
                            type: string
                            example: SSN
                          document_number:
                            type: string
                            example: 123-45-6789
                      phone:
                        type: object
                        properties:
                          number:
                            type: string
                            example: '5551234567'
                          country_code:
                            type: string
                            example: '1'
                      billing_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: 123 Main St
                          address_line_2:
                            type: string
                            example: Apt 4B
                          country:
                            type: string
                            example: US
                          state:
                            type: string
                            example: NY
                          city:
                            type: string
                            example: New York
                          zip_code:
                            type: string
                            example: '10001'
                          neighborhood:
                            type: string
                            example: Manhattan
                      shipping_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: 123 Main St
                          address_line_2:
                            type: string
                            example: Apt 4B
                          country:
                            type: string
                            example: US
                          state:
                            type: string
                            example: NY
                          city:
                            type: string
                            example: New York
                          zip_code:
                            type: string
                            example: '10001'
                          neighborhood:
                            type: string
                            example: Manhattan
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: ID
                            value:
                              type: string
                              example: '123456'
                      created_at:
                        type: string
                        example: '2025-04-24T18:54:54.351969Z'
                      updated_at:
                        type: string
                        example: '2025-04-24T18:54:54.351971Z'
                      merchant_customer_created_at:
                        type: string
                        example: '2022-05-09T20:46:54.786342Z'
                  - title: Customer (min. data)
                    type: object
                    properties:
                      id:
                        type: string
                        example: fe17085f-e9fd-4882-a42a-21eacc10fbb6
                      merchant_customer_id:
                        type: string
                        example: AAAAAAA000001
                      first_name:
                        type: string
                        example: John
                      last_name:
                        type: string
                        example: Doe
                      gender: {}
                      date_of_birth: {}
                      email:
                        type: string
                        example: john.doe@email.com
                      nationality: {}
                      country: {}
                      document: {}
                      phone: {}
                      billing_address: {}
                      shipping_address: {}
                      created_at:
                        type: string
                        example: '2025-04-24T18:54:15.805086Z'
                      updated_at:
                        type: string
                        example: '2025-04-24T18:54:15.805088Z'
                      merchant_customer_created_at: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid Credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid Credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API
      deprecated: false
      tags:
        - Customers
  /customers/payment-methods/{payment_method_id}/unenroll:
    post:
      summary: Unenroll Payment Method
      description: ''
      operationId: unenroll-payment-method-checkout
      parameters:
        - name: payment_method_id
          in: path
          description: The payment method id to unenroll (UUID, 36 chars).
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 77ee4a02-da3e-4a11-ac15-ba69e1813475
                    idempotency_key: null
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    name: VISA ****1111
                    description: VISA ****1111
                    type: CARD
                    category: CARD
                    country: US
                    status: UNENROLLED
                    created_at: '2024-06-06T13:28:57.149530Z'
                    updated_at: '2024-06-06T13:31:13.945554Z'
                    enrollment:
                      session: 0685f1d6-11ff-4992-abc3-9eea1842205c
                      sdk_required_action: true
                    provider:
                      id: YUNO
                      type: YUNO
                      provider_status: null
                    verify:
                      vault_on_success: false
                      payment: null
                    preferred: null
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 77ee4a02-da3e-4a11-ac15-ba69e1813475
                  idempotency_key: {}
                  account_id:
                    type: string
                    example: 493e9374-510a-4201-9e09-de669d75f256
                  name:
                    type: string
                    example: VISA ****1111
                  description:
                    type: string
                    example: VISA ****1111
                  type:
                    type: string
                    example: CARD
                  category:
                    type: string
                    example: CARD
                  country:
                    type: string
                    example: US
                  status:
                    type: string
                    example: UNENROLLED
                  created_at:
                    type: string
                    example: '2024-06-06T13:28:57.149530Z'
                  updated_at:
                    type: string
                    example: '2024-06-06T13:31:13.945554Z'
                  enrollment:
                    type: object
                    properties:
                      session:
                        type: string
                        example: 0685f1d6-11ff-4992-abc3-9eea1842205c
                      sdk_required_action:
                        type: boolean
                        example: true
                        default: true
                  provider:
                    type: object
                    properties:
                      id:
                        type: string
                        example: YUNO
                      type:
                        type: string
                        example: YUNO
                      provider_status: {}
                  verify:
                    type: object
                    properties:
                      vault_on_success:
                        type: boolean
                        example: false
                        default: true
                      payment: {}
                  preferred: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Checkout
  /customers/sessions:
    post:
      summary: Create Customer Session
      description: ''
      operationId: create-customer-session
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - country
                - customer_id
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [the Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 chars).
                country:
                  type: string
                  description: >-
                    The customer's country  (MAX 2; MIN 2; [ISO
                    3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
                  enum:
                    - AR
                    - BO
                    - BR
                    - CL
                    - CO
                    - CR
                    - EC
                    - SV
                    - GT
                    - HN
                    - MX
                    - NI
                    - PA
                    - PY
                    - PE
                    - US
                    - UY
                customer_id:
                  type: string
                  description: >-
                    The unique identifier of the customer, created using the [Create
                    Customer](https://docs.y.uno/reference/create-customer) endpoint (UUID, 36 chars).
                callback_url:
                  type: string
                  description: >-
                    The URL to redirect your customer after the enrollment is made in the provider's environment (MAX
                    526; MIN 3).
                checkout_id:
                  type: string
                  description: >-
                    The unique identifier (UUID) of the Custom Checkout to use for this enrollment session. Optional.
                    When omitted, the session uses the account's default checkout.
                metadata:
                  type: array
                  description: >-
                    Optional custom key–value tags for the payment method enrolled with this session. They behave like
                    the `metadata` of a direct enrollment: stored with the enrolled payment method, returned when you
                    retrieve it and on the `enrollment.enroll` webhook, and sent to the provider integration with the
                    enrollment, except the reserved `gateway_options` entry, which is stored and returned but not
                    forwarded. Up to 120 items and 75000 characters in total, counting every key and value.
                  items:
                    properties:
                      key:
                        type: string
                        description: 'The metadata key (MAX 48. Value: MIN:1, MAX:48). **[Case Sensitive]**'
                      value:
                        type: string
                        description: 'The metadata key value (MAX 512. Value: MIN:1, MAX:512). **[Case Sensitive]**'
                    required:
                      - key
                      - value
                    type: object
            examples:
              Customer session:
                value:
                  account_id: 8beac4de-5f6f-11ed-9b6a-0242ac120002
                  customer_id: ae106483-65ee-463b-8782-9794022b3112
                  country: US
                  callback_url: https://www.google.com/?customerSession=7dd71f21-9e4c-439a-9c6d-58f240bd28df
                  created_at: '2025-05-07T20:00:18.721786Z'
                  checkout_id: 6822f80c-684e-41a3-8628-78963d3d60f7
                  metadata:
                    - key: on_behalf_of
                      value: acct_1A2b3C4d5E6f7G8h
                    - key: order_ref
                      value: ABC-123
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Customer session:
                  value:
                    customer_session: 7dd71f21-9e4c-439a-9c6d-58f240bd28df
                    customer_id: ae106483-65ee-463b-8782-9794022b3112
                    country: US
                    callback_url: https://www.google.com/?customerSession=7dd71f21-9e4c-439a-9c6d-58f240bd28df
                    created_at: '2025-05-07T20:00:18.721786Z'
                    checkout_id: 6822f80c-684e-41a3-8628-78963d3d60f7
              schema:
                type: object
                properties:
                  customer_session:
                    type: string
                    example: 7dd71f21-9e4c-439a-9c6d-58f240bd28df
                  customer_id:
                    type: string
                    example: ae106483-65ee-463b-8782-9794022b3112
                  country:
                    type: string
                    example: US
                  callback_url:
                    type: string
                    example: https://www.google.com/?customerSession=7dd71f21-9e4c-439a-9c6d-58f240bd28df
                  created_at:
                    type: string
                    example: '2025-05-07T20:00:18.721786Z'
                  checkout_id:
                    type: string
                    example: 6822f80c-684e-41a3-8628-78963d3d60f7
                  metadata:
                    type: array
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                Customer Not Found:
                  value:
                    code: CUSTOMER_NOT_FOUND
                    messages:
                      - Customer not found
                  summary: Customer Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Customer Sessions Enrollment
  /customers/sessions/{customer_session}/payment-methods:
    post:
      summary: Enroll Payment Method
      description: ''
      operationId: enroll-payment-method-checkout
      parameters:
        - name: customer_session
          in: path
          description: >-
            The customer session that has been created for the enrollment using the [Create Customer
            Session](https://docs.y.uno/reference/create-customer-session) endpoint (UUID, 36 chars).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - payment_method_type
                - country
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [the Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 chars).
                payment_method_type:
                  type: string
                  description: The payment method type (MAX 255; MIN 3; [Payment Type List](/reference/payment-type-list)).
                  enum:
                    - CARD
                    - MERCADO_PAGO_WALLET
                    - NEQUI
                    - BANCOLOMBIA_TOKENBOX
                    - NU_PAY_ENROLLMENT
                country:
                  type: string
                  description: The transaction's country code (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                  enum:
                    - AR
                    - BO
                    - BR
                    - CL
                    - CO
                    - CR
                    - EC
                    - SV
                    - GT
                    - HN
                    - MX
                    - NI
                    - PA
                    - PY
                    - PE
                    - US
                    - UY
                account_updater:
                  type: boolean
                  description: >-
                    Per-card control for Card Account Updater. When set to `false`, this card is excluded from Card
                    Account Updater and will not receive automatic card-detail updates. When omitted, the card follows
                    your account's Account Updater configuration. Applies at enrollment.
                verify:
                  type: object
                  description: >-
                    Indicates whether to verify the payment with a verify transaction or not. You’ll need to have a
                    provider defined in your CARD route. False by default. Access the [Card
                    Verification](/docs/card-verification) page for more details.
                  required:
                    - vault_on_success
                  properties:
                    vault_on_success:
                      type: boolean
                      description: >-
                        Indicates whether to verify the payment with a verify transaction or not. You’ll need to have a
                        provider defined in your CARD route. False by default.
                    currency:
                      type: string
                      description: >-
                        Currency of the card verification. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
            examples:
              Enroll:
                value:
                  payment_method_type: CARD
                  country: US
                  account_id: '{{account_id}}'
              Enroll with card verification:
                value:
                  account_id: '{{account_id}}'
                  payment_method_type: CARD
                  country: US
                  verify:
                    vault_on_success: true
                    currency: USD
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Enroll:
                  value:
                    id: 0395199e-a99c-4a85-acac-6c916f43fa74
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    name: Visa Credit Card
                    description: Visa Credit Card
                    type: VISA
                    category: CARD
                    country: US
                    status: READY_TO_ENROLL
                    created_at: '2024-06-06T13:14:18.799434Z'
                    updated_at: '2024-06-06T13:14:18.799437Z'
                    enrollment:
                      session: 6641e30d-ca7a-440f-b97c-24231eac6dab
                      sdk_required_action: false
                    provider:
                      id: YUNO
                      type: YUNO
                      provider_status: null
                    customer_payer:
                      first_name: John
                      last_name: Doe
                      email: john.doe@email.com
                      gender: M
                      date_of_birth: '1990-02-28'
                      document:
                        document_number: '123456789'
                        document_type: SSN
                      phone:
                        number: '1234567890'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                    verify:
                      vault_on_success: false
                      payment: null
                    preferred: null
                Enroll with card verification:
                  value:
                    id: 51887489-60d3-45a9-b895-81d3c1c3aec6
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    name: Visa Credit Card
                    description: Visa Credit Card
                    type: VISA
                    category: CARD
                    country: US
                    status: READY_TO_ENROLL
                    created_at: '2024-06-06T13:19:57.828087Z'
                    updated_at: '2024-06-06T13:19:57.828089Z'
                    enrollment:
                      session: 238fc319-4a31-4568-be7f-c475e8fbe230
                      sdk_required_action: false
                    provider:
                      id: YUNO
                      type: YUNO
                      provider_status: null
                    customer_payer:
                      first_name: John
                      last_name: Doe
                      email: john.doe@email.com
                      gender: M
                      date_of_birth: '1990-02-28'
                      document:
                        document_number: '123456789'
                        document_type: SSN
                      phone:
                        number: '1234567890'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                    verify:
                      vault_on_success: true
                      currency: USD
                      payment: null
                    preferred: null
              schema:
                oneOf:
                  - title: Enroll
                    type: object
                    properties:
                      id:
                        type: string
                        example: 0395199e-a99c-4a85-acac-6c916f43fa74
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      name:
                        type: string
                        example: Visa Credit Card
                      description:
                        type: string
                        example: Visa Credit Card
                      type:
                        type: string
                        example: VISA
                      category:
                        type: string
                        example: CARD
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: READY_TO_ENROLL
                      created_at:
                        type: string
                        example: '2024-06-06T13:14:18.799434Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T13:14:18.799437Z'
                      enrollment:
                        type: object
                        properties:
                          session:
                            type: string
                            example: 6641e30d-ca7a-440f-b97c-24231eac6dab
                          sdk_required_action:
                            type: boolean
                            example: false
                            default: true
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO
                          type:
                            type: string
                            example: YUNO
                          provider_status: {}
                      customer_payer:
                        type: object
                        properties:
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          email:
                            type: string
                            example: john.doe@email.com
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          document:
                            type: object
                            properties:
                              document_number:
                                type: string
                                example: '123456789'
                              document_type:
                                type: string
                                example: SSN
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '1234567890'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                      verify:
                        type: object
                        properties:
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          payment: {}
                      preferred: {}
                  - title: Enroll with card verification
                    type: object
                    properties:
                      id:
                        type: string
                        example: 51887489-60d3-45a9-b895-81d3c1c3aec6
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      name:
                        type: string
                        example: Visa Credit Card
                      description:
                        type: string
                        example: Visa Credit Card
                      type:
                        type: string
                        example: VISA
                      category:
                        type: string
                        example: CARD
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: READY_TO_ENROLL
                      created_at:
                        type: string
                        example: '2024-06-06T13:19:57.828087Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T13:19:57.828089Z'
                      enrollment:
                        type: object
                        properties:
                          session:
                            type: string
                            example: 238fc319-4a31-4568-be7f-c475e8fbe230
                          sdk_required_action:
                            type: boolean
                            example: false
                            default: true
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO
                          type:
                            type: string
                            example: YUNO
                          provider_status: {}
                      customer_payer:
                        type: object
                        properties:
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          email:
                            type: string
                            example: john.doe@email.com
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          document:
                            type: object
                            properties:
                              document_number:
                                type: string
                                example: '123456789'
                              document_type:
                                type: string
                                example: SSN
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '1234567890'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                      verify:
                        type: object
                        properties:
                          vault_on_success:
                            type: boolean
                            example: true
                            default: true
                          currency:
                            type: string
                            example: USD
                          payment: {}
                      preferred: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Checkout
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /customers/{customer_id}:
    get:
      summary: Retrieve Customer
      description: ''
      operationId: retrieve-customer
      parameters:
        - in: path
          name: customer_id
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 94121f98-98f7-4d57-aa5f-228401d35b12
                    merchant_customer_id: '1744402154'
                    first_name: John
                    last_name: Doe
                    gender: F
                    date_of_birth: '1990-02-28'
                    email: john.doe@gmail.com
                    nationality: CO
                    country: CO
                    document:
                      document_type: CC
                      document_number: '1010268952'
                    phone:
                      number: '3132450765'
                      country_code: '57'
                    billing_address:
                      address_line_1: 'Calle 34 # 56 - 78'
                      address_line_2: Apartamento 502, Torre I
                      country: CO
                      state: Cundinamarca
                      city: Bogotá
                      zip_code: '111111'
                      neighborhood: Test
                    shipping_address:
                      address_line_1: 'Calle 34 # 56 - 78'
                      address_line_2: Apartamento 502, Torre I
                      country: CO
                      state: Cundinamarca
                      city: Bogotá
                      zip_code: '111111'
                      neighborhood: Test
                    metadata:
                      - key: ID
                        value: '1234'
                    created_at: '2025-04-11T20:09:14.927971Z'
                    updated_at: '2025-04-11T20:09:14.927972Z'
                    merchant_customer_created_at: '2023-08-05T14:43:58.980718Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 94121f98-98f7-4d57-aa5f-228401d35b12
                  merchant_customer_id:
                    type: string
                    example: '1744402154'
                  first_name:
                    type: string
                    example: John
                  last_name:
                    type: string
                    example: Doe
                  gender:
                    type: string
                    example: F
                  date_of_birth:
                    type: string
                    example: '1990-02-28'
                  email:
                    type: string
                    example: john.doe@gmail.com
                  nationality:
                    type: string
                    example: CO
                  country:
                    type: string
                    example: CO
                  document:
                    type: object
                    properties:
                      document_type:
                        type: string
                        example: CC
                      document_number:
                        type: string
                        example: '1010268952'
                  phone:
                    type: object
                    properties:
                      number:
                        type: string
                        example: '3132450765'
                      country_code:
                        type: string
                        example: '57'
                  billing_address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 'Calle 34 # 56 - 78'
                      address_line_2:
                        type: string
                        example: Apartamento 502, Torre I
                      country:
                        type: string
                        example: CO
                      state:
                        type: string
                        example: Cundinamarca
                      city:
                        type: string
                        example: Bogotá
                      zip_code:
                        type: string
                        example: '111111'
                      neighborhood:
                        type: string
                        example: Test
                  shipping_address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 'Calle 34 # 56 - 78'
                      address_line_2:
                        type: string
                        example: Apartamento 502, Torre I
                      country:
                        type: string
                        example: CO
                      state:
                        type: string
                        example: Cundinamarca
                      city:
                        type: string
                        example: Bogotá
                      zip_code:
                        type: string
                        example: '111111'
                      neighborhood:
                        type: string
                        example: Test
                  metadata:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: ID
                        value:
                          type: string
                          example: '1234'
                  created_at:
                    type: string
                    example: '2025-04-11T20:09:14.927971Z'
                  updated_at:
                    type: string
                    example: '2025-04-11T20:09:14.927972Z'
                  merchant_customer_created_at:
                    type: string
                    example: '2023-08-05T14:43:58.980718Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Customer not found:
                  value:
                    code: CUSTOMER_NOT_FOUND
                    messages:
                      - Customer not found.
                  summary: Customer not found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Invalid credentials:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid Credentials
                  summary: Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Authorization required:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API
                  summary: Authorization required
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API
        '404':
          description: '404'
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: CUSTOMER_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Customer not found
      deprecated: false
      tags:
        - Customers
    patch:
      summary: Update Customer
      description: ''
      operationId: update-customer
      parameters:
        - name: customer_id
          in: path
          description: The unique identifier of the customer (UUID | MAX 36; MIN 36).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                merchant_customer_id:
                  type: string
                  description: The unique identifier of the customer in the external merchant (MAX 255; MIN 3).
                merchant_customer_created_at:
                  type: string
                  description: Customer´s registration date on the merchants platform (ISO 8601 MAX 27; MIN 27)
                  format: date-time
                first_name:
                  type: string
                  description: The customer's first name (MAX 255; MIN 3).
                last_name:
                  type: string
                  description: The customer's last name (MAX 255; MIN 3).
                gender:
                  type: string
                  description: The customer's gender.
                date_of_birth:
                  type: string
                  description: The customer's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
                email:
                  type: string
                  description: The customer's e-mail (MAX 255; MIN 3).
                nationality:
                  type: string
                  description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                  enum:
                    - AF
                    - AX
                    - AL
                    - DZ
                    - AS
                    - AD
                    - AO
                    - AI
                    - AQ
                    - AG
                    - AR
                    - AM
                    - AW
                    - AU
                    - AT
                    - AZ
                    - BS
                    - BH
                    - BD
                    - BB
                    - BY
                    - BE
                    - BZ
                    - BJ
                    - BM
                    - BT
                    - BO
                    - BQ
                    - BA
                    - BW
                    - BV
                    - BR
                    - IO
                    - BN
                    - BG
                    - BF
                    - BI
                    - CV
                    - KH
                    - CM
                    - CA
                    - KY
                    - CF
                    - TD
                    - CL
                    - CN
                    - CX
                    - CC
                    - CO
                    - KM
                    - CG
                    - CD
                    - CK
                    - CR
                    - CI
                    - HR
                    - CU
                    - CW
                    - CY
                    - CZ
                    - DK
                    - DJ
                    - DM
                    - DO
                    - EC
                    - EG
                    - SZ
                    - GQ
                    - ER
                    - EE
                    - ET
                    - FK
                    - FO
                    - FJ
                    - FI
                    - FR
                    - GF
                    - PF
                    - TF
                    - GA
                    - GM
                    - GE
                    - DE
                    - GH
                    - GI
                    - GR
                    - GL
                    - GD
                    - GP
                    - GU
                    - GT
                    - GG
                    - GN
                    - GW
                    - GY
                    - HT
                    - HM
                    - VA
                    - HN
                    - HK
                    - HU
                    - IS
                    - IN
                    - ID
                    - IR
                    - IQ
                    - IE
                    - IM
                    - IL
                    - IT
                    - JM
                    - JP
                    - JE
                    - JO
                    - KZ
                    - KE
                    - KI
                    - KR
                    - KW
                    - KG
                    - LA
                    - LV
                    - LB
                    - LS
                    - LR
                    - LY
                    - LI
                    - LT
                    - LU
                    - MO
                    - MK
                    - MG
                    - MW
                    - MY
                    - MV
                    - ML
                    - MT
                    - MH
                    - MQ
                    - MR
                    - MU
                    - YT
                    - MX
                    - FM
                    - MD
                    - MC
                    - MN
                    - ME
                    - MS
                    - MA
                    - MZ
                    - MM
                    - NA
                    - NR
                    - NP
                    - NL
                    - NC
                    - NZ
                    - NI
                    - NE
                    - NG
                    - NU
                    - NF
                    - MP
                    - 'NO'
                    - OM
                    - PK
                    - PW
                    - PS
                    - PA
                    - PG
                    - PY
                    - PE
                    - PH
                    - PN
                    - PL
                    - PT
                    - PR
                    - QA
                    - RE
                    - RO
                    - RU
                    - RW
                    - BL
                    - SH
                    - KN
                    - LC
                    - MF
                    - PM
                    - VC
                    - WS
                    - SM
                    - ST
                    - SA
                    - SN
                    - RS
                    - SC
                    - SL
                    - SG
                    - SX
                    - SK
                    - SI
                    - SB
                    - SO
                    - ZA
                    - GS
                    - SS
                    - ES
                    - LK
                    - SD
                    - SR
                    - SJ
                    - SE
                    - CH
                    - SY
                    - TW
                    - TJ
                    - TZ
                    - TH
                    - TL
                    - TG
                    - TK
                    - TO
                    - TT
                    - TN
                    - TR
                    - TM
                    - TC
                    - TV
                    - UG
                    - UA
                    - AE
                    - GB
                    - US
                    - UM
                    - UY
                    - UZ
                    - VU
                    - VE
                    - VN
                    - VG
                    - VI
                    - WF
                    - EH
                    - YE
                    - ZM
                    - ZW
                country:
                  type: string
                  description: The customer's country (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                  enum:
                    - AF
                    - AX
                    - AL
                    - DZ
                    - AS
                    - AD
                    - AO
                    - AI
                    - AQ
                    - AG
                    - AR
                    - AM
                    - AW
                    - AU
                    - AT
                    - AZ
                    - BS
                    - BH
                    - BD
                    - BB
                    - BY
                    - BE
                    - BZ
                    - BJ
                    - BM
                    - BT
                    - BO
                    - BQ
                    - BA
                    - BW
                    - BV
                    - BR
                    - IO
                    - BN
                    - BG
                    - BF
                    - BI
                    - CV
                    - KH
                    - CM
                    - CA
                    - KY
                    - CF
                    - TD
                    - CL
                    - CN
                    - CX
                    - CC
                    - CO
                    - KM
                    - CG
                    - CD
                    - CK
                    - CR
                    - CI
                    - HR
                    - CU
                    - CW
                    - CY
                    - CZ
                    - DK
                    - DJ
                    - DM
                    - DO
                    - EC
                    - EG
                    - SZ
                    - GQ
                    - ER
                    - EE
                    - ET
                    - FK
                    - FO
                    - FJ
                    - FI
                    - FR
                    - GF
                    - PF
                    - TF
                    - GA
                    - GM
                    - GE
                    - DE
                    - GH
                    - GI
                    - GR
                    - GL
                    - GD
                    - GP
                    - GU
                    - GT
                    - GG
                    - GN
                    - GW
                    - GY
                    - HT
                    - HM
                    - VA
                    - HN
                    - HK
                    - HU
                    - IS
                    - IN
                    - ID
                    - IR
                    - IQ
                    - IE
                    - IM
                    - IL
                    - IT
                    - JM
                    - JP
                    - JE
                    - JO
                    - KZ
                    - KE
                    - KI
                    - KR
                    - KW
                    - KG
                    - LA
                    - LV
                    - LB
                    - LS
                    - LR
                    - LY
                    - LI
                    - LT
                    - LU
                    - MO
                    - MK
                    - MG
                    - MW
                    - MY
                    - MV
                    - ML
                    - MT
                    - MH
                    - MQ
                    - MR
                    - MU
                    - YT
                    - MX
                    - FM
                    - MD
                    - MC
                    - MN
                    - ME
                    - MS
                    - MA
                    - MZ
                    - MM
                    - NA
                    - NR
                    - NP
                    - NL
                    - NC
                    - NZ
                    - NI
                    - NE
                    - NG
                    - NU
                    - NF
                    - MP
                    - 'NO'
                    - OM
                    - PK
                    - PW
                    - PS
                    - PA
                    - PG
                    - PY
                    - PE
                    - PH
                    - PN
                    - PL
                    - PT
                    - PR
                    - QA
                    - RE
                    - RO
                    - RU
                    - RW
                    - BL
                    - SH
                    - KN
                    - LC
                    - MF
                    - PM
                    - VC
                    - WS
                    - SM
                    - ST
                    - SA
                    - SN
                    - RS
                    - SC
                    - SL
                    - SG
                    - SX
                    - SK
                    - SI
                    - SB
                    - SO
                    - ZA
                    - GS
                    - SS
                    - ES
                    - LK
                    - SD
                    - SR
                    - SJ
                    - SE
                    - CH
                    - SY
                    - TW
                    - TJ
                    - TZ
                    - TH
                    - TL
                    - TG
                    - TK
                    - TO
                    - TT
                    - TN
                    - TR
                    - TM
                    - TC
                    - TV
                    - UG
                    - UA
                    - AE
                    - GB
                    - US
                    - UM
                    - UY
                    - UZ
                    - VU
                    - VE
                    - VN
                    - VG
                    - VI
                    - WF
                    - EH
                    - YE
                    - ZM
                    - ZW
                document:
                  type: object
                  description: Specifies the customer's document object, including its number and type.
                  properties:
                    document_number:
                      type: string
                      description: The customer's document number (MAX 40; MIN 3).
                    document_type:
                      type: string
                      description: The customer's document type (MAX 6, MIN 3; [Country reference](country-reference)).
                phone:
                  type: object
                  description: Specifies the customer's phone number object.
                  properties:
                    country_code:
                      type: string
                      description: >-
                        The country calling code of the customer's phone (MAX 3; MIN 1). Possible values values: Check
                        the [Country reference.](country-reference)
                    number:
                      type: string
                      description: The customer's phone number, without the country code (MAX 32; MIN 1).
                billing_address:
                  type: object
                  description: Specifies the customer's billing address object.
                  properties:
                    address_line_1:
                      type: string
                      description: The primary billing address line of the customer (MAX 255; MIN 3).
                    address_line_2:
                      type: string
                      description: The secondary billing address line of the customer (MAX 255; MIN 3).
                    city:
                      type: string
                      description: The city considered for the billing address (MAX 255; MIN 3).
                    country:
                      type: string
                      description: The country considered for the billing address (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                      enum:
                        - AF
                        - AX
                        - AL
                        - DZ
                        - AS
                        - AD
                        - AO
                        - AI
                        - AQ
                        - AG
                        - AR
                        - AM
                        - AW
                        - AU
                        - AT
                        - AZ
                        - BS
                        - BH
                        - BD
                        - BB
                        - BY
                        - BE
                        - BZ
                        - BJ
                        - BM
                        - BT
                        - BO
                        - BQ
                        - BA
                        - BW
                        - BV
                        - BR
                        - IO
                        - BN
                        - BG
                        - BF
                        - BI
                        - CV
                        - KH
                        - CM
                        - CA
                        - KY
                        - CF
                        - TD
                        - CL
                        - CN
                        - CX
                        - CC
                        - CO
                        - KM
                        - CG
                        - CD
                        - CK
                        - CR
                        - CI
                        - HR
                        - CU
                        - CW
                        - CY
                        - CZ
                        - DK
                        - DJ
                        - DM
                        - DO
                        - EC
                        - EG
                        - SZ
                        - GQ
                        - ER
                        - EE
                        - ET
                        - FK
                        - FO
                        - FJ
                        - FI
                        - FR
                        - GF
                        - PF
                        - TF
                        - GA
                        - GM
                        - GE
                        - DE
                        - GH
                        - GI
                        - GR
                        - GL
                        - GD
                        - GP
                        - GU
                        - GT
                        - GG
                        - GN
                        - GW
                        - GY
                        - HT
                        - HM
                        - VA
                        - HN
                        - HK
                        - HU
                        - IS
                        - IN
                        - ID
                        - IR
                        - IQ
                        - IE
                        - IM
                        - IL
                        - IT
                        - JM
                        - JP
                        - JE
                        - JO
                        - KZ
                        - KE
                        - KI
                        - KR
                        - KW
                        - KG
                        - LA
                        - LV
                        - LB
                        - LS
                        - LR
                        - LY
                        - LI
                        - LT
                        - LU
                        - MO
                        - MK
                        - MG
                        - MW
                        - MY
                        - MV
                        - ML
                        - MT
                        - MH
                        - MQ
                        - MR
                        - MU
                        - YT
                        - MX
                        - FM
                        - MD
                        - MC
                        - MN
                        - ME
                        - MS
                        - MA
                        - MZ
                        - MM
                        - NA
                        - NR
                        - NP
                        - NL
                        - NC
                        - NZ
                        - NI
                        - NE
                        - NG
                        - NU
                        - NF
                        - MP
                        - 'NO'
                        - OM
                        - PK
                        - PW
                        - PS
                        - PA
                        - PG
                        - PY
                        - PE
                        - PH
                        - PN
                        - PL
                        - PT
                        - PR
                        - QA
                        - RE
                        - RO
                        - RU
                        - RW
                        - BL
                        - SH
                        - KN
                        - LC
                        - MF
                        - PM
                        - VC
                        - WS
                        - SM
                        - ST
                        - SA
                        - SN
                        - RS
                        - SC
                        - SL
                        - SG
                        - SX
                        - SK
                        - SI
                        - SB
                        - SO
                        - ZA
                        - GS
                        - SS
                        - ES
                        - LK
                        - SD
                        - SR
                        - SJ
                        - SE
                        - CH
                        - SY
                        - TW
                        - TJ
                        - TZ
                        - TH
                        - TL
                        - TG
                        - TK
                        - TO
                        - TT
                        - TN
                        - TR
                        - TM
                        - TC
                        - TV
                        - UG
                        - UA
                        - AE
                        - GB
                        - US
                        - UM
                        - UY
                        - UZ
                        - VU
                        - VE
                        - VN
                        - VG
                        - VI
                        - WF
                        - EH
                        - YE
                        - ZM
                        - ZW
                    state:
                      type: string
                      description: The state considered for the billing address (MAX 255; MIN 3).
                    zip_code:
                      type: string
                      description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    neighborhood:
                      type: string
                      description: The neighborhood of the address line of the customer(MAX 255; MIN 1).
                shipping_address:
                  type: object
                  description: Specifies the customer's shipping address object.
                  properties:
                    address_line_1:
                      type: string
                      description: The primary shipping address line of the customer (MAX 255; MIN 3).
                    address_line_2:
                      type: string
                      description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                    city:
                      type: string
                      description: The city considered for the shipping address (MAX 255; MIN 3).
                    country:
                      type: string
                      description: The country considered for the shipping address (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                      enum:
                        - AF
                        - AX
                        - AL
                        - DZ
                        - AS
                        - AD
                        - AO
                        - AI
                        - AQ
                        - AG
                        - AR
                        - AM
                        - AW
                        - AU
                        - AT
                        - AZ
                        - BS
                        - BH
                        - BD
                        - BB
                        - BY
                        - BE
                        - BZ
                        - BJ
                        - BM
                        - BT
                        - BO
                        - BQ
                        - BA
                        - BW
                        - BV
                        - BR
                        - IO
                        - BN
                        - BG
                        - BF
                        - BI
                        - CV
                        - KH
                        - CM
                        - CA
                        - KY
                        - CF
                        - TD
                        - CL
                        - CN
                        - CX
                        - CC
                        - CO
                        - KM
                        - CG
                        - CD
                        - CK
                        - CR
                        - CI
                        - HR
                        - CU
                        - CW
                        - CY
                        - CZ
                        - DK
                        - DJ
                        - DM
                        - DO
                        - EC
                        - EG
                        - SZ
                        - GQ
                        - ER
                        - EE
                        - ET
                        - FK
                        - FO
                        - FJ
                        - FI
                        - FR
                        - GF
                        - PF
                        - TF
                        - GA
                        - GM
                        - GE
                        - DE
                        - GH
                        - GI
                        - GR
                        - GL
                        - GD
                        - GP
                        - GU
                        - GT
                        - GG
                        - GN
                        - GW
                        - GY
                        - HT
                        - HM
                        - VA
                        - HN
                        - HK
                        - HU
                        - IS
                        - IN
                        - ID
                        - IR
                        - IQ
                        - IE
                        - IM
                        - IL
                        - IT
                        - JM
                        - JP
                        - JE
                        - JO
                        - KZ
                        - KE
                        - KI
                        - KR
                        - KW
                        - KG
                        - LA
                        - LV
                        - LB
                        - LS
                        - LR
                        - LY
                        - LI
                        - LT
                        - LU
                        - MO
                        - MK
                        - MG
                        - MW
                        - MY
                        - MV
                        - ML
                        - MT
                        - MH
                        - MQ
                        - MR
                        - MU
                        - YT
                        - MX
                        - FM
                        - MD
                        - MC
                        - MN
                        - ME
                        - MS
                        - MA
                        - MZ
                        - MM
                        - NA
                        - NR
                        - NP
                        - NL
                        - NC
                        - NZ
                        - NI
                        - NE
                        - NG
                        - NU
                        - NF
                        - MP
                        - 'NO'
                        - OM
                        - PK
                        - PW
                        - PS
                        - PA
                        - PG
                        - PY
                        - PE
                        - PH
                        - PN
                        - PL
                        - PT
                        - PR
                        - QA
                        - RE
                        - RO
                        - RU
                        - RW
                        - BL
                        - SH
                        - KN
                        - LC
                        - MF
                        - PM
                        - VC
                        - WS
                        - SM
                        - ST
                        - SA
                        - SN
                        - RS
                        - SC
                        - SL
                        - SG
                        - SX
                        - SK
                        - SI
                        - SB
                        - SO
                        - ZA
                        - GS
                        - SS
                        - ES
                        - LK
                        - SD
                        - SR
                        - SJ
                        - SE
                        - CH
                        - SY
                        - TW
                        - TJ
                        - TZ
                        - TH
                        - TL
                        - TG
                        - TK
                        - TO
                        - TT
                        - TN
                        - TR
                        - TM
                        - TC
                        - TV
                        - UG
                        - UA
                        - AE
                        - GB
                        - US
                        - UM
                        - UY
                        - UZ
                        - VU
                        - VE
                        - VN
                        - VG
                        - VI
                        - WF
                        - EH
                        - YE
                        - ZM
                        - ZW
                    state:
                      type: string
                      description: The state considered for the shipping address (MAX 255; MIN 3).
                    zip_code:
                      type: string
                      description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                    neighborhood:
                      type: string
                      description: The neighborhood of the address line of the customer(MAX 255; MIN 1).
                metadata:
                  type: array
                  description: Specifies a list of metadata objects. You can add up to 50 metadata objects.
                  items:
                    properties:
                      key:
                        type: string
                        description: The metadata key (MAX 48).
                      value:
                        type: string
                        description: The metadata key value (MAX 512).
                    required:
                      - key
                      - value
                    type: object
            examples:
              update:
                value:
                  email: john.doe2@gmail.com
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                update:
                  value:
                    id: 94121f98-98f7-4d57-aa5f-228401d35b12
                    merchant_customer_id: '1744402154'
                    first_name: John
                    last_name: Doe
                    gender: F
                    date_of_birth: '1990-02-28'
                    email: john.doe2@gmail.com
                    nationality: CO
                    country: CO
                    document:
                      document_type: CC
                      document_number: '1010268952'
                    phone:
                      number: '3132450765'
                      country_code: '57'
                    billing_address:
                      address_line_1: 'Calle 34 # 56 - 78'
                      address_line_2: Apartamento 502, Torre I
                      country: CO
                      state: Cundinamarca
                      city: Bogotá
                      zip_code: '111111'
                      neighborhood: Test
                    shipping_address:
                      address_line_1: 'Calle 34 # 56 - 78'
                      address_line_2: Apartamento 502, Torre I
                      country: CO
                      state: Cundinamarca
                      city: Bogotá
                      zip_code: '111111'
                      neighborhood: Test
                    metadata:
                      - key: ID
                        value: '1234'
                    created_at: '2025-04-11T20:10:29.163144Z'
                    updated_at: '2025-04-11T20:10:29.163141Z'
                    merchant_customer_created_at: '2023-08-05T14:43:58.980718Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 94121f98-98f7-4d57-aa5f-228401d35b12
                  merchant_customer_id:
                    type: string
                    example: '1744402154'
                  first_name:
                    type: string
                    example: John
                  last_name:
                    type: string
                    example: Doe
                  gender:
                    type: string
                    example: F
                  date_of_birth:
                    type: string
                    example: '1990-02-28'
                  email:
                    type: string
                    example: john.doe2@gmail.com
                  nationality:
                    type: string
                    example: CO
                  country:
                    type: string
                    example: CO
                  document:
                    type: object
                    properties:
                      document_type:
                        type: string
                        example: CC
                      document_number:
                        type: string
                        example: '1010268952'
                  phone:
                    type: object
                    properties:
                      number:
                        type: string
                        example: '3132450765'
                      country_code:
                        type: string
                        example: '57'
                  billing_address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 'Calle 34 # 56 - 78'
                      address_line_2:
                        type: string
                        example: Apartamento 502, Torre I
                      country:
                        type: string
                        example: CO
                      state:
                        type: string
                        example: Cundinamarca
                      city:
                        type: string
                        example: Bogotá
                      zip_code:
                        type: string
                        example: '111111'
                      neighborhood:
                        type: string
                        example: Test
                  shipping_address:
                    type: object
                    properties:
                      address_line_1:
                        type: string
                        example: 'Calle 34 # 56 - 78'
                      address_line_2:
                        type: string
                        example: Apartamento 502, Torre I
                      country:
                        type: string
                        example: CO
                      state:
                        type: string
                        example: Cundinamarca
                      city:
                        type: string
                        example: Bogotá
                      zip_code:
                        type: string
                        example: '111111'
                      neighborhood:
                        type: string
                        example: Test
                  metadata:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: ID
                        value:
                          type: string
                          example: '1234'
                  created_at:
                    type: string
                    example: '2025-04-11T20:10:29.163144Z'
                  updated_at:
                    type: string
                    example: '2025-04-11T20:10:29.163141Z'
                  merchant_customer_created_at:
                    type: string
                    example: '2023-08-05T14:43:58.980718Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Customers
    delete:
      description: ''
      operationId: delete-customer
      responses:
        '202':
          description: Accepted (body is empty)
        '400':
          description: Customer not found
          content:
            application/json:
              examples:
                Customer Not Found:
                  value:
                    code: CUSTOMER_NOT_FOUND
                    messages:
                      - Customer not found.
                  summary: Customer Not Found
                Bad Request:
                  summary: Bad Request
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not found
      parameters:
        - in: header
          name: x-account-code
          schema:
            type: string
          description: The account_id found in the Yuno Dashboard (UUID | MAX 36; MIN 36).
          required: true
        - in: path
          name: customer_id
          schema:
            type: string
          required: true
      tags:
        - Customers
  /customers/{customer_id}/payment-methods:
    get:
      summary: Retrieve Enrolled Payment Methods
      description: ''
      operationId: retrieve-enrolled-payment-methods-api
      parameters:
        - name: customer_id
          in: path
          description: >-
            The unique identifier of the customer, created using the [Create
            Customer](https://docs.y.uno/reference/create-customer) endpoint (MAX 64; MIN 36).
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    payment_methods:
                      - idempotency_key: null
                        name: VISA ****1111
                        description: VISA ****1111
                        icon: https://icons.prod.y.uno/visa_logosimbolo.png
                        type: CARD
                        category: CARD
                        country: US
                        status: ENROLLED
                        sub_status: null
                        vaulted_token: 46adcbc0-aa26-4867-a4e7-28a5ad9100ae
                        metadata:
                          - key: on_behalf_of
                            value: acct_1A2b3C4d5E6f7G8h
                          - key: order_ref
                            value: ABC-123
                        callback_url: null
                        action: null
                        redirect_url: null
                        created_at: '2023-08-05T14:22:06.766268Z'
                        updated_at: '2023-08-05T14:22:06.766268Z'
                        card_data:
                          iin: '41111111'
                          lfd: '1111'
                          expiration_month: 3
                          expiration_year: 27
                          number_length: 16
                          security_code_length: 3
                          brand: VISA
                          issuer: null
                          issuer_name: JPMORGAN_CHASE_BANK_NA
                          issuer_code: US_JPMORGAN_CHASE_BANK_NA
                          category: null
                          type: CREDIT
                        last_successfully_used: false
                        last_successfully_used_at: ''
                      - idempotency_key: null
                        name: VISA ****1111
                        description: VISA ****1111
                        icon: https://icons.prod.y.uno/visa_logosimbolo.png
                        type: CARD
                        category: CARD
                        country: US
                        status: ENROLLED
                        sub_status: null
                        vaulted_token: 7ced7717-f860-4705-a376-58a714953de9
                        callback_url: null
                        action: null
                        redirect_url: null
                        created_at: '2023-08-05T14:45:24.112621Z'
                        updated_at: '2023-08-05T14:45:24.112621Z'
                        card_data:
                          iin: '41111111'
                          lfd: '1111'
                          expiration_month: 3
                          expiration_year: 27
                          number_length: 16
                          security_code_length: 3
                          brand: VISA
                          issuer: null
                          issuer_name: JPMORGAN_CHASE_BANK_NA
                          issuer_code: US_JPMORGAN_CHASE_BANK_NA
                          category: null
                          type: CREDIT
                        last_successfully_used: false
                        last_successfully_used_at: ''
              schema:
                type: object
                properties:
                  payment_methods:
                    type: array
                    items:
                      type: object
                      properties:
                        idempotency_key: {}
                        name:
                          type: string
                          example: VISA ****1111
                        description:
                          type: string
                          example: VISA ****1111
                        icon:
                          type: string
                          example: https://icons.prod.y.uno/visa_logosimbolo.png
                        type:
                          type: string
                          example: CARD
                        category:
                          type: string
                          example: CARD
                        country:
                          type: string
                          example: US
                        status:
                          type: string
                          example: ENROLLED
                        sub_status: {}
                        vaulted_token:
                          type: string
                          example: 46adcbc0-aa26-4867-a4e7-28a5ad9100ae
                        metadata:
                          type: array
                        callback_url: {}
                        action: {}
                        redirect_url: {}
                        created_at:
                          type: string
                          example: '2023-08-05T14:22:06.766268Z'
                        updated_at:
                          type: string
                          example: '2023-08-05T14:22:06.766268Z'
                        card_data:
                          type: object
                          properties:
                            iin:
                              type: string
                              example: '41111111'
                            lfd:
                              type: string
                              example: '1111'
                            expiration_month:
                              type: integer
                              example: 3
                              default: 0
                            expiration_year:
                              type: integer
                              example: 27
                              default: 0
                            number_length:
                              type: integer
                              example: 16
                              default: 0
                            security_code_length:
                              type: integer
                              example: 3
                              default: 0
                            security_code_expires_in:
                              type: integer
                              example: 842
                              description: >-
                                Seconds left before the stored security code stops being available to the PCI forward
                                proxy. Returns -1 once that window has closed, and is omitted entirely when the card
                                carries no security code. Only present for organizations with the PCI forward proxy
                                enabled.
                            brand:
                              type: string
                              example: VISA
                            issuer: {}
                            issuer_name:
                              type: string
                              example: JPMORGAN_CHASE_BANK_NA
                            issuer_code:
                              type: string
                              example: US_JPMORGAN_CHASE_BANK_NA
                            category: {}
                            type:
                              type: string
                              example: CREDIT
                        last_successfully_used:
                          type: boolean
                          example: false
                          default: true
                        last_successfully_used_at:
                          type: string
                          example: ''
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Direct Workflow
    post:
      summary: Enroll Payment Method
      description: ''
      operationId: enroll-payment-method-api
      parameters:
        - name: customer_id
          in: path
          description: >-
            The unique identifier of the customer, created using the [Create
            Customer](https://docs.y.uno/reference/create-customer) endpoint (MAX 64; MIN 36).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - country
                - type
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [Yuno's
                    Dashboard](https://dashboard.y.uno/) (MAX 64; MIN 36).
                country:
                  type: string
                  description: The transaction's country code (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                  enum:
                    - AR
                    - BO
                    - BR
                    - CL
                    - CO
                    - CR
                    - EC
                    - SV
                    - GT
                    - HN
                    - MX
                    - NI
                    - PA
                    - PY
                    - PE
                    - US
                    - UY
                type:
                  type: string
                  description: The payment method type (MAX 255; MIN 3; [Payment type](/reference/payment-type-list)).
                  enum:
                    - CARD
                    - ACH_ENROLLMENT
                    - NU_PAY_ENROLLMENT
                    - SEPA_ENROLLMENT
                workflow:
                  type: string
                  description: >-
                    The payment workflow indicates whether the integration will use Yuno's SDK or will be a back to back
                    connection. Since you are in the Direct workflow, the value must be `DIRECT`.
                  default: DIRECT
                  enum:
                    - DIRECT
                callback_url:
                  type: string
                  description: >-
                    URL to return the customer after an enrollment in a provider´s environment. Only necessary for
                    alternative payment methods integrations (MAX 255; MIN 3).
                metadata:
                  type: array
                  description: >-
                    Optional custom key–value tags for the enrollment (e.g., on_behalf_of, order_ref). Opaque to Yuno:
                    it is stored with the enrolled payment method, returned when you retrieve it and on the
                    `enrollment.enroll` webhook, and sent to the provider integration with the enrollment, the same way
                    payment `metadata` reaches it on a charge. The reserved `gateway_options` entry is the exception: it
                    is stored and returned, but it is not forwarded with the enrollment. Up to 120 items and 75000
                    characters in total, counting every key and value.
                  items:
                    properties:
                      key:
                        type: string
                        description: 'The metadata key (MAX 48. Value: MIN:1, MAX:48). **[Case Sensitive]**'
                      value:
                        type: string
                        description: 'The metadata key value (MAX 512. Value: MIN:1, MAX:512). **[Case Sensitive]**'
                    required:
                      - key
                      - value
                    type: object
                token:
                  type: string
                  format: uuid
                  description: Pre-generated token used to reference the payment method being enrolled.
                parent_type:
                  type: string
                  description: Type of the parent payment method, used when enrolling a tokenized/derived method (e.g. `CARD`).
                account_updater:
                  type: boolean
                  description: >-
                    Per-card control for Card Account Updater. When set to `false`, this card is excluded from Card
                    Account Updater and will not receive automatic card-detail updates. When omitted, the card follows
                    your account's Account Updater configuration. Applies at enrollment.
                card_data:
                  type: object
                  description: Specifies the details of the card. Only for `DIRECT` workflow integration.
                  required:
                    - number
                    - expiration_month
                    - expiration_year
                  properties:
                    number:
                      type: string
                      description: >-
                        Card’s number without any separators (MAX 19; MIN 8) - only available for PCI certified
                        merchants.
                    expiration_month:
                      type: integer
                      description: Card’s expiration month - MM (MAX 2; MIN 2) - only available for PCI certified merchants.
                      format: int32
                    expiration_year:
                      type: integer
                      description: Card’s expiration year - YYYY  (MAX 4; MIN 4) - only available for PCI certified merchants.
                      format: int32
                    security_code:
                      type: string
                      description: Card’s security code (MAX 4; MIN 3) - only available for PCI certified merchants.
                    holder_name:
                      type: string
                      description: >-
                        Cardholder’s full name as it appears on the card (MAX 26; MIN 2) - only available for PCI
                        certified merchants.
                    brand:
                      type: string
                      description: Card brand (e.g. `VISA`, `MASTERCARD`, `AMEX`).
                    scheme:
                      type: string
                      description: Card scheme used to process the transaction (validated card scheme).
                    soft_descriptor:
                      type: string
                      description: Statement descriptor shown on the cardholder’s bank statement.
                    card_pin:
                      type: string
                      description: Card PIN, for payment methods that require it.
                    authentication_method:
                      type: string
                      description: Authentication method for Click-to-Pay.
                      enum:
                        - FIDO2
                        - OWN_CREDENTIALS
                        - FEDERATED_ID
                customer_payer:
                  type: object
                  description: Information about the customer/payer associated with the payment method.
                  properties:
                    code:
                      type: string
                      description: Yuno customer identifier (customer code). MIN 3 / MAX 255.
                    organization_customer_external_id:
                      type: string
                      description: Customer identifier in the merchant’s own system, scoped to the organization. MIN 3 / MAX 255.
                    email:
                      type: string
                      description: Email address of the customer.
                    ip_address:
                      type: string
                      description: >-
                        IP address of the customer at the time of enrollment. Required by the provider for the online
                        ACH mandate.
                    browser_info:
                      type: object
                      description: Browser metadata. Required by the provider for the online ACH mandate.
                      properties:
                        user_agent:
                          type: string
                          description: Full user-agent string of the customer’s browser.
                payment_method:
                  type: object
                  description: Payment method wrapper used for non-card methods (e.g. bank transfer / ACH) and vaulting options.
                  properties:
                    type:
                      type: string
                      description: >-
                        Method type label for the enrolled instrument (e.g. `ACH_ENROLLMENT`). The enrollment type is
                        driven by the top-level `type`; this field is informational.
                    vault_on_success:
                      type: boolean
                      description: When `true`, the payment method is vaulted (saved) after a successful enrollment.
                    vault_only:
                      type: boolean
                      description: >-
                        When `true`, Yuno stores the bank details from `payment_method.detail.bank_transfer` and enrolls
                        the payment method immediately as `ENROLLED`, without any provider interaction at enrollment or
                        unenrollment. Only available for bank transfer enrollments.
                    detail:
                      type: object
                      description: Method-specific details for the instrument being enrolled.
                      properties:
                        bank_transfer:
                          type: object
                          required:
                            - beneficiary_name
                            - routing_number
                          properties:
                            account_type:
                              type: string
                              description: Bank account type.
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            account_holder_type:
                              type: string
                              description: >-
                                Type of account holder (e.g. `INDIVIDUAL`, `ENTITY`). Accepted and stored, but not
                                forwarded to the provider for ACH — does not control individual vs. company treatment
                                for ACH enrollment.
                              enum:
                                - INDIVIDUAL
                                - ENTITY
                            bank_id:
                              type: string
                              description: Identifier of the bank. MIN 3 / MAX 255.
                            bank_name:
                              type: string
                              description: Name of the bank. MIN 3 / MAX 255.
                            bank_account:
                              type: string
                              description: Bank account number. MIN 3 / MAX 255.
                            beneficiary_name:
                              type: string
                              description: Name of the account beneficiary. MIN 3 / MAX 255.
                            branch:
                              type: string
                              description: Bank branch code. MIN 1 / MAX 8.
                            branch_digit:
                              type: string
                              description: Branch verification digit. MIN 1 / MAX 2.
                            routing_number:
                              type: string
                              description: Bank routing number. MIN 3 / MAX 255.
                            code:
                              type: string
                              description: Bank code. MIN 1 / MAX 8.
                            reference:
                              type: string
                              description: Reference associated with the bank account. MIN 1 / MAX 255.
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
                                creditor_id:
                                  type: string
                                  description: >-
                                    Creditor identifier of the direct debit mandate (for example, the SEPA creditor
                                    identifier shown on the payer's bank statement). MIN 1 / MAX 128.
                provider_data:
                  type: object
                  description: >-
                    Provider data used for token migration or provider-token enrollment. Send this object when
                    `token_source` is `PROVIDER_API`, `MIGRATION_FILE`, or `PROVIDER_TOKEN`. Usage must be agreed with
                    your commercial advisor in Yuno.
                  required:
                    - id
                  properties:
                    id:
                      type: string
                      description: The unique identifier of the payment provider.
                    token_source:
                      type: string
                      description: >-
                        Origin of the provided token. Note: `PROVIDER_TOKEN` is only supported when the top-level `type`
                        is `CARD`. Using it with `ACH_ENROLLMENT` returns an error.
                      enum:
                        - PROVIDER_API
                        - MIGRATION_FILE
                        - PROVIDER_TOKEN
                    payment_method_token:
                      type: string
                      description: Provider’s payment method token. Required when `token_source` is `PROVIDER_TOKEN`.
                    connection_id:
                      type: string
                      format: uuid
                      description: >-
                        Identifier of the provider connection. Required when `token_source` is `PROVIDER_API` or
                        `PROVIDER_TOKEN`.
                verify:
                  type: object
                  description: >-
                    Indicates whether to verify the payment with a verify transaction or not. You’ll need to have a
                    provider defined in your CARD route. False by default.
                  required:
                    - vault_on_success
                  properties:
                    vault_on_success:
                      type: boolean
                      description: >-
                        Indicates whether to verify the payment with a verify transaction or not. You’ll need to have a
                        provider defined in your CARD route. False by default.
                    currency:
                      type: string
                      description: >-
                        Currency of the card verification. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    external_subscription:
                      type: object
                      description: >-
                        Links the card verification to a subscription managed in an external billing platform. The
                        object is echoed in the enrollment response and persisted on the verification payment
                        (`verify.payment.id` in the response) — correlate later through Retrieve Payment and payment
                        webhooks; it is not returned by the payment-method retrieve endpoint or enrollment webhooks.
                        Requires `vault_on_success` to be `true`; sending it otherwise returns `INVALID_PARAMETERS`.
                      properties:
                        id:
                          type: string
                          description: Identifier of the subscription in your system.
                        customer_id:
                          type: string
                          description: Identifier of the subscription's customer in your system.
                    metadata:
                      type: array
                      description: >-
                        Optional custom key–value tags for the verification (e.g., order_ref, invoice). They are
                        attached to the internal verify payment created by the verification — available downstream
                        exactly like payment `metadata` (payment data, provider gateway request, routing) — and stored
                        with the enrolled payment method's verification settings. Up to 120 items.
                      items:
                        properties:
                          key:
                            type: string
                            description: 'The metadata key (MAX 48. Value: MIN:1, MAX:48). **[Case Sensitive]**'
                          value:
                            type: string
                            description: 'The metadata key value (MAX 512. Value: MIN:1, MAX:512). **[Case Sensitive]**'
                        required:
                          - key
                          - value
                        type: object
                recurring_payment:
                  type: object
                  description: Recurring / subscription billing metadata associated with the enrolled method.
                  properties:
                    regular_billing:
                      type: object
                      properties:
                        label:
                          type: string
                          description: Display label for the recurring billing plan.
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                              description: Billing currency, ISO 4217 format (3 letters).
                            value:
                              type: number
                              description: Billing amount per interval. Range 0 – 9999999999.
                        interval_unit:
                          type: string
                          description: Billing interval unit.
                          enum:
                            - DAY
                            - WEEK
                            - MONTH
                            - YEAR
                        interval_count:
                          type: integer
                          description: >-
                            Number of interval units between charges (e.g. `1` = every month when `interval_unit` is
                            `MONTH`).
            examples:
              Card Direct:
                value:
                  account_id: dbf0c133-86bc-4be0-94a5-ca2ff6778451
                  country: CO
                  type: CARD
                  workflow: DIRECT
                  card_data:
                    number: '4111111111111111'
                    holder_name: JOHN DOE
                    expiration_month: 12
                    expiration_year: 26
                    security_code: '212'
                    brand: VISA
                  customer_payer:
                    code: '12345'
                    organization_customer_external_id: ext-12345
                  verify:
                    vault_on_success: true
                    currency: COP
              ACH Enrollment:
                value:
                  account_id: dbf0c133-86bc-4be0-94a5-ca2ff6778451
                  country: US
                  type: ACH_ENROLLMENT
                  workflow: DIRECT
                  metadata:
                    - key: on_behalf_of
                      value: acct_1A2b3C4d5E6f7G8h
                    - key: order_ref
                      value: ABC-123
                  customer_payer:
                    code: <customer_code>
                    email: john@example.com
                    ip_address: 203.0.113.5
                    browser_info:
                      user_agent: >-
                        Mozilla/5.0 (Macintosh; Intel Mac OS X 14_0) AppleWebKit/537.36 (KHTML, like Gecko)
                        Chrome/144.0.0.0 Safari/537.36
                  payment_method:
                    vault_on_success: true
                    detail:
                      bank_transfer:
                        bank_account: '000123456789'
                        routing_number: '110000000'
                        beneficiary_name: John Doe
                        account_type: CHECKINGS
                        bank_account_mask_number: '****6789'
                        mandate:
                          id: MND-123
                          info: free text mandate info
                          received_status: RECEIVED
                          existing_status: ACTIVE
                          created_at: '2026-07-09T00:00:00Z'
                          updated_at: '2026-07-09T00:00:00Z'
              SEPA mandate import (vault-only):
                value:
                  account_id: dbf0c133-86bc-4be0-94a5-ca2ff6778451
                  country: DE
                  type: SEPA_ENROLLMENT
                  payment_method:
                    vault_only: true
                    detail:
                      bank_transfer:
                        bank_account: DE89370400440532013000
                        bank_account_mask_number: '****3000'
                        beneficiary_name: Max Mustermann
                        account_holder_type: INDIVIDUAL
                        mandate:
                          id: MNDT-2019-000123
                          info: SEPA Core Direct Debit mandate
                          creditor_id: DE98ZZZ09999999999
                          received_status: RECEIVED
                          existing_status: ACTIVE
                          created_at: '2019-05-04T00:00:00Z'
                  customer_payer:
                    first_name: Max
                    last_name: Mustermann
                    email: max@example.com
              Token migration process:
                value:
                  account_id: dbf0c133-86bc-4be0-94a5-ca2ff6778451
                  country: MX
                  type: CARD
                  workflow: DIRECT
                  provider_data:
                    id: DLOCAL
                    token_source: PROVIDER_TOKEN
                    payment_method_token: tok_provider_abc123
                    connection_id: b1a2c3d4-e5f6-7890-abcd-ef1234567890
                  verify:
                    vault_on_success: true
              Card Enrollment With Verification:
                value:
                  account_id: dbf0c133-86bc-4be0-94a5-ca2ff6778451
                  country: US
                  type: CARD
                  workflow: DIRECT
                  card_data:
                    holder_name: John Doe
                    expiration_month: 3
                    expiration_year: 30
                    number: '4111111111111111'
                    security_code: '123'
                  verify:
                    vault_on_success: true
                    currency: USD
                    metadata:
                      - key: order_ref
                        value: ABC-123
              Provider token enrollment:
                summary: Enroll a provider-issued token (PROVIDER_TOKEN flow)
                value:
                  account_id: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
                  country: CO
                  type: CARD
                  card_data:
                    brand: VISA
                    lfd: '4242'
                  provider_data:
                    id: ADYEN
                    token_source: PROVIDER_TOKEN
                    payment_method_token: tok_provider_xyz
                    connection_id: f00d04b4-584f-4790-b51d-ceede8fd8f0f
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                ACH Enrollment:
                  value:
                    type: ACH_ENROLLMENT
                    status: READY_TO_ENROLL
                    action: REDIRECT_URL
                    redirect_url: https://payments.stripe.com/microdeposit/pacreq_test_placeholder
                    metadata:
                      - key: on_behalf_of
                        value: acct_1A2b3C4d5E6f7G8h
                      - key: order_ref
                        value: ABC-123
                Result:
                  value:
                    idempotency_key: 2ca58c6d-8794-4c8f-a2f6-bba4b7498b74
                    name: VISA ****1111
                    description: VISA ****1111
                    type: CARD
                    category: CARD
                    country: US
                    status: ENROLLED
                    sub_status: null
                    vaulted_token: cbdcc878-ceb4-4dd8-b0f0-49d444855de0
                    callback_url: www.example.com
                    action: null
                    created_at: '2024-06-06T13:32:49.715656Z'
                    updated_at: '2024-06-06T13:32:49.715656Z'
                    card_data:
                      iin: '41111111'
                      lfd: '1111'
                      holder_name: JOHN DOE
                      expiration_month: 3
                      expiration_year: 26
                      number_length: 16
                      security_code_length: 3
                      brand: VISA
                      issuer: JPMORGAN CHASE BANK N A
                      issuer_code: null
                      country_code: US
                      category: CREDIT
                      type: CREDIT
                      fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                    last_successfully_used: null
                    last_successfully_used_at: null
                    preferred: null
                    verify:
                      vault_on_success: false
                      payment: null
                    parent_type: null
                    redirect_url: null
                With Verify:
                  value:
                    idempotency_key: 2ca58c6d-8794-4c8f-a2f6-bba4b7498b74
                    name: VISA ****0000
                    description: VISA ****0000
                    type: CARD
                    category: CARD
                    country: US
                    status: ENROLLED
                    sub_status: null
                    vaulted_token: 9c298b36-b005-42ed-92e1-808b2a785e5f
                    callback_url: null
                    action: null
                    created_at: '2023-09-04T16:37:55.314018Z'
                    updated_at: '2023-09-04T16:37:55.314019Z'
                    card_data:
                      iin: '49880800'
                      lfd: '0000'
                      holder_name: JOHN DOE
                      expiration_month: 3
                      expiration_year: 30
                      number_length: 16
                      security_code_length: 3
                      brand: VISA
                      issuer: JPMORGAN CHASE BANK N A
                      issuer_code: null
                      country_code: US
                      category: BUSINESS ENHANCED
                      type: CREDIT
                      fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                    last_successfully_used: null
                    last_successfully_used_at: null
                    preferred: null
                    verify:
                      vault_on_success: true
                      currency: USD
                      payment:
                        id: 2ff3872a-9b62-412f-be3e-69689b184e5f
                        account_id: ad59c347-407c-4f11-841b-f3ac260cd018
                        description: VERIFY CARD
                        country: US
                        status: SUCCEEDED
                        sub_status: VERIFIED
                        merchant_order_id: VERIFY_CARD_9c298b36-b005-42ed-92e1-808b2a785e5f
                        created_at: '2023-09-04T16:37:55.352948Z'
                        updated_at: '2023-09-04T16:37:56.429675Z'
                        amount:
                          currency: USD
                          value: 0
                          refunded: 0
                          captured: 0
                        metadata:
                          - key: order_ref
                            value: ABC-123
                        transactions:
                          - id: 1e501f45-583b-4187-b42e-8c3e620d1ef5
                            type: VERIFY
                            status: SUCCEEDED
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            category: CARD
                            merchant_reference: VERIFY_CARD_9c298b36-b005-42ed-92e1-808b2a785e5f
                            provider_data:
                              id: ADYEN
                              transaction_id: SKCN8ZR5S8NKGK82
                              account_id: ''
                              status: Cancelled
                              sub_status: ''
                              status_detail: ''
                              response_message: ''
                              raw_response:
                                additionalData:
                                  threeds2.cardEnrolled: 'false'
                                merchantReference: VERIFY_CARD_9c298b36-b005-42ed-92e1-808b2a785e5f
                                refusalReason: FRAUD-CANCELLED
                                refusalReasonCode: '22'
                                resultCode: Cancelled
                              third_party_transaction_id: null
                            created_at: '2023-09-04T16:37:55.482510Z'
                            updated_at: '2023-09-04T16:37:56.348742Z'
                    parent_type: null
                    redirect_url: null
              schema:
                oneOf:
                  - type: object
                    properties:
                      idempotency_key:
                        type: string
                        example: 2ca58c6d-8794-4c8f-a2f6-bba4b7498b74
                      name:
                        type: string
                        example: VISA ****1111
                      description:
                        type: string
                        example: VISA ****1111
                      type:
                        type: string
                        example: CARD
                      category:
                        type: string
                        example: CARD
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: ENROLLED
                      sub_status: {}
                      vaulted_token:
                        type: string
                        example: cbdcc878-ceb4-4dd8-b0f0-49d444855de0
                      metadata:
                        type: array
                      callback_url:
                        type: string
                        example: www.example.com
                      action:
                        type: string
                      redirect_url:
                        type: string
                        example: null
                      parent_type:
                        type: string
                        example: CARD
                      created_at:
                        type: string
                        example: '2024-06-06T13:32:49.715656Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T13:32:49.715656Z'
                      card_data:
                        type: object
                        properties:
                          iin:
                            type: string
                            example: '41111111'
                          lfd:
                            type: string
                            example: '1111'
                          holder_name:
                            type: string
                            description: Cardholder's full name as returned by the payment provider.
                            example: JOHN DOE
                          expiration_month:
                            type: integer
                            example: 3
                            default: 0
                          expiration_year:
                            type: integer
                            example: 26
                            default: 0
                          number_length:
                            type: integer
                            example: 16
                            default: 0
                          security_code_length:
                            type: integer
                            example: 3
                            default: 0
                          brand:
                            type: string
                            example: VISA
                          issuer:
                            type: string
                            example: JPMORGAN CHASE BANK N A
                          issuer_code: {}
                          country_code:
                            type: string
                            description: ISO 3166-1 alpha-2 country code of the card's issuing country.
                            example: US
                          category:
                            type: string
                            example: CREDIT
                          type:
                            type: string
                            example: CREDIT
                          fingerprint:
                            type: string
                            example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                      last_successfully_used: {}
                      last_successfully_used_at: {}
                      preferred: {}
                      verify:
                        type: object
                        properties:
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          payment: {}
                      provider_data:
                        type: object
                        description: Additional data from the provider
                        properties:
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response:
                            type: object
                  - title: With Verify
                    type: object
                    properties:
                      idempotency_key:
                        type: string
                        example: 2ca58c6d-8794-4c8f-a2f6-bba4b7498b74
                      name:
                        type: string
                        example: VISA ****0000
                      description:
                        type: string
                        example: VISA ****0000
                      type:
                        type: string
                        example: CARD
                      category:
                        type: string
                        example: CARD
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: ENROLLED
                      sub_status: {}
                      vaulted_token:
                        type: string
                        example: 9c298b36-b005-42ed-92e1-808b2a785e5f
                      metadata:
                        type: array
                      callback_url: {}
                      action:
                        type: string
                      redirect_url:
                        type: string
                        example: null
                      created_at:
                        type: string
                        example: '2023-09-04T16:37:55.314018Z'
                      updated_at:
                        type: string
                        example: '2023-09-04T16:37:55.314019Z'
                      card_data:
                        type: object
                        properties:
                          iin:
                            type: string
                            example: '49880800'
                          lfd:
                            type: string
                            example: '0000'
                          holder_name:
                            type: string
                            description: Cardholder's full name as returned by the payment provider.
                            example: JOHN DOE
                          expiration_month:
                            type: integer
                            example: 3
                            default: 0
                          expiration_year:
                            type: integer
                            example: 30
                            default: 0
                          number_length:
                            type: integer
                            example: 16
                            default: 0
                          security_code_length:
                            type: integer
                            example: 3
                            default: 0
                          brand:
                            type: string
                            example: VISA
                          issuer:
                            type: string
                            example: JPMORGAN CHASE BANK N A
                          issuer_code: {}
                          country_code:
                            type: string
                            description: ISO 3166-1 alpha-2 country code of the card's issuing country.
                            example: US
                          category:
                            type: string
                            example: BUSINESS ENHANCED
                          type:
                            type: string
                            example: CREDIT
                          fingerprint:
                            type: string
                            example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                      last_successfully_used: {}
                      last_successfully_used_at: {}
                      preferred: {}
                      verify:
                        type: object
                        properties:
                          vault_on_success:
                            type: boolean
                            example: true
                            default: true
                          currency:
                            type: string
                            example: USD
                          payment:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 2ff3872a-9b62-412f-be3e-69689b184e5f
                              account_id:
                                type: string
                                example: ad59c347-407c-4f11-841b-f3ac260cd018
                              description:
                                type: string
                                example: VERIFY CARD
                              country:
                                type: string
                                example: US
                              status:
                                type: string
                                example: SUCCEEDED
                              sub_status:
                                type: string
                                example: VERIFIED
                              merchant_order_id:
                                type: string
                                example: VERIFY_CARD_9c298b36-b005-42ed-92e1-808b2a785e5f
                              created_at:
                                type: string
                                example: '2023-09-04T16:37:55.352948Z'
                              updated_at:
                                type: string
                                example: '2023-09-04T16:37:56.429675Z'
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                    example: USD
                                  value:
                                    type: integer
                                    example: 0
                                    default: 0
                                  refunded:
                                    type: integer
                                    example: 0
                                    default: 0
                                  captured:
                                    type: integer
                                    example: 0
                                    default: 0
                              transactions:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: 1e501f45-583b-4187-b42e-8c3e620d1ef5
                                    type:
                                      type: string
                                      example: VERIFY
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    response_code:
                                      type: string
                                      example: SUCCEEDED
                                    response_message:
                                      type: string
                                      example: Transaction successful
                                    category:
                                      type: string
                                      example: CARD
                                    merchant_reference:
                                      type: string
                                      example: VERIFY_CARD_9c298b36-b005-42ed-92e1-808b2a785e5f
                                    provider_data:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          example: ADYEN
                                        transaction_id:
                                          type: string
                                          example: SKCN8ZR5S8NKGK82
                                        account_id:
                                          type: string
                                          example: ''
                                        status:
                                          type: string
                                          example: Cancelled
                                        sub_status:
                                          type: string
                                          example: ''
                                        status_detail:
                                          type: string
                                          example: ''
                                        response_message:
                                          type: string
                                          example: ''
                                        raw_response:
                                          type: object
                                          properties:
                                            additionalData:
                                              type: object
                                              properties:
                                                threeds2.cardEnrolled:
                                                  type: string
                                                  example: 'false'
                                            merchantReference:
                                              type: string
                                              example: VERIFY_CARD_9c298b36-b005-42ed-92e1-808b2a785e5f
                                            refusalReason:
                                              type: string
                                              example: FRAUD-CANCELLED
                                            refusalReasonCode:
                                              type: string
                                              example: '22'
                                            resultCode:
                                              type: string
                                              example: Cancelled
                                        raw_request:
                                          type: object
                                          description: >-
                                            Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                            allowlisted organizations.
                                        third_party_transaction_id: {}
                                    created_at:
                                      type: string
                                      example: '2023-09-04T16:37:55.482510Z'
                                    updated_at:
                                      type: string
                                      example: '2023-09-04T16:37:56.348742Z'
                              metadata:
                                type: array
                                description: >-
                                  The custom key–value tags sent in `verify.metadata`, echoed from the internal verify
                                  payment.
                                items:
                                  type: object
                                  properties:
                                    key:
                                      type: string
                                      example: order_ref
                                    value:
                                      type: string
                                      example: ABC-123
                      provider_data:
                        type: object
                        description: Additional data from the provider
                        properties:
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response:
                            type: object
                      parent_type:
                        nullable: true
                        description: Parent type.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Direct Workflow
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /customers/{customer_id}/payment-methods/{payment_method_id}:
    get:
      summary: Retrieve Enrolled Payment Method by Id
      description: ''
      operationId: retrieve-enrolled-payment-method-by-id-api
      parameters:
        - name: customer_id
          in: path
          description: >-
            The unique identifier of the customer, created using the [Create
            Customer](https://docs.y.uno/reference/create-customer) endpoint (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: payment_method_id
          in: path
          description: >-
            The unique identifier of the `payment_method`. This information was received as the `vaulted_token` by
            enrolling a payment method using [Enroll Payment Method](/reference/enroll-payment-method-api) (UUID, 36
            chars).
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    idempotency_key: 2ca58c6d-8794-4c8f-a2f6-bba4b7498b74
                    id: 2fd6bf11-2129-4061-9c2a-34e196f89753
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    name: VISA ****1111
                    description: VISA ****1111
                    type: CARD
                    category: CARD
                    country: US
                    status: ENROLLED
                    sub_status: null
                    vaulted_token: 7ced7717-f860-4705-a376-58a714953de9
                    metadata:
                      - key: on_behalf_of
                        value: acct_1A2b3C4d5E6f7G8h
                      - key: order_ref
                        value: ABC-123
                    action: FORM
                    redirect_url: null
                    created_at: '2024-06-04T12:47:46.992602Z'
                    updated_at: '2024-06-04T12:47:46.992603Z'
                    enrollment:
                      session: ''
                      sdk_required_action: false
                    provider:
                      id: YUNO
                      type: YUNO
                      token: e47299a5-269e-42a1-9be1-9f64e400413a
                      provider_status: null
                    customer_payer:
                      first_name: John
                      last_name: Doe
                      email: john.doe@example.com
                      gender: M
                      date_of_birth: '1990-02-28'
                      document:
                        document_number: '123456789'
                        document_type: SSN
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                    card_data:
                      iin: '41111111'
                      lfd: '1111'
                      expiration_month: 3
                      expiration_year: 26
                      number_length: 16
                      security_code_length: 3
                      brand: VISA
                      issuer: JPMORGAN CHASE BANK N A
                      issuer_code: null
                      country_code: US
                      category: CREDIT
                      type: CREDIT
                      fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                    last_successfully_used: null
                    last_successfully_used_at: null
                    verify:
                      vault_on_success: false
                      payment: null
                    preferred: null
                    parent_type: null
                    callback_url: null
              schema:
                type: object
                properties:
                  idempotency_key:
                    type: string
                    example: 2ca58c6d-8794-4c8f-a2f6-bba4b7498b74
                  id:
                    type: string
                    example: 2fd6bf11-2129-4061-9c2a-34e196f89753
                  account_id:
                    type: string
                    example: 493e9374-510a-4201-9e09-de669d75f256
                  name:
                    type: string
                    example: VISA ****1111
                  description:
                    type: string
                    example: VISA ****1111
                  type:
                    type: string
                    example: CARD
                  category:
                    type: string
                    example: CARD
                  country:
                    type: string
                    example: US
                  status:
                    type: string
                    example: ENROLLED
                  sub_status: {}
                  vaulted_token:
                    type: string
                    example: 7ced7717-f860-4705-a376-58a714953de9
                  metadata:
                    type: array
                  action:
                    type: string
                    example: FORM
                  redirect_url: {}
                  created_at:
                    type: string
                    example: '2024-06-04T12:47:46.992602Z'
                  updated_at:
                    type: string
                    example: '2024-06-04T12:47:46.992603Z'
                  enrollment:
                    type: object
                    properties:
                      session:
                        type: string
                        example: ''
                      sdk_required_action:
                        type: boolean
                        example: false
                        default: true
                  provider:
                    type: object
                    properties:
                      id:
                        type: string
                        example: YUNO
                      type:
                        type: string
                        example: YUNO
                      token:
                        type: string
                        example: e47299a5-269e-42a1-9be1-9f64e400413a
                      provider_status: {}
                  customer_payer:
                    type: object
                    properties:
                      first_name:
                        type: string
                        example: John
                      last_name:
                        type: string
                        example: Doe
                      email:
                        type: string
                        example: john.doe@example.com
                      gender:
                        type: string
                        example: M
                      date_of_birth:
                        type: string
                        example: '1990-02-28'
                      document:
                        type: object
                        properties:
                          document_number:
                            type: string
                            example: '123456789'
                          document_type:
                            type: string
                            example: SSN
                      phone:
                        type: object
                        properties:
                          number:
                            type: string
                            example: '5551234567'
                          country_code:
                            type: string
                            example: '1'
                      billing_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: 123 Main St
                          address_line_2:
                            type: string
                            example: Apt 4B
                          country:
                            type: string
                            example: US
                          state:
                            type: string
                            example: NY
                          city:
                            type: string
                            example: New York
                          zip_code:
                            type: string
                            example: '10001'
                  card_data:
                    type: object
                    properties:
                      iin:
                        type: string
                        example: '41111111'
                      lfd:
                        type: string
                        example: '1111'
                      expiration_month:
                        type: integer
                        example: 3
                        default: 0
                      expiration_year:
                        type: integer
                        example: 26
                        default: 0
                      number_length:
                        type: integer
                        example: 16
                        default: 0
                      security_code_length:
                        type: integer
                        example: 3
                        default: 0
                      security_code_expires_in:
                        type: integer
                        example: 842
                        description: >-
                          Seconds left before the stored security code stops being available to the PCI forward proxy.
                          Returns -1 once that window has closed, and is omitted entirely when the card carries no
                          security code. Only present for organizations with the PCI forward proxy enabled.
                      brand:
                        type: string
                        example: VISA
                      issuer:
                        type: string
                        example: JPMORGAN CHASE BANK N A
                      issuer_code: {}
                      country_code:
                        type:
                          - string
                          - 'null'
                        description: >-
                          ISO 3166-1 alpha-2 country code of the card's issuing country, derived from BIN lookup when
                          the card is vaulted. Null when BIN enrichment data is unavailable.
                        example: US
                      category:
                        type: string
                        example: CREDIT
                      type:
                        type: string
                        example: CREDIT
                      fingerprint:
                        type: string
                        example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                  last_successfully_used: {}
                  last_successfully_used_at: {}
                  verify:
                    type: object
                    properties:
                      vault_on_success:
                        type: boolean
                        example: false
                        default: true
                      currency:
                        type: string
                        description: Currency of the card verification, as sent when the payment method was enrolled (ISO 4217).
                      external_subscription:
                        type: object
                        description: >-
                          The external subscription this payment method was linked to when it was enrolled. Returned
                          only when the enrollment was created with `verify.vault_on_success` set to `true` and carried
                          an `external_subscription` object. The key is omitted when there is no link, so an absent
                          `external_subscription` does not prove the enrollment has none: the field is also omitted when
                          the verification payment cannot be retrieved. Retrieve the verification payment to confirm.
                        properties:
                          id:
                            type: string
                            description: Identifier of the subscription in your system.
                          customer_id:
                            type: string
                            description: Identifier of the subscription's customer in your system.
                      payment: {}
                  preferred: {}
                  provider_data:
                    type: object
                    description: Additional data from the provider
                    properties:
                      raw_request:
                        type: object
                        description: >-
                          Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                          organizations.
                      raw_response:
                        type: object
                  parent_type:
                    nullable: true
                    description: Parent type.
                  callback_url:
                    nullable: true
                    description: Callback url.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                Customer Not Found:
                  value:
                    code: CUSTOMER_NOT_FOUND
                    messages:
                      - Customer not found
                  summary: Customer Not Found
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Direct Workflow
  /customers/{customer_id}/payment-methods/{payment_method_id}/unenroll:
    post:
      summary: Unenroll Payment Method
      description: ''
      operationId: unenroll-payment-method-api
      parameters:
        - name: customer_id
          in: path
          description: The unique identifier of the customer (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: payment_method_id
          in: path
          description: >-
            The unique identifier of the payment method. This is the `vaulted_token` received when enrolling a payment
            method using [Enroll Payment Method](/reference/enroll-payment-method-api) (UUID, 36 chars).
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: cbdcc878-ceb4-4dd8-b0f0-49d444855de0
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    name: VISA ****1111
                    description: VISA ****1111
                    type: CARD
                    category: CARD
                    country: US
                    status: UNENROLLED
                    created_at: '2024-06-06T13:32:49.715656Z'
                    updated_at: '2024-06-06T13:37:38.891106Z'
                    enrollment:
                      session: ''
                      sdk_required_action: true
                    provider:
                      id: YUNO
                      type: YUNO
                      provider_status: null
                    verify:
                      vault_on_success: false
                      payment: null
                    preferred: null
                    idempotency_key: f8f624e9-0621-4775-8f58-5194024008b2
                    parent_type: null
                    sub_status: null
                    vaulted_token: 3727b020-b1d3-4fe6-884e-31a5354a8c20
                    callback_url: null
                    action: FORM
                    redirect_url: null
                    card_data:
                      iin: '41111111'
                      lfd: '1111'
                      holder_name: JOHN DOE
                      expiration_month: 12
                      expiration_year: 26
                      number_length: 16
                      security_code_length: 3
                      brand: VISA
                      issuer: CONOTOXIA SP Z O O
                      issuer_code: null
                      country_code: PL
                      category: CLASSIC
                      type: DEBIT
                      stored_credentials:
                        reason: null
                        usage: null
                        subscription_agreement_id: null
                        network_transaction_id: '108114113107103'
                        transaction_link_id: null
                      fingerprint: ba4d6817-adf4-47b1-8ae4-41a934e9e512
                    last_successfully_used: null
                    last_successfully_used_at: null
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: cbdcc878-ceb4-4dd8-b0f0-49d444855de0
                  account_id:
                    type: string
                    example: 493e9374-510a-4201-9e09-de669d75f256
                  name:
                    type: string
                    example: VISA ****1111
                  description:
                    type: string
                    example: VISA ****1111
                  type:
                    type: string
                    example: CARD
                  category:
                    type: string
                    example: CARD
                  country:
                    type: string
                    example: US
                  status:
                    type: string
                    example: UNENROLLED
                  created_at:
                    type: string
                    example: '2024-06-06T13:32:49.715656Z'
                  updated_at:
                    type: string
                    example: '2024-06-06T13:37:38.891106Z'
                  enrollment:
                    type: object
                    properties:
                      session:
                        type: string
                        example: ''
                      sdk_required_action:
                        type: boolean
                        example: true
                        default: true
                  provider:
                    type: object
                    properties:
                      id:
                        type: string
                        example: YUNO
                      type:
                        type: string
                        example: YUNO
                      provider_status: {}
                  verify:
                    type: object
                    properties:
                      vault_on_success:
                        type: boolean
                        example: false
                        default: true
                      payment: {}
                  preferred: {}
                  idempotency_key:
                    type: string
                    example: f8f624e9-0621-4775-8f58-5194024008b2
                    description: Idempotency key.
                  parent_type:
                    nullable: true
                    description: Parent type.
                  sub_status:
                    nullable: true
                    description: Sub status.
                  vaulted_token:
                    type: string
                    example: 3727b020-b1d3-4fe6-884e-31a5354a8c20
                    description: Vaulted token.
                  callback_url:
                    nullable: true
                    description: Callback url.
                  action:
                    type: string
                    example: FORM
                    description: Action.
                  redirect_url:
                    nullable: true
                    description: Redirect url.
                  card_data:
                    type: object
                    properties:
                      iin:
                        type: string
                        example: '41111111'
                      lfd:
                        type: string
                        example: '1111'
                      holder_name:
                        type: string
                        example: JOHN DOE
                      expiration_month:
                        type: integer
                        example: 12
                      expiration_year:
                        type: integer
                        example: 26
                      number_length:
                        type: integer
                        example: 16
                      security_code_length:
                        type: integer
                        example: 3
                      brand:
                        type: string
                        example: VISA
                      issuer:
                        type: string
                        example: CONOTOXIA SP Z O O
                      issuer_code:
                        nullable: true
                      country_code:
                        type: string
                        example: PL
                      category:
                        type: string
                        example: CLASSIC
                      type:
                        type: string
                        example: DEBIT
                      stored_credentials:
                        type: object
                        properties:
                          reason:
                            nullable: true
                          usage:
                            nullable: true
                          subscription_agreement_id:
                            nullable: true
                          network_transaction_id:
                            type: string
                            example: '108114113107103'
                          transaction_link_id:
                            nullable: true
                      fingerprint:
                        type: string
                        example: ba4d6817-adf4-47b1-8ae4-41a934e9e512
                    description: Card data.
                  last_successfully_used:
                    nullable: true
                    description: Last successfully used.
                  last_successfully_used_at:
                    nullable: true
                    description: Last successfully used at.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Direct Workflow
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /dry-run/provider-events:
    post:
      operationId: registerDryRunProviderEvent
      summary: Register provider request / response / webhook payloads
      description: |
        Stores the HTTP traffic that the merchant exchanged directly with a payment
        provider (request, response, and webhook) for correlation to a Yuno payment.
      parameters:
        - in: header
          name: PUBLIC-API-KEY
          schema:
            type: string
          description: Public API key. One of PUBLIC-API-KEY / PRIVATE-SECRET-KEY required.
        - in: header
          name: PRIVATE-SECRET-KEY
          schema:
            type: string
          description: Private secret key for server-to-server calls. One of PUBLIC-API-KEY / PRIVATE-SECRET-KEY required.
        - in: header
          name: X-Idempotency-Key
          schema:
            type: string
            maxLength: 64
          description: Free-form string (MAX 64). 24-hour replay window.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DryRunRequest'
      responses:
        '201':
          description: Dry-run registered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DryRunResponse'
        '400':
          description: Validation failure
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Payment not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Idempotency replay with a different payload
        '413':
          description: Payload or batch exceeds size limits
        '415':
          description: Unsupported Content-Type (must be application/json)
        '429':
          description: Rate limit exceeded
      tags:
        - Dry Run
  /fx-rates:
    get:
      summary: Get FX rates
      description: >-
        Returns Yuno's official daily FX rate for one or every currency, expressed as units of the currency per 1 USD.
        With no dates it returns the latest available day.
      operationId: getFxRates
      parameters:
        - in: header
          name: PUBLIC-API-KEY
          schema:
            type: string
          description: Your public API key.
        - in: header
          name: PRIVATE-SECRET-KEY
          schema:
            type: string
          description: Your private secret key. Never expose it client-side.
        - in: query
          name: start_date
          required: false
          schema:
            type: string
            format: date
            example: '2026-09-28'
          description: First day of the range, inclusive, as `YYYY-MM-DD`. Omit it to get the latest available day.
        - in: query
          name: end_date
          required: false
          schema:
            type: string
            format: date
            example: '2026-09-30'
          description: >-
            Last day of the range, inclusive, as `YYYY-MM-DD`. Only valid together with `start_date`, defaults to it,
            and cannot be later than yesterday (UTC).
        - in: query
          name: currency
          required: false
          schema:
            type: string
            minLength: 3
            maxLength: 3
            example: COP
          description: One 3-letter currency code. Omit it to get every currency published for those days.
      responses:
        '200':
          description: OK — the rates published for the requested days.
          content:
            application/json:
              schema:
                type: object
                properties:
                  base_currency:
                    type: string
                    description: Always `USD` in this version. Explicit so the reading is unambiguous.
                    example: USD
                  rates:
                    type: array
                    items:
                      type: object
                      properties:
                        fx_date:
                          type: string
                          format: date
                          description: Day the rate is published for.
                          example: '2026-09-28'
                        currency:
                          type: string
                          description: >-
                            3-letter currency code. Mostly ISO 4217; the published set also includes codes that are not
                            fiat currencies, such as `BTC`, `XAU` and `XAG`.
                          example: COP
                        rate:
                          type: number
                          description: >-
                            Units of this currency per 1 unit of `base_currency`, with up to 15 decimal places. `USD` is
                            published with a rate of 1. Parse it with a decimal type: a double silently rounds it.
                          example: 3306.859716727783
              examples:
                one_day_every_currency:
                  summary: One day, every currency
                  value:
                    base_currency: USD
                    rates:
                      - fx_date: '2026-09-28'
                        currency: BRL
                        rate: 5.3214
                      - fx_date: '2026-09-28'
                        currency: COP
                        rate: 3306.859716727783
                      - fx_date: '2026-09-28'
                        currency: USD
                        rate: 1
                no_rate_published:
                  summary: A day with no published rate
                  value:
                    base_currency: USD
                    rates: []
        '400':
          description: Bad request — `INVALID_PARAMETERS` (a query parameter is missing its companion, malformed, or out of range).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                end_date_without_start_date:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The query parameter 'end_date' can only be used together with 'start_date'.
                end_date_after_yesterday:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The query parameter 'end_date' must not be later than yesterday (UTC).
                range_over_the_limit:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        The range between 'start_date' and 'end_date' must not exceed 31 days when 'currency' is
                        omitted.
        '403':
          description: Forbidden — `PRODUCT_NOT_ENABLED` (the product is not enabled for your organization).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                product_not_enabled:
                  value:
                    code: PRODUCT_NOT_ENABLED
                    messages:
                      - >-
                        The FX Rates API is enabled per organization. Contact your Key Account Manager (KAM) to activate
                        it.
        '503':
          description: Service unavailable — `SERVICE_UNAVAILABLE` (the rate source is temporarily unreachable).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                service_unavailable:
                  value:
                    code: SERVICE_UNAVAILABLE
                    messages:
                      - The FX rates service is temporarily unavailable, please retry.
      tags:
        - Fx Rates
  /installments-plans:
    get:
      summary: Get Installments Plans
      description: ''
      operationId: get-installments-plan-by-account
      parameters:
        - name: account_id
          in: query
          description: >-
            The unique identifier of the account. Find it on the [Yuno dashboard](https://dashboard.y.uno) (UUID; 36
            chars).
          required: true
          schema:
            type: string
        - name: currency
          in: query
          description: Currency used for filtering plans ([ISO 4217](https://en.wikipedia.org/wiki/ISO_4217); 3 chars).
          schema:
            type: string
        - name: iin
          in: query
          description: >-
            [Optional] - The issuer identification number (IIN) refers to the first few digits of a payment card number
            issued by a financial institution (MAX 8; MIN 6). In case you defined an iin for the installments plan, you
            can use it to filter the response.
          schema:
            type: string
        - name: amount
          in: query
          description: >-
            [Optional] - The amount that the installment plan is available for. In case you defined an amount range for
            the installments plan, you can use it to filter the response.
          schema:
            type: string
        - name: payment_method_type
          in: query
          description: '[Optional] - Filter by payment method type (CARD | NU_PAY_ENROLLMENT).'
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    - id: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                      name: plan_007
                      account_id:
                        - f7c5fe77-721b-49c2-84d3-957748df3c2c
                      merchant_reference: Test
                      installments_plan:
                        - installment: 1
                          rate: 1
                          provider_id: ''
                          amount:
                            currency: USD
                            value: '0'
                            total_value: '0'
                        - installment: 3
                          rate: 1
                          provider_id: ''
                          financial_costs:
                            - type: CFT
                              rate: 45.25
                              formatted_value: 45,25%
                            - type: TEA
                              rate: 38.5
                              formatted_value: 38,50%
                          amount:
                            currency: USD
                            value: '0'
                            total_value: '0'
                        - installment: 6
                          rate: 1
                          provider_id: ''
                          amount:
                            currency: USD
                            value: '0'
                            total_value: '0'
                        - installment: 9
                          rate: 1
                          provider_id: ''
                          amount:
                            currency: USD
                            value: '0'
                            total_value: '0'
                        - installment: 12
                          rate: 1
                          provider_id: ''
                          amount:
                            currency: USD
                            value: '0'
                            total_value: '0'
                      iin: null
                      country_code: US
                      first_installment_deferral: 0
                      amount:
                        currency: USD
                        min_value: 0
                        max_value: 100000000
                      availability:
                        start_at: '2023-09-12T00:00:00Z'
                        finish_at: '2030-09-20T00:00:00Z'
                      created_at: '2023-10-11T17:52:31.886178Z'
                      updated_at: '2023-10-11T17:52:31.886178Z'
                      payment_method_type: NU_PAY_ENROLLMENT
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                    name:
                      type: string
                      example: plan_007
                    account_id:
                      type: array
                      items:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    merchant_reference:
                      type: string
                      example: Test
                    installments_plan:
                      type: array
                      items:
                        type: object
                        properties:
                          installment:
                            type: integer
                            example: 1
                            default: 0
                          rate:
                            type: number
                            example: 1
                            default: 0
                          provider_id:
                            type: string
                            example: ''
                          financial_costs:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - CFT
                                    - TEA
                                    - CET
                                    - CAT
                                rate:
                                  type: number
                                  format: float
                                formatted_value:
                                  type: string
                          amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: string
                                example: '0'
                              total_value:
                                type: string
                                example: '0'
                    iin: {}
                    country_code:
                      type: string
                      example: US
                    first_installment_deferral:
                      type: integer
                      example: 0
                      default: 0
                    amount:
                      type: object
                      properties:
                        currency:
                          type: string
                          example: USD
                        min_value:
                          type: integer
                          example: 0
                          default: 0
                        max_value:
                          type: integer
                          example: 100000000
                          default: 0
                    availability:
                      type: object
                      properties:
                        start_at:
                          type: string
                          example: '2023-09-12T00:00:00Z'
                        finish_at:
                          type: string
                          example: '2030-09-20T00:00:00Z'
                    created_at:
                      type: string
                      example: '2023-10-11T17:52:31.886178Z'
                    updated_at:
                      type: string
                      example: '2023-10-11T17:52:31.886178Z'
                    payment_method_type:
                      type: string
                      enum:
                        - CARD
                        - NU_PAY_ENROLLMENT
                        - APPLE_PAY
                      example: NU_PAY_ENROLLMENT
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Installments
    post:
      summary: Create Installments Plan
      description: ''
      operationId: create-installments-plan
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - account_id
                - merchant_reference
                - installments_plan
              properties:
                name:
                  type: string
                  description: The installment plan name (MAX 255; MIN 3)
                account_id:
                  type: array
                  description: The unique identifier(s) of the account(s) that will have the installment plan (UUID; 36 chars).
                  default: '{{account_id}}'
                  items:
                    type: string
                merchant_reference:
                  type: string
                  description: Identification of the installment plan (MAX 255; MIN 3)
                installments_plan:
                  type: array
                  description: Definition of installments available for each scenario
                  items:
                    properties:
                      installment:
                        type: integer
                        description: The number of monthly installments shoppers can choose
                        format: int32
                      rate:
                        type: number
                        description: >-
                          The rate applied to the final amount of the transaction by the payment provider after using
                          installments. The value should be entered as a multiplier, not a percentage. For example, to
                          apply a 20% rate, enter `1.20` instead of `20`.
                        format: float
                      financial_costs:
                        type: array
                        description: Optional financial costs details for this installment option.
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              description: |-
                                The financial cost type identifier (MIN 3; MAX 255).

                                <br/> Example: `CFT`, `TEA`, `CET`, `CAT`
                            rate:
                              type: number
                              description: The financial cost rate as a decimal number (e.g., 45.25 for 45.25%).
                              minimum: 0
                              maximum: 100000
                              format: float
                          required:
                            - type
                            - rate
                      type:
                        type: string
                        description: >-
                          Installment’s type. Only available for Ecuador and Mexico. Merchant refers to payments
                          deferred with interest, and Issuer refer to payments deferred without interest
                        enum:
                          - MERCHANT_INSTALLMENTS
                          - ISSUER_INSTALLMENTS
                    required:
                      - installment
                    type: object
                country_code:
                  type: string
                  description: The issuer's country  (ISO 3166-1 MAX 2; MIN 2)
                brand:
                  type: array
                  description: Card’s brand information (MAX 255; MIN 3).
                  items:
                    type: string
                issuer:
                  type: string
                  description: Card issuer (MAX 255; MIN 3)
                iin:
                  type: array
                  description: >-
                    The issuer identification number (IIN) refers to the first few digits of a payment card number
                    issued by a financial institution (MAX 8; MIN 6)
                  items:
                    type: string
                first_installment_deferral:
                  type: integer
                  description: 'The amount of months to wait to debit the first installment (MAX: 3).'
                  format: int32
                amount:
                  type: object
                  description: The amounts that the installment plan will be available for. If null, available for any amount.
                  required:
                    - currency
                  properties:
                    currency:
                      type: string
                      description: The currency used to make the payment (ISO 4217 MAX 3; MIN 3)
                    min_value:
                      type: number
                      description: The minimum amount the installment plan will be available to use (multiple of 0.0001).
                      format: float
                    max_value:
                      type: number
                      description: The maximum amount the installment plan will be available to use (multiple of 0.0001).
                      format: float
                availability:
                  type: object
                  description: >-
                    The dates that the installment plan will be available for. If null then it does not have a finish
                    date
                  properties:
                    start_at:
                      type: string
                      description: The start date that the installment plan will be available to use (UTC format)
                      format: date-time
                    finish_at:
                      type: string
                      description: The end date until the installment plan will be available to use (UTC format)
                      format: date-time
                payment_method_type:
                  type: string
                  description: >-
                    Allows specifying the payment method type when creating an installment plan. `CARD` matches by card
                    IIN, while `NU_PAY_ENROLLMENT` and `APPLE_PAY` match without one. Plans are only offered to the
                    payment method they were created for.
                  enum:
                    - CARD
                    - NU_PAY_ENROLLMENT
                    - APPLE_PAY
            examples:
              Request Example:
                value:
                  name: plan_007
                  account_id:
                    - '{{account-code}}'
                  merchant_reference: Test
                  installments_plan:
                    - installment: 1
                      rate: 1
                    - installment: 3
                      rate: 1
                      financial_costs:
                        - type: CFT
                          rate: 45.25
                        - type: TEA
                          rate: 38.5
                    - installment: 6
                      rate: 1
                    - installment: 9
                      rate: 1
                    - installment: 12
                      rate: 1
                  country_code: CO
                  amount:
                    currency: COP
                    min_value: 0
                    max_value: 100000000
                  availability:
                    start_at: '2023-09-12T00:00:00Z'
                    finish_at: '2030-09-20T00:00:00Z'
                  payment_method_type: NU_PAY_ENROLLMENT
      responses:
        '200':
          description: >-
            Today the response returns `amount.Currency` with a capital C, not `amount.currency`. Read the key
            case-insensitively.
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                    name: plan_007
                    account_id:
                      - f7c5fe77-721b-49c2-84d3-957748df3c2c
                    merchant_reference: Test
                    installments_plan:
                      - installment: 1
                        rate: 1
                        provider_id: ''
                      - installment: 3
                        rate: 1
                        provider_id: ''
                        financial_costs:
                          - type: CFT
                            rate: 45.25
                            formatted_value: 45,25%
                          - type: TEA
                            rate: 38.5
                            formatted_value: 38,50%
                      - installment: 6
                        rate: 1
                        provider_id: ''
                      - installment: 9
                        rate: 1
                        provider_id: ''
                      - installment: 12
                        rate: 1
                        provider_id: ''
                    source: ''
                    provider_id: ''
                    scheme: ''
                    brand:
                      - VISA
                    issuer: ''
                    issuer_id: ''
                    iin: null
                    country_code: US
                    first_installment_deferral: 0
                    amount:
                      currency: USD
                      min_value: 0
                      max_value: 100000000
                    availability:
                      start_at: '2023-09-12T00:00:00Z'
                      finish_at: '2030-09-20T00:00:00Z'
                    payment_method_type: NU_PAY_ENROLLMENT
                    created_at: '2023-10-11T17:52:31.886178246Z'
                    updated_at: '2023-10-11T17:52:31.886178246Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                  name:
                    type: string
                    example: plan_007
                  account_id:
                    type: array
                    items:
                      type: string
                      example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                  merchant_reference:
                    type: string
                    example: Test
                  installments_plan:
                    type: array
                    items:
                      type: object
                      properties:
                        installment:
                          type: integer
                          example: 1
                          default: 0
                        rate:
                          type: number
                          example: 1
                          default: 0
                        provider_id:
                          type: string
                          example: ''
                        financial_costs:
                          type: array
                          items:
                            type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - CFT
                                  - TEA
                                  - CET
                                  - CAT
                              rate:
                                type: number
                                format: float
                              formatted_value:
                                type: string
                  type:
                    type: string
                    example: ''
                  source:
                    type: string
                    example: ''
                  provider_id:
                    type: string
                    example: ''
                  scheme:
                    type: string
                    example: ''
                  brand:
                    type: array
                    items:
                      type: string
                      example: VISA
                  issuer:
                    type: string
                    example: ''
                  issuer_id:
                    type: string
                    example: ''
                  iin: {}
                  country_code:
                    type: string
                    example: US
                  first_installment_deferral:
                    type: integer
                    example: 0
                    default: 0
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      min_value:
                        type: integer
                        example: 0
                        default: 0
                      max_value:
                        type: integer
                        example: 100000000
                        default: 0
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2023-09-12T00:00:00Z'
                      finish_at:
                        type: string
                        example: '2030-09-20T00:00:00Z'
                  created_at:
                    type: string
                    example: '2023-10-11T17:52:31.886178246Z'
                  updated_at:
                    type: string
                    example: '2023-10-11T17:52:31.886178246Z'
                  payment_method_type:
                    type: string
                    enum:
                      - CARD
                      - NU_PAY_ENROLLMENT
                      - APPLE_PAY
                    example: NU_PAY_ENROLLMENT
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Installments
  /installments-plans/{installment_code}:
    get:
      summary: Get Installments Plan by ID
      description: ''
      operationId: get-installments-plan
      parameters:
        - name: installment_code
          in: path
          description: Identifier of the installment plan.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: >-
            Today the response returns `amount.Currency` with a capital C, not `amount.currency`. Read the key
            case-insensitively.
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                    name: plan_007
                    account_id:
                      - f7c5fe77-721b-49c2-84d3-957748df3c2c
                    merchant_reference: Test
                    installments_plan:
                      - installment: 1
                        rate: 1
                        provider_id: ''
                        amount:
                          currency: USD
                          value: '0'
                          total_value: '0'
                      - installment: 3
                        rate: 1
                        provider_id: ''
                        financial_costs:
                          - type: CFT
                            rate: 45.25
                            formatted_value: 45,25%
                          - type: TEA
                            rate: 38.5
                            formatted_value: 38,50%
                        amount:
                          currency: USD
                          value: '0'
                          total_value: '0'
                      - installment: 6
                        rate: 1
                        provider_id: ''
                        amount:
                          currency: USD
                          value: '0'
                          total_value: '0'
                      - installment: 9
                        rate: 1
                        provider_id: ''
                        amount:
                          currency: USD
                          value: '0'
                          total_value: '0'
                      - installment: 12
                        rate: 1
                        provider_id: ''
                        amount:
                          currency: USD
                          value: '0'
                          total_value: '0'
                    source: ''
                    scheme: ''
                    brand:
                      - VISA
                    issuer: ''
                    issuer_id: ''
                    iin: null
                    country_code: US
                    first_installment_deferral: 0
                    amount:
                      currency: USD
                      min_value: 0
                      max_value: 100000000
                    availability:
                      start_at: '2023-09-12T00:00:00Z'
                      finish_at: '2030-09-20T00:00:00Z'
                    created_at: '2023-10-11T17:52:31.886178Z'
                    updated_at: '2023-10-11T17:52:31.886178Z'
                    payment_method_type: NU_PAY_ENROLLMENT
                    provider_id: ''
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                  name:
                    type: string
                    example: plan_007
                  account_id:
                    type: array
                    items:
                      type: string
                      example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                  merchant_reference:
                    type: string
                    example: Test
                  installments_plan:
                    type: array
                    items:
                      type: object
                      properties:
                        installment:
                          type: integer
                          example: 1
                          default: 0
                        rate:
                          type: number
                          example: 1
                          default: 0
                        provider_id:
                          type: string
                          example: ''
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                              example: USD
                            value:
                              type: string
                              example: '0'
                            total_value:
                              type: string
                              example: '0'
                  source:
                    type: string
                    example: ''
                  scheme:
                    type: string
                    example: ''
                  brand:
                    type: array
                    items:
                      type: string
                      example: VISA
                  issuer:
                    type: string
                    example: ''
                  issuer_id:
                    type: string
                    example: ''
                  iin: {}
                  country_code:
                    type: string
                    example: US
                  first_installment_deferral:
                    type: integer
                    example: 0
                    default: 0
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      min_value:
                        type: integer
                        example: 0
                        default: 0
                      max_value:
                        type: integer
                        example: 100000000
                        default: 0
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2023-09-12T00:00:00Z'
                      finish_at:
                        type: string
                        example: '2030-09-20T00:00:00Z'
                  created_at:
                    type: string
                    example: '2023-10-11T17:52:31.886178Z'
                  updated_at:
                    type: string
                    example: '2023-10-11T17:52:31.886178Z'
                  payment_method_type:
                    type: string
                    enum:
                      - CARD
                      - NU_PAY_ENROLLMENT
                      - APPLE_PAY
                    example: NU_PAY_ENROLLMENT
                  provider_id:
                    type: string
                    example: ''
                    description: Provider id.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Installments
    patch:
      summary: Update Plan
      description: ''
      operationId: update-plan
      parameters:
        - name: installment_code
          in: path
          description: The unique identifier of the installment plan.
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The installment plan name (MAX 255; MIN 3)
                account_id:
                  type: array
                  description: >-
                    The unique identifier of Yuno's account that will have the installment plan available to use (MAX 64
                    ; MIN 36).
                  items:
                    type: string
                merchant_reference:
                  type: string
                  description: Identification of the installment plan (MAX 255; MIN 3)
                installments_plan:
                  type: array
                  description: Definition of installments available for each scenario
                  items:
                    properties:
                      installment:
                        type: integer
                        description: The number of monthly installments shoppers can choose
                        format: int32
                      rate:
                        type: number
                        description: >-
                          The rate applied to the final amount of the transaction by the payment provider after using
                          installments. The value should be entered as a multiplier, not a percentage. For example, to
                          apply a 20% rate, enter `1.20` instead of `20`.
                        format: float
                      financial_costs:
                        type: array
                        description: Optional financial costs details for this installment option.
                        items:
                          type: object
                          properties:
                            type:
                              type: string
                              description: |-
                                The financial cost type identifier (MIN 3; MAX 255).

                                <br/> Example: `CFT`, `TEA`, `CET`, `CAT`
                            rate:
                              type: number
                              description: The financial cost rate as a decimal number (e.g., 45.25 for 45.25%).
                              minimum: 0
                              maximum: 100000
                              format: float
                          required:
                            - type
                            - rate
                      type:
                        type: string
                        description: >-
                          Installment’s type. Only available for Ecuador and Mexico. Merchant refers to payments
                          deferred with interest, and Issuer refer to payments deferred without interest
                        enum:
                          - MERCHANT_INSTALLMENTS
                          - ISSUER_INSTALLMENTS
                    required:
                      - installment
                      - rate
                    type: object
                country_code:
                  type: string
                  description: The issuer's country  (ISO 3166-1 MAX 2; MIN 2)
                scheme:
                  type: string
                  description: Card’s scheme information. (MAX 255; MIN 3)
                brand:
                  type: array
                  description: Card’s brand information (MAX 255; MIN 3).
                  items:
                    type: string
                issuer:
                  type: string
                  description: Card issuer (MAX 255; MIN 3)
                iin:
                  type: array
                  description: >-
                    The issuer identification number (IIN) refers to the first few digits of a payment card number
                    issued by a financial institution (MAX 8; MIN 6)
                  items:
                    type: string
                first_installment_deferral:
                  type: integer
                  description: 'The amount of months to wait to debit the first installment (MAX: 3).'
                  format: int32
                amount:
                  type: object
                  description: The amounts that the installment plan will be available for. If null, available for any amount.
                  required:
                    - currency
                  properties:
                    currency:
                      type: string
                      description: The currency used to make the payment (ISO 4217 MAX 3; MIN 3)
                    min_value:
                      type: number
                      description: The minimum amount the installment plan will be available to use (multiple of 0.0001).
                      format: float
                    max_value:
                      type: number
                      description: The maximum amount the installment plan will be available to use (multiple of 0.0001).
                      format: float
                availability:
                  type: object
                  description: >-
                    The dates that the installment plan will be available for. If null then it does not have a finish
                    date
                  required:
                    - start_at
                    - finish_at
                  properties:
                    start_at:
                      type: string
                      description: The start date that the installment plan will be available to use
                      format: date-time
                    finish_at:
                      type: string
                      description: The end date until the installment plan will be available to use.
                      format: date-time
            examples:
              Update Plan:
                summary: Update Plan
                value:
                  name: Plan Update
                  account_id:
                    - '{{account_id}}'
                  merchant_reference: REF01
                  installments_plan:
                    - installment: 3
                      rate: 1.05
                      financial_costs:
                        - type: CFT
                          rate: 15.5
                      type: MERCHANT_INSTALLMENTS
                    - installment: 6
                      rate: 1.1
                    - installment: 12
                      rate: 1.2
                  country_code: US
                  scheme: VISA
                  brand:
                    - VISA
                    - MASTERCARD
                  issuer: JPMORGAN CHASE BANK
                  iin:
                    - '411111'
                    - '542418'
                  first_installment_deferral: 1
                  amount:
                    currency: USD
                    min_value: 50
                    max_value: 10000
                  availability:
                    start_at: '2024-01-01T00:00:00.000Z'
                    finish_at: '2024-12-31T23:59:59.999Z'
      responses:
        '200':
          description: >-
            Today the response returns `amount.Currency` with a capital C, not `amount.currency`. Read the key
            case-insensitively.
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                    name: plan_007
                    account_id:
                      - f7c5fe77-721b-49c2-84d3-957748df3c2c
                    merchant_reference: Test
                    installments_plan:
                      - installment: 1
                        rate: 1
                        provider_id: ''
                      - installment: 3
                        rate: 1
                        provider_id: ''
                        financial_costs:
                          - type: CFT
                            rate: 45.25
                            formatted_value: 45,25%
                          - type: TEA
                            rate: 38.5
                            formatted_value: 38,50%
                      - installment: 6
                        rate: 1
                        provider_id: ''
                      - installment: 9
                        rate: 1
                        provider_id: ''
                      - installment: 12
                        rate: 1
                        provider_id: ''
                    source: ''
                    provider_id: ''
                    scheme: ''
                    brand:
                      - VISA
                    issuer: ''
                    issuer_id: ''
                    iin: null
                    country_code: US
                    first_installment_deferral: 0
                    amount:
                      currency: USD
                      min_value: 0
                      max_value: 100000000
                    availability:
                      start_at: '2023-09-12T00:00:00Z'
                      finish_at: '2030-09-20T00:00:00Z'
                    created_at: '2023-10-11T17:52:31.886178246Z'
                    updated_at: '2023-10-11T17:52:31.886178246Z'
                    payment_method_type: NU_PAY_ENROLLMENT
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 4d573425-33f9-4c46-b009-2c7e749b0ec7
                  name:
                    type: string
                    example: plan_007
                  account_id:
                    type: array
                    items:
                      type: string
                      example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                  merchant_reference:
                    type: string
                    example: Test
                  installments_plan:
                    type: array
                    items:
                      type: object
                      properties:
                        installment:
                          type: integer
                          example: 1
                          default: 0
                        rate:
                          type: number
                          example: 1
                          default: 0
                        provider_id:
                          type: string
                          example: ''
                        financial_costs:
                          type: array
                          items:
                            type: object
                            properties:
                              type:
                                type: string
                                enum:
                                  - CFT
                                  - TEA
                                  - CET
                                  - CAT
                              rate:
                                type: number
                                format: float
                              formatted_value:
                                type: string
                  type:
                    type: string
                    example: ''
                  source:
                    type: string
                    example: ''
                  provider_id:
                    type: string
                    example: ''
                  scheme:
                    type: string
                    example: ''
                  brand:
                    type: array
                    items:
                      type: string
                      example: VISA
                  issuer:
                    type: string
                    example: ''
                  issuer_id:
                    type: string
                    example: ''
                  iin: {}
                  country_code:
                    type: string
                    example: US
                  first_installment_deferral:
                    type: integer
                    example: 0
                    default: 0
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      min_value:
                        type: integer
                        example: 0
                        default: 0
                      max_value:
                        type: integer
                        example: 100000000
                        default: 0
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2023-09-12T00:00:00Z'
                      finish_at:
                        type: string
                        example: '2030-09-20T00:00:00Z'
                  created_at:
                    type: string
                    example: '2023-10-11T17:52:31.886178246Z'
                  updated_at:
                    type: string
                    example: '2023-10-11T17:52:31.886178246Z'
                  payment_method_type:
                    type: string
                    example: NU_PAY_ENROLLMENT
                    description: Payment method type.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Installments
    delete:
      summary: Delete Installments Plan
      description: ''
      operationId: delete-installments-plan-by-id
      parameters:
        - name: installment_code
          in: path
          description: Identifier of the installment plan.
          schema:
            type: string
          required: true
      responses:
        '201':
          description: Installments plan deleted. The response has no body.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Installments
  /issuers:
    get:
      summary: Retrieve Issuers
      description: >-
        Returns the issuers (banks) available for a payment method. The API answers 201 for every payment method except
        PSE, which answers 200.
      operationId: retrieve-issuers
      parameters:
        - name: checkout_session
          in: query
          description: The checkout session identifier (UUID, 36 chars).
          schema:
            type: string
            example: 9f1c2b7e-5a3d-4e8b-9c6a-1d2e3f4a5b6c
        - name: country_code
          in: query
          description: Country code ([ISO 3166-1](/reference/country-reference)).
          schema:
            type: string
            example: CO
        - name: payment_method
          in: query
          description: >-
            Defines the payment method used to filter issuers. This parameter ensures the response includes only issuers
            that support the specified payment method. Examples: `NEQUI` (answers 201), `PSE` (answers 200).
          schema:
            type: string
            example: NEQUI
      responses:
        '200':
          description: Returned only when `payment_method` is `PSE`. The body has the same shape as the 201 response.
          content:
            application/json:
              schema:
                type: object
                properties:
                  issuers:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '1007'
                        name:
                          type: string
                          example: BANCOLOMBIA
        '201':
          description: Returned for every `payment_method` except `PSE`.
          content:
            application/json:
              examples:
                Result:
                  value:
                    issuers:
                      - id: '1001'
                        name: BANCO DE BOGOTÁ
                      - id: '1002'
                        name: BANCO POPULAR
                      - id: '1005'
                        name: BANCO UNIÓN COLOMBIANO FD2
                      - id: '1006'
                        name: ITAÚ
                      - id: '1007'
                        name: BANCOLOMBIA
                      - id: '1009'
                        name: CITIBANK
                      - id: '1012'
                        name: BANCO GNB SUDAMERIS
                      - id: '1013'
                        name: BBVA COLOMBIA S.A.
                      - id: '1019'
                        name: SCOTIABANK COLPATRIA DESARROLLO
                      - id: '1022'
                        name: BANCO UNIÓN COLOMBIANO
                      - id: '1023'
                        name: BANCO DE OCCIDENTE
                      - id: '1032'
                        name: BANCO CAJA SOCIAL DESARROLLO
                      - id: '1040'
                        name: BANCO AGRARIO
                      - id: '1051'
                        name: BANCO DAVIVIENDA
                      - id: '1052'
                        name: BANCO COMERCIAL AV VILLAS S.A.
                      - id: '1059'
                        name: BANCAMÍA
                      - id: '1060'
                        name: BANCO PICHINCHA S.A.
                      - id: '1061'
                        name: BANCO COOMEVA S.A.
                      - id: '1062'
                        name: BANCO FALABELLA
                      - id: '1063'
                        name: BANCO FINANDINA S.A. BIC
                      - id: '1065'
                        name: BANCO SANTANDER COLOMBIA
                      - id: '1066'
                        name: BANCO COOPERATIVO COOPCENTRAL
                      - id: '1069'
                        name: BANCO SERFINANZA
                      - id: '1070'
                        name: LULO BANK
                      - id: '1078'
                        name: SCOTIABANK COLPATRIA UAT
                      - id: '1097'
                        name: DALE
                      - id: '1283'
                        name: COOPERATIVA FINANCIERA DE ANTIOQUIA CFA
                      - id: '1289'
                        name: COOPERATIVA FINANCIERA COTRAFA
                      - id: '1291'
                        name: COOFINEP COOPERATIVA FINANCIERA
                      - id: '1292'
                        name: CONFIAR COOPERATIVA FINANCIERA
                      - id: '1370'
                        name: COLTEFINANCIERA
                      - id: '1637'
                        name: IRIS
                      - id: '1801'
                        name: MOVII S.A.
                      - id: '1802'
                        name: DING TECNIPAGOS S.A.
                      - id: '1803'
                        name: POWWI
                      - id: '1804'
                        name: UALÁ
                      - id: '1808'
                        name: BOLD CF
                      - id: '1809'
                        name: NU
                      - id: '1811'
                        name: RAPPIPAY
                      - id: '1812'
                        name: COINK S.A.
              schema:
                type: object
                properties:
                  issuers:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: '1001'
                        name:
                          type: string
                          example: BANCO DE BOGOTÁ
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Invalid Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payments
  /network-tokens/cryptograms:
    post:
      summary: Generate Network Token Cryptogram
      description: >-
        Generates a fresh, single-use network token cryptogram for a vaulted card, so it can be authorized on an
        external PSP. By default the response also includes the card's current network token (DPAN), which requires PCI
        certification; with `include_network_token: false` the response is cryptogram-only and does not.
      operationId: generate-network-token-cryptogram
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - vaulted_token
                - country
              properties:
                vaulted_token:
                  type: string
                  format: uuid
                  description: >-
                    The vaulted token of the card, the same identifier used as `payment_method.vaulted_token` in [Create
                    Payment](https://docs.y.uno/reference/create-payment). The card must be an enrolled card of your
                    organization with an active network token.
                  examples:
                    - 9b2f4b1c-7f3a-4c2e-9b1a-2b3c4d5e6f70
                country:
                  type: string
                  description: >-
                    ISO 3166-1 alpha-2 country code where the token will be used. Resolves the network token onboarding
                    (organization + brand + country), with the same semantics as `country` in Create Payment.
                  examples:
                    - US
                amount:
                  type: object
                  description: Optional. Forwarded to the scheme; recommended, as some scheme flows bind the amount.
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 currency code.
                      examples:
                        - USD
                    value:
                      type: number
                      description: Amount value in the given currency.
                      examples:
                        - 49.99
                include_network_token:
                  type: boolean
                  default: true
                  description: >-
                    Optional. Whether the response includes the PAN-equivalent parts of the network token:
                    `network_token.number` (the DPAN) and `network_token.token_data`. Defaults to `true`, which requires
                    your organization to be a PCI-certified merchant. Send `false` for a cryptogram-only response with
                    no PAN-equivalent data (the `network_token` object keeps `network`, `status`, `par` and
                    `network_token_id`) — available without PCI certification, designed to pair with the [Forward
                    Proxy](https://docs.y.uno/docs/security-and-compliance/pci-proxy/forward-proxy), which resolves the
                    DPAN at forward time via the `network_token_number` expression. A non-PCI organization that sends
                    `true` or omits the field receives `403 NETWORK_TOKEN_RETURN_NOT_ALLOWED`.
                  examples:
                    - false
            examples:
              cryptogram_only:
                summary: Cryptogram-only (no PCI certification required)
                value:
                  vaulted_token: 9b2f4b1c-7f3a-4c2e-9b1a-2b3c4d5e6f70
                  country: US
                  amount:
                    currency: USD
                    value: 49.99
                  include_network_token: false
              default:
                summary: With the network token (PCI certification required)
                value:
                  vaulted_token: 9b2f4b1c-7f3a-4c2e-9b1a-2b3c4d5e6f70
                  country: US
                  amount:
                    currency: USD
                    value: 49.99
                  include_network_token: true
      responses:
        '201':
          description: Cryptogram generated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  vaulted_token:
                    type: string
                    description: Echo of the request's vaulted token.
                  network_token:
                    type: object
                    description: >-
                      The card's current network token. Same shape returned by the PCI network-token retrieval. **When
                      the request sets `include_network_token: false`, the `number` (DPAN) and `token_data` fields are
                      omitted entirely** — the object keeps `network`, `status`, `par` and `network_token_id`.
                    properties:
                      network:
                        type: string
                        description: Card network.
                        examples:
                          - VISA
                      number:
                        type: string
                        description: >-
                          The current DPAN (device/network PAN). **Always submit this value with the returned
                          `cryptogram`** — never a previously stored DPAN.
                        examples:
                          - '4111111111111111'
                      status:
                        type:
                          - string
                          - 'null'
                        description: Network token status.
                        examples:
                          - ACTIVE
                      par:
                        type:
                          - string
                          - 'null'
                        description: Payment Account Reference.
                      network_token_id:
                        type:
                          - string
                          - 'null'
                        description: Network token identifier.
                      token_data:
                        type: object
                        properties:
                          iin:
                            type: string
                          lfd:
                            type: string
                            description: Last four digits of the DPAN.
                          expiration_month:
                            type: integer
                            examples:
                              - 7
                          expiration_year:
                            type: integer
                            examples:
                              - 2029
                  cryptogram:
                    type: string
                    description: >-
                      A fresh, single-use cryptogram from the scheme, generated on every call. Submit it together with
                      `network_token.number` (DPAN) and `eci` to your PSP.
                    examples:
                      - AgAAAAAABk4DWZ4C28yUQAAAAAA=
                  eci:
                    type:
                      - string
                      - 'null'
                    description: Electronic Commerce Indicator. May be `null` for some Mastercard DSRP formats.
                    examples:
                      - '05'
                  created_at:
                    type: string
                    format: date-time
                    description: Issuance timestamp (UTC).
                  expires_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
                    description: >-
                      Latest time (UTC) at which the scheme accepts this cryptogram. It is the validity of the
                      cryptogram, not of the network token or the card. `null` when the network publishes no validity
                      for the cryptogram (today, Visa). Either way, request a new cryptogram for every authorization
                      attempt and do not cache it.
                    examples:
                      - '2026-07-21T14:32:10Z'
              examples:
                default:
                  summary: Visa, with the network token (PCI certification required)
                  value:
                    vaulted_token: 9b2f4b1c-7f3a-4c2e-9b1a-2b3c4d5e6f70
                    network_token:
                      network: VISA
                      number: '4111111111111111'
                      status: ACTIVE
                      par: V0010013022280191
                      network_token_id: DNITHE302344816910968
                      token_data:
                        iin: '411111'
                        lfd: '1111'
                        expiration_month: 7
                        expiration_year: 2029
                    cryptogram: AgAAAAAABk4DWZ4C28yUQAAAAAA=
                    eci: '05'
                    created_at: '2026-07-16T14:32:10Z'
                    expires_at: null
                cryptogram_only:
                  summary: 'Visa, cryptogram-only (include_network_token: false)'
                  value:
                    vaulted_token: 9b2f4b1c-7f3a-4c2e-9b1a-2b3c4d5e6f70
                    network_token:
                      network: VISA
                      status: ACTIVE
                      par: V0010013022280191
                      network_token_id: DNITHE302344816910968
                    cryptogram: AgAAAAAABk4DWZ4C28yUQAAAAAA=
                    eci: '05'
                    created_at: '2026-07-16T14:32:10Z'
                    expires_at: null
                mastercard_cryptogram_only:
                  summary: 'Mastercard, cryptogram-only (include_network_token: false)'
                  value:
                    vaulted_token: 9b2f4b1c-7f3a-4c2e-9b1a-2b3c4d5e6f70
                    network_token:
                      network: MASTERCARD
                      status: ACTIVE
                      par: '50010013022280191'
                      network_token_id: MDNITHE302344816910968
                    cryptogram: AgAAAAAABk4DWZ4C28yUQAAAAAA=
                    eci: '02'
                    created_at: '2026-07-16T14:32:10Z'
                    expires_at: '2026-07-21T14:32:10Z'
        '400':
          description: >-
            Bad request — `INVALID_REQUEST`, `INSTRUMENT_NOT_TOKENIZABLE`, `PAYMENT_METHOD_NOT_ENROLLED`,
            `NETWORK_TOKEN_NOT_FOUND`, `TOKEN_NOT_ACTIVE`, `NETWORK_NOT_SUPPORTED`, or `COUNTRY_NOT_SUPPORTED`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                network_token_not_found:
                  value:
                    code: NETWORK_TOKEN_NOT_FOUND
                    messages:
                      - Payment method has no network token.
        '403':
          description: >-
            Forbidden — `NETWORK_TOKEN_RETURN_NOT_ALLOWED` (organization is not PCI-certified and the request did not
            set `include_network_token: false`), `PCI_MERCHANT_REQUIRED` (organization is not a PCI-certified merchant),
            or `PRODUCT_NOT_ENABLED` (product flag is off for the organization).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                network_token_return_not_allowed:
                  value:
                    code: NETWORK_TOKEN_RETURN_NOT_ALLOWED
                    messages:
                      - >-
                        Returning the network token requires PCI certification. Send include_network_token: false to
                        receive the cryptogram only, or contact your Key Account Manager (KAM).
                pci_merchant_required:
                  value:
                    code: PCI_MERCHANT_REQUIRED
                    messages:
                      - This endpoint is only available to PCI-certified merchants.
        '404':
          description: >-
            Not found — `PAYMENT_METHOD_NOT_FOUND`. The `vaulted_token` does not exist or does not belong to your
            organization (identical response, no existence leak).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                payment_method_not_found:
                  value:
                    code: PAYMENT_METHOD_NOT_FOUND
                    messages:
                      - Payment method not found.
        '502':
          description: >-
            Provider error — `PROVIDER_ERROR`. The card scheme (Visa VTS / Mastercard MDES) could not be reached or
            returned an error.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                provider_error:
                  value:
                    code: PROVIDER_ERROR
                    messages:
                      - The network token cryptogram service is temporarily unavailable, please retry.
      tags:
        - Network Tokens
  /onboardings/{onboarding_id}/transfers:
    get:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                'OK: Array of transfers (by most recent)':
                  summary: 'OK: Array of transfers (by most recent)'
                  value:
                    - id: 550e8400-e29b-41d4-a716-446655440000
                      origin_onboarding:
                        id: 660e8400-e29b-41d4-a716-446655440001
                        status: TRANSFERRED
                        type: ONE_STEP_ONBOARDING
                        workflow: DIRECT
                        provider:
                          id: STRIPE
                          recipient_id: acct_1234567890
                          connection_id: 880e8400-e29b-41d4-a716-446655440003
                        recipient:
                          id: 770e8400-e29b-41d4-a716-446655440002
                          merchant_recipient_id: seller-123
                          email: seller@example.com
                        created_at: '2026-01-15T10:00:00Z'
                        updated_at: '2026-01-15T16:59:22Z'
                      destination_onboarding:
                        id: 990e8400-e29b-41d4-a716-446655440004
                        status: SUCCEEDED
                        type: ONE_STEP_ONBOARDING
                        provider:
                          id: STRIPE
                          recipient_id: acct_0987654321
                          connection_id: 880e8400-e29b-41d4-a716-446655440003
                        recipient:
                          id: aa0e8400-e29b-41d4-a716-446655440005
                          merchant_recipient_id: seller-456
                          email: newseller@example.com
                        created_at: '2026-01-15T16:59:22Z'
                        updated_at: '2026-01-15T16:59:23Z'
                      created_at: '2026-01-15T16:59:22.996009Z'
                      updated_at: '2026-01-15T16:59:23.734739Z'
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: 550e8400-e29b-41d4-a716-446655440000
                    origin_onboarding:
                      type: object
                      properties:
                        id:
                          type: string
                          example: 660e8400-e29b-41d4-a716-446655440001
                        status:
                          type: string
                          example: TRANSFERRED
                        type:
                          type: string
                          example: ONE_STEP_ONBOARDING
                        workflow:
                          type: string
                          example: DIRECT
                        provider:
                          type: object
                          properties:
                            id:
                              type: string
                              example: STRIPE
                            recipient_id:
                              type: string
                              example: acct_1234567890
                            connection_id:
                              type: string
                              example: 880e8400-e29b-41d4-a716-446655440003
                        recipient:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 770e8400-e29b-41d4-a716-446655440002
                            merchant_recipient_id:
                              type: string
                              example: seller-123
                            email:
                              type: string
                              example: seller@example.com
                        created_at:
                          type: string
                          example: '2026-01-15T10:00:00Z'
                        updated_at:
                          type: string
                          example: '2026-01-15T16:59:22Z'
                    destination_onboarding:
                      type: object
                      properties:
                        id:
                          type: string
                          example: 990e8400-e29b-41d4-a716-446655440004
                        status:
                          type: string
                          example: SUCCEEDED
                        type:
                          type: string
                          example: ONE_STEP_ONBOARDING
                        provider:
                          type: object
                          properties:
                            id:
                              type: string
                              example: STRIPE
                            recipient_id:
                              type: string
                              example: acct_0987654321
                            connection_id:
                              type: string
                              example: 880e8400-e29b-41d4-a716-446655440003
                        recipient:
                          type: object
                          properties:
                            id:
                              type: string
                              example: aa0e8400-e29b-41d4-a716-446655440005
                            merchant_recipient_id:
                              type: string
                              example: seller-456
                            email:
                              type: string
                              example: newseller@example.com
                        created_at:
                          type: string
                          example: '2026-01-15T16:59:22Z'
                        updated_at:
                          type: string
                          example: '2026-01-15T16:59:23Z'
                    created_at:
                      type: string
                      example: '2026-01-15T16:59:22.996009Z'
                    updated_at:
                      type: string
                      example: '2026-01-15T16:59:23.734739Z'
        '403':
          content:
            application/json:
              schema:
                type: object
                properties: {}
              examples:
                'Forbidden: Onboarding belongs to different organization':
                  summary: 'Forbidden: Onboarding belongs to different organization'
                  value:
                    code: FORBIDDEN
                    messages:
                      - You do not have permission to access this resource.
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ONBOARDING_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Onboarding not found.
              examples:
                'Not Found: Onboarding does not exist':
                  summary: 'Not Found: Onboarding does not exist'
                  value:
                    code: ONBOARDING_NOT_FOUND
                    messages:
                      - Onboarding not found.
          description: Not Found
      parameters:
        - in: path
          name: onboarding_id
          schema:
            type: string
          required: true
          description: The onboarding `id` returned from the [create onboarding](/reference/create-onboarding) endpoint (UUID).
        - in: header
          name: x-account-code
          schema:
            type: string
          description: The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID).
      operationId: get_onboardings-onboarding-id-transfers
      tags:
        - Recipients For Marketplace
  /organizations/account-groups:
    get:
      summary: List Account Groups
      operationId: list-account-groups
      description: Lists all account groups for the authenticated organization.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        merchant_id:
                          type: string
                        parent_code:
                          type:
                            - string
                            - 'null'
                          format: uuid
                          description: The `id` of the group this group is nested under. `null` for a root (top-level) group.
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                      page_size:
                        type: integer
                      total_items:
                        type: integer
                      total_pages:
                        type: integer
                      has_next:
                        type: boolean
                      has_previous:
                        type: boolean
      tags:
        - Organizations
    post:
      summary: Create Account Group
      operationId: create-account-group
      description: Creates a new group (sub-organization).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - merchant_id
              properties:
                name:
                  type: string
                  description: Account group name (min=1, max=255).
                merchant_id:
                  type: string
                  description: Unique identifier used by the merchant in their systems (min=1, max=255).
                account_codes:
                  type: array
                  items:
                    type: string
                    format: uuid
                  description: >-
                    Optional. `id`s of existing accounts to attach to the new group in the same transaction. An account
                    belongs to one group at a time, so an account that is already in another group is moved to the new
                    one. If any code does not match an active account of the organization the whole request fails and no
                    group is created. Defaults to an empty list.
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: The unique identifier of the account group.
                  name:
                    type: string
                  merchant_id:
                    type: string
                  parent_code:
                    type:
                      - string
                      - 'null'
                    format: uuid
                    description: >-
                      The `id` of the group this group is nested under. Always `null` on creation: a new group is
                      created as a root and nested afterwards with Update Account Group.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
      tags:
        - Organizations
  /organizations/account-groups/{account_group_id}:
    get:
      summary: Retrieve Account Group
      operationId: retrieve-account-group
      description: Gets a specific account group by UUID.
      parameters:
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account group UUID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  merchant_id:
                    type: string
                  parent_code:
                    type:
                      - string
                      - 'null'
                    format: uuid
                    description: The `id` of the group this group is nested under. `null` for a root (top-level) group.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: Not found. When no account group matches the id, the API returns HTTP 400 with `code` set to `"404"`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: '404'
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: '404'
                messages:
                  - Account group not found
      tags:
        - Organizations
    patch:
      summary: Update Account Group
      operationId: update-account-group
      description: >-
        Updates an account group. Every field is optional and only the fields present in the body are changed.


        `parent_code` nests the group under another group of the same organization. It has three states: **absent**
        leaves the current parent untouched; **`null`** detaches the group and promotes it back to a root, together with
        any sub-groups hanging off it; a **group `id`** nests the group under that group. Nesting is structural only —
        it grants and revokes nothing, so moving a group leaves every existing permission untouched.
      parameters:
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account group UUID.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Account group name (min=1, max=255).
                merchant_id:
                  type: string
                  description: Local identifier (min=1, max=255).
                parent_code:
                  type:
                    - string
                    - 'null'
                  format: uuid
                  description: >-
                    The `id` of the group to nest this group under. Omit it to leave the parent unchanged; send `null`
                    to detach the group and make it a root again. The parent must belong to the same organization and
                    must not be the group itself or one of its descendants.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  merchant_id:
                    type: string
                  parent_code:
                    type:
                      - string
                      - 'null'
                    format: uuid
                    description: The `id` of the group this group is nested under. `null` for a root (top-level) group.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: >-
            Bad Request. The `code` field tells the reason:


            - `PARENT_NOT_FOUND` — no group with that `parent_code` in this organization.

            - `INVALID_PARENT` — the group was sent as its own parent.

            - `PARENT_IS_DESCENDANT` — the target parent sits inside this group's own subtree, so the move would create
            a cycle.

            - `MAX_NESTING_DEPTH` — the move would push the tree past the maximum depth of 20 levels.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Machine-readable error code.
                  messages:
                    type: array
                    items:
                      type: string
                    description: Human-readable details.
              example:
                code: PARENT_IS_DESCENDANT
                messages:
                  - Account group [LATAM] is inside [Acme], so it cannot become its parent.
        '404':
          description: Not Found — no account group with that `account_group_id` in this organization.
      tags:
        - Organizations
    delete:
      summary: Delete Account Group
      operationId: delete-account-group
      description: >-
        Deletes an account group. A group can only be deleted once it is empty: remove, move or delete its accounts
        first (see Remove Account from Group) and move or delete its sub-groups. Accounts are never reassigned
        automatically.
      parameters:
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account group UUID.
      responses:
        '204':
          description: No Content — the group was deleted.
        '400':
          description: >-
            Bad Request. The `code` field tells the reason:


            - `GROUP_HAS_ACCOUNTS` — the group still has accounts. Remove them from the group first.

            - `GROUP_HAS_SUBGROUPS` — the group still has sub-groups. Move them to another parent (or detach them with
            Update Account Group) or delete them first.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Machine-readable error code.
                  messages:
                    type: array
                    items:
                      type: string
                    description: Human-readable details.
              example:
                code: GROUP_HAS_SUBGROUPS
                messages:
                  - Cannot delete account group that still has sub-groups
        '404':
          description: Not Found — no account group with that `account_group_id` in this organization.
      tags:
        - Organizations
  /organizations/account-groups/{account_group_id}/accounts:
    get:
      summary: List Accounts of Group
      operationId: list-accounts-of-group
      description: Get all accounts of an account group.
      parameters:
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account group UUID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - SUSPENDED
                          readOnly: true
                          description: Read-only. `SUSPENDED` while the account is suspended, `ACTIVE` otherwise.
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                      page_size:
                        type: integer
                      total_items:
                        type: integer
                      total_pages:
                        type: integer
                      has_next:
                        type: boolean
                      has_previous:
                        type: boolean
      tags:
        - Organizations
    post:
      summary: Create Account
      operationId: create-account
      description: Creates a new account under an account_group_id.
      parameters:
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: The unique identifier of the account group.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: Account name (min=1, max=255).
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  account_group_id:
                    type: string
                    format: uuid
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - SUSPENDED
                    readOnly: true
                    description: Read-only. `SUSPENDED` while the account is suspended, `ACTIVE` otherwise.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
      tags:
        - Organizations
  /organizations/account-groups/{account_group_id}/accounts/{account_id}:
    delete:
      summary: Remove Account from Group
      operationId: remove-account-from-group
      description: >-
        Detaches an account from an account group. The account itself is not deleted or disabled: it keeps its users,
        permissions and configuration and becomes a standalone account of the organization, so it can be attached to
        another group later with Create Account. A group must always keep at least one account, so the last account of a
        group cannot be removed this way: move it into another group (with `account_codes` on Create Account Group) or
        delete the account instead.
      parameters:
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account group UUID.
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID of the account to detach. It must currently belong to this group.
      responses:
        '204':
          description: No Content — the account was detached from the group.
        '400':
          description: >-
            Bad Request — `LAST_ACCOUNT_IN_GROUP`: the account is the only one left in the group. A group must contain
            at least one account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: Machine-readable error code.
                  messages:
                    type: array
                    items:
                      type: string
                    description: Human-readable details.
              example:
                code: LAST_ACCOUNT_IN_GROUP
                messages:
                  - A group must contain at least one account
        '404':
          description: Not Found — no such account group in this organization, or the account is not a member of this group.
      tags:
        - Organizations
  /organizations/accounts:
    get:
      summary: List Accounts
      operationId: list-accounts
      description: Lists all accounts for the authenticated organization.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        name:
                          type: string
                        status:
                          type: string
                          enum:
                            - ACTIVE
                            - SUSPENDED
                          readOnly: true
                          description: Read-only. `SUSPENDED` while the account is suspended, `ACTIVE` otherwise.
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                      page_size:
                        type: integer
                      total_items:
                        type: integer
                      total_pages:
                        type: integer
                      has_next:
                        type: boolean
                      has_previous:
                        type: boolean
      tags:
        - Organizations
  /organizations/accounts/{account_id}:
    get:
      summary: Retrieve Account
      operationId: retrieve-account
      description: Get a specific account by UUID.
      parameters:
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account UUID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  account_group_id:
                    type: string
                    format: uuid
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - SUSPENDED
                    readOnly: true
                    description: Read-only. `SUSPENDED` while the account is suspended, `ACTIVE` otherwise.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: Not found. When no account matches the id, the API returns HTTP 400 with `code` set to `"404"`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: '404'
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: '404'
                messages:
                  - Account not found
      tags:
        - Organizations
    patch:
      summary: Update Account
      operationId: update-account
      description: Updates an account.
      parameters:
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account UUID.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Account name (min=1, max=255).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  name:
                    type: string
                  account_group_id:
                    type: string
                    format: uuid
                  status:
                    type: string
                    enum:
                      - ACTIVE
                      - SUSPENDED
                    readOnly: true
                    description: Read-only. `SUSPENDED` while the account is suspended, `ACTIVE` otherwise.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
      tags:
        - Organizations
    delete:
      summary: Delete Account
      operationId: delete-account
      description: >-
        Deletes an account. Deleting is permanent: the account is no longer listed or retrievable by id, and the API
        cannot restore it.
      parameters:
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account UUID.
      responses:
        '204':
          description: No Content — the account was deleted.
      tags:
        - Organizations
  /organizations/authenticate:
    post:
      summary: Authenticate Whitelabel User
      operationId: authenticate-whitelabel-user
      description: Authenticates a whitelabel user and returns a JWT embed token.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - user_id
              properties:
                user_id:
                  type: string
                  format: uuid
                  description: UUID of the whitelabel user.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  access_token:
                    type: string
                    description: JWT token for the whitelabel user.
                  token_type:
                    type: string
                    example: Bearer
                  expires_in:
                    type: integer
                    example: 86400
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  message:
                    type: string
                    example: Missing or invalid user_id.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: LOGIN_FAILED
                  message:
                    type: string
                    example: Unable to authenticate the specified user.
      tags:
        - Organizations
  /organizations/permissions-catalog:
    get:
      summary: List Permissions Catalog
      operationId: list-permissions-catalog
      description: Slim permissions catalog including sections and permissions.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    title:
                      type: string
                      example: Payments
                    organization_only:
                      type: boolean
                    permissions_catalog:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            example: view_payment_transactions
                          title:
                            type: string
                            example: View payment transactions
                          description:
                            type: string
                          action_type:
                            type: string
                            enum:
                              - VIEW
                              - EDIT
      tags:
        - Organizations
  /organizations/roles:
    get:
      summary: List Roles
      operationId: list-roles
      description: List Yuno default and organization custom roles.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: rol_AbCdEfGhIjKl
                    name:
                      type: string
                      example: Admin
                    description:
                      type:
                        - string
                        - 'null'
                    admin:
                      type: boolean
                    permission_ids:
                      type: array
                      items:
                        type: string
                    testing_permission_ids:
                      type: array
                      items:
                        type: string
                    role_type:
                      type: string
                      enum:
                        - account
                        - organization
                    created_at:
                      type: string
                      format: date-time
                    updated_at:
                      type: string
                      format: date-time
      tags:
        - Organizations
    post:
      summary: Create Role
      operationId: create-role
      description: Create a custom role for the organization.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  maxLength: 255
                  example: Operator
                description:
                  type: string
                  maxLength: 1024
                  example: Custom operator
                permission_ids:
                  type: array
                  items:
                    type: string
                  default: []
                testing_permission_ids:
                  type: array
                  items:
                    type: string
                  default: []
                role_type:
                  type: string
                  enum:
                    - account
                    - organization
                  default: account
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type:
                      - string
                      - 'null'
                  admin:
                    type: boolean
                  permission_ids:
                    type: array
                    items:
                      type: string
                  testing_permission_ids:
                    type: array
                    items:
                      type: string
                  role_type:
                    type: string
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: Bad Request - Duplicate name or validation failure
      tags:
        - Organizations
  /organizations/roles/{role_id}:
    patch:
      summary: Update Role
      operationId: update-role
      description: 'Partial update of a custom role. Note: role_type is immutable.'
      parameters:
        - name: role_id
          in: path
          required: true
          schema:
            type: string
          description: The unique identifier of the role.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  maxLength: 255
                description:
                  type: string
                  maxLength: 1024
                permission_ids:
                  type: array
                  items:
                    type: string
                testing_permission_ids:
                  type: array
                  items:
                    type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  name:
                    type: string
                  description:
                    type:
                      - string
                      - 'null'
                  admin:
                    type: boolean
                  permission_ids:
                    type: array
                    items:
                      type: string
                  testing_permission_ids:
                    type: array
                    items:
                      type: string
                  role_type:
                    type: string
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: Bad Request - Validation failure
        '404':
          description: Not Found - Role not found in organization
      tags:
        - Organizations
    delete:
      summary: Delete Role
      operationId: delete-role
      description: Delete a custom role. Users assigned to this role will be reassigned to ReadOnly.
      parameters:
        - name: role_id
          in: path
          required: true
          schema:
            type: string
          description: The unique identifier of the role to delete.
      responses:
        '204':
          description: No Content - Successfully deleted
      tags:
        - Organizations
  /organizations/users:
    get:
      summary: List Users
      operationId: list-users
      description: Lists users. Optionally filter by account_group_id or account_id.
      parameters:
        - name: account_group_id
          in: query
          schema:
            type: string
            format: uuid
          description: Filter by account group.
        - name: account_id
          in: query
          schema:
            type: string
            format: uuid
          description: Filter by account.
        - name: page
          in: query
          schema:
            type: integer
            default: 1
          description: Page number.
        - name: page_size
          in: query
          schema:
            type: integer
            default: 20
            maximum: 100
          description: Page size.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        email:
                          type: string
                        first_name:
                          type: string
                        last_name:
                          type: string
                        account_permissions:
                          type: array
                          items:
                            type: object
                            properties:
                              account_id:
                                type: string
                                format: uuid
                              role_id:
                                type: string
                        account_group_permissions:
                          type: array
                          items:
                            type: object
                            properties:
                              account_group_id:
                                type: string
                                format: uuid
                              role_id:
                                type: string
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                      page_size:
                        type: integer
                      total_items:
                        type: integer
                      total_pages:
                        type: integer
                      has_next:
                        type: boolean
                      has_previous:
                        type: boolean
      tags:
        - Organizations
    post:
      summary: Create User
      operationId: create-user
      description: >-
        Creates a new user. Users created this way are not granted access to the Dashboard, and can only be
        authenticated using the [Authenticate Whitelabel User](/reference/organizations/authenticate-whitelabel-user)
        api. The user must be created with at least one permission assignment: either account_permissions,
        account_group_permissions, or both.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
                - first_name
                - last_name
              properties:
                email:
                  type: string
                  format: email
                  description: User email address.
                first_name:
                  type: string
                  description: First name.
                last_name:
                  type: string
                  description: Last name.
                account_permissions:
                  type: array
                  description: Direct account permission assignments.
                  items:
                    type: object
                    required:
                      - account_id
                      - role_id
                    properties:
                      account_id:
                        type: string
                        format: uuid
                        description: Account UUID (must belong to the org).
                      role_id:
                        type: string
                        description: Role ID (non-admin, non-staff, org-scoped).
                account_group_permissions:
                  type: array
                  description: Account group permission assignments.
                  items:
                    type: object
                    required:
                      - account_group_id
                      - role_id
                    properties:
                      account_group_id:
                        type: string
                        format: uuid
                        description: Account group UUID (must belong to the org).
                      role_id:
                        type: string
                        description: Role ID (non-admin, non-staff, org-scoped).
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  email:
                    type: string
                  first_name:
                    type: string
                  last_name:
                    type: string
                  account_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_id:
                          type: string
                          format: uuid
                        role_id:
                          type: string
                  account_group_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_group_id:
                          type: string
                          format: uuid
                        role_id:
                          type: string
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
      tags:
        - Organizations
  /organizations/users/{user_id}:
    get:
      summary: Retrieve User
      operationId: retrieve-user
      description: Get a specific user by UUID.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  email:
                    type: string
                  first_name:
                    type: string
                  last_name:
                    type: string
                  account_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_id:
                          type: string
                          format: uuid
                        role_id:
                          type: string
                  account_group_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_group_id:
                          type: string
                          format: uuid
                        role_id:
                          type: string
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: Not found. When no user matches the id, the API returns HTTP 400 with `code` set to `"404"`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: '404'
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: '404'
                messages:
                  - User not found
      tags:
        - Organizations
    patch:
      summary: Update User
      operationId: update-user
      description: Updates a user.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  description: First name.
                last_name:
                  type: string
                  description: Last name.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                  email:
                    type: string
                  first_name:
                    type: string
                  last_name:
                    type: string
                  account_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_id:
                          type: string
                          format: uuid
                        role_id:
                          type: string
                  account_group_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_group_id:
                          type: string
                          format: uuid
                        role_id:
                          type: string
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
      tags:
        - Organizations
    delete:
      summary: Delete User
      operationId: delete-user
      description: Deletes a user and its associated records.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      responses:
        '204':
          description: No Content
      tags:
        - Organizations
  /organizations/users/{user_id}/account-group-permissions:
    get:
      summary: Retrieve User Account Group Permissions
      operationId: retrieve-user-account-group-permissions
      description: Returns all account group permission assignments for a user.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: string
                    format: uuid
                  account_group_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_group_id:
                          type: string
                          format: uuid
                        account_group_name:
                          type: string
                        role_id:
                          type: string
                        role_name:
                          type: string
                        accounts_count:
                          type:
                            - integer
                            - 'null'
                  updated_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
              example:
                user_id: 20abf272-d8ec-4e0c-8bd8-4c6a889ed620
                account_group_permissions:
                  - account_group_id: dca39563-5027-44d7-9fed-0f2674fbd210
                    account_group_name: EMEA accounts
                    role_id: 0ac83b0f-4fd7-4d25-8f77-e133ff8c396f
                    role_name: Operator
                    accounts_count: 2
                updated_at: '2026-10-22T06:57:28.618979485Z'
      tags:
        - Organizations
    put:
      summary: Replace User Account Group Permissions
      operationId: replace-user-account-group-permissions
      description: Replaces all account group permission assignments for a user. Full replacement.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_group_permissions
              properties:
                account_group_permissions:
                  type: array
                  items:
                    type: object
                    required:
                      - account_group_id
                      - role_id
                    properties:
                      account_group_id:
                        type: string
                        format: uuid
                      role_id:
                        type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: string
                    format: uuid
                  account_group_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_group_id:
                          type: string
                          format: uuid
                        account_group_name:
                          type: string
                        role_id:
                          type: string
                        role_name:
                          type: string
                        accounts_count:
                          type:
                            - integer
                            - 'null'
                  updated_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
              example:
                user_id: 20abf272-d8ec-4e0c-8bd8-4c6a889ed620
                account_group_permissions:
                  - account_group_id: dca39563-5027-44d7-9fed-0f2674fbd210
                    account_group_name: EMEA accounts
                    role_id: 0ac83b0f-4fd7-4d25-8f77-e133ff8c396f
                    role_name: Operator
                    accounts_count: 2
                updated_at: '2026-10-22T06:57:28.618979485Z'
      tags:
        - Organizations
    patch:
      summary: Update User Account Group Permissions
      operationId: update-user-account-group-permissions
      description: Partially updates account group permissions. Adds or updates without removing existing ones.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_group_permissions
              properties:
                account_group_permissions:
                  type: array
                  items:
                    type: object
                    required:
                      - account_group_id
                      - role_id
                    properties:
                      account_group_id:
                        type: string
                        format: uuid
                      role_id:
                        type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: string
                    format: uuid
                  account_group_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_group_id:
                          type: string
                          format: uuid
                        account_group_name:
                          type: string
                        role_id:
                          type: string
                        role_name:
                          type: string
                        accounts_count:
                          type:
                            - integer
                            - 'null'
                  updated_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
              example:
                user_id: 20abf272-d8ec-4e0c-8bd8-4c6a889ed620
                account_group_permissions:
                  - account_group_id: dca39563-5027-44d7-9fed-0f2674fbd210
                    account_group_name: EMEA accounts
                    role_id: 0ac83b0f-4fd7-4d25-8f77-e133ff8c396f
                    role_name: Operator
                    accounts_count: 2
                updated_at: '2026-10-22T06:57:28.618979485Z'
      tags:
        - Organizations
  /organizations/users/{user_id}/account-group-permissions/{account_group_id}:
    delete:
      summary: Delete User Account Group Permission
      operationId: delete-user-account-group-permission
      description: Removes a specific account group permission from a user.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
        - name: account_group_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account group UUID.
      responses:
        '204':
          description: No Content
      tags:
        - Organizations
  /organizations/users/{user_id}/account-permissions:
    get:
      summary: Retrieve User Account Permissions
      operationId: retrieve-user-account-permissions
      description: Returns all account permission assignments for a user.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: string
                    format: uuid
                  account_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_id:
                          type: string
                          format: uuid
                        account_name:
                          type: string
                        role_id:
                          type: string
                        role_name:
                          type: string
                        account_group_id:
                          type:
                            - string
                            - 'null'
                          format: uuid
                          description: Set when the access comes from an account group grant, null otherwise.
                  updated_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
              example:
                user_id: bf3d9b16-1523-4a48-a425-95cb7dc426cc
                account_permissions:
                  - account_id: a858ec8f-cb93-45c0-ad61-b9fa1f893b72
                    account_name: Account 1
                    role_id: rol_sAnEykYxo6e4x2wY
                    role_name: Admin
                    account_group_id: null
                updated_at: null
      tags:
        - Organizations
    put:
      summary: Replace User Account Permissions
      operationId: replace-user-account-permissions
      description: Replaces all account permission assignments for a user. This is a full replacement.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_permissions
              properties:
                account_permissions:
                  type: array
                  items:
                    type: object
                    required:
                      - account_id
                      - role_id
                    properties:
                      account_id:
                        type: string
                        format: uuid
                      role_id:
                        type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: string
                    format: uuid
                  account_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_id:
                          type: string
                          format: uuid
                        account_name:
                          type: string
                        role_id:
                          type: string
                        role_name:
                          type: string
                        account_group_id:
                          type:
                            - string
                            - 'null'
                          format: uuid
                          description: Set when the access comes from an account group grant, null otherwise.
                  updated_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
              example:
                user_id: bf3d9b16-1523-4a48-a425-95cb7dc426cc
                account_permissions:
                  - account_id: a858ec8f-cb93-45c0-ad61-b9fa1f893b72
                    account_name: Account 1
                    role_id: rol_sAnEykYxo6e4x2wY
                    role_name: Admin
                    account_group_id: null
                updated_at: null
      tags:
        - Organizations
    patch:
      summary: Update User Account Permissions
      operationId: update-user-account-permissions
      description: Partially updates account permissions. Adds or updates the specified entries without removing existing ones.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_permissions
              properties:
                account_permissions:
                  type: array
                  items:
                    type: object
                    required:
                      - account_id
                      - role_id
                    properties:
                      account_id:
                        type: string
                        format: uuid
                      role_id:
                        type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: string
                    format: uuid
                  account_permissions:
                    type: array
                    items:
                      type: object
                      properties:
                        account_id:
                          type: string
                          format: uuid
                        account_name:
                          type: string
                        role_id:
                          type: string
                        role_name:
                          type: string
                        account_group_id:
                          type:
                            - string
                            - 'null'
                          format: uuid
                          description: Set when the access comes from an account group grant, null otherwise.
                  updated_at:
                    type:
                      - string
                      - 'null'
                    format: date-time
              example:
                user_id: bf3d9b16-1523-4a48-a425-95cb7dc426cc
                account_permissions:
                  - account_id: a858ec8f-cb93-45c0-ad61-b9fa1f893b72
                    account_name: Account 1
                    role_id: rol_sAnEykYxo6e4x2wY
                    role_name: Admin
                    account_group_id: null
                updated_at: null
      tags:
        - Organizations
  /organizations/users/{user_id}/account-permissions/{account_id}:
    delete:
      summary: Delete User Account Permission
      operationId: delete-user-account-permission
      description: Removes a specific account permission from a user.
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: User UUID.
        - name: account_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Account UUID.
      responses:
        '204':
          description: No Content
      tags:
        - Organizations
  /payment-links:
    post:
      summary: Create Payment Link
      description: ''
      operationId: create-payment-link
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - country
                - amount
                - payment_method_types
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [the Yuno
                    Dashboard](https://dashboard.y.uno/) (MAX 64; MIN 36).
                description:
                  type: string
                  description: The description of the payment link (MAX 255; MIN 3).
                country:
                  type: string
                  description: >-
                    The customer's country code (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference))
                    **[Required]**.
                  enum:
                    - AR
                    - BO
                    - BR
                    - CL
                    - CO
                    - CR
                    - EC
                    - SV
                    - GT
                    - HN
                    - MX
                    - NI
                    - PA
                    - PY
                    - PE
                    - US
                    - UY
                merchant_order_id:
                  type: string
                  description: Identification of the payment link transaction defined by the merchant (MAX 255; MIN 3).
                amount:
                  type: object
                  description: Specifies the payment amount object, with the value and currency.
                  required:
                    - value
                    - currency
                  properties:
                    value:
                      type: number
                      description: The payment amount (multiple of 0.0001)
                      format: float
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                capture:
                  type: boolean
                  description: >-
                    Decides whether to authorize the payment or capture it. Authorizing a card payment allows you to
                    reserve funds in a customer's bank account. If not set, true by default.
                type:
                  type: string
                  description: The type of the payment link.
                status:
                  type: string
                  description: The status of the payment link.
                payment_method:
                  type: object
                  description: Payment method object (optional).
                installments_plan:
                  type: object
                  description: Installments plan configuration (optional).
                timezone:
                  type: string
                  description: Timezone for availability (e.g., UTC +03:00).
                payments_number:
                  type: integer
                  description: Number of payments associated with this link.
                split_payment_methods:
                  type: boolean
                  description: Allow split payment methods.
                taxes:
                  type: array
                  description: Specifies the payment taxes list.
                  items:
                    properties:
                      type:
                        type: string
                        description: Type of the tax.
                      tax_base:
                        type: number
                        description: The amount base to apply the tax defined.
                        format: float
                      value:
                        type: number
                        description: The amount of the tax.
                        format: float
                      percentage:
                        type: number
                        description: The percentage of the tax.
                        format: float
                    type: object
                external_invoice:
                  type: object
                  description: >-
                    The Stripe invoice this payment link pays. When the customer pays, Yuno checks the invoice: it must
                    be open, the link amount must equal the amount remaining on the invoice, in the same currency, and
                    the customer must be the invoice's when `customer_id` is sent. If the check fails, nothing is
                    charged and the link is cancelled. Cannot be sent with `subscription` or a non-empty `taxes` list
                    (400 `INVALID_REQUEST`) and cannot be changed after creation. See [Pay a Stripe invoice
                    (top-ups)](/docs/payment-features/subscriptions/stripe-billing-top-ups#pay-a-stripe-invoice-with-a-payment-link).
                  required:
                    - id
                  properties:
                    id:
                      type: string
                      description: >-
                        The invoice's identifier in Stripe (`in_...`). Required when the object is present. (MIN 3; MAX
                        255, after trimming spaces)
                      minLength: 3
                      maxLength: 255
                    customer_id:
                      type: string
                      description: >-
                        The Stripe customer (`cus_...`) that owns the invoice. Optional. When you send it, it must be
                        the invoice's customer. (MIN 3; MAX 255, after trimming spaces)
                      minLength: 3
                      maxLength: 255
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    id:
                      type: string
                      description: The unique identifier of the customer (UUID | MAX 36; MIN 36).
                    merchant_customer_id:
                      type: string
                      description: The unique identifier of the customer in the external merchant (MAX 255; MIN 3).
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 1).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 1).
                    gender:
                      type: string
                      description: The customer's gender (MAX 2; MIN 1; (M=Male/F=Female/NA=Not applicable/NK=Not Known)).
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the YYYY-MM-DD format (Length: 10).'
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; ISO 3166-1).
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      required:
                        - document_number
                      properties:
                        document_number:
                          type: string
                          description: The document number (MAX 40; MIN 3).
                        document_type:
                          type: string
                          description: Document type (MAX 6; MIN 3; [Country reference](/reference/country-reference)).
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                            - ''
                    phone:
                      type: object
                      description: Specifies the customer's phone number object.
                      properties:
                        country_code:
                          type: string
                          description: >-
                            The country calling code of the phone (MAX 5; MIN 1). Check the [country
                            reference](/reference/country-reference) to see the phone codes.
                        number:
                          type: string
                          description: The phone number, without the country code (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary address line (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary address line (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: The country (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state/province from the address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode for the address (MAX 10; MIN 5).
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary address line (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary address line (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: The country (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state/province from the address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode for the address (MAX 10; MIN 5).
                    ip_address:
                      type: string
                      description: Specifies the customer's IP address (MAX 45; MIN 1).
                additional_data:
                  type: object
                  description: >-
                    Specifies the additional_data object. This object is not mandatory. However, if you send this
                    information, the payment experience will be enhanced for your user.
                  properties:
                    order:
                      type: object
                      description: Specifies the order object.
                      properties:
                        shipping_amount:
                          type: number
                          description: The shipping amount of the order (multiple of 0.0001)
                          format: float
                        fee_amount:
                          type: number
                          description: The fee amount of the order (multiple of 0.0001)
                          format: float
                        items:
                          type: array
                          description: Specifies the items array of object.
                          items:
                            properties:
                              id:
                                type: string
                                description: The unique identifier of the item (MAX 255; MIN 1).
                              name:
                                type: string
                                description: The name of the item (MAX 255; MIN 3).
                              quantity:
                                type: integer
                                description: The quantity of the item.
                                format: int32
                              unit_amount:
                                type: number
                                description: The unit amount of the item (multiple of 0.0001).
                                format: float
                              category:
                                type: string
                                description: The category of the item. Check the Item category reference.
                              brand:
                                type: string
                                description: The brand of the item (MAX 255; MIN 1).
                              sku_code:
                                type: string
                                description: The stock keeping unit (SKU) of the item (MAX 255; MIN 1).
                              manufacture_part_number:
                                type: string
                                description: The manufacture part number of the item (MAX 255; MIN 1).
                            required:
                              - id
                              - name
                              - quantity
                              - unit_amount
                            type: object
                    airline:
                      type: object
                      description: Specifies the airline object.
                      properties:
                        pnr:
                          type: string
                          description: Passenger name record (MAX 10; MIN 1).
                        legs:
                          type: array
                          description: Specifies the legs object.
                          items:
                            properties:
                              departure_airport:
                                type: string
                                description: IATA code. See http://www.iata.org (MAX 3; MIN 3).
                              departure_datetime:
                                type: string
                                description: The departure date and time in UTC time (ISO 8601, MAX 27; MIN 27).
                                format: date
                              departure_airport_timezone:
                                type: string
                                description: Airport timezone (MAX 6; MIN 6).
                              arrival_airport:
                                type: string
                                description: IATA airport code. See http://www.iata.org (MAX 3; MIN 3).
                              carrier_code:
                                type: string
                                description: IATA carrier code. See http://www.iata.org (MAX 2; MIN 2).
                              carrier_name:
                                type: string
                                description: The name of the airline carrier (MAX 100; MIN 1).
                              flight_number:
                                type: string
                                description: The flight number assigned by the airline carrier (MAX 5; MIN 1).
                              fare_basis_code:
                                type: string
                                description: >-
                                  Code base rate provides specific information on the fare in addition to the class
                                  service, both required for booking (MAX 15; MIN 1).
                              fare_class_code:
                                type: string
                                description: >-
                                  The fare class code of the airline (MAX 3; MIN 1). The values can be letters (A-Z) but
                                  may vary depending on the airline's definition. Check the [Airline information
                                  reference](/reference/airline-information#fare-class-code).
                              base_fare:
                                type: number
                                description: >-
                                  The transaction amount, excluding taxes and fees, the smallest unit of currency
                                  (multiple of 0.0001).
                                format: float
                              base_fare_currency:
                                type: string
                                description: >-
                                  The currency used for the base fare amount (MAX 3; MIN 3; [ISO
                                  4217](https://en.wikipedia.org/wiki/ISO_4217)).
                              stopover_code:
                                type: string
                                description: >-
                                  1-letter code that indicates whether the passenger is allowed to make a stopover. Only
                                  two types of characters are allowed: O: Stopover allowed (the letter “O”, not zero) /
                                  X: Stopover not allowed. (MAX 1; MIN 1).
                            required:
                              - departure_airport
                              - departure_datetime
                              - arrival_airport
                            type: object
                    device:
                      type: object
                      description: Specifies the device object.
                      properties:
                        locale:
                          type: string
                          description: The locale of the device (MAX 20; e.g. es-CL).
                        geolocation:
                          type: string
                          description: The geolocation of the device in lat,long format (MAX 255).
                        event_uuid:
                          type: string
                          description: The unique identifier of the event (MAX 64).
                        user_agent:
                          type: string
                          description: The user agent of the device (MAX 512).
                    payer_risk_data:
                      type: object
                      description: Specifies the payer risk data object.
                      properties:
                        login_platform:
                          type: string
                          description: The platform used to log in (MAX 64; e.g. WEB).
                        approved_transactions_2m:
                          type: integer
                          description: Number of approved transactions in the last 2 months (MIN 0).
                          minimum: 0
                        recent_transactions_3h:
                          type: integer
                          description: Number of transactions in the last 3 hours (MIN 0).
                          minimum: 0
                        is_paid_user:
                          type: boolean
                          description: Indicates whether the payer is a paid user.
                        account_creation_date:
                          type: string
                          description: The account creation date in YYYYMMDD format (e.g. 20191005).
                    seller_details:
                      type: object
                      description: >-
                        Specifies the seller's details object. Only mandatory for PSPs with sub_merchant account
                        information.
                      properties:
                        name:
                          type: string
                          description: The seller's legal name (MAX 255; MIN 1).
                        email:
                          type: string
                          description: The seller's e-mail (MAX 255; MIN 1).
                        reference:
                          type: string
                          description: The seller's identification code (MAX 255; MIN 1).
                        website:
                          type: string
                          description: The seller's website URL (MAX 255; MIN 1).
                        industry:
                          type: string
                          description: The seller's industry (MAX 255; MIN 3; Industry category reference).
                        country:
                          type: string
                          description: The seller's country (MAX 255; MIN 3; ISO 3166-1).
                        document:
                          type: object
                          description: Specifies the document object of the seller.
                          required:
                            - document_number
                          properties:
                            document_number:
                              type: string
                              description: The document number (MAX 40; MIN 3).
                            document_type:
                              type: string
                              description: Document type (MAX 6, MIN 1; [Country reference](/reference/country-reference)).
                              enum:
                                - DNI
                                - CI
                                - LC
                                - LE
                                - CUIT
                                - CUIL
                                - PAS
                                - CPF
                                - RG
                                - CNH
                                - CNPJ
                                - RUT
                                - RUN
                                - CC
                                - CE
                                - NIT
                                - DUI
                                - PIC
                                - DPI
                                - IFR
                                - INE
                                - CP
                                - RFC
                                - CURP
                                - CIP
                                - CIC
                                - CUI
                                - RUC
                                - ''
                        phone:
                          type: object
                          description: Specifies the seller's phone number object.
                          properties:
                            country_code:
                              type: string
                              description: >-
                                The country calling code of the phone (MAX 5; MIN 1).  Check the [Country
                                reference](/reference/country-reference) to see the phone codes.
                            number:
                              type: string
                              description: The phone number, without the country code (MAX 32; MIN 1).
                        address:
                          type: object
                          description: Specifies the seller's address object.
                          properties:
                            address_line_1:
                              type: string
                              description: The primary address line (MAX 255; MIN 3).
                            address_line_2:
                              type: string
                              description: The secondary address line (MAX 255; MIN 1).
                            city:
                              type: string
                              description: The city considered for the address (MAX 255; MIN 3).
                            country:
                              type: string
                              description: The country (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                              enum:
                                - AR
                                - BO
                                - BR
                                - CL
                                - CO
                                - CR
                                - EC
                                - SV
                                - GT
                                - HN
                                - MX
                                - NI
                                - PA
                                - PY
                                - PE
                                - US
                                - UY
                            state:
                              type: string
                              description: The state/province from the address (MAX 255; MIN 3).
                            zip_code:
                              type: string
                              description: The zipcode for the address (MAX 10; MIN 5).
                callback_url:
                  type: string
                  description: URL to redirect the customer after the payment (MAX 256).
                one_time_use:
                  type: boolean
                  description: '`true` allows only one use, `false` multiple payments'
                availability:
                  type: object
                  description: The availability object. Refers to the Payment Link expiration date.
                  properties:
                    start_at:
                      type: string
                      description: Start of the validity period of the payment link.
                      format: date-time
                    finish_at:
                      type: string
                      description: >-
                        End of the validity period of the payment link. Must be in the future. A past date returns 400
                        `INVALID_PARAMETERS` (`Invalid finish_at date`).
                      format: date-time
                payment_method_types:
                  type: array
                  description: >-
                    The list of types of payment methods that customers can use. Check the available payment methods on
                    [Payment type](/reference/payment-type-list). If no value is passed, Yuno will display the payment
                    methods defined in the dashboard.
                  items:
                    type: string
                metadata:
                  type: array
                  description: Specifies a list of metadata objects. You can add up to 50 metadata objects.
                  items:
                    properties:
                      key:
                        type: string
                        description: The metadata key (MAX 48).
                      value:
                        type: string
                        description: The metadata key value (MAX 512).
                    type: object
                vault_on_success:
                  type: boolean
                  description: Flag to enroll the card after a successful payment
            examples:
              CREATE PAYMENT LINK:
                value:
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  description: Test
                  country: AR
                  merchant_order_id: AA01
                  amount:
                    value: 5000
                    currency: ARS
                  payment_method_types:
                    - CARD
                  availability:
                    start_at: '2026-11-01T14:00:12Z'
                    finish_at: '2027-12-29T14:00:12Z'
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                CREATE PAYMENT LINK:
                  value:
                    id: 555933df-4eed-4af4-ae83-a32072ef34af
                    country: US
                    availability:
                      start_at: '2026-11-01T14:00:12Z'
                      finish_at: '2027-12-29T14:00:12Z'
                    status: CREATED
                    merchant_order_id: AA01
                    description: Test
                    amount:
                      currency: USD
                      value: 5000
                    capture: true
                    metadata: null
                    split_payment_methods: false
                    payment_method_types:
                      - CARD
                    one_time_use: false
                    payments: null
                    callback_url: https://checkout.sandbox.y.uno/payment/status
                    installments_plan: null
                    customer_payer: null
                    taxes: null
                    external_invoice:
                      id: in_1QwZzz
                      customer_id: cus_RplXYZ
                    additional_data:
                      airline: null
                      order: null
                      seller_details: null
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    checkout_url: https://checkout.sandbox.y.uno/payment?session=2f6d9754-43d0-4dca-b023-6aba4b107179
                    payments_number: 0
                    merchant_image: ''
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 555933df-4eed-4af4-ae83-a32072ef34af
                  country:
                    type: string
                    example: US
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2026-11-01T14:00:12Z'
                      finish_at:
                        type: string
                        example: '2027-12-29T14:00:12Z'
                  status:
                    type: string
                    example: CREATED
                  merchant_order_id:
                    type: string
                    example: AA01
                  description:
                    type: string
                    example: Test
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: integer
                        example: 5000
                        default: 0
                  capture:
                    type: boolean
                    example: true
                    default: true
                  metadata: {}
                  split_payment_methods:
                    type: boolean
                    example: false
                    default: true
                  payment_method_types:
                    type: array
                    items:
                      type: string
                      example: CARD
                  one_time_use:
                    type: boolean
                    example: false
                    default: true
                  payments: {}
                  callback_url:
                    type: string
                    example: https://checkout.sandbox.y.uno/payment/status
                  installments_plan: {}
                  customer_payer: {}
                  taxes: {}
                  external_invoice:
                    type: object
                    description: >-
                      The Stripe invoice this payment link pays, as it was sent when the link was created. The key is
                      absent on links created without it.
                    required:
                      - id
                    properties:
                      id:
                        type: string
                        description: The invoice's identifier in Stripe (`in_...`).
                        example: in_1QwZzz
                      customer_id:
                        type:
                          - string
                          - 'null'
                        description: >-
                          The Stripe customer (`cus_...`) that owns the invoice. Null when the link was created without
                          it.
                        example: cus_RplXYZ
                  additional_data:
                    type: object
                    properties:
                      airline: {}
                      order: {}
                      seller_details: {}
                      device:
                        type: object
                        properties:
                          locale:
                            type: string
                            example: es-CL
                          geolocation:
                            type: string
                          event_uuid:
                            type: string
                          user_agent:
                            type: string
                      payer_risk_data:
                        type: object
                        properties:
                          login_platform:
                            type: string
                            example: WEB
                          approved_transactions_2m:
                            type: integer
                            default: 0
                          recent_transactions_3h:
                            type: integer
                            default: 0
                          is_paid_user:
                            type: boolean
                          account_creation_date:
                            type: string
                            example: '20191005'
                  account_id:
                    type: string
                    example: 493e9374-510a-4201-9e09-de669d75f256
                  checkout_url:
                    type: string
                    example: https://checkout.sandbox.y.uno/payment?session=2f6d9754-43d0-4dca-b023-6aba4b107179
                  payments_number:
                    type: integer
                    example: 0
                    default: 0
                  merchant_image:
                    type: string
                    example: ''
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Invalid Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payment Links
  /payment-links/{code}:
    get:
      summary: Retrieve Payment Link
      description: ''
      operationId: retrieve-payment-link
      parameters:
        - name: code
          in: path
          description: The code of the payment link (UUID, 36 chars).
          schema:
            type: string
          required: true
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                RETRIVE PAYMENT LINK:
                  value:
                    code: aace3f6d-e26d-45d0-9a4f-66523909ddf9
                    country: US
                    availability:
                      start_at: '2023-01-15T14:00:12Z'
                      finish_at: '2023-10-29T14:00:12Z'
                    status: CREATED
                    description: PRUEBA PAYMENT LINK 10/07
                    amount:
                      currency: USD
                      value: 5000
                    metadata:
                      - key: some key
                        value: some value
                    split_payment_methods: false
                    payment_method_types:
                      - PSE
                    one_time_use: true
                    callback_url: https://checkout.sandbox.y.uno/payment/status
                    installments_plan: null
                    customer_payer: null
                    taxes: null
                    additional_data:
                      airline: null
                      order: null
                      seller_details: null
                    organization_code: b887a970-9722-44fe-ab17-106bf1b93577
                    account_code: 8147da44-4de9-48ff-a194-51b2cd7d2a03
                    checkout_url: https://checkout.sandbox.y.uno/payment?session=ac63a0d7-b2d7-4e72-9062-2e2e3a448359
                    payments_number: 0
                    merchant_image: ''
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: aace3f6d-e26d-45d0-9a4f-66523909ddf9
                  country:
                    type: string
                    example: US
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2023-01-15T14:00:12Z'
                      finish_at:
                        type: string
                        example: '2023-10-29T14:00:12Z'
                  status:
                    type: string
                    example: CREATED
                  description:
                    type: string
                    example: PRUEBA PAYMENT LINK 10/07
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: integer
                        example: 5000
                        default: 0
                  metadata:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: some key
                        value:
                          type: string
                          example: some value
                  split_payment_methods:
                    type: boolean
                    example: false
                    default: true
                  payment_method_types:
                    type: array
                    items:
                      type: string
                      example: PSE
                  one_time_use:
                    type: boolean
                    example: true
                    default: true
                  callback_url:
                    type: string
                    example: https://checkout.sandbox.y.uno/payment/status
                  installments_plan: {}
                  customer_payer: {}
                  taxes: {}
                  external_invoice:
                    type: object
                    description: >-
                      The Stripe invoice this payment link pays, as it was sent when the link was created. The key is
                      absent on links created without it.
                    required:
                      - id
                    properties:
                      id:
                        type: string
                        description: The invoice's identifier in Stripe (`in_...`).
                        example: in_1QwZzz
                      customer_id:
                        type:
                          - string
                          - 'null'
                        description: >-
                          The Stripe customer (`cus_...`) that owns the invoice. Null when the link was created without
                          it.
                        example: cus_RplXYZ
                  additional_data:
                    type: object
                    properties:
                      airline: {}
                      order: {}
                      seller_details: {}
                      device:
                        type: object
                        properties:
                          locale:
                            type: string
                            example: es-CL
                          geolocation:
                            type: string
                          event_uuid:
                            type: string
                          user_agent:
                            type: string
                      payer_risk_data:
                        type: object
                        properties:
                          login_platform:
                            type: string
                            example: WEB
                          approved_transactions_2m:
                            type: integer
                            default: 0
                          recent_transactions_3h:
                            type: integer
                            default: 0
                          is_paid_user:
                            type: boolean
                          account_creation_date:
                            type: string
                            example: '20191005'
                  organization_code:
                    type: string
                    example: b887a970-9722-44fe-ab17-106bf1b93577
                  account_code:
                    type: string
                    example: 8147da44-4de9-48ff-a194-51b2cd7d2a03
                  checkout_url:
                    type: string
                    example: https://checkout.sandbox.y.uno/payment?session=ac63a0d7-b2d7-4e72-9062-2e2e3a448359
                  payments_number:
                    type: integer
                    example: 0
                    default: 0
                  merchant_image:
                    type: string
                    example: ''
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Invalid Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payment Links
  /payment-links/{code}/cancel:
    post:
      summary: Cancel Payment Link
      description: ''
      operationId: cancel-payment-link
      parameters:
        - name: code
          in: path
          description: The code of the payment link (UUID, 36 chars)
          schema:
            type: string
          required: true
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                CANCEL PAYMENT LINK:
                  value:
                    code: aace3f6d-e26d-45d0-9a4f-66523909ddf9
                    country: US
                    availability:
                      start_at: '2023-01-15T14:00:12Z'
                      finish_at: '2023-10-29T14:00:12Z'
                    status: CANCELED
                    description: PRUEBA PAYMENT LINK 10/07
                    amount:
                      currency: USD
                      value: 5000
                    metadata:
                      - key: some key
                        value: some value
                    split_payment_methods: false
                    payment_method_types:
                      - PSE
                    one_time_use: true
                    callback_url: https://checkout.sandbox.y.uno/payment/status
                    installments_plan: null
                    customer_payer: null
                    taxes: null
                    additional_data:
                      airline: null
                      order: null
                      seller_details: null
                    organization_code: b887a970-9722-44fe-ab17-106bf1b93577
                    account_code: 8147da44-4de9-48ff-a194-51b2cd7d2a03
                    checkout_url: https://checkout.sandbox.y.uno/payment?session=ac63a0d7-b2d7-4e72-9062-2e2e3a448359
                    payments_number: 0
                    merchant_image: ''
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: aace3f6d-e26d-45d0-9a4f-66523909ddf9
                  country:
                    type: string
                    example: US
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2023-01-15T14:00:12Z'
                      finish_at:
                        type: string
                        example: '2023-10-29T14:00:12Z'
                  status:
                    type: string
                    example: CANCELED
                  description:
                    type: string
                    example: PRUEBA PAYMENT LINK 10/07
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: integer
                        example: 5000
                        default: 0
                  metadata:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: some key
                        value:
                          type: string
                          example: some value
                  split_payment_methods:
                    type: boolean
                    example: false
                    default: true
                  payment_method_types:
                    type: array
                    items:
                      type: string
                      example: PSE
                  one_time_use:
                    type: boolean
                    example: true
                    default: true
                  callback_url:
                    type: string
                    example: https://checkout.sandbox.y.uno/payment/status
                  installments_plan: {}
                  customer_payer: {}
                  taxes: {}
                  external_invoice:
                    type: object
                    description: >-
                      The Stripe invoice this payment link pays, as it was sent when the link was created. The key is
                      absent on links created without it.
                    required:
                      - id
                    properties:
                      id:
                        type: string
                        description: The invoice's identifier in Stripe (`in_...`).
                        example: in_1QwZzz
                      customer_id:
                        type:
                          - string
                          - 'null'
                        description: >-
                          The Stripe customer (`cus_...`) that owns the invoice. Null when the link was created without
                          it.
                        example: cus_RplXYZ
                  additional_data:
                    type: object
                    properties:
                      airline: {}
                      order: {}
                      seller_details: {}
                  organization_code:
                    type: string
                    example: b887a970-9722-44fe-ab17-106bf1b93577
                  account_code:
                    type: string
                    example: 8147da44-4de9-48ff-a194-51b2cd7d2a03
                  checkout_url:
                    type: string
                    example: https://checkout.sandbox.y.uno/payment?session=ac63a0d7-b2d7-4e72-9062-2e2e3a448359
                  payments_number:
                    type: integer
                    example: 0
                    default: 0
                  merchant_image:
                    type: string
                    example: ''
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Invalid Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payment Links
  /payment-methods/account-updater:
    post:
      summary: Register Stored Cards for Account Updater
      description: >-
        Register up to 100 stored cards for Card Account Updater in a single request, identified by their payment method
        id (`vaulted_token`). Validation is synchronous and all-or-nothing: if any id is invalid the whole request is
        rejected. Registration itself runs asynchronously, so a `200` response confirms the cards were accepted, not
        that the update completed. Your account must be enabled for Card Account Updater to use this endpoint.
      operationId: register-cards-for-account-updater-api
      requestBody:
        required: true
        content:
          application/json:
            examples:
              Register cards:
                value:
                  payment_method_ids:
                    - cbdcc878-ceb4-4dd8-b0f0-49d444855de0
                    - 03c3aae1-ed42-4be6-bc24-de5487f58491
            schema:
              type: object
              required:
                - payment_method_ids
              properties:
                payment_method_ids:
                  type: array
                  description: >-
                    List of stored payment method ids (`vaulted_token`) to register for Card Account Updater. Between 1
                    and 100 items; each must be a valid UUID.
                  minItems: 1
                  maxItems: 100
                  items:
                    type: string
                    format: uuid
                    example: cbdcc878-ceb4-4dd8-b0f0-49d444855de0
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    accepted: 2
              schema:
                type: object
                properties:
                  accepted:
                    type: integer
                    description: Number of cards accepted for Card Account Updater registration.
                    example: 2
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                Organization not enrolled:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - organization is not enrolled in account updater.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
      deprecated: false
      tags:
        - Payment Methods Direct Workflow
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /payment-methods/{payment_method_id}:
    get:
      summary: Retrieve Payment Method By ID
      description: ''
      operationId: retrieve-payment-method-by-id-checkout
      parameters:
        - name: payment_method_id
          in: path
          description: The payment method id obtained while enrolling a new payment method (UUID, 36 chars).
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Ready to enroll:
                  value:
                    id: 0395199e-a99c-4a85-acac-6c916f43fa74
                    idempotency_key: null
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    name: Visa Credit Card
                    description: Visa Credit Card
                    type: VISA
                    category: CARD
                    country: US
                    status: READY_TO_ENROLL
                    created_at: '2024-06-06T13:14:18.799434Z'
                    updated_at: '2024-06-06T13:14:18.799437Z'
                    enrollment:
                      session: 6641e30d-ca7a-440f-b97c-24231eac6dab
                      sdk_required_action: false
                    provider:
                      id: YUNO
                      type: YUNO
                      provider_status: null
                    verify:
                      vault_on_success: false
                      payment: null
                    preferred: null
                    parent_type: null
                    customer_payer:
                      first_name: null
                      last_name: null
                      email: null
                      gender: null
                      date_of_birth: null
                      document: null
                      phone: null
                      billing_address: null
                      shipping_address: null
                    card_data:
                      iin: '41111111'
                      lfd: '1111'
                      holder_name: JOHN DOE
                      expiration_month: 12
                      expiration_year: 26
                      number_length: 16
                      security_code_length: 3
                      security_code_expires_in: 79073
                      brand: VISA
                      issuer: CONOTOXIA SP Z O O
                      issuer_code: null
                      country_code: PL
                      category: CLASSIC
                      type: DEBIT
                      stored_credentials:
                        reason: null
                        usage: null
                        subscription_agreement_id: null
                        network_transaction_id: '108114113107103'
                        transaction_link_id: null
                      fingerprint: ba4d6817-adf4-47b1-8ae4-41a934e9e512
                Enrolled:
                  value:
                    id: 77ee4a02-da3e-4a11-ac15-ba69e1813475
                    idempotency_key: null
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    name: VISA ****1111
                    description: VISA ****1111
                    type: CARD
                    category: CARD
                    country: US
                    status: ENROLLED
                    created_at: '2024-06-06T13:28:57.149530Z'
                    updated_at: '2024-06-06T13:29:05.536493Z'
                    enrollment:
                      session: 0685f1d6-11ff-4992-abc3-9eea1842205c
                      sdk_required_action: true
                    provider:
                      id: YUNO
                      type: YUNO
                      token: e47299a5-269e-42a1-9be1-9f64e400413a
                      provider_status: null
                    card_data:
                      iin: '41111111'
                      lfd: '1111'
                      expiration_month: 10
                      expiration_year: 25
                      number_length: 16
                      security_code_length: 3
                      brand: VISA
                      issuer: JPMORGAN CHASE BANK N A
                      issuer_code: null
                      country_code: US
                      category: CREDIT
                      type: CREDIT
                      fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                    verify:
                      vault_on_success: false
                      payment: null
                    preferred: null
                    parent_type: null
                    customer_payer:
                      first_name: null
                      last_name: null
                      email: null
                      gender: null
                      date_of_birth: null
                      document: null
                      phone: null
                      billing_address: null
                      shipping_address: null
              schema:
                oneOf:
                  - title: Ready to enroll
                    type: object
                    properties:
                      id:
                        type: string
                        example: 0395199e-a99c-4a85-acac-6c916f43fa74
                      idempotency_key: {}
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      name:
                        type: string
                        example: Visa Credit Card
                      description:
                        type: string
                        example: Visa Credit Card
                      type:
                        type: string
                        example: VISA
                      category:
                        type: string
                        example: CARD
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: READY_TO_ENROLL
                      created_at:
                        type: string
                        example: '2024-06-06T13:14:18.799434Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T13:14:18.799437Z'
                      enrollment:
                        type: object
                        properties:
                          session:
                            type: string
                            example: 6641e30d-ca7a-440f-b97c-24231eac6dab
                          sdk_required_action:
                            type: boolean
                            example: false
                            default: true
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO
                          type:
                            type: string
                            example: YUNO
                          provider_status: {}
                      verify:
                        type: object
                        properties:
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          currency:
                            type: string
                            description: >-
                              Currency of the card verification, as sent when the payment method was enrolled (ISO
                              4217).
                          payment: {}
                      preferred: {}
                      parent_type:
                        nullable: true
                        description: Parent type.
                      customer_payer:
                        type: object
                        properties:
                          first_name:
                            nullable: true
                          last_name:
                            nullable: true
                          email:
                            nullable: true
                          gender:
                            nullable: true
                          date_of_birth:
                            nullable: true
                          document:
                            nullable: true
                          phone:
                            nullable: true
                          billing_address:
                            nullable: true
                          shipping_address:
                            nullable: true
                        description: Customer payer.
                      card_data:
                        type: object
                        properties:
                          iin:
                            type: string
                            example: '41111111'
                          lfd:
                            type: string
                            example: '1111'
                          holder_name:
                            type: string
                            example: JOHN DOE
                          expiration_month:
                            type: integer
                            example: 12
                          expiration_year:
                            type: integer
                            example: 26
                          number_length:
                            type: integer
                            example: 16
                          security_code_length:
                            type: integer
                            example: 3
                          security_code_expires_in:
                            type: integer
                            example: 79073
                          brand:
                            type: string
                            example: VISA
                          issuer:
                            type: string
                            example: CONOTOXIA SP Z O O
                          issuer_code:
                            nullable: true
                          country_code:
                            type: string
                            example: PL
                          category:
                            type: string
                            example: CLASSIC
                          type:
                            type: string
                            example: DEBIT
                          stored_credentials:
                            type: object
                            properties:
                              reason:
                                nullable: true
                              usage:
                                nullable: true
                              subscription_agreement_id:
                                nullable: true
                              network_transaction_id:
                                type: string
                                example: '108114113107103'
                              transaction_link_id:
                                nullable: true
                          fingerprint:
                            type: string
                            example: ba4d6817-adf4-47b1-8ae4-41a934e9e512
                        description: Card data.
                  - title: Enrolled
                    type: object
                    properties:
                      id:
                        type: string
                        example: 77ee4a02-da3e-4a11-ac15-ba69e1813475
                      idempotency_key: {}
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      name:
                        type: string
                        example: VISA ****1111
                      description:
                        type: string
                        example: VISA ****1111
                      type:
                        type: string
                        example: CARD
                      category:
                        type: string
                        example: CARD
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: ENROLLED
                      created_at:
                        type: string
                        example: '2024-06-06T13:28:57.149530Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T13:29:05.536493Z'
                      enrollment:
                        type: object
                        properties:
                          session:
                            type: string
                            example: 0685f1d6-11ff-4992-abc3-9eea1842205c
                          sdk_required_action:
                            type: boolean
                            example: true
                            default: true
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO
                          type:
                            type: string
                            example: YUNO
                          token:
                            type: string
                            example: e47299a5-269e-42a1-9be1-9f64e400413a
                          provider_status: {}
                      card_data:
                        type: object
                        properties:
                          iin:
                            type: string
                            example: '41111111'
                          lfd:
                            type: string
                            example: '1111'
                          expiration_month:
                            type: integer
                            example: 10
                            default: 0
                          expiration_year:
                            type: integer
                            example: 25
                            default: 0
                          number_length:
                            type: integer
                            example: 16
                            default: 0
                          security_code_length:
                            type: integer
                            example: 3
                            default: 0
                          brand:
                            type: string
                            example: VISA
                          issuer:
                            type: string
                            example: JPMORGAN CHASE BANK N A
                          issuer_code:
                            type:
                              - string
                              - 'null'
                            description: >-
                              Code identifying the card's issuing bank, derived from BIN lookup when the card is
                              vaulted. Null when BIN enrichment data is unavailable.
                            example: null
                          country_code:
                            type:
                              - string
                              - 'null'
                            description: >-
                              ISO 3166-1 alpha-2 country code of the card's issuing country, derived from BIN lookup
                              when the card is vaulted. Null when BIN enrichment data is unavailable.
                            example: US
                          category:
                            type: string
                            example: CREDIT
                          type:
                            type: string
                            example: CREDIT
                          fingerprint:
                            type: string
                            example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                      verify:
                        type: object
                        properties:
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          currency:
                            type: string
                            description: >-
                              Currency of the card verification, as sent when the payment method was enrolled (ISO
                              4217).
                          external_subscription:
                            type: object
                            description: >-
                              The external subscription this payment method was linked to when it was enrolled. Returned
                              only when the enrollment was created with `verify.vault_on_success` set to `true` and
                              carried an `external_subscription` object. The key is omitted when there is no link, so an
                              absent `external_subscription` does not prove the enrollment has none: the field is also
                              omitted when the verification payment cannot be retrieved. Retrieve the verification
                              payment to confirm.
                            properties:
                              id:
                                type: string
                                description: Identifier of the subscription in your system.
                              customer_id:
                                type: string
                                description: Identifier of the subscription's customer in your system.
                          payment: {}
                      preferred: {}
                      parent_type:
                        nullable: true
                        description: Parent type.
                      customer_payer:
                        type: object
                        properties:
                          first_name:
                            nullable: true
                          last_name:
                            nullable: true
                          email:
                            nullable: true
                          gender:
                            nullable: true
                          date_of_birth:
                            nullable: true
                          document:
                            nullable: true
                          phone:
                            nullable: true
                          billing_address:
                            nullable: true
                          shipping_address:
                            nullable: true
                        description: Customer payer.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payment Methods Checkout
    patch:
      summary: Reassign a Payment Method to Another Customer
      description: >-
        Reassigns an enrolled payment method to a different customer of the same account. Only card payment methods can
        be reassigned. The reassignment fails when the payment method is already assigned to a customer that has data.
        Returns the payment method in the same shape as the Enroll Payment Method response, with the new owner in the
        `customer_id` field.
      operationId: reassign-payment-method-api
      parameters:
        - name: payment_method_id
          in: path
          description: >-
            The unique identifier of the `payment_method`. This is the `vaulted_token` received when enrolling a payment
            method with [Enroll Payment Method](/reference/enroll-payment-method-api) (UUID).
          schema:
            type: string
          required: true
        - name: X-account-code
          in: header
          description: The unique identifier of your account (UUID).
          schema:
            type: string
            x-default: <Your X-account-code>
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReassignPaymentMethodInput'
            example:
              customer_id: b3f2c1a0-1234-4a5b-9c8d-000000000001
      responses:
        '200':
          description: The reassigned payment method, including the new owner in the `customer_id` field.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentMethod'
              example:
                idempotency_key: a0000000-0000-4000-8000-000000000010
                name: VISA ****1111
                description: VISA ****1111
                type: CARD
                category: CARD
                country: US
                parent_type: null
                status: ENROLLED
                sub_status: ENROLLED
                vaulted_token: b0000000-0000-4000-8000-000000000002
                callback_url: null
                action: null
                redirect_url: null
                created_at: '2024-06-04T12:47:46.992602Z'
                updated_at: '2024-06-04T12:47:46.992603Z'
                card_data:
                  iin: '41111111'
                  lfd: '1111'
                  holder_name: JOHN DOE
                  expiration_month: 3
                  expiration_year: 26
                  number_length: 16
                  security_code_length: 3
                  brand: VISA
                  issuer: JPMORGAN CHASE BANK N A
                  issuer_code: null
                  country_code: US
                  category: CREDIT
                  type: CREDIT
                  fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                last_successfully_used: null
                last_successfully_used_at: null
                preferred: null
                customer_id: b3f2c1a0-1234-4a5b-9c8d-000000000001
                verify: null
        '400':
          description: The request is invalid, the target customer does not exist, or the payment method is not a card.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
              examples:
                Missing customer_id:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'customer_id' is required.
                Invalid customer_id:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'customer_id' must be a valid uuid v4.
                Malformed request body:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - Bad request
                Target customer does not exist:
                  value:
                    code: CUSTOMER_NOT_FOUND
                    messages:
                      - Customer not found.
                Payment method is not a card:
                  value:
                    code: PAYMENT_METHOD_NOT_REASSIGNABLE
                    messages:
                      - Only card payment methods can be reassigned.
        '404':
          description: The payment method does not exist for this account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentMethodNotFoundError'
              examples:
                Payment method not found:
                  value:
                    code: PAYMENT_METHOD_NOT_FOUND
                    messages:
                      - Payment method not found.
        '409':
          description: The payment method is already assigned to a customer that has data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentMethodConflictError'
              examples:
                Already assigned to a customer with data:
                  value:
                    code: CONFLICT
                    messages:
                      - payment_method is already assigned to a customer with data
      deprecated: false
      tags:
        - Payment Methods Direct Workflow
  /payments:
    get:
      summary: Retrieve Payment by Merchant Order ID
      description: >-
        Returns the payments that match a `merchant_order_id`, sent as a query parameter. The response is an array, and
        each item wraps the payment object in a `payment` key.
      operationId: retrieve-payment-by-merchant-order-id
      parameters:
        - name: merchant_order_id
          in: query
          description: The unique identifier of the customer's order.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                SDK_Checkout - Required Fields:
                  value:
                    - payment:
                        id: e3f397ed-b7d0-4816-ab75-8457b0a30ec1
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test Bank of America
                        country: US
                        status: READY_TO_PAY
                        sub_status: CREATED
                        merchant_order_id: '0000022'
                        created_at: '2023-07-20T17:24:58.900553Z'
                        updated_at: '2023-07-20T17:25:13.447662Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 52000
                        checkout:
                          session: 954dc216-60ff-4ae4-a299-c603b93bd267
                          sdk_action_required: true
                        payment_method:
                          vaulted_token: ''
                          type: BANK_TRANSFER
                          vault_on_success: false
                          token: 2cd31999-e44e-4de3-bbe4-179981ff4295
                          payment_method_detail:
                            bank_transfer:
                              provider_image: ''
                              account_type: null
                              bank_name: Bank of America
                              beneficiary_name: John Doe
                              bank_account: '123456789'
                              bank_account_2: null
                              beneficiary_document_type: SSN
                              beneficiary_document: 123-45-6789
                              payment_instruction: null
                              redirect_url: https://api-sandbox.wompi.co/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                        customer_payer:
                          id: cfae0941-7234-427a-a739-ef4fce966c79
                          merchant_customer_id: '1689873883'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1990-02-28'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: 09135cb9-159c-4662-8fe3-da5523bb2266
                            type: PURCHASE
                            status: SUCCEEDED
                            category: BANK_TRANSFER
                            amount: 52000
                            provider_id: BANK_OF_AMERICA
                            payment_method:
                              vaulted_token: ''
                              type: BANK_TRANSFER
                              vault_on_success: false
                              token: 2cd31999-e44e-4de3-bbe4-179981ff4295
                              detail:
                                bank_transfer:
                                  provider_image: ''
                                  account_type: null
                                  bank_name: Bank of America
                                  beneficiary_name: John Doe
                                  bank_account: '123456789'
                                  bank_account_2: null
                                  beneficiary_document_type: SSN
                                  beneficiary_document: 123-45-6789
                                  payment_instruction: null
                                  redirect_url: https://api-sandbox.wompi.co/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test Bank of America
                            merchant_reference: null
                            provider_data:
                              id: BANK_OF_AMERICA
                              transaction_id: 117490-1689873907-17347
                              account_id: ''
                              status: APPROVED
                              status_detail: ''
                              response_code: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                data:
                                  amount_in_cents: 5200000
                                  bill_id: null
                                  billing_data: null
                                  created_at: '2023-07-20T17:25:07.167Z'
                                  currency: USD
                                  customer_data: null
                                  customer_email: johndoe@example.com
                                  finalized_at: null
                                  id: 117490-1689873907-17347
                                  payment_link_id: null
                                  payment_method:
                                    extra:
                                      is_three_ds: false
                                    payment_description: Test Bank of America
                                    sandbox_status: APPROVED
                                    type: BANK_TRANSFER
                                    user_type: PERSON
                                  payment_method_type: BANK_TRANSFER
                                  payment_source_id: null
                                  redirect_url: https://google.com/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                                  reference: 09135cb9-159c-4662-8fe3-da5523bb2266
                                  shipping_address: null
                                  status: PENDING
                                  status_message: null
                                  taxes: []
                                meta: {}
                              third_party_transaction_id: ''
                            three_d_secure_action_required: null
                            created_at: '2023-07-20T17:25:05.410687Z'
                            updated_at: '2023-07-20T17:25:11.472652Z'
                        split: []
                        callback_url: https://y.uno/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                        workflow: SDK_CHECKOUT
                        metadata: []
                Card - With card details:
                  value:
                    - payment:
                        id: bc0489ba-80bf-4bb9-98c5-ff8dfbceebf9
                        account_id: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                        description: SUCCESSFUL
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: Order_id
                        created_at: '2023-07-12T18:51:49.437886Z'
                        updated_at: '2023-07-12T18:51:54.679410Z'
                        amount:
                          currency: USD
                          value: 20000
                          refunded: 0
                          captured: 0
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: true
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '517862'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: JPMORGAN_CHASE_BANK_NA
                                issuer_code: US_JPMORGAN_CHASE_BANK_NA
                                category: null
                                type: CREDIT
                                three_d_secure:
                                  token: null
                                  collect_url: null
                                  setup_reference_id: null
                                  developer_id: null
                                  solution_id: null
                                  code: null
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  acs_id: null
                                  ds_id: null
                                  pares_status: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: a76d79b7-902f-4152-922f-7e7eebc5f3dc
                          merchant_customer_id: '1309'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1990-02-28'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: null
                          device_fingerprint: null
                          browser_info:
                            user_agent: string
                            accept_header: string
                            accept_content: null
                            accept_browser: null
                            color_depth: '32'
                            screen_height: '32'
                            screen_width: '32'
                            javascript_enabled: true
                            java_enabled: null
                            browser_time_difference: null
                            language: string
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: ''
                            country: US
                            city: San Diego
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: ''
                            country: US
                            city: San Diego
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: c718b8e9-2943-4fdf-9b3c-426cf44940fb
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 20000
                            provider_id: DLOCAL
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '517862'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '41111111'
                                    lfd: '1111'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: JPMORGAN_CHASE_BANK_NA
                                    issuer_code: US_JPMORGAN_CHASE_BANK_NA
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      token: null
                                      collect_url: null
                                      setup_reference_id: null
                                      developer_id: null
                                      solution_id: null
                                      code: null
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      acs_id: null
                                      ds_id: null
                                      pares_status: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: SUCCESSFUL
                            merchant_reference: null
                            provider_data:
                              id: DLOCAL
                              transaction_id: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                              account_id: ''
                              status: PAID
                              status_detail: '200'
                              response_message: The payment was paid.
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                value: >-
                                  {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":20000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                  Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T18:51:52.000+0000","approved_date":"2023-07-12T18:51:54.000+0000","status":"PAID","status_detail":"The
                                  payment was
                                  paid.","status_code":"200","order_id":"c718b8e9-2943-4fdf-9b3c-426cf44940fb","description":"SUCCESSFUL","notification_url":"https://sandbox.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"517862"}}
                              third_party_transaction_id: ''
                            three_d_secure_action_required: null
                            created_at: '2023-07-12T18:51:51.908784Z'
                            updated_at: '2023-07-12T18:51:54.426087Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With airline data:
                  value:
                    - payment:
                        id: 6e7cc5da-2b39-4b6e-b382-df8bb1feddf1
                        account_id: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                        description: SUCCESSFUL
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: Order_id
                        created_at: '2023-07-12T20:06:41.418163Z'
                        updated_at: '2023-07-12T20:06:41.806898Z'
                        amount:
                          currency: USD
                          value: 2000
                          refunded: 0
                          captured: 0
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: false
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: ''
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: JPMORGAN_CHASE_BANK_NA
                                issuer_code: US_JPMORGAN_CHASE_BANK_NA
                                category: null
                                type: CREDIT
                                three_d_secure:
                                  token: null
                                  collect_url: null
                                  setup_reference_id: null
                                  developer_id: null
                                  solution_id: null
                                  code: null
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  acs_id: null
                                  ds_id: null
                                  pares_status: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: null
                          merchant_customer_id: null
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1998-01-01'
                          email: test@test.com
                          nationality: US
                          ip_address: 192.0.0.1
                          device_fingerprint: null
                          browser_info:
                            user_agent: string
                            accept_header: string
                            accept_content: string
                            accept_browser: string
                            color_depth: '32'
                            screen_height: '32'
                            screen_width: '32'
                            javascript_enabled: true
                            java_enabled: null
                            browser_time_difference: null
                            language: string
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone: null
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data:
                          airline:
                            pnr: ABC123
                            legs:
                              - departure_airport: LAX
                                departure_datetime: '2023-10-31T01:30:00.000-08:00'
                                departure_airport_timezone: GMT-08
                                arrival_airport: JFK
                                arrival_datetime: '2023-10-31T09:30:00.000-08:00'
                                carrier_code: AA
                                carrier_name: American Airlines
                                flight_number: AA123
                                fare_basis_code: 'Y'
                                fare_class_code: S
                                base_fare: 180
                                base_fare_currency: USD
                                stopover_code: O
                            passengers:
                              - first_name: John
                                last_name: Doe
                                middle_name: Stephen
                                type: A
                                date_of_birth: '1998-01-01'
                                nationality: US
                                document:
                                  document_type: SSN
                                  document_number: 123-45-6789
                                country: null
                                loyalty_number: '79250001'
                                loyalty_tier: DIAMOND
                                email: john.doe@company.com
                                phone:
                                  number: '5559876543'
                                  country_code: '1'
                            ticket: null
                            tickets:
                              - ticket_number: BRB0001
                                e_ticket: true
                                restricted: false
                                total_fare_amount: 200
                                total_tax_amount: 18
                                total_fee_amount: 2
                                issue:
                                  carrier_prefix_code: '001'
                                  travel_agent_code: A104121
                                  travel_agent_name: Airline Travel
                                  date: '2023-10-31T01:30:00.000-08:00'
                                  address: 123 Main St
                                  city: Los Angeles
                                  country: US
                                  zip_code: '90001'
                          order: null
                          seller_details: null
                        taxes: null
                        transactions: []
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With 3DS direct:
                  value:
                    - payment:
                        id: cb3ca163-cb79-41d7-b9a3-0115e30a7c01
                        idempotency_key: fc0d89a1-8d18-4759-8d0a-ee1c6d0386e2
                        account_code: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                        account_id: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                        description: TEST_3DS
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-17T17:00:39.678379Z'
                        updated_at: '2023-07-17T17:41:48.453381Z'
                        amount:
                          currency: USD
                          value: 5000
                          refunded: 0
                          captured: 0
                        checkout:
                          session: b0751c96-0b00-4b8c-8372-c16f72f60598
                          sdk_action_required: false
                        customer_payer:
                          id: fc7ef8ae-000d-4903-ab76-494ebc8d5fa3
                          merchant_customer_id: '1689374657'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1990-02-28'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: null
                          browser_info: null
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone: null
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data:
                          airline: null
                          order: null
                          seller_details: null
                        taxes: null
                        transactions:
                          - id: caada737-27ab-46ca-91a9-744da64c4787
                            type: THREE_D_SECURE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: CYBERSOURCE_3DS
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: ''
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  redirect_url: https://checkout.staging.y.uno/payment?session=14c263bd-e01d-400f-885a-70205df8b417
                                  card_data:
                                    holder_name: John Doe
                                    iin: '44565300'
                                    lfd: '0007'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      three_d_secure_setup_id: 24127d61-b852-42fb-acd4-1ee661645376
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: 'Y'
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: TEST_3DS
                            merchant_reference: reference-5f6dd991-ab14-4da3-b7d8-9f24a04ebd92
                            provider_data:
                              id: CYBERSOURCE_3DS
                              transaction_id: '6896132402506977804951'
                              account_id: ''
                              status: AUTHENTICATION_SUCCESSFUL
                              status_detail: ''
                              response_message: CONSUMER_AUTHENTICATION_REQUIRED
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                clientReferenceInformation:
                                  code: 24127d61-b852-42fb-acd4-1ee661645376
                                consumerAuthenticationInformation:
                                  accessToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxZmM5ZDVhMS04M2ZhLTQwYWEtYjI5Ny1iZDM1ZGIxODQ4ZjAiLCJpYXQiOjE2ODk2MTMyNDAsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIsImV4cCI6MTY4OTYxNjg0MCwiT3JnVW5pdElkIjoiNjQwYTM1NjlkODdhMjUwYTQyNTEwOWRjIiwiUGF5bG9hZCI6eyJBQ1NVcmwiOiJodHRwczovL21lcmNoYW50YWNzc3RhZy5jYXJkaW5hbGNvbW1lcmNlLmNvbS9NZXJjaGFudEFDU1dlYi9wYXJlcS5qc3A_dmFhPWImZ29sZD1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEiLCJQYXlsb2FkIjoiZU5wVlVWMXZna0FRZkw5ZlFVd2ZHKzZBS3RHc2w5QnE2a2MwdHRCb254cUViU1dWRDQvRHFMKytkd2kxdmFlZHljN3R6aXdFTzRFNDhqR3FCSEpZWUZtR1gyZ2s4YkRqWC9KcHZqaVV6M0kyUzc4LzAvUE1ZeDBPSys4VkR4eU9LTW9rejdobE10TUcya0tpdmhEUkxzd2toekE2UEU2WC9LSFh0NjBlMEFZU1NGRk1SendZKzhHSE0vS0JYakdCTEV5UnYxZFpiaWphQ0xDVVFHdU9RSlJYbVJSbmJya01hQXNJVkdMUGQxSVc1WURTczZtVVFEVkZnTjYyV0ZXNktwVzVVeEx6TjZjNCt1ditNdG9zSi9HNG1HL1hNdDF1OXZPWHdCc0MxUjBFNGxBaXQ1bnRNTmR5RGNzZE1EWncra0JybmtDWTZ2bjhybXN5eHU2WldxaGhDQlI2bG5kRlhhWWYwTCtjTWxJSmdWblVPbWtSQVR3VmVZYXFSNFg1V3lzanQvV2ZKanJTU0txc1hPWTR6TEoxcGpXdTVZbUt4TzR4cTlZbmRUNVVhMmh6TWRvY1YxWC9qdjREQVEybVdnPT0iLCJUcmFuc2FjdGlvbklkIjoiU3pvSW9NcXNHdEpKbWtmbXlKQTAifSwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUmV0dXJuVXJsIjoiaHR0cHM6Ly9zdGFnaW5nLnkudW5vL2N5YmVyc291cmNlLTNkcy13ZWJob29rL3YxL2NvbmZpcm1hdGlvbnMvYXV0aC8yNDEyN2Q2MS1iODUyLTQyZmItYWNkNC0xZWU2NjE2NDUzNzYifQ.5ehSTA5uUKc2DfvTRGJZ8dPKbxAJ5WproKSTLqu4egM
                                  acsUrl: https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
                                  authenticationPath: ENROLLED
                                  authenticationTransactionId: SzoIoMqsGtJJmkfmyJA0
                                  pareq: eNpVUV1vgkAQfL9fQUwfG+6AKtGsl9Bq6kc0ttBonxqEbSWVD4/DqL++dwi1vaedyc7tziwEO4E48jGqBHJYYFmGX2gk8bDjX/JpvjiUz3I2S78/0/PMYx0OK+8VDxyOKMokz7hlMtMG2kKivhDRLswkhzA6PE6X/KHXt60e0AYSSFFMRzwY+8GHM/KBXjGBLEyRv1dZbijaCLCUQGuOQJRXmRRnbrkMaAsIVGLPd1IW5YDSs6mUQDVFgN62WFW6KpW5UxLzN6c4+uv+MtosJ/G4mG/XMt1u9vOXwBsC1R0E4lAit5ntMNdyDcsdMDZw+kBrnkCY6vn8rmsyxu6ZWqhhCBR6lndFXaYf0L+cMlIJgVnUOmkRATwVeYaqR4X5Wysjt/WfJjrSSKqsXOY4zLJ1pjWu5YmKxO4xq9YndT5Ua2hzMdocV1X/jv4DAQ2mWg==
                                  proofXml: >-
                                    <AuthProof><Time>2023 Jul 17
                                    17:00:39</Time><DSUrl>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/vereq.jsp?acqid=CYBS</DSUrl><VEReqProof><Message
                                    id="SzoIoMqsGtJJmkfmyJA0"><VEReq><version>1.0.2</version><pan>XXXXXXXXXXXX0007</pan><Merchant><acqBIN>469216</acqBIN><merID>TEST_3DS</merID></Merchant><Browser><deviceCategory>0</deviceCategory><accept>*/*</accept><userAgent>Mozilla/5.0
                                    (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko)
                                    Chrome/114.0.0.0
                                    Safari/537.36</userAgent></Browser></VEReq></Message></VEReqProof><VEResProof><Message
                                    id="SzoIoMqsGtJJmkfmyJA0"><VERes><version>1.0.2</version><CH><enrolled>Y</enrolled><acctID>7033012</acctID></CH><url>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&amp;gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</url><protocol>ThreeDSecure</protocol></VERes></Message></VEResProof></AuthProof>
                                  proxyPan: '7033012'
                                  specificationVersion: 1.0.2
                                  stepUpUrl: https://centinelapistag.cardinalcommerce.com/V2/Cruise/StepUp
                                  strongAuthentication:
                                    OutageExemptionIndicator: '0'
                                  token: AxjzbwSTddcP6s4BiIKXABEBURzGv4QYVRP0JAY/LtaSZejFq0T8BEAAwwdp
                                  veresEnrolled: 'Y'
                                  xid: U3pvSW9NcXNHdEpKbWtmbXlKQTA=
                                errorInformation:
                                  message: >-
                                    The cardholder is enrolled in Payer Authentication. Please authenticate the
                                    cardholder before continuing with the transaction.
                                  reason: CONSUMER_AUTHENTICATION_REQUIRED
                                id: '6896132402506977804951'
                                paymentInformation:
                                  card:
                                    bin: '445653'
                                    type: VISA
                                status: PENDING_AUTHENTICATION
                                submitTimeUtc: '2023-07-17T17:00:40Z'
                              third_party_transaction_id: null
                            three_d_secure_action_required: null
                            created_at: '2023-07-17T17:00:39.765728Z'
                            updated_at: '2023-07-17T17:41:43.593769Z'
                          - id: 4081b900-3efa-44a2-83d8-bca350476b06
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: DLOCAL
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '445975'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '44565300'
                                    lfd: '0007'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      three_d_secure_setup_id: 24127d61-b852-42fb-acd4-1ee661645376
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: 'Y'
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: TEST_3DS
                            merchant_reference: null
                            provider_data:
                              id: DLOCAL
                              transaction_id: T-385928-57934367-25ca-4445-a973-da5c1a4635b2
                              account_id: ''
                              status: PAID
                              sub_status: ''
                              status_detail: '200'
                              response_message: The payment was paid.
                              raw_response:
                                value: >-
                                  {"id":"T-385928-57934367-25ca-4445-a973-da5c1a4635b2","amount":5000,"currency":"COP","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"CO","card":{"holder_name":"John
                                  Doe","expiration_month":1,"expiration_year":2026,"brand":"VI","last4":"0007","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-17T17:41:44.000+0000","approved_date":"2023-07-17T17:41:48.000+0000","status":"PAID","status_detail":"The
                                  payment was
                                  paid.","status_code":"200","order_id":"4081b900-3efa-44a2-83d8-bca350476b06","description":"TEST_3DS","notification_url":"https://staging.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"445975"}}
                              third_party_transaction_id: ''
                            three_d_secure_action_required: null
                            created_at: '2023-07-17T17:41:43.752435Z'
                            updated_at: '2023-07-17T17:41:48.395863Z'
                        split: []
                        callback_url: https://google.com
                        workflow: REDIRECT
                        fraud_screening: null
                        metadata: []
                        payment_link_code: ''
                Card - With customer, billing, and shipping details:
                  value:
                    - payment:
                        id: 12113b61-015a-4a01-a69c-ab7423d0138d
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-24T01:03:02.291414Z'
                        updated_at: '2023-07-24T01:03:04.571022Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 5000
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: true
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '123456'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40518856'
                                lfd: '6623'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: ''
                                issuer_code: null
                                category: null
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: null
                          merchant_customer_id: '1690160581'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1990-02-28'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 502, Tower I
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 502, Tower I
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: 73e5cddf-32c7-4b12-9d8e-92335862928f
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '123456'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '40518856'
                                    lfd: '6623'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: null
                                      acs_id: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test
                            merchant_reference: reference-85ffbde3-2256-418f-b761-41ab2d8706dd
                            provider_data:
                              id: YUNO_TEST_PAYMENT_GW
                              transaction_id: d570b77a-759e-45ae-abb9-ab4ab3034d0c
                              account_id: ''
                              status: SUCCEEDED
                              status_detail: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                amount:
                                  currency: USD
                                  value: 2100
                                merchantAccount: YunoPaymentsECOM
                                reference: '34343434'
                                status: received
                              third_party_transaction_id: ''
                            created_at: '2023-07-24T01:03:02.407480Z'
                            updated_at: '2023-07-24T01:03:04.499303Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With customer, billing, shipping and order items:
                  value:
                    - payment:
                        id: cf205a5e-140e-4c08-9a5b-ee44b91256dc
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-24T01:08:17.039613Z'
                        updated_at: '2023-07-24T01:08:19.300337Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 5000
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: true
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '123456'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40518856'
                                lfd: '6623'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: ''
                                issuer_code: null
                                category: null
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: null
                          merchant_customer_id: '1690160896'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1990-02-28'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 502, Tower I
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 502, Tower I
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data:
                          airline: null
                          order:
                            fee_amount: 0
                            shipping_amount: 0
                            items:
                              - id: 123AD
                                name: Skirt
                                quantity: 1
                                unit_amount: 5000
                                category: Clothes
                                brand: XYZ
                                sku_code: '8765432109'
                                manufacture_part_number: XYZ123456
                          seller_details: null
                        taxes: null
                        transactions:
                          - id: bf442c7f-2393-4607-98b5-a4c2a8a97bbc
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '123456'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '40518856'
                                    lfd: '6623'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: null
                                      acs_id: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test
                            merchant_reference: reference-9260ef97-81b5-4e35-ac17-0d3d124a0d59
                            provider_data:
                              id: YUNO_TEST_PAYMENT_GW
                              transaction_id: ade1dcf5-cbf5-408b-84af-f504abe01a26
                              account_id: ''
                              status: SUCCEEDED
                              status_detail: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                amount:
                                  currency: USD
                                  value: 2100
                                merchantAccount: YunoPaymentsECOM
                                reference: '34343434'
                                status: received
                              third_party_transaction_id: ''
                            created_at: '2023-07-24T01:08:17.147871Z'
                            updated_at: '2023-07-24T01:08:19.222926Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With installments:
                  value:
                    - payment:
                        id: 3707bcc5-f88c-4092-ba44-142d1f3ea229
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-24T01:10:50.152163Z'
                        updated_at: '2023-07-24T01:10:52.417211Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 5000
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: true
                              installments: 3
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '123456'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40518856'
                                lfd: '6623'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: ''
                                issuer_code: null
                                category: null
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: null
                          merchant_customer_id: '1690161049'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1990-01-01'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: a58043ab-e5c6-4476-adfb-623fa8cc320d
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 3
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '123456'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '40518856'
                                    lfd: '6623'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: null
                                      acs_id: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test
                            merchant_reference: reference-f3f9319f-f3f7-48a3-90c2-fac0a2f782be
                            provider_data:
                              id: YUNO_TEST_PAYMENT_GW
                              transaction_id: 9efdc397-2a74-479a-af00-bf5ae7e2a76e
                              account_id: ''
                              status: SUCCEEDED
                              status_detail: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                amount:
                                  currency: USD
                                  value: 2100
                                merchantAccount: YunoPaymentsECOM
                                reference: '34343434'
                                status: received
                              third_party_transaction_id: ''
                            created_at: '2023-07-24T01:10:50.273142Z'
                            updated_at: '2023-07-24T01:10:52.339967Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With authorization:
                  value:
                    - payment:
                        id: c0409fc0-87d5-453f-bf91-8f0af2f09347
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test
                        country: US
                        status: PENDING
                        sub_status: AUTHORIZED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-24T01:13:37.372312Z'
                        updated_at: '2023-07-24T01:13:39.654433Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 5000
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: false
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '123456'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40518856'
                                lfd: '6623'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: ''
                                issuer_code: null
                                category: null
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: null
                          merchant_customer_id: '1690161049'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1985-01-01'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: e9108a97-5d0d-492a-99bf-da1ee42af425
                            type: AUTHORIZE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: false
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '123456'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '40518856'
                                    lfd: '6623'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: null
                                      acs_id: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test
                            merchant_reference: reference-0b914bf9-0e86-4713-a908-0ec01d60c486
                            provider_data:
                              id: YUNO_TEST_PAYMENT_GW
                              transaction_id: 1b7011ff-4252-4ac6-99a4-d5de2086896b
                              account_id: ''
                              status: SUCCEEDED
                              status_detail: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                amount:
                                  currency: USD
                                  value: 2100
                                merchantAccount: YunoPaymentsECOM
                                reference: '34343434'
                                status: received
                              third_party_transaction_id: ''
                            created_at: '2023-07-24T01:13:37.492230Z'
                            updated_at: '2023-07-24T01:13:39.584118Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With device fingerprint:
                  value:
                    - payment:
                        id: 8e7fbcad-9c7b-43c6-8fbf-b864e87c5e41
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-24T01:20:02.671644Z'
                        updated_at: '2023-07-24T01:20:04.946852Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 5000
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: true
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '123456'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40518856'
                                lfd: '6623'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: ''
                                issuer_code: null
                                category: null
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: null
                          merchant_customer_id: '1690161049'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1985-01-01'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: hi88287gbd8d7d782ge287gbd8d7d78
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: 36524be2-b33e-4d33-b9d7-9f7853035bbd
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              vaulted_token: ''
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '123456'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '40518856'
                                    lfd: '6623'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    three_d_secure:
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: null
                                      acs_id: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test
                            merchant_reference: reference-89ab43dc-57de-4ea0-8058-6f7fc0d972a7
                            provider_data:
                              id: YUNO_TEST_PAYMENT_GW
                              transaction_id: 20500c62-96d2-457b-8e64-b64480190e89
                              account_id: ''
                              status: SUCCEEDED
                              status_detail: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                amount:
                                  currency: USD
                                  value: 2100
                                merchantAccount: YunoPaymentsECOM
                                reference: '34343434'
                                status: received
                              third_party_transaction_id: ''
                            created_at: '2023-07-24T01:20:02.794825Z'
                            updated_at: '2023-07-24T01:20:04.873386Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With vault on success:
                  value:
                    - payment:
                        id: 96b56df3-0013-4401-b58e-646f5e716ab8
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-24T01:27:23.360857Z'
                        updated_at: '2023-07-24T01:27:25.682059Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 5000
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                          type: CARD
                          vault_on_success: true
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: true
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '123456'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40518856'
                                lfd: '6623'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: ''
                                issuer_code: null
                                category: null
                                type: CREDIT
                                fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: 967ecd18-d898-4b88-9400-dd5b01b18edc
                          merchant_customer_id: '1690161049'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1985-01-01'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: hi88287gbd8d7d782ge287gbd8d7d78
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: 85c19c82-dc31-4a50-aa7d-570d89dbc475
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                              type: CARD
                              vault_on_success: true
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '123456'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '40518856'
                                    lfd: '6623'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                    three_d_secure:
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: null
                                      acs_id: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test
                            merchant_reference: reference-7cf75e3a-c8eb-4c62-bd02-74928f68f174
                            provider_data:
                              id: YUNO_TEST_PAYMENT_GW
                              transaction_id: 604075b9-52e9-48f5-8fcf-3c2d9bacbe66
                              account_id: ''
                              status: SUCCEEDED
                              status_detail: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                amount:
                                  currency: USD
                                  value: 2100
                                merchantAccount: YunoPaymentsECOM
                                reference: '34343434'
                                status: received
                              third_party_transaction_id: ''
                            created_at: '2023-07-24T01:27:23.473451Z'
                            updated_at: '2023-07-24T01:27:25.550651Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Card - With vaulted token:
                  value:
                    - payment:
                        id: 821ddfe4-309a-46a8-bd4b-819564aa9c5a
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test
                        country: US
                        status: SUCCEEDED
                        sub_status: APPROVED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-24T01:28:45.444722Z'
                        updated_at: '2023-07-24T01:28:47.712002Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 5000
                        checkout:
                          session: ''
                          sdk_action_required: false
                        payment_method:
                          vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                          type: CARD
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            card:
                              verify: null
                              capture: true
                              installments: 1
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '123456'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40518856'
                                lfd: '6623'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: ''
                                issuer_code: null
                                category: null
                                type: CREDIT
                                fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                        customer_payer:
                          id: 967ecd18-d898-4b88-9400-dd5b01b18edc
                          merchant_customer_id: '1690161049'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1985-01-01'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: hi88287gbd8d7d782ge287gbd8d7d78
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: California
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: a47e879e-3cd1-49f3-ab72-fc33b0185057
                            type: PURCHASE
                            status: SUCCEEDED
                            category: CARD
                            amount: 5000
                            provider_id: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                              type: CARD
                              vault_on_success: false
                              token: ''
                              detail:
                                card:
                                  verify: null
                                  capture: true
                                  installments: 1
                                  first_installment_deferral: 0
                                  installments_type: ''
                                  installment_amount: null
                                  soft_descriptor: ''
                                  authorization_code: '123456'
                                  retrieval_reference_number: ''
                                  acquirer_reference_number: ''
                                  voucher: null
                                  card_data:
                                    holder_name: John Doe
                                    iin: '40518856'
                                    lfd: '6623'
                                    number_length: 16
                                    security_code_length: 3
                                    brand: VISA
                                    issuer_name: ''
                                    issuer_code: null
                                    category: null
                                    type: CREDIT
                                    fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                    three_d_secure:
                                      version: null
                                      electronic_commerce_indicator: null
                                      cryptogram: null
                                      transaction_id: null
                                      directory_server_transaction_id: null
                                      pares_status: null
                                      acs_id: null
                                  stored_credentials:
                                    reason: SUBSCRIPTION
                                    usage: USED
                                    subscription_agreement_id: XXXX01
                                    network_transaction_id: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test
                            merchant_reference: reference-22103236-c3fc-4871-9fc0-98ce48a9f553
                            provider_data:
                              id: YUNO_TEST_PAYMENT_GW
                              transaction_id: f9bcb8a8-d5d8-4c53-b551-5932c9804f16
                              account_id: ''
                              status: SUCCEEDED
                              status_detail: ''
                              response_message: ''
                              iso8583_response_code: '00'
                              iso8583_response_message: Approved or completed successfully
                              raw_response:
                                amount:
                                  currency: USD
                                  value: 2100
                                merchantAccount: YunoPaymentsECOM
                                reference: '34343434'
                                status: received
                              third_party_transaction_id: ''
                            created_at: '2023-07-24T01:28:45.562437Z'
                            updated_at: '2023-07-24T01:28:47.639121Z'
                        split: []
                        workflow: DIRECT
                        metadata: []
                        fraud_screening: null
                        payment_link_code: ''
                Bank Transfer:
                  value:
                    - payment:
                        id: ac427adb-3ac9-4a7c-9389-0a923146b39b
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test Bank of America
                        country: US
                        status: READY_TO_PAY
                        sub_status: CREATED
                        merchant_order_id: '0000022'
                        created_at: '2023-07-23T23:56:25.405475Z'
                        updated_at: '2023-07-23T23:56:29.742339Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 52000
                        checkout:
                          session: c21df85b-6c39-4cf5-aa7d-305aac6441e6
                          sdk_action_required: true
                        payment_method:
                          vaulted_token: ''
                          type: BANK_TRANSFER
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            bank_transfer:
                              provider_image: ''
                              account_type: null
                              bank_name: null
                              beneficiary_name: null
                              bank_account: null
                              bank_account_2: null
                              beneficiary_document_type: null
                              beneficiary_document: null
                              payment_instruction: null
                              redirect_url: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                        customer_payer:
                          id: null
                          merchant_customer_id: '1689888489'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1985-01-01'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.0.2.1
                          device_fingerprint: unique-fingerprint-value
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: en-US
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: CA
                            city: Los Angeles
                            zip_code: '90001'
                          shipping_address:
                            address_line_1: 123 Main St
                            address_line_2: Apt 4B
                            country: US
                            state: CA
                            city: Los Angeles
                            zip_code: '90001'
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: acbf992c-e448-4efc-a39c-05f74fa624cf
                            type: PURCHASE
                            status: CREATED
                            category: BANK_TRANSFER
                            amount: 52000
                            provider_id: WOMPI
                            payment_method:
                              vaulted_token: ''
                              type: BANK_TRANSFER
                              vault_on_success: false
                              token: ''
                              detail:
                                bank_transfer:
                                  provider_image: ''
                                  account_type: null
                                  bank_name: null
                                  beneficiary_name: null
                                  bank_account: null
                                  bank_account_2: null
                                  beneficiary_document_type: null
                                  beneficiary_document: null
                                  payment_instruction: null
                                  redirect_url: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test Bank of America
                            merchant_reference: null
                            provider_data:
                              id: WOMPI
                              transaction_id: 117490-1690156586-55850
                              account_id: ''
                              status: APPROVED
                              status_detail: ''
                              response_message: ''
                              iso8583_code: ''
                              iso8583_message: ''
                              raw_response:
                                data:
                                  amount_in_cents: 5200000
                                  bill_id: null
                                  billing_data: null
                                  created_at: '2023-07-23T23:56:26.350Z'
                                  currency: USD
                                  customer_data: null
                                  customer_email: johndoe@example.com
                                  finalized_at: null
                                  id: 117490-1690156586-55850
                                  payment_link_id: null
                                  payment_method:
                                    extra:
                                      is_three_ds: false
                                    payment_description: Test Bank of America
                                    sandbox_status: APPROVED
                                    type: BANK_TRANSFER
                                    user_type: PERSON
                                  payment_method_type: BANK_TRANSFER
                                  payment_source_id: null
                                  redirect_url: https://demo.dev.y.uno/checkout/status?checkoutSession=
                                  reference: acbf992c-e448-4efc-a39c-05f74fa624cf
                                  shipping_address: null
                                  status: PENDING
                                  status_message: null
                                  taxes: []
                                meta: {}
                              third_party_transaction_id: ''
                            created_at: '2023-07-23T23:56:25.506471Z'
                            updated_at: '2023-07-23T23:56:29.673135Z'
                        split: []
                        workflow: REDIRECT
                        metadata: []
                Buy Now Pay Later:
                  value:
                    - payment:
                        id: 087be3a5-bed7-4c58-bbe0-c2ebcf376ebb
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test Bank of America
                        country: US
                        status: READY_TO_PAY
                        sub_status: CREATED
                        merchant_order_id: '0000022'
                        created_at: '2023-07-20T21:25:11.903819Z'
                        updated_at: '2023-07-20T21:25:12.983059Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 520
                        checkout:
                          session: 25e073ae-016c-4bca-89e7-64e05f766f11
                          sdk_action_required: true
                        payment_method:
                          vaulted_token: ''
                          type: BANK_TRANSFER
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            bnpl:
                              installments: null
                              provider_image: null
                              redirect_url: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                              customer_data: null
                        customer_payer:
                          id: null
                          merchant_customer_id: example00234
                          first_name: John
                          last_name: Doe
                          gender: null
                          date_of_birth: null
                          email: test@gmail.com
                          nationality: US
                          ip_address: null
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '5551234567'
                            country_code: '1'
                          billing_address: null
                          shipping_address: null
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: 1328382d-f6e8-4f09-91b7-c18b1308c031
                            type: PURCHASE
                            status: CREATED
                            category: BUY_NOW_PAY_LATER
                            amount: 520
                            provider_id: BANK_OF_AMERICA
                            payment_method:
                              vaulted_token: ''
                              type: BANK_TRANSFER
                              vault_on_success: false
                              token: ''
                              detail:
                                bnpl:
                                  installments: null
                                  provider_image: null
                                  redirect_url: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                                  customer_data: null
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test Bank of America
                            merchant_reference: null
                            provider_data:
                              id: BANK_OF_AMERICA
                              transaction_id: '0000022'
                              account_id: ''
                              status: CREATED
                              status_detail: ''
                              response_message: ''
                              iso8583_code: ''
                              iso8583_message: ''
                              raw_response:
                                value: ''
                              third_party_transaction_id: ''
                            three_d_secure_action_required: null
                            created_at: '2023-07-20T21:25:12.008657Z'
                            updated_at: '2023-07-20T21:25:12.918362Z'
                        split: []
                        workflow: REDIRECT
                        metadata: []
                        fraud_screening: null
                Payment Link:
                  value:
                    - payment:
                        id: 9c1f6ba0-d483-42a9-8d06-d53a07c284e0
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test Bank of America
                        country: US
                        status: READY_TO_PAY
                        sub_status: CREATED
                        merchant_order_id: '0000022'
                        created_at: '2023-07-23T23:11:24.724037Z'
                        updated_at: '2023-07-23T23:11:26.318691Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 50
                        checkout:
                          session: 3c9eb446-388a-4c2e-9818-573d54300dd1
                          sdk_action_required: true
                        payment_method:
                          vaulted_token: ''
                          type: BANK_TRANSFER
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            bnpl:
                              installments: 3
                              provider_image: null
                              redirect_url: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                              customer_data:
                                bank_user_id: john_doe_123
                        customer_payer:
                          id: null
                          merchant_customer_id: null
                          first_name: John
                          last_name: Doe
                          gender: null
                          date_of_birth: '1990-01-01'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: null
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '1234567890'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main Street
                            address_line_2: Apt 4B
                            city: New York
                            state: NY
                            zip_code: '10001'
                            country: US
                          shipping_address:
                            address_line_1: 123 Main Street
                            address_line_2: Apt 4B
                            city: New York
                            state: NY
                            zip_code: '10001'
                            country: US
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: 762abda0-2de5-43ba-a52b-04279acfb869
                            type: PURCHASE
                            status: CREATED
                            category: BANK_TRANSFER
                            amount: 50
                            provider_id: BANK_OF_AMERICA
                            payment_method:
                              vaulted_token: ''
                              type: BANK_TRANSFER
                              vault_on_success: false
                              token: ''
                              detail:
                                bnpl:
                                  installments: 3
                                  provider_image: null
                                  redirect_url: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                                  customer_data:
                                    bank_user_id: john_doe_123
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test Bank of America
                            merchant_reference: null
                            provider_data:
                              id: BANK_OF_AMERICA
                              transaction_id: ''
                              account_id: ''
                              status: CREATED
                              status_detail: ''
                              response_message: ''
                              iso8583_code: '00'
                              iso8583_message: Approved or completed successfully
                              raw_response:
                                token: 01aba0f569c8a78370aa35461ca482b57d1b767365535de9a0540c03791a3d97
                                url: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                              third_party_transaction_id: ''
                            created_at: '2023-07-23T23:11:24.842815Z'
                            updated_at: '2023-07-23T23:11:26.242431Z'
                        split: []
                        callback_url: www.example.com
                        workflow: REDIRECT
                        metadata: []
                Ticket:
                  value:
                    - payment:
                        id: 1c109200-3236-43f3-ab44-9a317991a288
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test Bank of America
                        country: US
                        status: READY_TO_PAY
                        sub_status: CREATED
                        merchant_order_id: '0000022'
                        created_at: '2023-07-23T23:35:25.021285Z'
                        updated_at: '2023-07-23T23:35:26.067120Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 52
                        checkout:
                          session: 3faeb04f-0a52-41fc-9aba-33e535386776
                          sdk_action_required: true
                        payment_method:
                          vaulted_token: ''
                          type: BANK_TRANSFER
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            ticket:
                              type: null
                              date_of_expiration: '2023-07-30T23:59:59Z'
                              provider_number: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                              provider_barcode: null
                              provider_logo: null
                              provider_format: null
                              redirect_url: https://checkout.sandbox.y.uno/payment?session=3feff49c-a422-434a-9fad-eca87e2193d5
                        customer_payer:
                          id: null
                          merchant_customer_id: '1690155316'
                          first_name: John
                          last_name: Doe
                          gender: M
                          date_of_birth: '1985-08-15'
                          email: johndoe@example.com
                          nationality: US
                          ip_address: 192.168.1.100
                          device_fingerprint: fingerprint123456
                          browser_info:
                            user_agent: Mozilla/5.0
                            accept_header: text/html
                            accept_content: text/html
                            accept_browser: Chrome
                            color_depth: '24'
                            screen_height: '1080'
                            screen_width: '1920'
                            javascript_enabled: true
                            java_enabled: false
                            browser_time_difference: '-300'
                            language: en-US
                          document:
                            document_type: SSN
                            document_number: 123-45-6789
                          phone:
                            number: '1234567890'
                            country_code: '1'
                          billing_address:
                            address_line_1: 123 Main Street
                            address_line_2: Apt 4B
                            city: New York
                            state: NY
                            zip_code: '10001'
                            country: US
                          shipping_address:
                            address_line_1: 123 Main Street
                            address_line_2: Apt 4B
                            city: New York
                            state: NY
                            zip_code: '10001'
                            country: US
                        additional_data: null
                        taxes: null
                        transactions:
                          - id: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                            type: PURCHASE
                            status: CREATED
                            category: BANK_TRANSFER
                            amount: 52
                            provider_id: BANK_OF_AMERICA
                            payment_method:
                              vaulted_token: ''
                              type: BANK_TRANSFER
                              vault_on_success: false
                              token: ''
                              detail: {}
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test Bank of America
                            merchant_reference: null
                            provider_data:
                              id: BANK_OF_AMERICA
                              transaction_id: ''
                              account_id: ''
                              status: ''
                              status_detail: ''
                              response_message: ''
                              iso8583_code: '00'
                              iso8583_message: Approved or completed successfully
                              raw_response:
                                redirect_url: https://checkout.sandbox.y.uno/payment?session=3feff49c-a422-434a-9fad-eca87e2193d5
                              third_party_transaction_id: ''
                            created_at: '2023-07-23T23:35:25.116858Z'
                            updated_at: '2023-07-23T23:35:25.988725Z'
                        split: []
                        callback_url: www.example.com
                        workflow: REDIRECT
                        metadata: []
                Wallet:
                  value:
                    - payment:
                        id: d0ff19c2-cf55-4015-a613-e35f22da0233
                        account_id: 493e9374-510a-4201-9e09-de669d75f256
                        description: Test Bank of America
                        country: US
                        status: READY_TO_PAY
                        sub_status: CREATED
                        merchant_order_id: '0000023'
                        created_at: '2023-07-23T23:02:39.401790Z'
                        updated_at: '2023-07-23T23:02:40.312593Z'
                        amount:
                          captured: 0
                          currency: USD
                          refunded: 0
                          value: 3000
                        checkout:
                          session: b7e15362-4ac0-4e23-886e-329695933ecb
                          sdk_action_required: true
                        payment_method:
                          vaulted_token: ''
                          type: BANK_TRANSFER
                          vault_on_success: false
                          token: ''
                          payment_method_detail:
                            wallet:
                              verify: false
                              capture: false
                              installments: null
                              payment_method_id: null
                              payment_method_detail: null
                              date_of_expiration: null
                              money_release_date: null
                              sponsor_id: null
                              authorization_code: null
                              customer_data: null
                              card_data: null
                              redirect_url: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                        customer_payer:
                          id: null
                          merchant_customer_id: null
                          first_name: John
                          last_name: Doe
                          gender: null
                          date_of_birth: null
                          email: johndoe@example.com
                          nationality: US
                          ip_address: null
                          device_fingerprint: null
                          browser_info:
                            user_agent: ''
                            accept_header: ''
                            accept_content: null
                            accept_browser: null
                            color_depth: ''
                            screen_height: ''
                            screen_width: ''
                            javascript_enabled: null
                            java_enabled: null
                            browser_time_difference: null
                            language: ''
                          document: null
                          phone: null
                          billing_address: null
                          shipping_address: null
                        additional_data:
                          airline: null
                          order:
                            fee_amount: null
                            shipping_amount: null
                            items:
                              - id: 123AD
                                name: Skirt
                                quantity: 1
                                unit_amount: 3000
                                category: null
                                brand: null
                                sku_code: null
                                manufacture_part_number: null
                          seller_details: null
                        taxes: null
                        transactions:
                          - id: 286ad833-7cbc-4e66-92f9-01019eb7d7a3
                            type: PURCHASE
                            status: CREATED
                            category: WALLET
                            amount: 3000
                            provider_id: BANK_OF_AMERICA
                            payment_method:
                              vaulted_token: ''
                              type: BANK_TRANSFER
                              vault_on_success: false
                              token: ''
                              detail:
                                wallet:
                                  verify: false
                                  capture: false
                                  installments: null
                                  payment_method_id: null
                                  payment_method_detail: null
                                  date_of_expiration: null
                                  money_release_date: null
                                  sponsor_id: null
                                  authorization_code: null
                                  customer_data: null
                                  card_data: null
                                  redirect_url: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                            response_code: SUCCEEDED
                            response_message: Transaction successful
                            reason: null
                            description: Test Bank of America
                            merchant_reference: reference-d2b08e8e-c87a-4806-b1ea-b35a19a36a6d
                            provider_data:
                              id: BANK_OF_AMERICA
                              transaction_id: ''
                              account_id: ''
                              status: ''
                              status_detail: ''
                              response_message: ''
                              iso8583_code: '00'
                              iso8583_message: Approved or completed successfully
                              raw_response:
                                value: '{"additional_info":"","auto_return":"approved","back_urls":{"failure":"http://www.example.com","pending":"http://www.example.com","success":"http://www.example.com"},"binary_mode":true,"client_id":"3615163740385056","collector_id":1131498549,"coupon_code":null,"coupon_labels":null,"date_created":"2023-07-23T19:02:40.082-04:00","date_of_expiration":null,"expiration_date_from":null,"expiration_date_to":null,"expires":false,"external_reference":"286ad833-7cbc-4e66-92f9-01019eb7d7a3","id":"1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","init_point":"https://www.bankofamerica.com/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","items":[{"id":"123AD","category_id":"others","currency_id":"USD","description":"","title":"Skirt","quantity":1,"unit_price":3000}]}'
                              third_party_transaction_id: ''
                            created_at: '2023-07-23T23:02:39.582570Z'
                            updated_at: '2023-07-23T23:02:40.227158Z'
                        split: []
                        callback_url: www.example.com
                        workflow: REDIRECT
                        metadata: []
              schema:
                oneOf:
                  - title: SDK_Checkout - Required Fields
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: e3f397ed-b7d0-4816-ab75-8457b0a30ec1
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test Bank of America
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: READY_TO_PAY
                            sub_status:
                              type: string
                              example: CREATED
                            merchant_order_id:
                              type: string
                              example: '0000022'
                            created_at:
                              type: string
                              example: '2023-07-20T17:24:58.900553Z'
                            updated_at:
                              type: string
                              example: '2023-07-20T17:25:13.447662Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 52000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: 954dc216-60ff-4ae4-a299-c603b93bd267
                                sdk_action_required:
                                  type: boolean
                                  example: true
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: BANK_TRANSFER
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: 2cd31999-e44e-4de3-bbe4-179981ff4295
                                payment_method_detail:
                                  type: object
                                  properties:
                                    bank_transfer:
                                      type: object
                                      properties:
                                        provider_image:
                                          type: string
                                          example: ''
                                        account_type: {}
                                        bank_name:
                                          type: string
                                          example: Bank of America
                                        beneficiary_name:
                                          type: string
                                          example: John Doe
                                        bank_account:
                                          type: string
                                          example: '123456789'
                                        bank_account_2: {}
                                        beneficiary_document_type:
                                          type: string
                                          example: SSN
                                        beneficiary_document:
                                          type: string
                                          example: 123-45-6789
                                        payment_instruction: {}
                                        redirect_url:
                                          type: string
                                          example: https://api-sandbox.wompi.co/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                                        bank_account_mask_number:
                                          type: string
                                          description: >-
                                            Masked bank account number associated with the bank transfer (for example,
                                            ****6789). This is account data, not mandate data.
                                        mandate:
                                          type: object
                                          description: >-
                                            Direct debit mandate details, for bank transfer methods that operate with
                                            mandates (for example, ACH, SEPA, BACS, PAD).
                                          properties:
                                            id:
                                              type: string
                                              description: Mandate identifier, as provided by the payment provider.
                                            info:
                                              type: string
                                              description: Free-text mandate information.
                                            received_status:
                                              type: string
                                              description: >-
                                                Provider status indicating whether the mandate was received. Forwarded
                                                as provided by the payment provider.
                                            existing_status:
                                              type: string
                                              description: >-
                                                Provider status of the existing mandate. Forwarded as provided by the
                                                payment provider.
                                            created_at:
                                              type: string
                                              format: date-time
                                              description: Date and time when the mandate was created (ISO 8601).
                                            updated_at:
                                              type: string
                                              format: date-time
                                              description: Date and time when the mandate was last updated (ISO 8601).
                            customer_payer:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: cfae0941-7234-427a-a739-ef4fce966c79
                                merchant_customer_id:
                                  type: string
                                  example: '1689873883'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1990-02-28'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 09135cb9-159c-4662-8fe3-da5523bb2266
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: BANK_TRANSFER
                                  amount:
                                    type: integer
                                    example: 52000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: BANK_OF_AMERICA
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: BANK_TRANSFER
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: 2cd31999-e44e-4de3-bbe4-179981ff4295
                                      detail:
                                        type: object
                                        properties:
                                          bank_transfer:
                                            type: object
                                            properties:
                                              provider_image:
                                                type: string
                                                example: ''
                                              account_type: {}
                                              bank_name:
                                                type: string
                                                example: Bank of America
                                              beneficiary_name:
                                                type: string
                                                example: John Doe
                                              bank_account:
                                                type: string
                                                example: '123456789'
                                              bank_account_2: {}
                                              beneficiary_document_type:
                                                type: string
                                                example: SSN
                                              beneficiary_document:
                                                type: string
                                                example: 123-45-6789
                                              payment_instruction: {}
                                              redirect_url:
                                                type: string
                                                example: https://api-sandbox.wompi.co/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                                              bank_account_mask_number:
                                                type: string
                                                description: >-
                                                  Masked bank account number associated with the bank transfer (for
                                                  example, ****6789). This is account data, not mandate data.
                                              mandate:
                                                type: object
                                                description: >-
                                                  Direct debit mandate details, for bank transfer methods that operate
                                                  with mandates (for example, ACH, SEPA, BACS, PAD).
                                                properties:
                                                  id:
                                                    type: string
                                                    description: Mandate identifier, as provided by the payment provider.
                                                  info:
                                                    type: string
                                                    description: Free-text mandate information.
                                                  received_status:
                                                    type: string
                                                    description: >-
                                                      Provider status indicating whether the mandate was received.
                                                      Forwarded as provided by the payment provider.
                                                  existing_status:
                                                    type: string
                                                    description: >-
                                                      Provider status of the existing mandate. Forwarded as provided by
                                                      the payment provider.
                                                  created_at:
                                                    type: string
                                                    format: date-time
                                                    description: Date and time when the mandate was created (ISO 8601).
                                                  updated_at:
                                                    type: string
                                                    format: date-time
                                                    description: Date and time when the mandate was last updated (ISO 8601).
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test Bank of America
                                  merchant_reference: {}
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: BANK_OF_AMERICA
                                      transaction_id:
                                        type: string
                                        example: 117490-1689873907-17347
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: APPROVED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_code:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          data:
                                            type: object
                                            properties:
                                              amount_in_cents:
                                                type: integer
                                                example: 5200000
                                                default: 0
                                              bill_id: {}
                                              billing_data: {}
                                              created_at:
                                                type: string
                                                example: '2023-07-20T17:25:07.167Z'
                                              currency:
                                                type: string
                                                example: USD
                                              customer_data: {}
                                              customer_email:
                                                type: string
                                                example: johndoe@example.com
                                              finalized_at: {}
                                              id:
                                                type: string
                                                example: 117490-1689873907-17347
                                              payment_link_id: {}
                                              payment_method:
                                                type: object
                                                properties:
                                                  extra:
                                                    type: object
                                                    properties:
                                                      is_three_ds:
                                                        type: boolean
                                                        example: false
                                                        default: true
                                                  payment_description:
                                                    type: string
                                                    example: Test Bank of America
                                                  sandbox_status:
                                                    type: string
                                                    example: APPROVED
                                                  type:
                                                    type: string
                                                    example: BANK_TRANSFER
                                                  user_type:
                                                    type: string
                                                    example: PERSON
                                              payment_method_type:
                                                type: string
                                                example: BANK_TRANSFER
                                              payment_source_id: {}
                                              redirect_url:
                                                type: string
                                                example: https://google.com/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                                              reference:
                                                type: string
                                                example: 09135cb9-159c-4662-8fe3-da5523bb2266
                                              shipping_address: {}
                                              status:
                                                type: string
                                                example: PENDING
                                              status_message: {}
                                              taxes:
                                                type: array
                                          meta:
                                            type: object
                                            properties: {}
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  three_d_secure_action_required: {}
                                  created_at:
                                    type: string
                                    example: '2023-07-20T17:25:05.410687Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-20T17:25:11.472652Z'
                            split:
                              type: array
                            callback_url:
                              type: string
                              example: https://y.uno/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                            workflow:
                              type: string
                              example: SDK_CHECKOUT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                  - title: Card - With card details
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: bc0489ba-80bf-4bb9-98c5-ff8dfbceebf9
                            account_id:
                              type: string
                              example: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                            description:
                              type: string
                              example: SUCCESSFUL
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: Order_id
                            created_at:
                              type: string
                              example: '2023-07-12T18:51:49.437886Z'
                            updated_at:
                              type: string
                              example: '2023-07-12T18:51:54.679410Z'
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: USD
                                value:
                                  type: integer
                                  example: 20000
                                  default: 0
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '517862'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '41111111'
                                            lfd:
                                              type: string
                                              example: '1111'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: JPMORGAN_CHASE_BANK_NA
                                            issuer_code:
                                              type: string
                                              example: US_JPMORGAN_CHASE_BANK_NA
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                token: {}
                                                collect_url: {}
                                                setup_reference_id: {}
                                                developer_id: {}
                                                solution_id: {}
                                                code: {}
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                acs_id: {}
                                                ds_id: {}
                                                pares_status: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: a76d79b7-902f-4152-922f-7e7eebc5f3dc
                                merchant_customer_id:
                                  type: string
                                  example: '1309'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1990-02-28'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address: {}
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: string
                                    accept_header:
                                      type: string
                                      example: string
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: '32'
                                    screen_height:
                                      type: string
                                      example: '32'
                                    screen_width:
                                      type: string
                                      example: '32'
                                    javascript_enabled:
                                      type: boolean
                                      example: true
                                      default: true
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: string
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: ''
                                    country:
                                      type: string
                                      example: US
                                    city:
                                      type: string
                                      example: San Diego
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: ''
                                    country:
                                      type: string
                                      example: US
                                    city:
                                      type: string
                                      example: San Diego
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: c718b8e9-2943-4fdf-9b3c-426cf44940fb
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 20000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: DLOCAL
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '517862'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '41111111'
                                                  lfd:
                                                    type: string
                                                    example: '1111'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: JPMORGAN_CHASE_BANK_NA
                                                  issuer_code:
                                                    type: string
                                                    example: US_JPMORGAN_CHASE_BANK_NA
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      token: {}
                                                      collect_url: {}
                                                      setup_reference_id: {}
                                                      developer_id: {}
                                                      solution_id: {}
                                                      code: {}
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      acs_id: {}
                                                      ds_id: {}
                                                      pares_status: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: SUCCESSFUL
                                  merchant_reference: {}
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: DLOCAL
                                      transaction_id:
                                        type: string
                                        example: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: PAID
                                      status_detail:
                                        type: string
                                        example: '200'
                                      response_message:
                                        type: string
                                        example: The payment was paid.
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          value:
                                            type: string
                                            example: >-
                                              {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":20000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                              Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T18:51:52.000+0000","approved_date":"2023-07-12T18:51:54.000+0000","status":"PAID","status_detail":"The
                                              payment was
                                              paid.","status_code":"200","order_id":"c718b8e9-2943-4fdf-9b3c-426cf44940fb","description":"SUCCESSFUL","notification_url":"https://sandbox.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"517862"}}
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  three_d_secure_action_required: {}
                                  created_at:
                                    type: string
                                    example: '2023-07-12T18:51:51.908784Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-12T18:51:54.426087Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With airline data
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 6e7cc5da-2b39-4b6e-b382-df8bb1feddf1
                            account_id:
                              type: string
                              example: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                            description:
                              type: string
                              example: SUCCESSFUL
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: Order_id
                            created_at:
                              type: string
                              example: '2023-07-12T20:06:41.418163Z'
                            updated_at:
                              type: string
                              example: '2023-07-12T20:06:41.806898Z'
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: USD
                                value:
                                  type: integer
                                  example: 2000
                                  default: 0
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: false
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: ''
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '41111111'
                                            lfd:
                                              type: string
                                              example: '1111'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: JPMORGAN_CHASE_BANK_NA
                                            issuer_code:
                                              type: string
                                              example: US_JPMORGAN_CHASE_BANK_NA
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                token: {}
                                                collect_url: {}
                                                setup_reference_id: {}
                                                developer_id: {}
                                                solution_id: {}
                                                code: {}
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                acs_id: {}
                                                ds_id: {}
                                                pares_status: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id: {}
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1998-01-01'
                                email:
                                  type: string
                                  example: test@test.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.0.1
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: string
                                    accept_header:
                                      type: string
                                      example: string
                                    accept_content:
                                      type: string
                                      example: string
                                    accept_browser:
                                      type: string
                                      example: string
                                    color_depth:
                                      type: string
                                      example: '32'
                                    screen_height:
                                      type: string
                                      example: '32'
                                    screen_width:
                                      type: string
                                      example: '32'
                                    javascript_enabled:
                                      type: boolean
                                      example: true
                                      default: true
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: string
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone: {}
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data:
                              type: object
                              properties:
                                airline:
                                  type: object
                                  properties:
                                    pnr:
                                      type: string
                                      example: ABC123
                                    legs:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          departure_airport:
                                            type: string
                                            example: LAX
                                          departure_datetime:
                                            type: string
                                            example: '2023-10-31T01:30:00.000-08:00'
                                          departure_airport_timezone:
                                            type: string
                                            example: GMT-08
                                          arrival_airport:
                                            type: string
                                            example: JFK
                                          arrival_datetime:
                                            type: string
                                            example: '2023-10-31T09:30:00.000-08:00'
                                          carrier_code:
                                            type: string
                                            example: AA
                                          carrier_name:
                                            type: string
                                            example: American Airlines
                                          flight_number:
                                            type: string
                                            example: AA123
                                          fare_basis_code:
                                            type: string
                                            example: 'Y'
                                          fare_class_code:
                                            type: string
                                            example: S
                                          base_fare:
                                            type: integer
                                            example: 180
                                            default: 0
                                          base_fare_currency:
                                            type: string
                                            example: USD
                                          stopover_code:
                                            type: string
                                            example: O
                                    passengers:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          first_name:
                                            type: string
                                            example: John
                                          last_name:
                                            type: string
                                            example: Doe
                                          middle_name:
                                            type: string
                                            example: Stephen
                                          type:
                                            type: string
                                            example: A
                                          date_of_birth:
                                            type: string
                                            example: '1998-01-01'
                                          nationality:
                                            type: string
                                            example: US
                                          document:
                                            type: object
                                            properties:
                                              document_type:
                                                type: string
                                                example: SSN
                                              document_number:
                                                type: string
                                                example: 123-45-6789
                                          country: {}
                                          loyalty_number:
                                            type: string
                                            example: '79250001'
                                          loyalty_tier:
                                            type: string
                                            example: DIAMOND
                                          email:
                                            type: string
                                            example: john.doe@company.com
                                          phone:
                                            type: object
                                            properties:
                                              number:
                                                type: string
                                                example: '5559876543'
                                              country_code:
                                                type: string
                                                example: '1'
                                    ticket: {}
                                    tickets:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          ticket_number:
                                            type: string
                                            example: BRB0001
                                          e_ticket:
                                            type: boolean
                                            example: true
                                            default: true
                                          restricted:
                                            type: boolean
                                            example: false
                                            default: true
                                          total_fare_amount:
                                            type: integer
                                            example: 200
                                            default: 0
                                          total_tax_amount:
                                            type: integer
                                            example: 18
                                            default: 0
                                          total_fee_amount:
                                            type: integer
                                            example: 2
                                            default: 0
                                          issue:
                                            type: object
                                            properties:
                                              carrier_prefix_code:
                                                type: string
                                                example: '001'
                                              travel_agent_code:
                                                type: string
                                                example: A104121
                                              travel_agent_name:
                                                type: string
                                                example: Airline Travel
                                              date:
                                                type: string
                                                example: '2023-10-31T01:30:00.000-08:00'
                                              address:
                                                type: string
                                                example: 123 Main St
                                              city:
                                                type: string
                                                example: Los Angeles
                                              country:
                                                type: string
                                                example: US
                                              zip_code:
                                                type: string
                                                example: '90001'
                                order: {}
                                seller_details: {}
                            taxes: {}
                            transactions:
                              type: array
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With 3DS direct
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: cb3ca163-cb79-41d7-b9a3-0115e30a7c01
                            idempotency_key:
                              type: string
                              example: fc0d89a1-8d18-4759-8d0a-ee1c6d0386e2
                            account_code:
                              type: string
                              example: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                            account_id:
                              type: string
                              example: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                            description:
                              type: string
                              example: TEST_3DS
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-17T17:00:39.678379Z'
                            updated_at:
                              type: string
                              example: '2023-07-17T17:41:48.453381Z'
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: USD
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: b0751c96-0b00-4b8c-8372-c16f72f60598
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            customer_payer:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: fc7ef8ae-000d-4903-ab76-494ebc8d5fa3
                                merchant_customer_id:
                                  type: string
                                  example: '1689374657'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1990-02-28'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint: {}
                                browser_info: {}
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone: {}
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data:
                              type: object
                              properties:
                                airline: {}
                                order: {}
                                seller_details: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: caada737-27ab-46ca-91a9-744da64c4787
                                  type:
                                    type: string
                                    example: THREE_D_SECURE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: CYBERSOURCE_3DS
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: ''
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              redirect_url:
                                                type: string
                                                example: https://checkout.staging.y.uno/payment?session=14c263bd-e01d-400f-885a-70205df8b417
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '44565300'
                                                  lfd:
                                                    type: string
                                                    example: '0007'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      three_d_secure_setup_id:
                                                        type: string
                                                        example: 24127d61-b852-42fb-acd4-1ee661645376
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status:
                                                        type: string
                                                        example: 'Y'
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: TEST_3DS
                                  merchant_reference:
                                    type: string
                                    example: reference-5f6dd991-ab14-4da3-b7d8-9f24a04ebd92
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: CYBERSOURCE_3DS
                                      transaction_id:
                                        type: string
                                        example: '6896132402506977804951'
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: AUTHENTICATION_SUCCESSFUL
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: CONSUMER_AUTHENTICATION_REQUIRED
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          clientReferenceInformation:
                                            type: object
                                            properties:
                                              code:
                                                type: string
                                                example: 24127d61-b852-42fb-acd4-1ee661645376
                                          consumerAuthenticationInformation:
                                            type: object
                                            properties:
                                              accessToken:
                                                type: string
                                                example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxZmM5ZDVhMS04M2ZhLTQwYWEtYjI5Ny1iZDM1ZGIxODQ4ZjAiLCJpYXQiOjE2ODk2MTMyNDAsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIsImV4cCI6MTY4OTYxNjg0MCwiT3JnVW5pdElkIjoiNjQwYTM1NjlkODdhMjUwYTQyNTEwOWRjIiwiUGF5bG9hZCI6eyJBQ1NVcmwiOiJodHRwczovL21lcmNoYW50YWNzc3RhZy5jYXJkaW5hbGNvbW1lcmNlLmNvbS9NZXJjaGFudEFDU1dlYi9wYXJlcS5qc3A_dmFhPWImZ29sZD1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEiLCJQYXlsb2FkIjoiZU5wVlVWMXZna0FRZkw5ZlFVd2ZHKzZBS3RHc2w5QnE2a2MwdHRCb254cUViU1dWRDQvRHFMKytkd2kxdmFlZHljN3R6aXdFTzRFNDhqR3FCSEpZWUZtR1gyZ2s4YkRqWC9KcHZqaVV6M0kyUzc4LzAvUE1ZeDBPSys4VkR4eU9LTW9rejdobE10TUcya0tpdmhEUkxzd2toekE2UEU2WC9LSFh0NjBlMEFZU1NGRk1SendZKzhHSE0vS0JYakdCTEV5UnYxZFpiaWphQ0xDVVFHdU9RSlJYbVJSbmJya01hQXNJVkdMUGQxSVc1WURTczZtVVFEVkZnTjYyV0ZXNktwVzVVeEx6TjZjNCt1ditNdG9zSi9HNG1HL1hNdDF1OXZPWHdCc0MxUjBFNGxBaXQ1bnRNTmR5RGNzZE1EWncra0JybmtDWTZ2bjhybXN5eHU2WldxaGhDQlI2bG5kRlhhWWYwTCtjTWxJSmdWblVPbWtSQVR3VmVZYXFSNFg1V3lzanQvV2ZKanJTU0txc1hPWTR6TEoxcGpXdTVZbUt4TzR4cTlZbmRUNVVhMmh6TWRvY1YxWC9qdjREQVEybVdnPT0iLCJUcmFuc2FjdGlvbklkIjoiU3pvSW9NcXNHdEpKbWtmbXlKQTAifSwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUmV0dXJuVXJsIjoiaHR0cHM6Ly9zdGFnaW5nLnkudW5vL2N5YmVyc291cmNlLTNkcy13ZWJob29rL3YxL2NvbmZpcm1hdGlvbnMvYXV0aC8yNDEyN2Q2MS1iODUyLTQyZmItYWNkNC0xZWU2NjE2NDUzNzYifQ.5ehSTA5uUKc2DfvTRGJZ8dPKbxAJ5WproKSTLqu4egM
                                              acsUrl:
                                                type: string
                                                example: https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
                                              authenticationPath:
                                                type: string
                                                example: ENROLLED
                                              authenticationTransactionId:
                                                type: string
                                                example: SzoIoMqsGtJJmkfmyJA0
                                              pareq:
                                                type: string
                                                example: eNpVUV1vgkAQfL9fQUwfG+6AKtGsl9Bq6kc0ttBonxqEbSWVD4/DqL++dwi1vaedyc7tziwEO4E48jGqBHJYYFmGX2gk8bDjX/JpvjiUz3I2S78/0/PMYx0OK+8VDxyOKMokz7hlMtMG2kKivhDRLswkhzA6PE6X/KHXt60e0AYSSFFMRzwY+8GHM/KBXjGBLEyRv1dZbijaCLCUQGuOQJRXmRRnbrkMaAsIVGLPd1IW5YDSs6mUQDVFgN62WFW6KpW5UxLzN6c4+uv+MtosJ/G4mG/XMt1u9vOXwBsC1R0E4lAit5ntMNdyDcsdMDZw+kBrnkCY6vn8rmsyxu6ZWqhhCBR6lndFXaYf0L+cMlIJgVnUOmkRATwVeYaqR4X5Wysjt/WfJjrSSKqsXOY4zLJ1pjWu5YmKxO4xq9YndT5Ua2hzMdocV1X/jv4DAQ2mWg==
                                              proofXml:
                                                type: string
                                                example: >-
                                                  <AuthProof><Time>2023 Jul 17
                                                  17:00:39</Time><DSUrl>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/vereq.jsp?acqid=CYBS</DSUrl><VEReqProof><Message
                                                  id="SzoIoMqsGtJJmkfmyJA0"><VEReq><version>1.0.2</version><pan>XXXXXXXXXXXX0007</pan><Merchant><acqBIN>469216</acqBIN><merID>TEST_3DS</merID></Merchant><Browser><deviceCategory>0</deviceCategory><accept>*/*</accept><userAgent>Mozilla/5.0
                                                  (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like
                                                  Gecko) Chrome/114.0.0.0
                                                  Safari/537.36</userAgent></Browser></VEReq></Message></VEReqProof><VEResProof><Message
                                                  id="SzoIoMqsGtJJmkfmyJA0"><VERes><version>1.0.2</version><CH><enrolled>Y</enrolled><acctID>7033012</acctID></CH><url>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&amp;gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</url><protocol>ThreeDSecure</protocol></VERes></Message></VEResProof></AuthProof>
                                              proxyPan:
                                                type: string
                                                example: '7033012'
                                              specificationVersion:
                                                type: string
                                                example: 1.0.2
                                              stepUpUrl:
                                                type: string
                                                example: https://centinelapistag.cardinalcommerce.com/V2/Cruise/StepUp
                                              strongAuthentication:
                                                type: object
                                                properties:
                                                  OutageExemptionIndicator:
                                                    type: string
                                                    example: '0'
                                              token:
                                                type: string
                                                example: AxjzbwSTddcP6s4BiIKXABEBURzGv4QYVRP0JAY/LtaSZejFq0T8BEAAwwdp
                                              veresEnrolled:
                                                type: string
                                                example: 'Y'
                                              xid:
                                                type: string
                                                example: U3pvSW9NcXNHdEpKbWtmbXlKQTA=
                                          errorInformation:
                                            type: object
                                            properties:
                                              message:
                                                type: string
                                                example: >-
                                                  The cardholder is enrolled in Payer Authentication. Please
                                                  authenticate the cardholder before continuing with the transaction.
                                              reason:
                                                type: string
                                                example: CONSUMER_AUTHENTICATION_REQUIRED
                                          id:
                                            type: string
                                            example: '6896132402506977804951'
                                          paymentInformation:
                                            type: object
                                            properties:
                                              card:
                                                type: object
                                                properties:
                                                  bin:
                                                    type: string
                                                    example: '445653'
                                                  type:
                                                    type: string
                                                    example: VISA
                                          status:
                                            type: string
                                            example: PENDING_AUTHENTICATION
                                          submitTimeUtc:
                                            type: string
                                            example: '2023-07-17T17:00:40Z'
                                      third_party_transaction_id: {}
                                  three_d_secure_action_required: {}
                                  created_at:
                                    type: string
                                    example: '2023-07-17T17:00:39.765728Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-17T17:41:43.593769Z'
                            split:
                              type: array
                            callback_url:
                              type: string
                              example: https://google.com
                            workflow:
                              type: string
                              example: REDIRECT
                            fraud_screening: {}
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With customer, billing, and shipping details
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 12113b61-015a-4a01-a69c-ab7423d0138d
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-24T01:03:02.291414Z'
                            updated_at:
                              type: string
                              example: '2023-07-24T01:03:04.571022Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '123456'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '40518856'
                                            lfd:
                                              type: string
                                              example: '6623'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: '1690160581'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1990-02-28'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 502, Tower I
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 502, Tower I
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 73e5cddf-32c7-4b12-9d8e-92335862928f
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: YUNO_TEST_PAYMENT_GW
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '123456'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '40518856'
                                                  lfd:
                                                    type: string
                                                    example: '6623'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status: {}
                                                      acs_id: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test
                                  merchant_reference:
                                    type: string
                                    example: reference-85ffbde3-2256-418f-b761-41ab2d8706dd
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: YUNO_TEST_PAYMENT_GW
                                      transaction_id:
                                        type: string
                                        example: d570b77a-759e-45ae-abb9-ab4ab3034d0c
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: SUCCEEDED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          amount:
                                            type: object
                                            properties:
                                              currency:
                                                type: string
                                                example: USD
                                              value:
                                                type: integer
                                                example: 2100
                                                default: 0
                                          merchantAccount:
                                            type: string
                                            example: YunoPaymentsECOM
                                          reference:
                                            type: string
                                            example: '34343434'
                                          status:
                                            type: string
                                            example: received
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-24T01:03:02.407480Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-24T01:03:04.499303Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With customer, billing, shipping and order items
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: cf205a5e-140e-4c08-9a5b-ee44b91256dc
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-24T01:08:17.039613Z'
                            updated_at:
                              type: string
                              example: '2023-07-24T01:08:19.300337Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '123456'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '40518856'
                                            lfd:
                                              type: string
                                              example: '6623'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: '1690160896'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1990-02-28'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 502, Tower I
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 502, Tower I
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data:
                              type: object
                              properties:
                                airline: {}
                                order:
                                  type: object
                                  properties:
                                    fee_amount:
                                      type: integer
                                      example: 0
                                      default: 0
                                    shipping_amount:
                                      type: integer
                                      example: 0
                                      default: 0
                                    items:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            example: 123AD
                                          name:
                                            type: string
                                            example: Skirt
                                          quantity:
                                            type: integer
                                            example: 1
                                            default: 0
                                          unit_amount:
                                            type: integer
                                            example: 5000
                                            default: 0
                                          category:
                                            type: string
                                            example: Clothes
                                          brand:
                                            type: string
                                            example: XYZ
                                          sku_code:
                                            type: string
                                            example: '8765432109'
                                          manufacture_part_number:
                                            type: string
                                            example: XYZ123456
                                seller_details: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: bf442c7f-2393-4607-98b5-a4c2a8a97bbc
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: YUNO_TEST_PAYMENT_GW
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '123456'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '40518856'
                                                  lfd:
                                                    type: string
                                                    example: '6623'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status: {}
                                                      acs_id: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test
                                  merchant_reference:
                                    type: string
                                    example: reference-9260ef97-81b5-4e35-ac17-0d3d124a0d59
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: YUNO_TEST_PAYMENT_GW
                                      transaction_id:
                                        type: string
                                        example: ade1dcf5-cbf5-408b-84af-f504abe01a26
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: SUCCEEDED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          amount:
                                            type: object
                                            properties:
                                              currency:
                                                type: string
                                                example: USD
                                              value:
                                                type: integer
                                                example: 2100
                                                default: 0
                                          merchantAccount:
                                            type: string
                                            example: YunoPaymentsECOM
                                          reference:
                                            type: string
                                            example: '34343434'
                                          status:
                                            type: string
                                            example: received
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-24T01:08:17.147871Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-24T01:08:19.222926Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With installments
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 3707bcc5-f88c-4092-ba44-142d1f3ea229
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-24T01:10:50.152163Z'
                            updated_at:
                              type: string
                              example: '2023-07-24T01:10:52.417211Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 3
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '123456'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '40518856'
                                            lfd:
                                              type: string
                                              example: '6623'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: '1690161049'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1990-01-01'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data:
                              type: object
                              properties:
                                airline:
                                  type: object
                                  properties:
                                    pnr:
                                      type: string
                                      example: ABC123
                                    legs:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          passenger_id:
                                            type: string
                                            example: passenger_001
                                          departure_airport:
                                            type: string
                                            example: JFK
                                          arrival_airport:
                                            type: string
                                            example: LAX
                                    passengers:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            example: passenger_001
                                          first_name:
                                            type: string
                                            example: John
                                          last_name:
                                            type: string
                                            example: Doe
                                    tickets:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          passenger_id:
                                            type: string
                                            example: passenger_001
                                          ticket_number:
                                            type: string
                                            example: '1234567890123'
                                transportations:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      legs:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            passenger_id:
                                              type: string
                                              example: passenger_001
                                            departure_station:
                                              type: string
                                              example: Central Station
                                            arrival_station:
                                              type: string
                                              example: North Station
                                      passengers:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            id:
                                              type: string
                                              example: passenger_001
                                            first_name:
                                              type: string
                                              example: John
                                            last_name:
                                              type: string
                                              example: Doe
                                      tickets:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            passenger_id:
                                              type: string
                                              example: passenger_001
                                            ticket_number:
                                              type: string
                                              example: '12345678901234'
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: a58043ab-e5c6-4476-adfb-623fa8cc320d
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: YUNO_TEST_PAYMENT_GW
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 3
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '123456'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '40518856'
                                                  lfd:
                                                    type: string
                                                    example: '6623'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status: {}
                                                      acs_id: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test
                                  merchant_reference:
                                    type: string
                                    example: reference-f3f9319f-f3f7-48a3-90c2-fac0a2f782be
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: YUNO_TEST_PAYMENT_GW
                                      transaction_id:
                                        type: string
                                        example: 9efdc397-2a74-479a-af00-bf5ae7e2a76e
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: SUCCEEDED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          amount:
                                            type: object
                                            properties:
                                              currency:
                                                type: string
                                                example: USD
                                              value:
                                                type: integer
                                                example: 2100
                                                default: 0
                                          merchantAccount:
                                            type: string
                                            example: YunoPaymentsECOM
                                          reference:
                                            type: string
                                            example: '34343434'
                                          status:
                                            type: string
                                            example: received
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-24T01:10:50.273142Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-24T01:10:52.339967Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With authorization
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: c0409fc0-87d5-453f-bf91-8f0af2f09347
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: PENDING
                            sub_status:
                              type: string
                              example: AUTHORIZED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-24T01:13:37.372312Z'
                            updated_at:
                              type: string
                              example: '2023-07-24T01:13:39.654433Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: false
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '123456'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '40518856'
                                            lfd:
                                              type: string
                                              example: '6623'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: '1690161049'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1985-01-01'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: e9108a97-5d0d-492a-99bf-da1ee42af425
                                  type:
                                    type: string
                                    example: AUTHORIZE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: YUNO_TEST_PAYMENT_GW
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: false
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '123456'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '40518856'
                                                  lfd:
                                                    type: string
                                                    example: '6623'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status: {}
                                                      acs_id: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test
                                  merchant_reference:
                                    type: string
                                    example: reference-0b914bf9-0e86-4713-a908-0ec01d60c486
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: YUNO_TEST_PAYMENT_GW
                                      transaction_id:
                                        type: string
                                        example: 1b7011ff-4252-4ac6-99a4-d5de2086896b
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: SUCCEEDED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          amount:
                                            type: object
                                            properties:
                                              currency:
                                                type: string
                                                example: USD
                                              value:
                                                type: integer
                                                example: 2100
                                                default: 0
                                          merchantAccount:
                                            type: string
                                            example: YunoPaymentsECOM
                                          reference:
                                            type: string
                                            example: '34343434'
                                          status:
                                            type: string
                                            example: received
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-24T01:13:37.492230Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-24T01:13:39.584118Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With device fingerprint
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 8e7fbcad-9c7b-43c6-8fbf-b864e87c5e41
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-24T01:20:02.671644Z'
                            updated_at:
                              type: string
                              example: '2023-07-24T01:20:04.946852Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '123456'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '40518856'
                                            lfd:
                                              type: string
                                              example: '6623'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: '1690161049'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1985-01-01'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint:
                                  type: string
                                  example: hi88287gbd8d7d782ge287gbd8d7d78
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 36524be2-b33e-4d33-b9d7-9f7853035bbd
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: YUNO_TEST_PAYMENT_GW
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '123456'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '40518856'
                                                  lfd:
                                                    type: string
                                                    example: '6623'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status: {}
                                                      acs_id: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test
                                  merchant_reference:
                                    type: string
                                    example: reference-89ab43dc-57de-4ea0-8058-6f7fc0d972a7
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: YUNO_TEST_PAYMENT_GW
                                      transaction_id:
                                        type: string
                                        example: 20500c62-96d2-457b-8e64-b64480190e89
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: SUCCEEDED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          amount:
                                            type: object
                                            properties:
                                              currency:
                                                type: string
                                                example: USD
                                              value:
                                                type: integer
                                                example: 2100
                                                default: 0
                                          merchantAccount:
                                            type: string
                                            example: YunoPaymentsECOM
                                          reference:
                                            type: string
                                            example: '34343434'
                                          status:
                                            type: string
                                            example: received
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-24T01:20:02.794825Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-24T01:20:04.873386Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With vault on success
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 96b56df3-0013-4401-b58e-646f5e716ab8
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-24T01:27:23.360857Z'
                            updated_at:
                              type: string
                              example: '2023-07-24T01:27:25.682059Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: eb8caa17-6407-457b-960e-125d8d7a90c1
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: true
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '123456'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '40518856'
                                            lfd:
                                              type: string
                                              example: '6623'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            fingerprint:
                                              type: string
                                              example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 967ecd18-d898-4b88-9400-dd5b01b18edc
                                merchant_customer_id:
                                  type: string
                                  example: '1690161049'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1985-01-01'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint:
                                  type: string
                                  example: hi88287gbd8d7d782ge287gbd8d7d78
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 85c19c82-dc31-4a50-aa7d-570d89dbc475
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: YUNO_TEST_PAYMENT_GW
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: eb8caa17-6407-457b-960e-125d8d7a90c1
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: true
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '123456'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '40518856'
                                                  lfd:
                                                    type: string
                                                    example: '6623'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  fingerprint:
                                                    type: string
                                                    example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status: {}
                                                      acs_id: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test
                                  merchant_reference:
                                    type: string
                                    example: reference-7cf75e3a-c8eb-4c62-bd02-74928f68f174
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: YUNO_TEST_PAYMENT_GW
                                      transaction_id:
                                        type: string
                                        example: 604075b9-52e9-48f5-8fcf-3c2d9bacbe66
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: SUCCEEDED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          amount:
                                            type: object
                                            properties:
                                              currency:
                                                type: string
                                                example: USD
                                              value:
                                                type: integer
                                                example: 2100
                                                default: 0
                                          merchantAccount:
                                            type: string
                                            example: YunoPaymentsECOM
                                          reference:
                                            type: string
                                            example: '34343434'
                                          status:
                                            type: string
                                            example: received
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-24T01:27:23.473451Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-24T01:27:25.550651Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Card - With vaulted token
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 821ddfe4-309a-46a8-bd4b-819564aa9c5a
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: SUCCEEDED
                            sub_status:
                              type: string
                              example: APPROVED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-24T01:28:45.444722Z'
                            updated_at:
                              type: string
                              example: '2023-07-24T01:28:47.712002Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 5000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: ''
                                sdk_action_required:
                                  type: boolean
                                  example: false
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: eb8caa17-6407-457b-960e-125d8d7a90c1
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '123456'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '40518856'
                                            lfd:
                                              type: string
                                              example: '6623'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            category: {}
                                            type:
                                              type: string
                                              example: CREDIT
                                            fingerprint:
                                              type: string
                                              example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            customer_payer:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 967ecd18-d898-4b88-9400-dd5b01b18edc
                                merchant_customer_id:
                                  type: string
                                  example: '1690161049'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1985-01-01'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint:
                                  type: string
                                  example: hi88287gbd8d7d782ge287gbd8d7d78
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: California
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: a47e879e-3cd1-49f3-ab72-fc33b0185057
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: SUCCEEDED
                                  category:
                                    type: string
                                    example: CARD
                                  amount:
                                    type: integer
                                    example: 5000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: YUNO_TEST_PAYMENT_GW
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: eb8caa17-6407-457b-960e-125d8d7a90c1
                                      type:
                                        type: string
                                        example: CARD
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          card:
                                            type: object
                                            properties:
                                              verify: {}
                                              capture:
                                                type: boolean
                                                example: true
                                                default: true
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              first_installment_deferral:
                                                type: integer
                                                example: 0
                                                default: 0
                                              installments_type:
                                                type: string
                                                example: ''
                                              installment_amount: {}
                                              soft_descriptor:
                                                type: string
                                                example: ''
                                              authorization_code:
                                                type: string
                                                example: '123456'
                                              retrieval_reference_number:
                                                type: string
                                                example: ''
                                              acquirer_reference_number:
                                                type: string
                                                example: ''
                                              voucher: {}
                                              card_data:
                                                type: object
                                                properties:
                                                  holder_name:
                                                    type: string
                                                    example: John Doe
                                                  iin:
                                                    type: string
                                                    example: '40518856'
                                                  lfd:
                                                    type: string
                                                    example: '6623'
                                                  number_length:
                                                    type: integer
                                                    example: 16
                                                    default: 0
                                                  security_code_length:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  brand:
                                                    type: string
                                                    example: VISA
                                                  issuer_name:
                                                    type: string
                                                    example: ''
                                                  issuer_code: {}
                                                  category: {}
                                                  type:
                                                    type: string
                                                    example: CREDIT
                                                  fingerprint:
                                                    type: string
                                                    example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                                  three_d_secure:
                                                    type: object
                                                    properties:
                                                      version: {}
                                                      electronic_commerce_indicator: {}
                                                      cryptogram: {}
                                                      transaction_id: {}
                                                      directory_server_transaction_id: {}
                                                      pares_status: {}
                                                      acs_id: {}
                                              stored_credentials:
                                                type: object
                                                properties:
                                                  reason:
                                                    type: string
                                                    example: SUBSCRIPTION
                                                  usage:
                                                    type: string
                                                    example: USED
                                                  subscription_agreement_id:
                                                    type: string
                                                    example: XXXX01
                                                  network_transaction_id: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test
                                  merchant_reference:
                                    type: string
                                    example: reference-22103236-c3fc-4871-9fc0-98ce48a9f553
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: YUNO_TEST_PAYMENT_GW
                                      transaction_id:
                                        type: string
                                        example: f9bcb8a8-d5d8-4c53-b551-5932c9804f16
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: SUCCEEDED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_response_code:
                                        type: string
                                        example: '00'
                                      iso8583_response_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          amount:
                                            type: object
                                            properties:
                                              currency:
                                                type: string
                                                example: USD
                                              value:
                                                type: integer
                                                example: 2100
                                                default: 0
                                          merchantAccount:
                                            type: string
                                            example: YunoPaymentsECOM
                                          reference:
                                            type: string
                                            example: '34343434'
                                          status:
                                            type: string
                                            example: received
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-24T01:28:45.562437Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-24T01:28:47.639121Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: DIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                            payment_link_code:
                              type: string
                              example: ''
                  - title: Bank Transfer
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: ac427adb-3ac9-4a7c-9389-0a923146b39b
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test Bank of America
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: READY_TO_PAY
                            sub_status:
                              type: string
                              example: CREATED
                            merchant_order_id:
                              type: string
                              example: '0000022'
                            created_at:
                              type: string
                              example: '2023-07-23T23:56:25.405475Z'
                            updated_at:
                              type: string
                              example: '2023-07-23T23:56:29.742339Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 52000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: c21df85b-6c39-4cf5-aa7d-305aac6441e6
                                sdk_action_required:
                                  type: boolean
                                  example: true
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: BANK_TRANSFER
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    bank_transfer:
                                      type: object
                                      properties:
                                        provider_image:
                                          type: string
                                          example: ''
                                        account_type: {}
                                        bank_name: {}
                                        bank_id:
                                          type: string
                                          description: Identifier of the bank selected for the transfer when provided.
                                          example: galicia
                                        beneficiary_name: {}
                                        bank_account: {}
                                        bank_account_2: {}
                                        beneficiary_document_type: {}
                                        beneficiary_document: {}
                                        payment_instruction: {}
                                        redirect_url:
                                          type: string
                                          example: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                                        bank_account_mask_number:
                                          type: string
                                          description: >-
                                            Masked bank account number associated with the bank transfer (for example,
                                            ****6789). This is account data, not mandate data.
                                        mandate:
                                          type: object
                                          description: >-
                                            Direct debit mandate details, for bank transfer methods that operate with
                                            mandates (for example, ACH, SEPA, BACS, PAD).
                                          properties:
                                            id:
                                              type: string
                                              description: Mandate identifier, as provided by the payment provider.
                                            info:
                                              type: string
                                              description: Free-text mandate information.
                                            received_status:
                                              type: string
                                              description: >-
                                                Provider status indicating whether the mandate was received. Forwarded
                                                as provided by the payment provider.
                                            existing_status:
                                              type: string
                                              description: >-
                                                Provider status of the existing mandate. Forwarded as provided by the
                                                payment provider.
                                            created_at:
                                              type: string
                                              format: date-time
                                              description: Date and time when the mandate was created (ISO 8601).
                                            updated_at:
                                              type: string
                                              format: date-time
                                              description: Date and time when the mandate was last updated (ISO 8601).
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: '1689888489'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1985-01-01'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.0.2.1
                                device_fingerprint:
                                  type: string
                                  example: unique-fingerprint-value
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: en-US
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: CA
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main St
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    country:
                                      type: string
                                      example: US
                                    state:
                                      type: string
                                      example: CA
                                    city:
                                      type: string
                                      example: Los Angeles
                                    zip_code:
                                      type: string
                                      example: '90001'
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: acbf992c-e448-4efc-a39c-05f74fa624cf
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: CREATED
                                  category:
                                    type: string
                                    example: BANK_TRANSFER
                                  amount:
                                    type: integer
                                    example: 52000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: WOMPI
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: BANK_TRANSFER
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          bank_transfer:
                                            type: object
                                            properties:
                                              provider_image:
                                                type: string
                                                example: ''
                                              account_type: {}
                                              bank_name: {}
                                              bank_id:
                                                type: string
                                                description: Identifier of the bank selected for the transfer when provided.
                                                example: galicia
                                              beneficiary_name: {}
                                              bank_account: {}
                                              bank_account_2: {}
                                              beneficiary_document_type: {}
                                              beneficiary_document: {}
                                              payment_instruction: {}
                                              redirect_url:
                                                type: string
                                                example: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                                              bank_account_mask_number:
                                                type: string
                                                description: >-
                                                  Masked bank account number associated with the bank transfer (for
                                                  example, ****6789). This is account data, not mandate data.
                                              mandate:
                                                type: object
                                                description: >-
                                                  Direct debit mandate details, for bank transfer methods that operate
                                                  with mandates (for example, ACH, SEPA, BACS, PAD).
                                                properties:
                                                  id:
                                                    type: string
                                                    description: Mandate identifier, as provided by the payment provider.
                                                  info:
                                                    type: string
                                                    description: Free-text mandate information.
                                                  received_status:
                                                    type: string
                                                    description: >-
                                                      Provider status indicating whether the mandate was received.
                                                      Forwarded as provided by the payment provider.
                                                  existing_status:
                                                    type: string
                                                    description: >-
                                                      Provider status of the existing mandate. Forwarded as provided by
                                                      the payment provider.
                                                  created_at:
                                                    type: string
                                                    format: date-time
                                                    description: Date and time when the mandate was created (ISO 8601).
                                                  updated_at:
                                                    type: string
                                                    format: date-time
                                                    description: Date and time when the mandate was last updated (ISO 8601).
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test Bank of America
                                  merchant_reference: {}
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: WOMPI
                                      transaction_id:
                                        type: string
                                        example: 117490-1690156586-55850
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: APPROVED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_code:
                                        type: string
                                        example: ''
                                      iso8583_message:
                                        type: string
                                        example: ''
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          data:
                                            type: object
                                            properties:
                                              amount_in_cents:
                                                type: integer
                                                example: 5200000
                                                default: 0
                                              bill_id: {}
                                              billing_data: {}
                                              created_at:
                                                type: string
                                                example: '2023-07-23T23:56:26.350Z'
                                              currency:
                                                type: string
                                                example: USD
                                              customer_data: {}
                                              customer_email:
                                                type: string
                                                example: johndoe@example.com
                                              finalized_at: {}
                                              id:
                                                type: string
                                                example: 117490-1690156586-55850
                                              payment_link_id: {}
                                              payment_method:
                                                type: object
                                                properties:
                                                  extra:
                                                    type: object
                                                    properties:
                                                      is_three_ds:
                                                        type: boolean
                                                        example: false
                                                        default: true
                                                  payment_description:
                                                    type: string
                                                    example: Test Bank of America
                                                  sandbox_status:
                                                    type: string
                                                    example: APPROVED
                                                  type:
                                                    type: string
                                                    example: BANK_TRANSFER
                                                  user_type:
                                                    type: string
                                                    example: PERSON
                                              payment_method_type:
                                                type: string
                                                example: BANK_TRANSFER
                                              payment_source_id: {}
                                              redirect_url:
                                                type: string
                                                example: https://demo.dev.y.uno/checkout/status?checkoutSession=
                                              reference:
                                                type: string
                                                example: acbf992c-e448-4efc-a39c-05f74fa624cf
                                              shipping_address: {}
                                              status:
                                                type: string
                                                example: PENDING
                                              status_message: {}
                                              taxes:
                                                type: array
                                          meta:
                                            type: object
                                            properties: {}
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-23T23:56:25.506471Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-23T23:56:29.673135Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: REDIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                  - title: Buy Now Pay Later
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 087be3a5-bed7-4c58-bbe0-c2ebcf376ebb
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test Bank of America
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: READY_TO_PAY
                            sub_status:
                              type: string
                              example: CREATED
                            merchant_order_id:
                              type: string
                              example: '0000022'
                            created_at:
                              type: string
                              example: '2023-07-20T21:25:11.903819Z'
                            updated_at:
                              type: string
                              example: '2023-07-20T21:25:12.983059Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 520
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: 25e073ae-016c-4bca-89e7-64e05f766f11
                                sdk_action_required:
                                  type: boolean
                                  example: true
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: BANK_TRANSFER
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    bnpl:
                                      type: object
                                      properties:
                                        installments: {}
                                        provider_image: {}
                                        redirect_url:
                                          type: string
                                          example: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                                        customer_data: {}
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: example00234
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender: {}
                                date_of_birth: {}
                                email:
                                  type: string
                                  example: test@gmail.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address: {}
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '5551234567'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address: {}
                                shipping_address: {}
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 1328382d-f6e8-4f09-91b7-c18b1308c031
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: CREATED
                                  category:
                                    type: string
                                    example: BUY_NOW_PAY_LATER
                                  amount:
                                    type: integer
                                    example: 520
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: BANK_OF_AMERICA
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: BANK_TRANSFER
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          bnpl:
                                            type: object
                                            properties:
                                              installments: {}
                                              provider_image: {}
                                              redirect_url:
                                                type: string
                                                example: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                                              customer_data: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test Bank of America
                                  merchant_reference: {}
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: BANK_OF_AMERICA
                                      transaction_id:
                                        type: string
                                        example: '0000022'
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: CREATED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_code:
                                        type: string
                                        example: ''
                                      iso8583_message:
                                        type: string
                                        example: ''
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          value:
                                            type: string
                                            example: ''
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  three_d_secure_action_required: {}
                                  created_at:
                                    type: string
                                    example: '2023-07-20T21:25:12.008657Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-20T21:25:12.918362Z'
                            split:
                              type: array
                            workflow:
                              type: string
                              example: REDIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                            fraud_screening: {}
                  - title: Payment Link
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 9c1f6ba0-d483-42a9-8d06-d53a07c284e0
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test Bank of America
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: READY_TO_PAY
                            sub_status:
                              type: string
                              example: CREATED
                            merchant_order_id:
                              type: string
                              example: '0000022'
                            created_at:
                              type: string
                              example: '2023-07-23T23:11:24.724037Z'
                            updated_at:
                              type: string
                              example: '2023-07-23T23:11:26.318691Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 50
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: 3c9eb446-388a-4c2e-9818-573d54300dd1
                                sdk_action_required:
                                  type: boolean
                                  example: true
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: BANK_TRANSFER
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    bnpl:
                                      type: object
                                      properties:
                                        installments:
                                          type: integer
                                          example: 3
                                          default: 0
                                        provider_image: {}
                                        redirect_url:
                                          type: string
                                          example: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                                        customer_data:
                                          type: object
                                          properties:
                                            bank_user_id:
                                              type: string
                                              example: john_doe_123
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id: {}
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender: {}
                                date_of_birth:
                                  type: string
                                  example: '1990-01-01'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address: {}
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '1234567890'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main Street
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    city:
                                      type: string
                                      example: New York
                                    state:
                                      type: string
                                      example: NY
                                    zip_code:
                                      type: string
                                      example: '10001'
                                    country:
                                      type: string
                                      example: US
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main Street
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    city:
                                      type: string
                                      example: New York
                                    state:
                                      type: string
                                      example: NY
                                    zip_code:
                                      type: string
                                      example: '10001'
                                    country:
                                      type: string
                                      example: US
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 762abda0-2de5-43ba-a52b-04279acfb869
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: CREATED
                                  category:
                                    type: string
                                    example: BANK_TRANSFER
                                  amount:
                                    type: integer
                                    example: 50
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: BANK_OF_AMERICA
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: BANK_TRANSFER
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          bnpl:
                                            type: object
                                            properties:
                                              installments:
                                                type: integer
                                                example: 3
                                                default: 0
                                              provider_image: {}
                                              redirect_url:
                                                type: string
                                                example: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                                              customer_data:
                                                type: object
                                                properties:
                                                  bank_user_id:
                                                    type: string
                                                    example: john_doe_123
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test Bank of America
                                  merchant_reference: {}
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: BANK_OF_AMERICA
                                      transaction_id:
                                        type: string
                                        example: ''
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: CREATED
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_code:
                                        type: string
                                        example: '00'
                                      iso8583_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          token:
                                            type: string
                                            example: 01aba0f569c8a78370aa35461ca482b57d1b767365535de9a0540c03791a3d97
                                          url:
                                            type: string
                                            example: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-23T23:11:24.842815Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-23T23:11:26.242431Z'
                            split:
                              type: array
                            callback_url:
                              type: string
                              example: www.example.com
                            workflow:
                              type: string
                              example: REDIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                  - title: Ticket
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 1c109200-3236-43f3-ab44-9a317991a288
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test Bank of America
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: READY_TO_PAY
                            sub_status:
                              type: string
                              example: CREATED
                            merchant_order_id:
                              type: string
                              example: '0000022'
                            created_at:
                              type: string
                              example: '2023-07-23T23:35:25.021285Z'
                            updated_at:
                              type: string
                              example: '2023-07-23T23:35:26.067120Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 52
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: 3faeb04f-0a52-41fc-9aba-33e535386776
                                sdk_action_required:
                                  type: boolean
                                  example: true
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: BANK_TRANSFER
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    ticket:
                                      type: object
                                      properties:
                                        type: {}
                                        date_of_expiration:
                                          type: string
                                          example: '2023-07-30T23:59:59Z'
                                        provider_number:
                                          type: string
                                          example: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                                        provider_barcode: {}
                                        provider_logo: {}
                                        provider_format: {}
                                        redirect_url:
                                          type: string
                                          example: https://checkout.sandbox.y.uno/payment?session=3feff49c-a422-434a-9fad-eca87e2193d5
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id:
                                  type: string
                                  example: '1690155316'
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender:
                                  type: string
                                  example: M
                                date_of_birth:
                                  type: string
                                  example: '1985-08-15'
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address:
                                  type: string
                                  example: 192.168.1.100
                                device_fingerprint:
                                  type: string
                                  example: fingerprint123456
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: Mozilla/5.0
                                    accept_header:
                                      type: string
                                      example: text/html
                                    accept_content:
                                      type: string
                                      example: text/html
                                    accept_browser:
                                      type: string
                                      example: Chrome
                                    color_depth:
                                      type: string
                                      example: '24'
                                    screen_height:
                                      type: string
                                      example: '1080'
                                    screen_width:
                                      type: string
                                      example: '1920'
                                    javascript_enabled:
                                      type: boolean
                                      example: true
                                      default: true
                                    java_enabled:
                                      type: boolean
                                      example: false
                                      default: true
                                    browser_time_difference:
                                      type: string
                                      example: '-300'
                                    language:
                                      type: string
                                      example: en-US
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: SSN
                                    document_number:
                                      type: string
                                      example: 123-45-6789
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '1234567890'
                                    country_code:
                                      type: string
                                      example: '1'
                                billing_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main Street
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    city:
                                      type: string
                                      example: New York
                                    state:
                                      type: string
                                      example: NY
                                    zip_code:
                                      type: string
                                      example: '10001'
                                    country:
                                      type: string
                                      example: US
                                shipping_address:
                                  type: object
                                  properties:
                                    address_line_1:
                                      type: string
                                      example: 123 Main Street
                                    address_line_2:
                                      type: string
                                      example: Apt 4B
                                    city:
                                      type: string
                                      example: New York
                                    state:
                                      type: string
                                      example: NY
                                    zip_code:
                                      type: string
                                      example: '10001'
                                    country:
                                      type: string
                                      example: US
                            additional_data: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: CREATED
                                  category:
                                    type: string
                                    example: BANK_TRANSFER
                                  amount:
                                    type: integer
                                    example: 52
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: BANK_OF_AMERICA
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: BANK_TRANSFER
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties: {}
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test Bank of America
                                  merchant_reference: {}
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: BANK_OF_AMERICA
                                      transaction_id:
                                        type: string
                                        example: ''
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: ''
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_code:
                                        type: string
                                        example: '00'
                                      iso8583_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          redirect_url:
                                            type: string
                                            example: https://checkout.sandbox.y.uno/payment?session=3feff49c-a422-434a-9fad-eca87e2193d5
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-23T23:35:25.116858Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-23T23:35:25.988725Z'
                            split:
                              type: array
                            callback_url:
                              type: string
                              example: www.example.com
                            workflow:
                              type: string
                              example: REDIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
                  - title: Wallet
                    type: array
                    items:
                      type: object
                      properties:
                        payment:
                          type: object
                          properties:
                            id:
                              type: string
                              example: d0ff19c2-cf55-4015-a613-e35f22da0233
                            account_id:
                              type: string
                              example: 493e9374-510a-4201-9e09-de669d75f256
                            description:
                              type: string
                              example: Test Bank of America
                            country:
                              type: string
                              example: US
                            status:
                              type: string
                              example: READY_TO_PAY
                            sub_status:
                              type: string
                              example: CREATED
                            merchant_order_id:
                              type: string
                              example: '0000023'
                            created_at:
                              type: string
                              example: '2023-07-23T23:02:39.401790Z'
                            updated_at:
                              type: string
                              example: '2023-07-23T23:02:40.312593Z'
                            amount:
                              type: object
                              properties:
                                captured:
                                  type: integer
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                refunded:
                                  type: integer
                                  example: 0
                                  default: 0
                                value:
                                  type: integer
                                  example: 3000
                                  default: 0
                            discount_amount:
                              type: object
                              description: >-
                                The total discount of the Yuno promotion applied to the payment: the sum of the
                                `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                                applied. The amount charged is `amount.value` minus this value, and it is on
                                `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                              properties:
                                currency:
                                  type: string
                                  description: The currency of the discount, the same as `amount.currency`.
                                value:
                                  type: number
                                  description: The discount.
                            checkout:
                              type: object
                              properties:
                                session:
                                  type: string
                                  example: b7e15362-4ac0-4e23-886e-329695933ecb
                                sdk_action_required:
                                  type: boolean
                                  example: true
                                  default: true
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: BANK_TRANSFER
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                payment_method_detail:
                                  type: object
                                  properties:
                                    wallet:
                                      type: object
                                      properties:
                                        verify:
                                          type: boolean
                                          example: false
                                          default: true
                                        capture:
                                          type: boolean
                                          example: false
                                          default: true
                                        installments: {}
                                        payment_method_id: {}
                                        payment_method_detail: {}
                                        date_of_expiration: {}
                                        money_release_date: {}
                                        sponsor_id: {}
                                        authorization_code: {}
                                        customer_data: {}
                                        card_data: {}
                                        redirect_url:
                                          type: string
                                          example: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                            customer_payer:
                              type: object
                              properties:
                                id: {}
                                merchant_customer_id: {}
                                first_name:
                                  type: string
                                  example: John
                                last_name:
                                  type: string
                                  example: Doe
                                gender: {}
                                date_of_birth: {}
                                email:
                                  type: string
                                  example: johndoe@example.com
                                nationality:
                                  type: string
                                  example: US
                                ip_address: {}
                                device_fingerprint: {}
                                browser_info:
                                  type: object
                                  properties:
                                    user_agent:
                                      type: string
                                      example: ''
                                    accept_header:
                                      type: string
                                      example: ''
                                    accept_content: {}
                                    accept_browser: {}
                                    color_depth:
                                      type: string
                                      example: ''
                                    screen_height:
                                      type: string
                                      example: ''
                                    screen_width:
                                      type: string
                                      example: ''
                                    javascript_enabled: {}
                                    java_enabled: {}
                                    browser_time_difference: {}
                                    language:
                                      type: string
                                      example: ''
                                document: {}
                                phone: {}
                                billing_address: {}
                                shipping_address: {}
                            additional_data:
                              type: object
                              properties:
                                airline: {}
                                order:
                                  type: object
                                  properties:
                                    fee_amount: {}
                                    shipping_amount: {}
                                    items:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          id:
                                            type: string
                                            example: 123AD
                                          name:
                                            type: string
                                            example: Skirt
                                          quantity:
                                            type: integer
                                            example: 1
                                            default: 0
                                          unit_amount:
                                            type: integer
                                            example: 3000
                                            default: 0
                                          category: {}
                                          brand: {}
                                          sku_code: {}
                                          manufacture_part_number: {}
                                seller_details: {}
                            taxes: {}
                            transactions:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    example: 286ad833-7cbc-4e66-92f9-01019eb7d7a3
                                  type:
                                    type: string
                                    example: PURCHASE
                                  status:
                                    type: string
                                    example: CREATED
                                  category:
                                    type: string
                                    example: WALLET
                                  amount:
                                    type: integer
                                    example: 3000
                                    default: 0
                                  provider_id:
                                    type: string
                                    example: BANK_OF_AMERICA
                                  payment_method:
                                    type: object
                                    properties:
                                      vaulted_token:
                                        type: string
                                        example: ''
                                      type:
                                        type: string
                                        example: BANK_TRANSFER
                                      vault_on_success:
                                        type: boolean
                                        example: false
                                        default: true
                                      token:
                                        type: string
                                        example: ''
                                      detail:
                                        type: object
                                        properties:
                                          wallet:
                                            type: object
                                            properties:
                                              verify:
                                                type: boolean
                                                example: false
                                                default: true
                                              capture:
                                                type: boolean
                                                example: false
                                                default: true
                                              installments: {}
                                              payment_method_id: {}
                                              payment_method_detail: {}
                                              date_of_expiration: {}
                                              money_release_date: {}
                                              sponsor_id: {}
                                              authorization_code: {}
                                              customer_data: {}
                                              card_data: {}
                                              redirect_url:
                                                type: string
                                                example: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                                  response_code:
                                    type: string
                                    example: SUCCEEDED
                                  response_message:
                                    type: string
                                    example: Transaction successful
                                  reason: {}
                                  description:
                                    type: string
                                    example: Test Bank of America
                                  merchant_reference:
                                    type: string
                                    example: reference-d2b08e8e-c87a-4806-b1ea-b35a19a36a6d
                                  provider_data:
                                    type: object
                                    properties:
                                      id:
                                        type: string
                                        example: BANK_OF_AMERICA
                                      transaction_id:
                                        type: string
                                        example: ''
                                      account_id:
                                        type: string
                                        example: ''
                                      status:
                                        type: string
                                        example: ''
                                      status_detail:
                                        type: string
                                        example: ''
                                      response_message:
                                        type: string
                                        example: ''
                                      iso8583_code:
                                        type: string
                                        example: '00'
                                      iso8583_message:
                                        type: string
                                        example: Approved or completed successfully
                                      raw_request:
                                        type: object
                                        description: Obfuscated copy of the request Yuno sent to the provider.
                                      raw_response:
                                        type: object
                                        properties:
                                          value:
                                            type: string
                                            example: '{"additional_info":"","auto_return":"approved","back_urls":{"failure":"http://www.example.com","pending":"http://www.example.com","success":"http://www.example.com"},"binary_mode":true,"client_id":"3615163740385056","collector_id":1131498549,"coupon_code":null,"coupon_labels":null,"date_created":"2023-07-23T19:02:40.082-04:00","date_of_expiration":null,"expiration_date_from":null,"expiration_date_to":null,"expires":false,"external_reference":"286ad833-7cbc-4e66-92f9-01019eb7d7a3","id":"1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","init_point":"https://www.bankofamerica.com/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","items":[{"id":"123AD","category_id":"others","currency_id":"USD","description":"","title":"Skirt","quantity":1,"unit_price":3000}]}'
                                      third_party_transaction_id:
                                        type: string
                                        example: ''
                                  created_at:
                                    type: string
                                    example: '2023-07-23T23:02:39.582570Z'
                                  updated_at:
                                    type: string
                                    example: '2023-07-23T23:02:40.227158Z'
                            split:
                              type: array
                            callback_url:
                              type: string
                              example: www.example.com
                            workflow:
                              type: string
                              example: REDIRECT
                            metadata:
                              type: array
                            plan_id:
                              type: string
                              description: >-
                                The subscription's plan when this payment was created. Present only on payments created
                                with `subscription.plan_id` and on their renewals; absent otherwise.
                            plan_assigned_at:
                              type: string
                              format: date-time
                              description: >-
                                When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                                that carry `plan_id`.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid Credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid Credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API
      deprecated: false
      tags:
        - Payments
    post:
      summary: Create Payment
      description: ''
      operationId: create-payment
      parameters:
        - name: X-Idempotency-Key
          in: header
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts.
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - description
                - country
                - merchant_order_id
                - amount
                - payment_method
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [the Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 chars).
                  default: '{{account_id}}'
                merchant_order_id:
                  type: string
                  description: The unique identifier of the customer's order (MAX 255; MIN 3).
                  default: ''
                description:
                  type: string
                  description: The description of the payment (MAX 255; MIN 3).
                amount:
                  type: object
                  description: Specifies the payment amount object, with the value and currency.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      description: >-
                        The payment amount (multiple of 0.0001). For a zero-decimal currency (for example KRW, JPY, or
                        CLP) the value must be a whole number: see [Amounts and
                        currencies](/docs/basic-concepts/amounts-and-currencies).
                      format: float
                    currency_conversion:
                      type: object
                      description: >-
                        The currency conversion (DCC) object. Used when the cardholder pays in their home currency at
                        the point of sale while the merchant settles in their own. `cardholder_currency` must differ
                        from `amount.currency`.
                      properties:
                        id:
                          type: string
                          description: >-
                            The unique identifier of the [conversion rate query](/docs/currency-conversion) from Yuno.
                            (UUID, 36 chars)
                        provider_currency_conversion_id:
                          type: string
                          description: The unique identifier of the conversion rate query from the provider (MAX 526 ; MIN 3)
                        cardholder_currency:
                          type: string
                          description: >-
                            Currency the cardholder is charged in. ISO 4217 alpha-3 code. Must differ from
                            `amount.currency`. This field is required if the 'currency_conversion' object is included in
                            the request.
                        cardholder_amount:
                          type: number
                          description: >-
                            Total amount billed to the cardholder in `cardholder_currency` (multiple of 0.0001). Range:
                            0.0001 – 9,999,999,999. This field is required if the 'currency_conversion' object is
                            included in the request.
                          format: float
                        cardholder_accepted:
                          type: boolean
                          description: >-
                            Cardholder's explicit consent to the DCC offer. `true` = accepted (charge in
                            `cardholder_currency`); `false` = declined (payment proceeds in merchant currency).
                        provider_data:
                          type: object
                          description: Additional data from the provider
                          properties:
                            id:
                              type: string
                              description: Identification of the provider
                              enum:
                                - CIBC
                                - MERCADO_PAGO
                        rate:
                          type: number
                          description: Applied FX rate (markup included). Must be greater than 0.
                          format: float
                        rate_margin_percentage:
                          type: number
                          description: 'Markup added over the wholesale rate, expressed as a percentage. Range: 0 – 100.'
                          format: float
                        rate_source:
                          type: string
                          description: >-
                            Wholesale benchmark used for the quote. Required when `rate_margin_percentage > 0`. Free
                            text, max 50 chars. Examples: `ECB`, `REUTERS`, `BLOOMBERG`, `PROVIDER_INTERNAL`.
                        provider:
                          type: string
                          description: DCC provider that issued the quote.
                          enum:
                            - FEXCO
                            - GLOBAL_BLUE
                            - PLANET
                            - EURONET
                            - CURRENCYFAIR
                            - EUROPEAN_PAYMENT_SERVICES
                            - OTHER
                        description:
                          type: string
                          description: >-
                            Verbatim disclosure text shown to the cardholder at the point of sale. Stored unchanged for
                            audit. Max 4096 chars.
                        created_at:
                          type: string
                          format: date-time
                          description: Timestamp when the DCC provider issued the quote (ISO 8601). Must be ≤ now().
                        expires_at:
                          type: string
                          format: date-time
                          description: >-
                            Timestamp when the quote expires (ISO 8601). Must be > `created_at`. The payment is rejected
                            if `expires_at < now()` at validation time.
                taxes:
                  type: object
                  description: Specifies the order's tax object.
                  required:
                    - type
                    - value
                  properties:
                    type:
                      type: string
                      description: Type of the tax.
                      enum:
                        - VAT
                        - AIRPORT_TAX
                        - CONSUMPTION_TAX
                        - VAT_LAW_17934
                        - VAT_LAW_19210
                        - VAT_EXEMPTION
                        - ISV
                    tax_base:
                      type: number
                      description: The amount base to apply the tax defined.
                      format: float
                    value:
                      type: number
                      description: The amount of the tax.
                      format: float
                    percentage:
                      type: number
                      description: The percentage of the tax.
                      format: float
                checkout:
                  type: object
                  description: >-
                    Specifies the checkout object. This object is not mandatory for back to back payments. Required when
                    `workflow` is defined as `SDK_CHECKOUT` or is not sent. not required for `DIRECT` or `REDIRECT`
                    payments.
                  properties:
                    session:
                      type: string
                      description: >-
                        The checkout session that has been created for the payment using the [Create Checkout
                        Session](https://docs.y.uno/reference/create-checkout-session) endpoint (UUID, 36 chars). This
                        field is required if the `checkout` object is included in the request.
                additional_data:
                  type: object
                  description: >-
                    Specifies the additional_data object. This object is not mandatory. However, if you send this
                    information, the payment experience will be enhanced for your user.
                  properties:
                    order:
                      type: object
                      description: Specifies the order object.
                      properties:
                        shipping_amount:
                          type: number
                          description: >-
                            The shipping amount of the order (multiple of 0.0001). This field is for informational
                            purposes, the shipping amount is already included in the final transaction amount and is not
                            added separately.
                          format: float
                        fee_amount:
                          type: number
                          description: >-
                            The fee amount of the order (multiple of 0.0001). This field is for informational purposes,
                            the fee amount is already included in the final transaction amount and is not added
                            separately.
                          format: float
                        tip_amount:
                          type: string
                          description: >-
                            The tip amount of the order (multiple of 0.0001). This field is for informational purposes,
                            the tip amount is already included in the final transaction amount and is not added
                            separately.
                        taxes:
                          type: array
                          description: >-
                            The taxes of the order. This struct is for informational purposes, the taxes amount is
                            already included in the final transaction amount and is not added separately.
                          items:
                            properties:
                              type:
                                type: string
                                description: Type of the tax.
                                enum:
                                  - VAT
                                  - AIRPORT_TAX
                                  - CONSUMPTION_TAX
                                  - VAT_LAW_17934
                                  - VAT_LAW_19210
                                  - VAT_EXEMPTION
                                  - ISV
                              tax_base:
                                type: number
                                description: The amount base to apply the tax defined.
                                format: float
                              value:
                                type: number
                                description: The amount of the tax.
                                format: float
                              percentage:
                                type: number
                                description: The percentage of the tax.
                                format: float
                            required:
                              - type
                              - value
                            type: object
                        items:
                          type: array
                          description: Specifies the items array of object.
                          items:
                            properties:
                              id:
                                type: string
                                description: The unique identifier of the item (MAX 255; MIN 3).
                              name:
                                type: string
                                description: The name of the item (MAX 255; MIN 3).
                              quantity:
                                type: integer
                                description: The quantity of the item.
                                format: int32
                              unit_amount:
                                type: number
                                description: The unit amount of the item (multiple of 0.0001).
                                format: float
                              category:
                                type: string
                                description: >-
                                  The category of the item. Check the [Item category
                                  reference](/reference/items-category-list).
                                enum:
                                  - art
                                  - baby
                                  - coupons
                                  - beauty_&_personal_care
                                  - donations
                                  - computing
                                  - books
                                  - grocery_&_gourmet_food
                                  - cameras
                                  - video_games
                                  - television
                                  - car_electronics
                                  - electronics
                                  - automotive
                                  - toys_&_games
                                  - musical_instruments
                                  - handmade
                                  - garden_&_outdoor
                                  - entertainment
                                  - industrial_&_scientific
                                  - fashion
                                  - games
                                  - pet_supplies
                                  - home
                                  - musical
                                  - phones
                                  - services
                                  - learnings
                                  - tickets
                                  - travels
                                  - virtual_goods
                                  - others
                                  - ''
                              brand:
                                type: string
                                description: The brand of the item (MAX 255; MIN 3).
                              sku_code:
                                type: string
                                description: The stock keeping unit (SKU) of the item (MAX 255; MIN 3).
                              manufacture_part_number:
                                type: string
                                description: The manufacture part number of the item.
                              url:
                                type: string
                                description: The item's URL available to the buyer (MAX 512; MIN 3).
                              image_url:
                                type: string
                                description: >-
                                  URL of the product image. Complements the existing url field, which points to the
                                  product page (MAX 512; MIN 3).
                                minLength: 3
                                maxLength: 512
                            required:
                              - id
                              - name
                              - quantity
                              - unit_amount
                              - category
                            type: object
                        shipping:
                          type: object
                          description: The shipping details object
                          properties:
                            type:
                              type: string
                              description: The type of shippment
                              enum:
                                - CUSTOM
                                - MILITARY
                                - ELECTRONIC
                                - EXPRESS
                                - STANDARD
                                - SCHEDULED
                                - ECONOMY
                                - PRIORITY
                                - SAME_DAY
                                - NEXT_DAY
                                - THIRD_DAY
                                - STORE_PICK_UP
                                - LOCKER_PICK_UP
                                - OTHER
                            description:
                              type: string
                              description: The shipment description
                            carrier:
                              type: string
                              description: Carrier used for the delivery
                              enum:
                                - UPS
                                - USPS
                                - FEDEX
                                - DHL
                                - PUROLATOR
                                - GREYHOUND
                                - AR_CORREO_ARGENTINO
                                - AR_OCA
                                - OTHER
                            deliver_at:
                              type: string
                              description: Estimated date of delivery (ISO 8601 MAX 27; MIN 27)
                        tickets:
                          type: array
                          description: The tickets detail object
                          items:
                            properties:
                              id:
                                type: string
                                description: 'Id of the ticket (Min: 1, max:255)'
                              name:
                                type: string
                                description: 'Name of the ticket (Min: 1, max:255)'
                              description:
                                type: string
                                description: 'Description of the ticket (Min: 1, max:255)'
                              type:
                                type: string
                                description: Type of the ticket
                                enum:
                                  - VIRTUAL
                                  - PHYSICAL
                              amount:
                                type: object
                                description: Amount of the ticket
                                properties:
                                  value:
                                    type: number
                                    description: Amount of the payment
                                    format: float
                                  currency:
                                    type: string
                                    description: The currency used to make the payment (ISO 4217 MAX 3; MIN 3)
                              event:
                                type: object
                                description: The event information
                                properties:
                                  id:
                                    type: string
                                    description: Id of the event related to the ticket
                                  name:
                                    type: string
                                    description: Name of the event
                                  description:
                                    type: string
                                    description: Description of the event
                                  type:
                                    type: string
                                    description: Type of the event
                                    enum:
                                      - PARTY
                                      - UNIVERCITY
                                      - FESTIVAL
                                      - CIRCUS
                                      - SPORTS
                                      - CINEMA
                                      - THEATER
                                      - CONCERT
                                      - OTHERS
                                  date:
                                    type: string
                                    description: Date of the event
                                    format: date
                                  address:
                                    type: object
                                    description: Address of the event
                                    properties:
                                      address_line_1:
                                        type: string
                                        description: The primary billing address line (MAX 255; MIN 3)
                                      address_line_2:
                                        type: string
                                        description: The secondary billing address line (MAX 255; MIN 3)
                                      building_number_1:
                                        type: string
                                        description: The primary building number of the customer (MAX 255; MIN 3)
                                      building_number_2:
                                        type: string
                                        description: The secondary building number of the customer (MAX 255; MIN 3)
                                      city:
                                        type: string
                                        description: The city considered for the address (MAX 255; MIN 3)
                                      country:
                                        type: string
                                        description: The country consider for the address (ISO 3166-1 MAX 2; MIN 2)
                                      state:
                                        type: string
                                        description: The state / province considered for the  address (MAX 255; MIN 3)
                                      zip_code:
                                        type: string
                                        description: The zipcode considered for the  address (MAX 11; MIN 4)
                                      neighborhood:
                                        type: string
                                        description: The neighborhood address line (MAX 255; MIN 3)
                            type: object
                        account_funding:
                          type: object
                          description: >-
                            The account funding transaction details object necessary for
                            [AFTs](/docs/account-funding-transactions-afts).
                          required:
                            - beneficiary
                          properties:
                            funding_type:
                              type: string
                              description: >-
                                The type of account funding operation. Accepted by the API but not yet read by any
                                provider integration.
                              enum:
                                - RECHARGE
                                - P2P
                                - M2M
                                - TRANSFER
                                - BILL_PAYMENT
                            sender:
                              type: object
                              description: The sender object necessary for account funding transactions
                              properties:
                                first_name:
                                  type: string
                                  description: 'Sender''s name. (Max: 80)'
                                last_name:
                                  type: string
                                  description: 'Sender''s last name. (Max: 80)'
                                national_entity:
                                  type: string
                                  description: Sender's national entity type.
                                  enum:
                                    - INDIVIDUAL
                                    - ENTITY
                                legal_name:
                                  type: string
                                  description: 'Sender''s name. (Max: 80) Only necessary when national entity is ENTITY'
                                email:
                                  type: string
                                  description: The Sender's email (MAX 255; MIN 3)
                                country:
                                  type: string
                                  description: The Sender's country  (ISO 3166-1 MAX 2; MIN 2)
                                date_of_birth:
                                  type: string
                                  description: The beneficiary's date of birth in the YYYY-MM-DD (MAX 10; MIN 10)
                                document:
                                  type: object
                                  description: Sender's document object
                                  properties:
                                    document_number:
                                      type: string
                                      description: >-
                                        Document number for customer (MAX 40; MIN 3). This field is required if the
                                        'document' object is included in the request.
                                    document_type:
                                      type: string
                                      description: >-
                                        The customer's document type (MAX 6, MIN 2; [Country
                                        reference](/reference/country-reference)).
                                      enum:
                                        - DNI
                                        - CI
                                        - LC
                                        - LE
                                        - CUIT
                                        - CUIL
                                        - PAS
                                        - CPF
                                        - RG
                                        - CNH
                                        - CNPJ
                                        - RUT
                                        - RUN
                                        - CC
                                        - CE
                                        - NIT
                                        - DUI
                                        - PIC
                                        - DPI
                                        - IFR
                                        - INE
                                        - CP
                                        - RFC
                                        - CURP
                                        - CIP
                                        - CIC
                                        - CUI
                                        - RUC
                                        - ''
                                phone:
                                  type: object
                                  description: Sender's phone object
                                  properties:
                                    country_code:
                                      type: string
                                      description: >-
                                        The country calling code of the customer's phone (MAX 3; MIN 1). Check the
                                        [Country reference](country-reference) to see the phone codes. This field is
                                        required if the 'phone' object is included in the request.
                                    number:
                                      type: string
                                      description: >-
                                        The customer's phone number, without the country code (MAX 32; MIN 1). This
                                        field is required if the 'phone' object is included in the request.
                                address:
                                  type: object
                                  description: Sender's address object
                                  properties:
                                    address_line_1:
                                      type: string
                                      description: >-
                                        The primary billing address line of the customer (MAX 255; MIN 1). This field is
                                        required if the 'billing_address' object is included in the request.
                                    address_line_2:
                                      type: string
                                      description: The secondary billing address line of the customer (MAX 255; MIN 1).
                                    building_number_1:
                                      type: string
                                      description: The primary building number of the customer (MAX 255; MIN 3)
                                    building_number_2:
                                      type: string
                                      description: The secondary building number of the customer (MAX 255; MIN 3)
                                    city:
                                      type: string
                                      description: >-
                                        The city considered for the billing address (MAX 255; MIN 1). This field is
                                        required if the 'billing_address' object is included in the request.
                                    country:
                                      type: string
                                      description: >-
                                        The country considered for the billing address (MAX 2; MIN 2; [ISO
                                        3166-1](country-reference)). This field is required if the 'billing_address'
                                        object is included in the request.
                                      enum:
                                        - AR
                                        - BO
                                        - BR
                                        - CL
                                        - CO
                                        - CR
                                        - EC
                                        - SV
                                        - GT
                                        - HN
                                        - MX
                                        - NI
                                        - PA
                                        - PY
                                        - PE
                                        - US
                                        - UY
                                        - ''
                                    state:
                                      type: string
                                      description: >-
                                        State or province code. Use ISO 3166-2 subdivision codes
                                        (https://en.wikipedia.org/wiki/ISO_3166-2).
                                    zip_code:
                                      type: string
                                      description: The zipcode considered for the billing address (MAX 11; MIN 3).
                                    neighborhood:
                                      type: string
                                      description: The neighborhood of the address line of the customer(MAX 255; MIN 1)
                            beneficiary:
                              type: object
                              description: The beneficiary object necessary for account funding transactions.
                              properties:
                                first_name:
                                  type: string
                                  description: 'Beneficiary''s name. (Max: 80)'
                                last_name:
                                  type: string
                                  description: 'Beneficiary''s last name. (Max: 80)'
                                national_entity:
                                  type: string
                                  description: Beneficiary's national entity type.
                                  enum:
                                    - INDIVIDUAL
                                    - ENTITY
                                legal_name:
                                  type: string
                                  description: 'Beneficiary''s name. (Max: 80) Only necessary when national entity is ENTITY'
                                email:
                                  type: string
                                  description: The Beneficiary's email (MAX 255; MIN 3)
                                country:
                                  type: string
                                  description: The Beneficiary's country  (ISO 3166-1 MAX 2; MIN 2)
                                account_number:
                                  type: string
                                  description: The beneficiary's account identifier inside the wallet (MAX 255).
                                date_of_birth:
                                  type: string
                                  description: The beneficiary's date of birth in the YYYY-MM-DD (MAX 10; MIN 10)
                                document:
                                  type: object
                                  description: The beneficiary's document object.
                                  properties:
                                    document_number:
                                      type: string
                                      description: >-
                                        Document number for customer (MAX 40; MIN 3). This field is required if the
                                        'document' object is included in the request.
                                    document_type:
                                      type: string
                                      description: >-
                                        The customer's document type (MAX 6, MIN 2; [Country
                                        reference](/reference/country-reference)).
                                      enum:
                                        - DNI
                                        - CI
                                        - LC
                                        - LE
                                        - CUIT
                                        - CUIL
                                        - PAS
                                        - CPF
                                        - RG
                                        - CNH
                                        - CNPJ
                                        - RUT
                                        - RUN
                                        - CC
                                        - CE
                                        - NIT
                                        - DUI
                                        - PIC
                                        - DPI
                                        - IFR
                                        - INE
                                        - CP
                                        - RFC
                                        - CURP
                                        - CIP
                                        - CIC
                                        - CUI
                                        - RUC
                                        - ''
                                phone:
                                  type: object
                                  description: The beneficiary's phone object.
                                  properties:
                                    country_code:
                                      type: string
                                      description: >-
                                        The country calling code of the customer's phone (MAX 3; MIN 1). Check the
                                        [Country reference](country-reference) to see the phone codes. This field is
                                        required if the 'phone' object is included in the request.
                                    number:
                                      type: string
                                      description: >-
                                        The customer's phone number, without the country code (MAX 32; MIN 1). This
                                        field is required if the 'phone' object is included in the request.
                                address:
                                  type: object
                                  description: The beneficiary's address object.
                                  properties:
                                    address_line_1:
                                      type: string
                                      description: >-
                                        The primary billing address line of the customer (MAX 255; MIN 1). This field is
                                        required if the 'billing_address' object is included in the request.
                                    address_line_2:
                                      type: string
                                      description: The secondary billing address line of the customer (MAX 255; MIN 1).
                                    building_number_1:
                                      type: string
                                      description: The primary building number of the customer (MAX 255; MIN 3)
                                    building_number_2:
                                      type: string
                                      description: The secondary building number of the customer (MAX 255; MIN 3)
                                    city:
                                      type: string
                                      description: >-
                                        The city considered for the billing address (MAX 255; MIN 1). This field is
                                        required if the 'billing_address' object is included in the request.
                                    country:
                                      type: string
                                      description: >-
                                        The country considered for the billing address (MAX 2; MIN 2; [ISO
                                        3166-1](country-reference)). This field is required if the 'billing_address'
                                        object is included in the request.
                                      enum:
                                        - AR
                                        - BO
                                        - BR
                                        - CL
                                        - CO
                                        - CR
                                        - EC
                                        - SV
                                        - GT
                                        - HN
                                        - MX
                                        - NI
                                        - PA
                                        - PY
                                        - PE
                                        - US
                                        - UY
                                        - ''
                                    state:
                                      type: string
                                      description: >-
                                        State or province code. Use ISO 3166-2 subdivision codes
                                        (https://en.wikipedia.org/wiki/ISO_3166-2).
                                    zip_code:
                                      type: string
                                      description: The zipcode considered for the billing address (MAX 11; MIN 3).
                                    neighborhood:
                                      type: string
                                      description: The neighborhood of the address line of the customer(MAX 255; MIN 1)
                        discounts:
                          type: array
                          maxItems: 10
                          description: >-
                            Specifies the discounts array of objects (up to 10). A line is either a discount you
                            computed (`MERCHANT`, the default) or a Yuno promotion quote (`YUNO_PROMOTION`). Send the
                            original `amount` with a `YUNO_PROMOTION` line: Yuno computes the discount, fills the line
                            and charges the net. See [Promotions](/docs/payment-features/promotions).
                          items:
                            oneOf:
                              - title: MERCHANT
                                type: object
                                required:
                                  - id
                                  - name
                                  - unit_amount
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - MERCHANT
                                    description: The type of the discount line. `MERCHANT` is the default.
                                  id:
                                    type: string
                                    minLength: 3
                                    maxLength: 255
                                    description: ID of the discount (MAX 255; MIN 3).
                                  name:
                                    type: string
                                    minLength: 3
                                    maxLength: 255
                                    description: Name of the discount (MAX 255; MIN 3).
                                  unit_amount:
                                    type: number
                                    format: float
                                    description: >-
                                      The unit amount of the discount (multiple of 0.0001). Informational: it is already
                                      included in `amount`.
                                  discount_indicator:
                                    type: string
                                    enum:
                                      - 'Y'
                                      - 'N'
                                    description: Whether a discount was applied to the line.
                                  discount_rate:
                                    type: number
                                    description: The discount rate applied to the line (multiple of 0.0001).
                              - title: YUNO_PROMOTION
                                type: object
                                required:
                                  - quote_id
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - YUNO_PROMOTION
                                    description: >-
                                      The type of the discount line. A line with `quote_id` and no `type` is read as
                                      `YUNO_PROMOTION`. This type is accepted only on Create Payment, and only one such
                                      line per payment.
                                  quote_id:
                                    type: string
                                    maxLength: 1000
                                    description: >-
                                      The id of a promotion quote (MAX 1000; no whitespace), unchanged from [Create
                                      Promotion Quote](/reference/promotions/create-promotion-quote). A `YUNO_PROMOTION`
                                      line does not accept `id`, `name` or `unit_amount`.
                        sales_channel:
                          type: string
                          description: Sales channel id of the payment. (MIN:3 y MAX:255)
                    airline:
                      type: object
                      description: Specifies the airline object.
                      required:
                        - pnr
                      properties:
                        pnr:
                          type: string
                          description: Passenger name record (MAX 10; MIN 1).
                        type:
                          type: string
                          description: Type of trip.
                          enum:
                            - ONE_WAY
                            - ROUNDTRIP
                            - MULTIPLE_DESTINATIONS
                        legs:
                          type: array
                          description: Specifies the legs object.
                          items:
                            properties:
                              passenger_id:
                                type: string
                                description: Reference to passenger ID (MAX 128; MIN 1).
                                example: passenger_001
                              departure_airport:
                                type: string
                                description: IATA code. See http://www.iata.org (MAX 3; MIN 3).
                              departure_datetime:
                                type: string
                                description: >-
                                  The departure date and time in UTC time ([ISO
                                  8601](https://en.wikipedia.org/wiki/ISO_8601), MAX 27; MIN 27).
                                format: date-time
                              departure_airport_country:
                                type: string
                                description: Country of the departure airport (MAX 2; MIN 2; ISO 3166-1).
                              departure_airport_city:
                                type: string
                                description: The city considered for the departure airport (MAX 255; MIN 3).
                              departure_airport_timezone:
                                type: string
                                description: Airport timezone (MAX 6; MIN 6).
                              arrival_airport:
                                type: string
                                description: IATA airport code. See http://www.iata.org (MAX 3; MIN 3).
                              arrival_airport_country:
                                type: string
                                description: Country of the arrival airport (MAX 2; MIN 2; ISO 3166-1).
                              arrival_airport_city:
                                type: string
                                description: The city considered for the arrival airport (MAX 255; MIN 3).
                              arrival_airport_timezone:
                                type: string
                                description: Airport timezone (MAX 6; MIN 6).
                              arrival_datetime:
                                type: string
                                description: >-
                                  The arrival date and time in UTC time ([ISO
                                  8601](https://en.wikipedia.org/wiki/ISO_8601), MAX 27; MIN 27).
                              carrier_code:
                                type: string
                                description: IATA carrier code. See http://www.iata.org (MAX 2; MIN 2).
                              carrier_name:
                                type: string
                                description: The name of the airline carrier (MAX 100; MIN 1).
                              flight_number:
                                type: string
                                description: The flight number assigned by the airline carrier (MAX 5; MIN 1).
                              fare_basis_code:
                                type: string
                                description: >-
                                  Code base rate provides specific information on the fare in addition to the class
                                  service, both required for booking (MAX 15; MIN 1).
                              fare_class_code:
                                type: string
                                description: >-
                                  The fare class code of the airline (MAX 1; MIN 1). The values can be a letter (A-Z)
                                  but may vary depending on the airline's definition. Check the [Airline information
                                  reference](/reference/airline-information#fare-class-code).
                              base_fare:
                                type: number
                                description: >-
                                  The transaction amount, excluding taxes and fees, the smallest unit of currency
                                  (multipleOf 0.0001).
                                format: float
                              base_fare_currency:
                                type: string
                                description: The currency used to transaction amount (MAX 3; MIN 3).
                              stopover_code:
                                type: string
                                description: >-
                                  1-letter code indicating whether the passenger is allowed to make a stopover. Only two
                                  types of characters are allowed: O: Stopover allowed (the letter 'O', not zero) / X:
                                  Stopover not allowed. (MAX 1; MIN 1).
                              order:
                                type: integer
                                description: A running index (starts with 1), describing the order of legs in the same route.
                                format: int32
                              route_order:
                                type: integer
                                description: >-
                                  A running index (starts with 1), describing the order of routes by time. E.g: If an
                                  order contains 2 Routes: New-York->London->Paris (connection in London)
                                  New-York->London should have route_order=1, order=1; London->Paris should have
                                  route_order=1, order=2; Paris->London->New-York: Paris->London should have
                                  route_order=2, order=1; London->New-York should have route_order=2, order=2.
                                format: int32
                            required:
                              - departure_airport
                              - departure_datetime
                              - departure_airport_timezone
                              - arrival_airport
                              - carrier_code
                              - flight_number
                              - fare_basis_code
                              - fare_class_code
                            type: object
                        passengers:
                          type: array
                          description: Specifies the passengers array of objects.
                          items:
                            properties:
                              id:
                                type: string
                                description: Passenger ID for identification (MAX 128; MIN 1).
                                example: passenger_001
                              first_name:
                                type: string
                                description: The passenger first name (MAX 255; MIN 3).
                              last_name:
                                type: string
                                description: The passenger last name (MAX 255; MIN 3).
                              middle_name:
                                type: string
                                description: The passenger middle name (MAX 255; MIN 3).
                              email:
                                type: string
                                description: The passenger email (MAX 255; MIN 3).
                              type:
                                type: string
                                description: >-
                                  The passenger type (MAX 1; MIN 1). Check the [Airline information
                                  reference](/reference/airline-information#passenger-type).
                                enum:
                                  - A
                                  - C
                                  - I
                                  - ''
                              date_of_birth:
                                type: string
                                description: The passenger date of birth in the YYYY-MM-DD (MAX 10; MIN 10).
                                format: date
                              nationality:
                                type: string
                                description: The passenger nationality (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                                enum:
                                  - AR
                                  - BO
                                  - BR
                                  - CL
                                  - CO
                                  - CR
                                  - EC
                                  - SV
                                  - GT
                                  - HN
                                  - MX
                                  - NI
                                  - PA
                                  - PY
                                  - PE
                                  - US
                                  - UY
                                  - ''
                              document:
                                type: object
                                description: Specifies the document object of the passenger.
                                properties:
                                  document_number:
                                    type: string
                                    description: Document number for passenger (MAX 40; MIN 3).
                                  document_type:
                                    type: string
                                    description: >-
                                      The passenger's document type (MAX 6, MIN 2; [Country
                                      reference](/reference/country-reference)).
                                    enum:
                                      - DNI
                                      - CI
                                      - LC
                                      - LE
                                      - CUIT
                                      - CUIL
                                      - PAS
                                      - CPF
                                      - RG
                                      - CNH
                                      - CNPJ
                                      - RUT
                                      - RUN
                                      - CC
                                      - CE
                                      - NIT
                                      - DUI
                                      - PIC
                                      - DPI
                                      - IFR
                                      - INE
                                      - CP
                                      - RFC
                                      - CURP
                                      - CIP
                                      - CIC
                                      - CUI
                                      - RUC
                                      - ''
                              loyalty_number:
                                type: string
                                description: Number of passenger loyalty program.
                              loyalty_tier:
                                type: string
                                description: >-
                                  Tier of passenger loyalty program. Check the [Airline information
                                  reference](/reference/airline-information#loyalty-tier).
                                enum:
                                  - '1'
                                  - '2'
                                  - '3'
                              phone:
                                type: object
                                description: Specifies the phone object for the passenger.
                                properties:
                                  country_code:
                                    type: string
                                    description: >-
                                      The country calling code of the passenger's phone (MAX 3; MIN 1). Possible values:
                                      Check the [Country reference](/reference/country-reference).
                                  number:
                                    type: string
                                    description: The passenger's phone number, without the country code (MAX 32; MIN 1).
                            type: object
                        tickets:
                          type: array
                          description: Specifies the array of ticket objects.
                          items:
                            properties:
                              passenger_id:
                                type: string
                                description: Reference to passenger ID (MAX 128; MIN 1).
                                example: passenger_001
                              ticket_number:
                                type: string
                                description: Ticket number (MAX 14; MIN 1).
                              e_ticket:
                                type: boolean
                                description: Is this an e-ticket?
                              restricted:
                                type: boolean
                                description: Indicates if the ticket is refunfable or not.
                              total_fare_amount:
                                type: number
                                description: Total fare amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              total_tax_amount:
                                type: number
                                description: Total taxes amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              total_fee_amount:
                                type: number
                                description: Total fee amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              issue:
                                type: object
                                description: Specifies the issue object.
                                properties:
                                  carrier_prefix_code:
                                    type: string
                                    description: >-
                                      Issuing or Validating carrier. This is the AWB Prefix (Air waybill) 3-numeric code
                                      (MAX 3; MIN 3).
                                  travel_agent_code:
                                    type: string
                                    description: Code of the travel agent issuing the ticket (MAX 9; MIN 8).
                                  travel_agent_name:
                                    type: string
                                    description: >-
                                      The name under which the point of sale appears on the agency list or franchise
                                      name (MAX 32; MIN 1).
                                  booking_system_code:
                                    type: string
                                    description: Code of the booking system issuing the ticket. (MAX 255; MIN 1).
                                  booking_system_name:
                                    type: string
                                    description: Name of the booking system issuing the ticket. (MAX 255; MIN 1).
                                  date:
                                    type: string
                                    description: Ticket issuing date (MAX 27; MIN 27).
                                    format: date-time
                                  address:
                                    type: string
                                    description: Address of the agent whose sold the ticket (MAX 255; MIN 3).
                                  city:
                                    type: string
                                    description: City name of the agent whose sold the ticket (MAX 255; MIN 3).
                                  country:
                                    type: string
                                    description: >-
                                      Country code alpha 2 where the ticket was issued (MAX 2; MIN 2; [ISO
                                      3166-1](country-reference)).
                                    enum:
                                      - AR
                                      - BO
                                      - BR
                                      - CL
                                      - CO
                                      - CR
                                      - EC
                                      - SV
                                      - GT
                                      - HN
                                      - MX
                                      - NI
                                      - PA
                                      - PY
                                      - PE
                                      - US
                                      - UY
                                      - ''
                            type: object
                    transportations:
                      type: array
                      description: Specifies the transportations array of objects.
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            description: The id of the transportation booking (MAX 255; MIN 1).
                            example: AAA0001
                          description:
                            type: string
                            description: The description of the transportation booking (MAX 255; MIN 1).
                            example: Bus ticket
                          type:
                            type: string
                            description: The type of transportation booking.
                            enum:
                              - ONE_WAY
                              - ROUNDTRIP
                              - MULTIPLE_DESTINATIONS
                            example: ROUNDTRIP
                          legs:
                            type: array
                            description: Specifies the legs array of objects.
                            items:
                              type: object
                              properties:
                                passenger_id:
                                  type: string
                                  description: Reference to passenger ID (MAX 128; MIN 1).
                                  example: passenger_001
                                order:
                                  type: integer
                                  description: A running index (starts with 1), describing the order of legs in the same route.
                                  example: 2
                                route_order:
                                  type: integer
                                  description: A running index (starts with 1), describing the order of routes by time.
                                  example: 1
                                departure_country:
                                  type: string
                                  description: Country of the departure (MAX 2; MIN 2; ISO 3166-1).
                                  example: CO
                                departure_city:
                                  type: string
                                  description: The city of the departure (MAX 255; MIN 1).
                                  example: Bogota
                                departure_timezone:
                                  type: string
                                  description: Departure timezone (MAX 6; MIN 6).
                                  example: '-03:00'
                                departure_datetime:
                                  type: string
                                  description: The departure date and time in local time at the departure.
                                  format: date-time
                                  example: '2022-05-09T20:46:54.786342Z'
                                departure_reference:
                                  type: string
                                  description: The reference of the departure (MAX 255; MIN 1).
                                  example: AAA001-2
                                arrival_country:
                                  type: string
                                  description: Country of the arrival (MAX 2; MIN 2; ISO 3166-1).
                                  example: CO
                                arrival_city:
                                  type: string
                                  description: The city of the arrival (MAX 255; MIN 1).
                                  example: Medellin
                                arrival_timezone:
                                  type: string
                                  description: Arrival timezone (MAX 6; MIN 6).
                                  example: '-03:00'
                                arrival_datetime:
                                  type: string
                                  description: The arrival date and time in local time at the arrival.
                                  format: date-time
                                  example: 2022-05-09T24:46:54.786342Z
                                arrival_reference:
                                  type: string
                                  description: The reference of the arrival (MAX 255; MIN 1).
                                  example: AAA001-4
                                transport:
                                  type: object
                                  description: Specifies the transport object.
                                  properties:
                                    id:
                                      type: string
                                      description: The id of the transportation vehicle (MAX 255; MIN 1).
                                      example: ASONDAKS-1234
                          transport:
                            type: object
                            description: Specifies the transport object.
                            properties:
                              id:
                                type: string
                                description: The id of the transportation vehicle (MAX 255; MIN 1).
                                example: ASONDAKS-1234
                              type:
                                type: string
                                description: The type of transportation vehicle.
                                enum:
                                  - SHIP
                                  - BUS
                                  - TRAIN
                                  - TRAM
                                  - CAR
                                example: BUS
                              description:
                                type: string
                                description: The description of the transportation vehicle (MAX 255; MIN 1).
                                example: BUS 2022
                          passengers:
                            type: array
                            description: Specifies the passengers array of objects.
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  description: Passenger ID for identification (MAX 128; MIN 1).
                                  example: passenger_001
                                first_name:
                                  type: string
                                  description: The passenger first name (MAX 255; MIN 3).
                                  example: John
                                last_name:
                                  type: string
                                  description: The passenger last name (MAX 255; MIN 3).
                                  example: Doe
                                middle_name:
                                  type: string
                                  description: The passenger middle name (MAX 255; MIN 3).
                                  example: A
                                email:
                                  type: string
                                  description: The passenger email (MAX 255; MIN 3).
                                  example: john.doe@example.com
                                type:
                                  type: string
                                  description: The passenger type (MAX 1; MIN 1). Check the Airline information reference.
                                  example: A
                                date_of_birth:
                                  type: string
                                  description: The passenger date of birth in the YYYY-MM-DD (MAX 10; MIN 10).
                                  example: '1990-01-01'
                                nationality:
                                  type: string
                                  description: The passenger nationality (MAX 2; MIN 2; ISO 3166-1).
                                  example: CO
                                document:
                                  type: object
                                  description: Specifies the document object of the passenger.
                                  properties:
                                    document_number:
                                      type: string
                                      description: Document number for passenger (MAX 40; MIN 3).
                                      example: '123456789'
                                    document_type:
                                      type: string
                                      description: >-
                                        The passenger's document type (MAX 6, MIN 2; [Document Type
                                        List](https://docs.y.uno/reference/country-reference)).
                                      example: CC
                                loyalty_number:
                                  type: string
                                  description: Number of passenger loyalty program.
                                  example: L123456
                                loyalty_tier:
                                  type: string
                                  description: Tier of passenger loyalty program. Check the Airline information reference.
                                  example: GOLD
                                phone:
                                  type: object
                                  description: Specifies the phone object for the passenger.
                                  properties:
                                    country_code:
                                      type: string
                                      description: The country calling code of the passenger's phone (MAX 3; MIN 1).
                                      example: '57'
                                    number:
                                      type: string
                                      description: The passenger's phone number, without the country code (MAX 32; MIN 1).
                                      example: '3001234567'
                          tickets:
                            type: array
                            description: Specifies the array of ticket objects.
                            items:
                              type: object
                              properties:
                                passenger_id:
                                  type: string
                                  description: Reference to passenger ID (MAX 128; MIN 1).
                                  example: passenger_001
                                ticket_number:
                                  type: string
                                  description: Ticket number (MAX 14; MIN 1).
                                  example: '12345678901234'
                                e_ticket:
                                  type: boolean
                                  description: Is this an e-ticket?
                                  example: true
                                restricted:
                                  type: boolean
                                  description: Indicates if the ticket is refundable or not.
                                  example: false
                                total_fare_amount:
                                  type: number
                                  description: Total fare amount in the smallest unit of currency (multiple of 0.0001).
                                  format: float
                                  example: 50000
                                total_tax_amount:
                                  type: number
                                  description: Total taxes amount in the smallest unit of currency (multiple of 0.0001).
                                  format: float
                                  example: 5000
                                total_fee_amount:
                                  type: number
                                  description: Total fee amount in the smallest unit of currency (multiple of 0.0001).
                                  format: float
                                  example: 1000
                    seller_details:
                      type: object
                      description: 'Specifies the seller''s details object. '
                      properties:
                        name:
                          type: string
                          description: The seller's legal name (MAX 255; MIN 3).
                        email:
                          type: string
                          description: The seller's e-mail (MAX 255; MIN 3).
                        reference:
                          type: string
                          description: The seller's identification code (MAX 255; MIN 3).
                        website:
                          type: string
                          description: The seller's website URL (MAX 255; MIN 3).
                        industry:
                          type: string
                          description: >-
                            The seller's industry (MAX 235; MIN 1) For more information access the [Industry category
                            reference page](/reference/industry-category-list).
                          enum:
                            - ADVERTISING
                            - ART
                            - AUTOMOTIVE
                            - ANTIVIRUS
                            - BABY
                            - BEAUTY_&_PERSONAL_CARE
                            - BOOKS
                            - CAMERAS
                            - CAR_ELECTRONICS
                            - COMPUTING
                            - COUPONS
                            - DONATIONS
                            - DELIVERY
                            - ELECTRONICS
                            - ENTERTAINMENT
                            - EDUCATION
                            - FASHION
                            - GAMES
                            - GARDEN_&_OUTDOOR
                            - GROCERY_&_GOURMET_FOOD
                            - HANDMADE
                            - HOME
                            - INDUSTRIAL_&_SCIENTIFIC
                            - INVESTING_AND_FINANCIAL
                            - LEARNINGS
                            - MUSICAL
                            - OTHERS
                            - PET_SUPPLIES
                            - PHONES
                            - PAYROLL
                            - SERVICES
                            - SAAS
                            - TELEVISION
                            - STREAMING
                            - TICKETS
                            - TOYS_&_GAMES
                            - TRAVELS
                            - VIDEO_GAMES
                            - VIRTUAL_GOODS
                            - ''
                        merchant_category_code:
                          type: string
                          description: MCC - The merchant category code (MAX 235; MIN 1).
                        country:
                          type: string
                          description: The seller's country (MAX 255; MIN 2; [ISO 3166-1](/reference/country-reference)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                            - ''
                        document:
                          type: object
                          description: Specifies the document object of the seller.
                          properties:
                            document_number:
                              type: string
                              description: The seller's document number (MAX 40; MIN 3).
                            document_type:
                              type: string
                              description: >-
                                The seller's document type (MAX 6, MIN 2; [Document Type
                                List](https://docs.y.uno/reference/country-reference)).
                              enum:
                                - DNI
                                - CI
                                - LC
                                - LE
                                - CUIT
                                - CUIL
                                - PAS
                                - CPF
                                - RG
                                - CNH
                                - CNPJ
                                - RUT
                                - RUN
                                - CC
                                - CE
                                - NIT
                                - DUI
                                - PIC
                                - DPI
                                - IFR
                                - INE
                                - CP
                                - RFC
                                - CURP
                                - CIP
                                - CIC
                                - CUI
                                - RUC
                                - ''
                        phone:
                          type: object
                          description: Specifies the seller's phone number object.
                          properties:
                            country_code:
                              type: string
                              description: >-
                                The country calling code of the seller's phone (MAX 3; MIN 1). Check the [Country
                                reference](country-reference) to see the phone codes.
                            number:
                              type: string
                              description: The seller's phone number, without the country code (MAX 32; MIN 1).
                        address:
                          type: object
                          description: Specifies the seller's address object.
                          properties:
                            address_line_1:
                              type: string
                              description: The primary address line of the seller (MAX 255; MIN 3).
                            address_line_2:
                              type: string
                              description: The secondary billing address line of the seller (MAX 255; MIN 3).
                            building_number_1:
                              type: string
                              description: The primary building number of the customer (MAX 255; MIN 3)
                            building_number_2:
                              type: string
                              description: The secondary building number of the customer (MAX 255; MIN 3)
                            city:
                              type: string
                              description: The city considered for the seller's address (MAX 255; MIN 3).
                            country:
                              type: string
                              description: >-
                                The country considered for the seller's address (MAX 2; MIN 2; [ISO
                                3166-1](/reference/country-reference)).
                              enum:
                                - AR
                                - BO
                                - BR
                                - CL
                                - CO
                                - CR
                                - EC
                                - SV
                                - GT
                                - HN
                                - MX
                                - NI
                                - PA
                                - PY
                                - PE
                                - US
                                - UY
                                - ''
                            state:
                              type: string
                              description: The state considered for the seller's address (MAX 255; MIN 1).
                            zip_code:
                              type: string
                              description: The zipcode considered for the seller's address (MAX 11; MIN 4).
                          required:
                            - address_line_1
                            - city
                            - country
                      required:
                        - address
                  required:
                    - seller_details
                country:
                  type: string
                  description: >-
                    Country where the transaction must be processed (MAX 2; MIN 2; [ISO
                    3166-1](/reference/country-reference)).
                  enum:
                    - AR
                    - BO
                    - BR
                    - CL
                    - CO
                    - CR
                    - EC
                    - SV
                    - GT
                    - HN
                    - MX
                    - NI
                    - PA
                    - PY
                    - PE
                    - US
                    - UY
                merchant_reference:
                  type: string
                  description: >-
                    Identification of the payment transaction defined by the merchant (MAX 255; MIN 3). Optional to
                    complement the merchant_order_id.
                response_additional_data:
                  type: object
                  description: Controls additional data returned in the payment response and in the payment webhooks.
                  properties:
                    transactions_history:
                      type: boolean
                      default: false
                      description: >-
                        When `true`, the payment response and the payment webhooks (for example, `payment.purchase`)
                        include the full list of the payment's transactions in the `transactions_history` array —
                        including attempts declined by previous providers when the payment was routed through more than
                        one provider. When omitted or `false` (the default), `transactions_history` is returned as an
                        empty array `[]` to keep payload sizes small.
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    id:
                      type: string
                      description: >-
                        The unique identifier of the customer (UUID, 36 chars). This `id` is returned in Yuno's [Create
                        Customer](/reference/create-customer) endpoint. This object is not mandatory for DIRECT
                        payments. If the `id` of a customer is sent, it is not necessary to complete the rest of the
                        `customer_payer` object, the information of the previously created customer will be taken into
                        account for the payment. <br/> Example: `be8a1640-43d2-4a75-9694-c6468d82cba3`.
                    merchant_customer_id:
                      type: string
                      description: >-
                        The unique identifier for a customer in the merchant's system, assigned by the merchant (MAX
                        255; MIN 1).
                    merchant_customer_created_at:
                      type: string
                      description: >-
                        Customer´s registration date on the merchants platform. Send it in ISO 8601 format with a `T`
                        separator and a UTC offset, for example `2014-05-12T13:05:00Z`. A value such as `2014-05-12
                        13:05:00` is rejected with `INVALID_PARAMETERS`.
                      format: date-time
                      example: '2014-05-12T13:05:00Z'
                    merchant_customer_validations:
                      type: object
                      description: Fraud validations for the customer payer
                      properties:
                        account_is_verified:
                          type: boolean
                          description: If the customer's account has been validated before on the merchant's side. True by default
                          default: true
                        email_is_verified:
                          type: boolean
                          description: If the customer's email has been validated before on the merchant's side. True by default
                          default: true
                        phone_is_verified:
                          type: boolean
                          description: If the customer's phone has been validated before on the merchant's side. True by default
                          default: true
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 1).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 1).
                    gender:
                      type: string
                      description: >-
                        The customer's gender (MAX 2; MIN 1; (M=Male/F=Female/NB=Non Binary/NA=Not applicable/NK=Not
                        Known/U=Undefined)).
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the YYYY-MM-DD format (Length: 10).'
                      format: date
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 1).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                      enum:
                        - AR
                        - BO
                        - BR
                        - CL
                        - CO
                        - CR
                        - EC
                        - SV
                        - GT
                        - HN
                        - MX
                        - NI
                        - PA
                        - PY
                        - PE
                        - US
                        - UY
                        - ''
                    ip_address:
                      type: string
                      description: The customer's IP address (MAX 45; MIN 1).
                    device_fingerprints:
                      type: array
                      description: >-
                        The customer's [device fingerprints](/docs/direct-flow#important-add-ons) (MAX 4000; MIN 1). In
                        case you are using a DIRECT integration and want to support fraud providers in the payment flow,
                        you can use this object to specify the necessary information. For integrations using Yuno
                        checkout the value is obtained automatically, do not send this field.
                      items:
                        properties:
                          provider_id:
                            type: string
                            description: The fraud screening provider id
                            enum:
                              - CLEARSALE
                              - CYBERSOURCE
                              - RISKIFIED
                              - SIGNIFYD
                              - VESTA
                              - KONDUTO
                              - BAYONET
                              - MERCADO_PAGO
                              - OPEN_PAY
                          id:
                            type: string
                            description: The device fingerprint associated to the provider
                        required:
                          - provider_id
                          - id
                        type: object
                    browser_info:
                      type: object
                      description: Specifies the browser_info object.
                      properties:
                        user_agent:
                          type: string
                          description: The user agent value of the customer's browser (MAX 255; MIN 3).
                        accept_header:
                          type: string
                          description: The accept header value of the customer's browser.
                        platform:
                          type: string
                          description: The platform from which the customer is making the payment.
                          enum:
                            - WEB
                            - IOS
                            - ANDROID
                        color_depth:
                          type: string
                          description: >-
                            The color depth of the customer's browser in bits per pixel. This should be obtained by
                            using the browser's screen.colorDepth property. Accepted values: 1, 4, 8, 15, 16, 24, 30, 32
                            or 48 bit color depth. (MAX 5; MIN 1).
                        screen_height:
                          type: string
                          description: The total height of the customer's device screen in pixels. (MAX 255; MIN 3).
                        screen_width:
                          type: string
                          description: The total width of the customer's device screen in pixels. (MAX 255; MIN 3).
                        javascript_enabled:
                          type: boolean
                          description: Indicates if Javascript is enabled or not in the device.
                        language:
                          type: string
                          description: >-
                            The navigator.language value of the customer's browser (as defined in IETF BCP 47) (MAX 5;
                            MIN 1).
                        accept_browser:
                          type: string
                          description: The accept browser value of the customer's browser
                        accept_content:
                          type: string
                          description: The accept content value of the customer's browser
                        java_enabled:
                          type: boolean
                          description: Indicates if Java is enabled or not in the device
                        browser_time_difference:
                          type: string
                          description: Indicates the browser time difference
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      properties:
                        document_number:
                          type: string
                          description: >-
                            Document number for customer (MAX 40; MIN 3). This field is required if the 'document'
                            object is included in the request.
                        document_type:
                          type: string
                          description: >-
                            The customer's document type (MAX 6, MIN 2; [Country
                            reference](/reference/country-reference)).
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                            - ''
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: >-
                            The primary billing address line of the customer (MAX 255; MIN 3). This field is required if
                            the 'billing_address' object is included in the request.
                        address_line_2:
                          type: string
                          description: The secondary billing address line of the customer (MAX 255; MIN 3).
                        building_number_1:
                          type: string
                          description: The primary building number of the customer (MAX 255; MIN 3).
                        building_number_2:
                          type: string
                          description: The secondary building number of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: >-
                            The city considered for the billing address (MAX 255; MIN 3). This field is required if the
                            'billing_address' object is included in the request.
                        country:
                          type: string
                          description: >-
                            The country considered for the billing address (MAX 2; MIN 2; [ISO
                            3166-1](country-reference)). This field is required if the 'billing_address' object is
                            included in the request.
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                            - ''
                        state:
                          type: string
                          description: >-
                            State or province code. Use ISO 3166-2 subdivision codes
                            (https://en.wikipedia.org/wiki/ISO_3166-2).
                        zip_code:
                          type: string
                          description: The zip code considered for the billing address (MAX 10; MIN 5).
                        neighborhood:
                          type: string
                          description: The neighborhood of the address line of the customer (MAX 255; MIN 2)
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: >-
                            The primary shipping address line of the customer (MAX 255; MIN 3). This field is required
                            if the 'shipping_address' object is included in the request.
                        address_line_2:
                          type: string
                          description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                        building_number_1:
                          type: string
                          description: The primary building number of the customer (MAX 255; MIN 3).
                        building_number_2:
                          type: string
                          description: The secondary building number of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: >-
                            The city considered for the shipping address (MAX 255; MIN 3). This field is required if the
                            'shipping_address' object is included in the request.
                        country:
                          type: string
                          description: >-
                            The country considered for the shipping address (MAX 2; MIN 2; [ISO
                            3166-1](country-reference)). **[Required]**.
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                            - ''
                        state:
                          type: string
                          description: >-
                            State or province code. Use ISO 3166-2 subdivision codes
                            (https://en.wikipedia.org/wiki/ISO_3166-2).
                        zip_code:
                          type: string
                          description: The zip code considered for the shipping address (MAX 10; MIN 5).
                        neighborhood:
                          type: string
                          description: The neighborhood of the address line of the customer (MAX 255; MIN 2)
                    phone:
                      type: object
                      description: Specifies the customer's phone number object.
                      properties:
                        country_code:
                          type: string
                          description: >-
                            The country calling code of the customer's phone (MAX 3; MIN 1). Check the [Country
                            reference](country-reference) to see the phone codes. This field is required if the 'phone'
                            object is included in the request.
                        number:
                          type: string
                          description: >-
                            The customer's phone number, without the country code (MAX 32; MIN 1). This field is
                            required if the 'phone' object is included in the request.
                    geolocation:
                      type: object
                      description: Customer's geolocation.
                      properties:
                        latitude:
                          type: string
                          description: 'Angular distance of a location on the earth south or north of the equator (MIN: 1, MAX:11)'
                        longitude:
                          type: string
                          description: >-
                            Angular measurement of the distance of a location on the earth east or west of the Greenwich
                            observatory. (MIN: 1, MAX:11)
                workflow:
                  type: string
                  description: >-
                    The payment workflow. Indicates whether the integration will use Yuno´s SDK or will be a back to
                    back connection. [Guides](/docs/sdks/overview/quickstart) <ul> <li>`SDK_CHECKOUT`: [Recommended] -
                    Use Yuno's SDK. </li> <li>`DIRECT`: Back to back integration with provider info for custom payment
                    experience. </li> <li>`REDIRECT`: Back to back integration with provider redirection. </li> </ul>
                  default: SDK_CHECKOUT
                  enum:
                    - SDK_CHECKOUT
                    - CHECKOUT
                    - REDIRECT
                    - DIRECT
                    - SDK_SEAMLESS
                payment_method:
                  type: object
                  description: The payment method object.
                  properties:
                    token:
                      type: string
                      description: >-
                        The one time use payment method token **provided by Yuno sdk**. If a payment is created using a
                        token, it is not necessary to send a vaulted_token as well, it can be defined as null. Not
                        necessary for back to back payments (MAX: 64; MIN: 36).
                    vaulted_token:
                      type: string
                      description: >-
                        The vaulted token for a **previously stored payment_method**. If a payment is created using a
                        vaulted_token, it is not necessary to send a token as well, it can be defined as null (MAX: 64;
                        MIN: 36).
                    type:
                      type: string
                      description: >-
                        Type of the payment method. Only required for `DIRECT` or `REDIRECT` workflow. Required when
                        integrating wallets, even when using the SDK.
                      enum:
                        - ACUOTAZ
                        - ADDI
                        - APPLE_PAY
                        - BANCOLOMBIA_TOKEN_BOX
                        - BANCOLOMBIA_TRANSFER
                        - CARD
                        - CASH
                        - CODI
                        - DAVIPLATA
                        - EFECTY
                        - GOOGLE_PAY
                        - MERCADO_PAGO_CHECKOUT_PRO
                        - MERCADO_PAGO_WALLET
                        - NEQUI
                        - NU_PAY
                        - NU_PAY_ENROLLMENT
                        - OXXO
                        - PAYPAL
                        - PAYVALIDA
                        - PIX
                        - PSE
                        - SAFETYPAY
                        - SPEI
                        - TARJETA_CLAVE
                        - WEBPAY
                        - WIBOND
                        - CRYPTO
                    detail:
                      type: object
                      description: Specifies the payment method detail object.
                      properties:
                        card:
                          type: object
                          description: Specifies the card object.
                          properties:
                            capture:
                              type: boolean
                              description: >-
                                Determines whether the card payment is captured immediately (`TRUE` = purchase) or only
                                authorized (`FALSE` = requires capture or cancel).
                            delayed_capture_settings:
                              type: object
                              description: >-
                                Configuration for automatically capturing the full authorized amount after a delay. Only
                                valid when capture = `FALSE`.
                              properties:
                                delay:
                                  type: string
                                  description: Delay before Yuno performs the capture (ISO 8601 format).
                                  example: P20D
                                simplified_mode:
                                  type: boolean
                                  description: If true, Yuno retries the capture if it fails.
                            delayed_cancel_settings:
                              type: object
                              description: >-
                                Configuration for automatically canceling the authorization after a delay. Only valid
                                when capture = `FALSE`.
                              properties:
                                delay:
                                  type: string
                                  description: Delay before Yuno performs the cancel (ISO 8601 format).
                                  example: P20D
                                simplified_mode:
                                  type: boolean
                                  description: If true, Yuno retries the capture if it fails.
                            installments:
                              type: integer
                              description: The card installments.
                              format: int32
                            first_installment_deferral:
                              type: integer
                              description: Number of months to be waited to debit the first installment.
                              format: int32
                            soft_descriptor:
                              type: string
                              description: >-
                                Statement descriptor passed per transaction. It is presented on the cardholder's bank
                                statement (MAX 255). For merchant-initiated (MIT) recurring charges, set it on each
                                payment; for Yuno subscription-engine rebills, set it on the subscription instead.
                                Behavior and length limits vary by provider. See [Statement descriptor on recurring
                                payments](/docs/payment-features/subscriptions/soft-descriptor).
                            card_data:
                              type: object
                              description: Specifies the card_data object.
                              required:
                                - number
                                - holder_name
                              properties:
                                number:
                                  type: string
                                  description: >-
                                    Card's number without any separators. (MAX 19; MIN 8) - only available for PCI
                                    certified merchants.
                                expiration_month:
                                  type: integer
                                  description: >-
                                    Card's expiration month - MM (MAX 2; MIN 2) - only available for PCI certified
                                    merchants.
                                  format: int32
                                expiration_year:
                                  type: integer
                                  description: >-
                                    Card's expiration year - YYYY (MAX 4; MIN 2) - only available for PCI certified
                                    merchants.
                                  format: int32
                                security_code:
                                  type: string
                                  description: Card's security code (MAX 4; MIN 3) - only available for PCI certified merchants.
                                holder_name:
                                  type: string
                                  description: >-
                                    Cardholder's full name as it appears on the card (MAX 26; MIN 2) - only available
                                    for PCI certified merchants.
                                type:
                                  type: string
                                  description: >-
                                    The card type. For dual cards (like in Brazil), you can specify the type of card
                                    that is being processed so we can inform the providers.
                                  enum:
                                    - CREDIT
                                    - DEBIT
                            network_token:
                              type: object
                              description: >-
                                The network token object. Only available for merchants that handle the network token
                                generation/management from their side. [Direct Network token
                                guide](https://docs.y.uno/docs/security-and-compliance/network-tokens#2-use-your-existing-network-tokens)
                              properties:
                                token_data:
                                  type: object
                                  description: Specifies the token_data object.
                                  required:
                                    - number
                                    - expiration_month
                                    - expiration_year
                                    - cryptogram
                                  properties:
                                    number:
                                      type: string
                                      description: >-
                                        [Mandatory] - Token's number without any separators. (MAX 19; MIN 8) - only
                                        available for PCI certified merchants
                                    holder_name:
                                      type: string
                                      description: Cardholder's full name as it appears on the Token (MAX 26; MIN 2)
                                    expiration_month:
                                      type: string
                                      description: Token's expiration month - MM (MAX 2; MIN 2)
                                    expiration_year:
                                      type: string
                                      description: >-
                                        Token's expiration year - YYYY (MAX 4; MIN 4) - only available for PCI certified
                                        merchants
                                    cryptogram:
                                      type: string
                                      description: >-
                                        [Mandatory] - The unique cryptogram generated by the issuer for the network
                                        token in use in the transaction.
                                    electronic_commerce_indicator:
                                      type: string
                                      description: >-
                                        [Only required for certain providers] - In case the token has been authenticated
                                        by Mastercard the field should be set to 02. For Visa or not authenticated
                                        tokens, is not necessary to send the field.
                                    token_requestor_id:
                                      type: string
                                      description: '[Only required for certain providers] - Token requestor ID of the merchant'
                            three_d_secure:
                              type: object
                              description: 3DS secure information
                              properties:
                                three_d_secure_setup_id:
                                  type: string
                                  description: >-
                                    The identifier returned by [POST
                                    /v1/three-d-secure/setups](/reference/three-d-secure-setups/create-three-d-secure-setup).
                                    Required when using 3D Secure 2 (3DS2) authentication in a server-to-server
                                    integration where you collect browser and device data on your side.
                                version:
                                  type: string
                                  description: >-
                                    [Optional for 3DS integration without Yuno's JS] - Refers to the protocol version of
                                    the EMV 3-D Secure specification used. 1.0, 2.0, 2.1.0, 2.2.0, 2.2.1, 2.3.0 y 2.3.1
                                  enum:
                                    - '1.0'
                                    - '2.0'
                                    - 2.1.0
                                    - 2.2.0
                                    - 2.2.1
                                    - 2.3.0
                                    - 2.3.1
                                electronic_commerce_indicator:
                                  type: string
                                  description: >-
                                    [Optional for 3DS integration without Yuno's JS] - This field must be completed with
                                    the result of the ECI field provided by the 3d Secure service. The Electronic
                                    Commerce Indicator (ECI) informs the card issuer if the transaction was protected by
                                    a security protocol like VbV or MCSC. It is mandated by Visa and MasterCard that all
                                    3-D Secure transactions have this value populated in the authorization request.
                                    (Min: 0, max: 2).
                                cryptogram:
                                  type: string
                                  description: >-
                                    [Optional for 3DS integration without Yuno's JS] - This field must be completed with
                                    the result of the cryptogram field provided by the 3DSecure service. In Visa
                                    transactions, it represents the Cardholder Authentication Verification Value (CAVV),
                                    a cryptographic value generated by the Issuer as evidence of payment authentication
                                    during online purchase to qualify for chargeback protection. MasterCard transactions
                                    have a similar value called Accountholder Authentication Value (AAV) or the
                                    Universal Cardholder Authentication Field (UCAF). When submitting a transaction for
                                    authorization, the merchant must include the CAVV or AAV/UCAF to demonstrate that
                                    the cardholder has been authenticated. It is typically base64-encoded. (Min: 0, Max:
                                    40).
                                transaction_id:
                                  type: string
                                  description: >-
                                    [Optional for 3DS integration without Yuno's JS] - For 3DS v1: This is the Unique
                                    Transaction Identifier. It is automatically generated by the MPI. It is typically 28
                                    bytes in length and base64-encoded. Is commonly referred to as XID. (Min: 0, Max:
                                    40). For 3DS v2: Universally unique transaction identifier assigned by the DS to
                                    identify a single transaction. (Min: 36, Max:36).
                                directory_server_transaction_id:
                                  type: string
                                  description: >-
                                    [Optional for 3DS integration without Yuno's JS] - Transaction ID generated by the
                                    Mastercard directory server during authentication (MAX 255; MIN 3).
                            verify:
                              type: boolean
                              description: >-
                                Using  amount = 0 and verify = true, you can verify the user's card without authorizing
                                a real amount. If the field is not sent, we will take it as false.
                              default: false
                            acquirer_reference_number:
                              type: string
                              description: >-
                                Unique identifier assigned by the card acquirer to track the transaction through the
                                card network. Used for reconciliation and chargebacks.
                            stored_credentials:
                              type: object
                              description: >-
                                Indicates the processing type of the transaction. Refer to the <a
                                href="/docs/payment-features/stored-credentials#create-a-payment-with-processing-type"
                                class="link_stored_credential">Stored credentials</a> documentation for more
                                information.
                              properties:
                                reason:
                                  type: string
                                  description: Indicates the processing type of the transaction.
                                  enum:
                                    - CARD_ON_FILE
                                    - SUBSCRIPTION
                                    - UNSCHEDULED_CARD_ON_FILE
                                usage:
                                  type: string
                                  description: >-
                                    This field lets you indicate if this is the first time the
                                    vaulted_token/network_token is used for a payment.
                                  enum:
                                    - FIRST
                                    - USED
                                subscription_agreement_id:
                                  type: string
                                  description: >-
                                    This field lets you indicate the identification of the agreement with the customer
                                    for a subscription. Mainly for MX.(MAX 255; MIN 3). [Stored
                                    credentials](/docs/stored-credentials)
                                network_transaction_id:
                                  type: string
                                  description: >-
                                    Unique identifier assigned to a transaction by the card network. It is used to track
                                    and reference specific transactions, particularly in recurring payment scenarios,
                                    ensuring consistency and traceability across the payment lifecycle. (MAX 255; MIN
                                    3). [Stored credentials](/docs/stored-credentials)
                                transaction_link_id:
                                  type: string
                                  description: >-
                                    Mastercard transaction link ID (TLID) returned in
                                    `stored_credentials.transaction_link_id` of the initial payment. Send it on
                                    merchant-initiated payments (`usage: USED`) together with `network_transaction_id`
                                    when you keep the card in your own vault; when you charge a `vaulted_token`, Yuno
                                    reuses the stored value. (MAX 255; MIN 3). [Stored
                                    credentials](/docs/stored-credentials)
                                additional_data:
                                  type: object
                                  description: >-
                                    This structure is used to send additional information about recurrence. It's
                                    optional, and few providers require it (e.g. Mercado Pago). Contact your TAM to
                                    confirm if it's needed for your integration.
                                  properties:
                                    billing_cycles:
                                      type: object
                                      description: >-
                                        Specifies the `billing_cycles` object. Defines the number of charges associated
                                        to the subscription. If using this object, you must enter data on all fields.
                                      properties:
                                        current:
                                          type: integer
                                          example: 1
                                        total:
                                          type: integer
                                          description: The total number of billing cycles for the subscription (MIN 1).
                                          format: int32
                                    frequency:
                                      type: object
                                      description: >-
                                        Specifies the frequency type (e.g., DAY, WEEK, MONTH, YEAR) and value. Enter
                                        data on all fields if using this object.
                                      properties:
                                        type:
                                          type: string
                                          example: MONTH
                                          description: Specifies the frequency type (e.g., DAY, WEEK, MONTH, YEAR).
                                        value:
                                          type: integer
                                          description: Specifies the frequency value.
                                    availability:
                                      type: object
                                      description: >-
                                        Specifies the `availability` object. Defines a date interval based on starting
                                        and ending dates when the subscription is available to use.
                                      properties:
                                        start_at:
                                          type: string
                                          description: >-
                                            The start date that the subscription plan will be available to use. If not
                                            set, the subscription is available from the moment it is created. `start_at`
                                            becomes mandatory when using `finish_at`.
                                          format: date-time
                                        finish_at:
                                          type: string
                                          description: >-
                                            The end date until the subscription plan will be available to use. If not
                                            defined, the subscription does not have an expiration date. `finish_at`
                                            becomes mandatory when using `start_at`.
                                          format: date-time
                            external_providers_data:
                              type: array
                              description: >-
                                Array of provider-issued tokens for inline card payments. Use when a provider-issued
                                token is available for this single payment without prior enrollment. Mutually exclusive
                                with raw card data (`card_data.number`, `card_data.security_code`, etc.). Minimum 1
                                item, maximum 5. Each `(provider_id, connection_id)` pair must be unique.
                              minItems: 1
                              maxItems: 5
                              items:
                                type: object
                                required:
                                  - connection_id
                                  - provider_id
                                  - provider_token
                                properties:
                                  connection_id:
                                    type: string
                                    format: uuid
                                    description: The Yuno connection / account-integration identifier that owns the token.
                                  provider_id:
                                    type: string
                                    description: Provider identifier (e.g., `ADYEN`, `CHECKOUT`).
                                  provider_token:
                                    type: string
                                    description: The token issued by the provider for this card.
                        ticket:
                          type: object
                          description: Specifies the ticket object
                          properties:
                            benefit_type:
                              type: string
                              description: Specifies the user's benefit type for Pluxee Chile.
                              enum:
                                - PRIVATE
                                - JUNAEB
                            expires_at:
                              type: string
                              description: >-
                                Payment methods expiration date. "yyyy-MM-dd HH:mm:ss.SSSz". Only available when the
                                provider associated to the payment supports it. Please feel free to reach out to your
                                technical account manager for further questions.
                              format: date-time
                        wallet:
                          type: object
                          description: Specifies the wallet object
                          properties:
                            payment_token:
                              type: string
                              description: >-
                                Complete wallet response payload as a JSON string, exactly as returned by the wallet
                                provider
                            expires_at:
                              type: string
                              description: >-
                                Payment methods expiration date. "yyyy-MM-dd HH:mm:ss.SSSz". Only available when the
                                provider associated to the payment supports it. Please feel free to reach out to your
                                technical account manager for further questions.
                              format: date-time
                            capture:
                              type: boolean
                              description: >-
                                Indicates whether the wallet payment should be captured immediately (true) or only
                                authorized for later capture (false)
                            soft_descriptor:
                              type: string
                              description: >-
                                Statement descriptor passed per transaction. It is presented on the cardholder's bank
                                statement (MAX 255). Apple Pay / Google Pay rebills ride the card / network-token rail,
                                so the descriptor is applied the same way as for cards. Behavior and length limits vary
                                by provider. See [Statement descriptor on recurring
                                payments](/docs/payment-features/subscriptions/soft-descriptor).
                            domain_url:
                              type: string
                              description: Registered domain used during the wallet flow. (MAX 255; MIN 3).
                            cryptogram:
                              type: string
                              description: Cryptogram for direct integrations with card wallets (MAX 526; MIN 3).
                            verify:
                              type: boolean
                              description: >-
                                Enables card verification flow through the wallet. When true, a verification transaction
                                (e.g., zero-dollar auth) is performed instead of a regular payment.
                            stored_credentials:
                              type: object
                              description: >-
                                Indicates the processing type of the transaction. Refer to the <a
                                href="/docs/payment-features/stored-credentials#create-a-payment-with-processing-type"
                                class="link_stored_credential">Stored credentials</a> documentation for more
                                information. For an Apple Pay or Google Pay first payment with vault_on_success, send
                                stored_credentials here (usage FIRST); later charges on the resulting vaulted_token use
                                detail.card.stored_credentials.
                              properties:
                                reason:
                                  type: string
                                  description: Indicates the processing type of the transaction.
                                  enum:
                                    - CARD_ON_FILE
                                    - SUBSCRIPTION
                                    - UNSCHEDULED_CARD_ON_FILE
                                usage:
                                  type: string
                                  description: >-
                                    This field lets you indicate if this is the first time the
                                    vaulted_token/network_token is used for a payment.
                                  enum:
                                    - FIRST
                                    - USED
                                subscription_agreement_id:
                                  type: string
                                  description: >-
                                    This field lets you indicate the identification of the agreement with the customer
                                    for a subscription. Mainly for MX.(MAX 255; MIN 3). [Stored
                                    credentials](/docs/stored-credentials)
                                network_transaction_id:
                                  type: string
                                  description: >-
                                    Unique identifier assigned to a transaction by the card network. It is used to track
                                    and reference specific transactions, particularly in recurring payment scenarios,
                                    ensuring consistency and traceability across the payment lifecycle. (MAX 255; MIN
                                    3). [Stored credentials](/docs/stored-credentials)
                                transaction_link_id:
                                  type: string
                                  description: >-
                                    Mastercard transaction link ID (TLID) returned in
                                    `stored_credentials.transaction_link_id` of the initial payment. Send it on
                                    merchant-initiated payments (`usage: USED`) together with `network_transaction_id`
                                    when you keep the card in your own vault; when you charge a `vaulted_token`, Yuno
                                    reuses the stored value. (MAX 255; MIN 3). [Stored
                                    credentials](/docs/stored-credentials)
                                additional_data:
                                  type: object
                                  description: >-
                                    This structure is used to send additional information about recurrence. It's
                                    optional, and few providers require it (e.g. Mercado Pago). Contact your TAM to
                                    confirm if it's needed for your integration.
                                  properties:
                                    billing_cycles:
                                      type: object
                                      description: >-
                                        Specifies the `billing_cycles` object. Defines the number of charges associated
                                        to the subscription. If using this object, you must enter data on all fields.
                                      properties:
                                        current:
                                          type: integer
                                          example: 1
                                        total:
                                          type: integer
                                          description: The total number of billing cycles for the subscription (MIN 1).
                                          format: int32
                                    frequency:
                                      type: object
                                      description: >-
                                        Specifies the frequency type (e.g., DAY, WEEK, MONTH, YEAR) and value. Enter
                                        data on all fields if using this object.
                                      properties:
                                        type:
                                          type: string
                                          example: MONTH
                                          description: Specifies the frequency type (e.g., DAY, WEEK, MONTH, YEAR).
                                        value:
                                          type: string
                                          description: Specifies the frequency value.
                                    availability:
                                      type: object
                                      description: >-
                                        Specifies the `availability` object. Defines a date interval based on starting
                                        and ending dates when the subscription is available to use.
                                      properties:
                                        start_at:
                                          type: string
                                          description: >-
                                            The start date that the subscription plan will be available to use. If not
                                            set, the subscription is available from the moment it is created. `start_at`
                                            becomes mandatory when using `finish_at`.
                                          format: date-time
                                        finish_at:
                                          type: string
                                          description: >-
                                            The end date until the subscription plan will be available to use. If not
                                            defined, the subscription does not have an expiration date. `finish_at`
                                            becomes mandatory when using `start_at`.
                                          format: date-time
                            card_data:
                              type: object
                              description: Card information provided by the merchant for the wallet payment.
                              properties:
                                lfd:
                                  type: string
                                  description: >-
                                    Last four digits of the cardholder's real card (FPAN), exactly 4 numeric digits.
                                    Google Pay server-to-server only: for CRYPTOGRAM_3DS device tokens the encrypted
                                    token decrypts to the DPAN, so send the value from
                                    paymentMethodData.info.cardDetails in Google's response and Yuno uses it in place of
                                    the DPAN-derived last four. Ignored for PAN_ONLY credentials and for other wallets.
                                    See [Card last four digits for device
                                    tokens](/docs/wallets/google-pay/google-pay-direct-integration#card-last-four-digits-for-device-tokens).
                        bank_transfer:
                          type: object
                          description: Specifies the bank transfer object.
                          properties:
                            pre_debit_notification_id:
                              type: string
                              format: uuid
                              description: >-
                                ID of the pre-debit notification that precedes this recurring debit, as returned by the
                                Create pre-debit notification endpoint. Required for UPI Autopay recurring debits (NPCI
                                compliance). Yuno validates that the notification exists, belongs to your account, and
                                is in SENT status; otherwise the payment is rejected with
                                PRE_DEBIT_NOTIFICATION_NOT_FOUND or PRE_DEBIT_NOTIFICATION_NOT_SENT (422).
                            soft_descriptor:
                              type: string
                              description: >-
                                Human-readable reference associated with the bank transfer. Commonly used for
                                reconciliation and operational purposes (MAX 255; MIN 1).
                            expires_at:
                              type: string
                              description: >-
                                Payment methods expiration date. "yyyy-MM-dd HH:mm:ss.SSSz". Only available when the
                                provider associated to the payment supports it. Please feel free to reach out to your
                                technical account manager for further questions.
                              format: date-time
                            account_type:
                              type: string
                              description: Type of the bank account (MAX 255; MIN 3). CHECKINGS/SAVINGS
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_account:
                              type: string
                              description: The number of the bank account (MAX 255; MIN 3).
                              minLength: 3
                              maxLength: 255
                            bank_id:
                              type: string
                              description: >-
                                Identifier of the bank selected for the transfer when the provider requires choosing
                                one.
                            routing_number:
                              type: string
                              description: The routing_number of the bank account (MAX 255; MIN 3).
                              minLength: 3
                              maxLength: 255
                            code:
                              type: string
                              description: The beneficiary's specific financial institution code (MAX 8).
                            branch:
                              type: string
                              description: The beneficiary's specific financial institution branch (MAX 8).
                            branch_digit:
                              type: string
                              description: The beneficiary's specific financial institution branch digit (MAX 2).
                            beneficiary_name:
                              type: string
                              description: Name of the account holder (MAX 255; MIN 3).
                              minLength: 3
                              maxLength: 255
                            beneficiary_type:
                              type: string
                              description: Type of the beneficiary (MAX 255; MIN 3).
                              enum:
                                - INDIVIDUAL
                                - ENTITY
                            third_party_token_id:
                              type: string
                              description: Tokenized ID of the destination account (MAX 255; MIN 3).
                            account_holder_type:
                              type: string
                              description: Bank account holder type (for ACH payments).
                              enum:
                                - INDIVIDUAL
                                - COMPANY
                            stored_credentials:
                              type: object
                              description: >-
                                Indicates the processing type of the transaction. Refer to the [stored
                                credentials](/docs/payment-features/stored-credentials#create-a-payment-with-processing-type)
                                documentation for more information.
                              properties:
                                reason:
                                  type: string
                                  description: Indicates the processing type of the transaction.
                                  enum:
                                    - SUBSCRIPTION
                                usage:
                                  type: string
                                  description: >-
                                    This field lets you indicate if this is the first time the
                                    vaulted_token/network_token is used for a payment.
                                  enum:
                                    - FIRST
                                    - USED
                                subscription_agreement_id:
                                  type: string
                                  description: >-
                                    This field lets you indicate the identification of the agreement with the customer
                                    for a subscription (MAX 255; MIN 3). See [Stored
                                    credentials](/docs/stored-credentials) for more info.
                                additional_data:
                                  type: object
                                  properties:
                                    billing_cycles:
                                      type: object
                                      properties:
                                        current:
                                          type: string
                                          description: Current billing cycles for the subscription.
                                        total:
                                          type: string
                                          description: The total number of billing cycles for the subscription.
                                      description: >-
                                        Defines the number of charges associated to the subscription. If using this
                                        object, you must enter data on all fields.
                                    frequency:
                                      type: object
                                      properties:
                                        type:
                                          type: string
                                          description: Specifies the frequency type (e.g., DAY, WEEK, MONTH, YEAR).
                                        value:
                                          type: string
                                          description: Specifies the frequency value.
                                      description: >-
                                        Specifies the frequency type (e.g., DAY, WEEK, MONTH, YEAR) and value. Enter
                                        data on all fields if using this object.
                                    availability:
                                      type: object
                                      properties:
                                        start_at:
                                          type: string
                                          description: >-
                                            The start date that the subscription plan will be available to use. If not
                                            set, the subscription is available from the moment it is created. `start_at`
                                            becomes mandatory when using `finish_at`.
                                        finish_at:
                                          type: string
                                          description: >-
                                            The end date until the subscription plan will be available to use. If not
                                            defined, the subscription does not have an expiration date. `finish_at`
                                            becomes mandatory when using `start_at`.
                                      description: >-
                                        Defines a date interval based on starting and ending dates when the subscription
                                        is available to use.
                                  description: This object is used to send additional information about recurrence.
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
                        strong_customer_authentication_exemptions:
                          type: array
                          description: >-
                            Array of Strong Customer Authentication (SCA) exemptions that can be applied to the
                            transaction to reduce friction while maintaining security compliance.
                          items:
                            type: string
                            enum:
                              - LOW_VALUE
                              - TRANSACTION_RISK_ANALYSIS
                              - STRONG_CUSTOMER_AUTHENTICATION
                              - OUT_OF_SCOPE
                              - SECURE_CORPORATE
                              - TRUSTED_BENEFICIARY
                              - RECURRING_PAYMENT
                              - NO_PREFERENCE
                              - TRANSACTION_RISK_ASSESSMENT
                    vault_on_success:
                      type: boolean
                      description: Flag to enroll the card after a successful payment (requires `customer_payer.id`).
                    account_updater:
                      type: boolean
                      description: >-
                        Per-card control for Card Account Updater. When set to `false`, the card enrolled or used in
                        this payment is excluded from Card Account Updater and will not receive automatic card-detail
                        updates. When omitted, the card follows your account's Account Updater configuration.
                    otp:
                      type: object
                      properties:
                        is_required:
                          type: boolean
                          description: Specifies if a one time password is required in the flow
                          default: 'false'
                      description: Specifies the OTP object.
                  if:
                    properties:
                      type:
                        enum:
                          - NU_PAY
                          - NU_PAY_ENROLLMENT
                          - APPLE_PAY
                          - GOOGLE_PAY
                  then:
                    required:
                      - type
                external_subscription:
                  type: object
                  description: >-
                    Links this payment to a subscription managed in an external billing platform. When present on an
                    approved payment with a vaulted card, Yuno takes over the subscription's recurring charges. Cannot
                    be sent together with the `subscription` object (returns `INVALID_REQUEST`). The object is returned
                    in the payment response, in Retrieve Payment and in payment webhooks.
                  required:
                    - id
                  properties:
                    id:
                      type: string
                      description: >-
                        The subscription's identifier in the external billing platform (for example `sub_...` for Stripe
                        Billing). Required when the object is present. (MIN 3; MAX 255)
                    customer_id:
                      type: string
                      description: >-
                        The customer's identifier in the external billing platform that owns the subscription (for
                        example `cus_...`). Recommended; resolved from the subscription when omitted.
                external_invoice:
                  type: object
                  description: >-
                    Links this payment to an invoice of an external billing platform, so that a payment you collect with
                    Yuno pays that invoice (for example a balance top-up). Yuno checks the invoice before it charges.
                    When the payment is approved, Yuno reports it to the invoice; when it is declined, Yuno records a
                    failed attempt and the invoice stays open. A smaller amount than the amount remaining is accepted on
                    one-off invoices; invoices of subscriptions that Stripe charges automatically need the exact amount.
                    Cannot be sent together with `external_subscription` or `subscription` (returns `INVALID_REQUEST`).
                    The object is returned in the payment response, in Retrieve Payment and in payment webhooks. See
                    [Pay a Stripe invoice (top-ups)](/docs/payment-features/subscriptions/stripe-billing-top-ups) for
                    the amount rules and the error codes.
                  required:
                    - id
                  properties:
                    id:
                      type: string
                      description: >-
                        The invoice's identifier in the external billing platform (for example `in_...` for Stripe
                        Billing). Required when the object is present. (MIN 3; MAX 255)
                    customer_id:
                      type: string
                      description: >-
                        The customer's identifier in the external billing platform that owns the invoice (for example
                        `cus_...`). Optional. When you send it, it must be the invoice's customer. (MIN 3; MAX 255 when
                        present)
                subscription:
                  type: object
                  description: >-
                    Specifies the subscription object. Send exactly one of three shapes: inline terms (`frequency`,
                    `availability` and `amount`) to create a subscription, `plan_id` to create one from a plan, or `id`
                    to charge an existing subscription. See [Start a subscription with the first
                    payment](/docs/payment-features/subscriptions/start-with-payment).
                  properties:
                    plan_id:
                      type: string
                      format: uuid
                      description: >-
                        Identifier (UUID v4) of an active plan in your account. The subscription takes its price,
                        cadence and trial from the plan, and the payment `amount` must equal the plan's price for the
                        payment `country`. Retries are not set in this call: the subscription uses the plan's retry
                        configuration. Cannot be sent with `id`, `amount`, `frequency.type`, `frequency.value`,
                        `billing_date`, `trial`, `trial_period` or `phases` (`400 INVALID_REQUEST`). See [Create a
                        subscription from a
                        plan](/docs/payment-features/subscriptions/start-with-payment#create-a-subscription-from-a-plan).
                    frequency:
                      type: object
                      description: >-
                        Specifies the frequency object. Required to create a subscription with inline terms. With
                        `plan_id`, send only `execution` (defaults to `YUNO`); the plan owns `type` and `value`.
                      properties:
                        type:
                          type: string
                          description: >-
                            Frequency of the subscription payment. Required with inline terms; cannot be sent with
                            `plan_id`. Pix Automático accepts one period of `WEEK`, `MONTH`, `QUARTER`, `HALF_YEAR` or
                            `YEAR`, always with `value` 1.
                          enum:
                            - WEEK
                            - MONTH
                            - QUARTER
                            - HALF_YEAR
                            - YEAR
                        value:
                          type: integer
                          description: >-
                            Number of `type` units between charges. Always send it when creating a subscription —
                            omitting it is not rejected up front, the payment is charged and the subscription creation
                            then fails. Whole numbers only.
                        execution:
                          type: string
                          description: >-
                            Indicates if the payment is made by Yuno or the merchant. Required with inline terms;
                            defaults to `YUNO` with `plan_id`.
                          enum:
                            - YUNO
                            - MERCHANT
                    availability:
                      type: object
                      description: >-
                        Specifies the availability object. Required to create a subscription with inline terms; optional
                        with `plan_id`.
                      properties:
                        start_at:
                          type: string
                          description: >-
                            Start date of the subscription in UTC time ([ISO
                            8601](https://en.wikipedia.org/wiki/ISO_8601), MAX 27; MIN 27).
                          format: date-time
                        finish_at:
                          type: string
                          description: >-
                            End date of the subscription in UTC time ([ISO
                            8601](https://en.wikipedia.org/wiki/ISO_8601), MAX 27; MIN 27).
                          format: date-time
                    amount:
                      type: object
                      description: >-
                        Specifies the amount object. Required to create a subscription with inline terms. Cannot be sent
                        with `plan_id`.
                      required:
                        - value
                        - currency
                        - type
                      properties:
                        value:
                          type: number
                          description: >-
                            The amount of each recurring charge. When `type` is `FIXED` this must equal the payment's
                            `amount.value`, otherwise the request is rejected with `400` before any charge.
                          format: float
                        currency:
                          type: string
                          description: >-
                            The currency used to make the payment. Must match the payment's `amount.currency`, otherwise
                            the request is rejected with `400` before any charge. For a full list of currency codes, see
                            [Country reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                        type:
                          type: string
                          description: Type of the subscription payment
                          enum:
                            - FIXED
                            - VARIABLE
                    billing_cycles:
                      type: object
                      description: Specifies the billing cycles object (used when creating a payment along with the subscription).
                      properties:
                        total:
                          type: integer
                          minimum: 1
                          description: >-
                            Total number of cycles to bill before the subscription completes. With inline terms it is
                            validated after the charge — a value lower than 1 leaves the payment charged and the
                            subscription not created. With `plan_id`, a value lower than 1 is rejected up front with
                            `400 INVALID_REQUEST`.
                    id:
                      type: string
                      description: >-
                        Identifier of an existing subscription to charge. Omit it when creating a new one, and never
                        send it with `plan_id`.
                    billing_date:
                      type: object
                      description: >-
                        Specifies the billing date object (used when creating a payment for an existing subscription).
                        Ignored when a new subscription is created.
                      properties:
                        type:
                          type: string
                          description: Type of the billing date
                        day:
                          type: integer
                          minimum: 1
                          maximum: 31
                          description: Day of the month when the subscription payment is made
                    metadata:
                      type: array
                      description: >-
                        Metadata stored on the subscription. Read only with `plan_id`; ignored with inline terms. Same
                        format as on Create Subscription.
                      items:
                        properties:
                          key:
                            type: string
                            description: The metadata key (MAX 48).
                          value:
                            type: string
                            description: The metadata key value (MAX 512).
                        type: object
                  if:
                    not:
                      anyOf:
                        - required:
                            - plan_id
                        - required:
                            - id
                  then:
                    required:
                      - frequency
                      - availability
                      - amount
                    properties:
                      frequency:
                        required:
                          - type
                          - execution
                callback_url:
                  type: string
                  description: >-
                    The URL where to redirect the customer after the payment. Only required for DIRECT integrations that
                    have a redirection (MAX 526; MIN 3).
                fraud_screening:
                  type: object
                  description: Fraud screening object.
                  properties:
                    stand_alone:
                      type: boolean
                      description: >-
                        Optional field to send in the payment indicating if the fraud screening is stand alone, meaning
                        that a payment will not be excecuted after the fraud screening is made. You can use this field
                        while creating your CARD route.
                split_marketplace:
                  type: array
                  description: Split marketplace array of objects
                  items:
                    properties:
                      recipient_id:
                        type: string
                        description: >-
                          The unique identifier of the recipient in the Yuno system. <br/> You must provide the
                          [`recipient_id`](/reference/create-recipient-1) (Yuno-generated) or the
                          `provider_recipient_id` (external provider's ID) when creating a payment.
                      provider_recipient_id:
                        type: string
                        description: >-
                          The recipient ID provided by the external payment provider, if applicable. <br/> You must
                          provide the `provider_recipient_id` or the [`recipient_id`](/reference/create-recipients)
                          (Yuno-generated) when creating a payment.
                      description:
                        type: string
                        description: Description for the split. (MAX 255; MIN 3).
                      type:
                        type: string
                        description: The type of split. `recipient_id` is mandatory for `PURCHASE` and `MARKETPLACE`.
                        enum:
                          - PURCHASE
                          - PAYMENTFEE
                          - VAT
                          - COMMISSION
                          - MARKETPLACE
                          - SHIPPING
                      merchant_reference:
                        type: string
                        description: Optional unique identifier for the split transaction (MAX 255; MIN 3).
                      recipient_type:
                        type: string
                        description: The type of recipient for the provider.
                        enum:
                          - MEAL
                          - FOOD
                          - MULTI_BENEFITS
                          - FLEET
                        example: MEAL
                      amount:
                        type: object
                        description: >-
                          Defines the amount of the split. This field is optional if the recipient has a
                          `split_configuration` defined, as the amount will be calculated automatically.
                        required:
                          - value
                          - currency
                        properties:
                          value:
                            type: number
                            description: The split amount (multiple of 0.0001).
                            format: float
                          currency:
                            type: string
                            description: >-
                              The currency used to make the payment. For a full list of currency codes, see [Country
                              reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                      liability:
                        type: object
                        description: Optional information regarding the recipient's liability for fees and chargebacks.
                        properties:
                          processing_fee:
                            type: string
                            description: Indicates who will be charged the transaction fee.
                            enum:
                              - MERCHANT
                              - RECIPIENT
                              - SHARED
                          chargebacks:
                            type: boolean
                            description: The recipient is responsible in case of a chargeback.
                    required:
                      - type
                    type: object
                metadata:
                  type: array
                  description: >-
                    Custom key–value tags to track this payment or add context (e.g., order_id, invoice, campaign). Up
                    to 120 items.
                  items:
                    properties:
                      key:
                        type: string
                        description: 'The metadata key (MAX 48. Value: MIN:1, MAX:48). **[Case Sensitive]**'
                      value:
                        type: string
                        description: 'The metadata key value (MAX 512. Value: MIN:1, MAX:512). **[Case Sensitive]**'
                    required:
                      - key
                      - value
                    type: object
            examples:
              Example - Placeholders:
                value:
                  description: Test Payment
                  account_id: <account_id>
                  merchant_order_id: AA01
                  merchant_reference: Test_AAB
                  country: US
                  additional_data:
                    airline:
                      legs:
                        - arrival_airport: AMS
                          base_fare: 200
                          base_fare_currency: USD
                          carrier_code: KL
                          carrier_name: KLM Royal Dutch Airlines
                          departure_airport: EZE
                          departure_airport_timezone: '-03:00'
                          departure_datetime: '2024-07-03T05:00:00'
                          arrival_datetime: '2024-08-03T05:00:00'
                          fare_basis_code: HL7LNR
                          fare_class_code: FR
                          flight_number: '842'
                          stopover_code: s
                      passengers:
                        - country: US
                          date_of_birth: '1984-05-01'
                          document:
                            document_number: '123456789'
                            document_type: SSN
                            country: US
                          phone:
                            country_code: '1'
                            number: '5551234567'
                          first_name: John
                          last_name: Doe
                          loyalty_number: '123456'
                          loyalty_tier: GOLD
                          middle_name: Theodore
                          nationality: US
                          type: s
                      pnr: 1P-2UUGJW
                      tickets:
                        - ticket_number: '123456'
                          restricted: false
                          total_fare_amount: 80
                          total_tax_amount: 22
                          total_fee_amount: 14
                          issue: null
                          e_ticket: false
                    order:
                      fee_amount: 100
                      tip_amount: 50
                      items:
                        - brand: XYZ
                          category: Clothes
                          id: 123AD
                          manufacture_part_number: XYZ123456
                          image_url: https://cdn.example.com/img/skirt-01.jpg
                          name: Skirt
                          quantity: 1
                          sku_code: '8765432109'
                          unit_amount: 4800
                      shipping_amount: 50
                    seller_details:
                      name: Test_company
                      email: testcompany@example.com
                      reference: AAOO
                      website: www.testcompany.com
                      industry: ELECTRONICS
                      merchant_category_code: TTRR
                      country: US
                      document:
                        document_number: '123456789'
                        document_type: EIN
                      phone:
                        country_code: '1'
                        number: '5551234567'
                  amount:
                    currency: USD
                    value: 5000
                  checkout:
                    session: <checkout_session>
                  customer_payer:
                    id: <customer_id>
                    billing_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 502
                      city: New York
                      country: US
                      state: NY
                      zip_code: '10001'
                      neighborhood: Midtown
                    browser_info:
                      accept_header: 'true'
                      color_depth: '24'
                      javascript_enabled: true
                      language: en-US
                      screen_height: '2048'
                      screen_width: '1152'
                      user_agent: >-
                        Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_2) AppleWebKit/601.3.9 (KHTML, like Gecko)
                        Version/9.0.2 Safari/601.3.9
                    date_of_birth: '1990-02-28'
                    device_fingerprints:
                      - provider_id: CLEARSALE
                        id: hi88287gbd8d7d782ge287gbd8d7d78
                    document:
                      document_type: SSN
                      document_number: '123456789'
                    email: johndoe@example.com
                    first_name: John
                    gender: MALE
                    ip_address: 192.168.123.167
                    last_name: Doe
                    merchant_customer_id: example00234
                    merchant_customer_created_at: '2014-05-12T13:05:00Z'
                    nationality: US
                    phone:
                      country_code: '1'
                      number: '5551234567'
                    shipping_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 502
                      city: New York
                      country: US
                      state: NY
                      zip_code: '10001'
                      neighborhood: Midtown
                  payment_method:
                    token: <one_time_token>
                  metadata:
                    - key: ID
                      value: SD00
                  callback_url: www.example.com
              Bank Transfer with additional fields:
                value:
                  account_id: <account_id>
                  amount:
                    currency: BRL
                    value: 160
                  customer_payer:
                    id: <customer_id>
                  workflow: DIRECT
                  payment_method:
                    type: PIX
                    detail:
                      bank_transfer:
                        code: PIX2
                        branch: PIX2
                        branch_digit: '1'
                        country: BRL
                        account:
                          number: '646180142000000006'
                          digit: '123456'
                          type: SAVINGS
                        bank_account_mask_number: '****6789'
                        mandate:
                          id: MND-123
                          info: free text mandate info
                          received_status: RECEIVED
                          existing_status: ACTIVE
                          created_at: '2026-07-09T00:00:00Z'
                          updated_at: '2026-07-09T00:00:00Z'
                  merchant_order_id: 40f93981-7bef-4ca4-a8a5-8978fe16890c
                  country: CO
                  description: test description
              Voucher payment:
                value:
                  account_id: 48d47836-0c4b-45af-b6b8-098fd17a8fa2
                  description: dlocal
                  country: BR
                  merchant_order_id: '12271562679'
                  amount:
                    value: 26.9
                    currency: BRL
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        capture: true
                        verify: false
                        card_data:
                          number: '5067555612342011'
                          expiration_month: 9
                          expiration_year: 33
                          security_code: '123'
                          holder_name: MARIANA SORRENTINO
                  additional_data:
                    seller_details:
                      reference: '53568972000143'
                      merchant_category_code: '5814'
              Card - With card details:
                value:
                  country: US
                  amount:
                    currency: USD
                    value: '20000'
                  customer_payer:
                    id: <customer_id>
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  payment_method:
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          expiration_month: 11
                          expiration_year: 28
                          security_code: '123'
                          holder_name: John Doe
                    type: CARD
                  account_id: <account_id>
                  description: Payment with card details
                  merchant_order_id: '000023'
                  workflow: DIRECT
              Card – Capture and cancel:
                value:
                  country: US
                  amount:
                    currency: USD
                    value: '20000'
                  customer_payer:
                    merchant_customer_validations:
                      account_is_verified: true
                      email_is_verified: true
                      phone_is_verified: true
                    id: <customer_id>
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  workflow: DIRECT
                  payment_method:
                    detail:
                      card:
                        capture: false
                        delayed_capture_settings:
                          delay: P20D
                          simplified_mode: true
                        delayed_cancel_settings:
                          delay: P40D
                          simplified_mode: true
                        card_data:
                          number: '4111111111111111'
                          expiration_month: 11
                          expiration_year: 28
                          security_code: '123'
                          holder_name: John Doe
                        verify: false
                    type: CARD
                  account_id: <account_id>
                  description: Payment with card details
                  merchant_order_id: '000023'
              Card - With airline data:
                value:
                  additional_data:
                    airline:
                      legs:
                        - departure_airport: LAX
                          departure_datetime: '2024-07-03T05:00:00'
                          departure_airport_timezone: GMT-08
                          arrival_airport: JFK
                          carrier_code: AA
                          carrier_name: American Airlines
                          flight_number: AA100
                          fare_basis_code: 'Y'
                          fare_class_code: S
                          base_fare: 500
                          base_fare_currency: USD
                          stopover_code: O
                      passengers:
                        - document:
                            document_number: '123456789'
                            document_type: PASSPORT
                            country: US
                          first_name: John
                          last_name: Doe
                          middle_name: Stephen
                          type: A
                          date_of_birth: '1998-01-01'
                          nationality: US
                          loyalty_number: '79250001'
                          loyalty_tier: DIAMOND
                          email: john.doe@example.com
                          phone:
                            country_code: '1'
                            number: '5551234567'
                      tickets:
                        - issue:
                            carrier_prefix_code: '001'
                            travel_agent_code: A12345
                            travel_agent_name: Best Travel Agency
                            date: '2023-10-31T01:30:00.000-08:00'
                            address: 123 Main St
                            city: Los Angeles
                            country: US
                            zip_code: '90001'
                          ticket_number: AA123456
                          e_ticket: true
                          restricted: false
                          total_fare_amount: 700
                          total_tax_amount: 100
                          total_fee_amount: 50
                      pnr: DEF456
                  country: US
                  amount:
                    currency: USD
                    value: '2000'
                  customer_payer:
                    document:
                      document_number: '987654321'
                      document_type: DRIVER_LICENSE
                    first_name: John
                    last_name: Doe
                    gender: M
                    date_of_birth: '1998-01-01'
                    email: johndoe@example.com
                    nationality: US
                    ip_address: 192.0.0.1
                  payment_method:
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          expiration_month: 11
                          expiration_year: 28
                          security_code: '123'
                          holder_name: John Doe
                    type: CARD
                  account_id: <account_id>
                  description: Flight Booking Payment
                  merchant_order_id: <merchant_order_id>
                  merchant_reference: reference-001
                  workflow: DIRECT
              Card - With 3DS direct:
                value:
                  description: Card payment with 3DS
                  account_id: <account_id>
                  merchant_order_id: '0000022'
                  merchant_reference: 29ZVMO
                  country: US
                  amount:
                    currency: USD
                    value: 100
                  customer_payer:
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                    ip_address: 192.168.1.1
                    document:
                      document_type: PAS
                      document_number: '123456789'
                    billing_address:
                      address_line_1: 1295 Charleston Road
                      address_line_2: ''
                      city: Mountain View
                      country: US
                      zip_code: '94043'
                      state: CA
                  callback_url: https://www.y.uno
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        capture: false
                        three_d_secure:
                          three_d_secure_setup_id: 005219f5-babf-4598-bc52-5dd49c19ba7a
                        card_data:
                          number: '4000000000001026'
                          holder_name: John Doe
                          expiration_month: 1
                          expiration_year: 26
                          security_code: '123'
              Card - With customer, billing, and shipping details:
                value:
                  description: Card payment with customer, billing and shipping details
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 5000
                  customer_payer:
                    merchant_customer_id: '1690160581'
                    first_name: John
                    last_name: Doe
                    gender: M
                    date_of_birth: '1990-02-28'
                    email: johndoe@example.com
                    nationality: US
                    ip_address: null
                    document:
                      document_type: SSN
                      document_number: 123-45-6789
                    phone:
                      number: '1234567890'
                      country_code: '1'
                    billing_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 502
                      country: US
                      state: CA
                      city: Los Angeles
                      zip_code: '90001'
                    shipping_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 502
                      country: US
                      state: CA
                      city: Los Angeles
                      zip_code: '90001'
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          holder_name: John Doe
                          expiration_month: 10
                          expiration_year: 26
                          security_code: '456'
              Card - With customer, billing, shipping and order items:
                value:
                  description: Card payment with customer, billing, shipping and order items
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 5000
                  additional_data:
                    order:
                      fee_amount: 0
                      items:
                        - brand: XYZ
                          category: Clothes
                          id: 123AD
                          manufacture_part_number: XYZ123456
                          image_url: https://cdn.example.com/img/skirt-01.jpg
                          name: Skirt
                          quantity: 1
                          sku_code: '8765432109'
                          unit_amount: 5000
                      shipping_amount: 0
                  customer_payer:
                    merchant_customer_id: <customer_id>
                    first_name: John
                    last_name: Doe
                    gender: M
                    date_of_birth: '1990-02-28'
                    email: johndoe@example.com
                    nationality: US
                    ip_address: null
                    document:
                      document_type: SSN
                      document_number: 123-45-6789
                    phone:
                      number: '1234567890'
                      country_code: '1'
                    billing_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 502
                      country: US
                      state: CA
                      city: Los Angeles
                      zip_code: '90001'
                    shipping_address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 502
                      country: US
                      state: CA
                      city: Los Angeles
                      zip_code: '90001'
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          holder_name: John Doe
                          expiration_month: 10
                          expiration_year: 26
                          security_code: '456'
              Card - With installments:
                value:
                  description: Card payment with installments
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 5000
                  customer_payer:
                    merchant_customer_id: <customer_id>
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          holder_name: John Doe
                          expiration_month: 10
                          expiration_year: 26
                          security_code: '456'
                        installments: 3
              Card - With authorization:
                value:
                  description: Card payment with authorization
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 5000
                  customer_payer:
                    merchant_customer_id: '1690161049'
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          holder_name: John Doe
                          expiration_month: 10
                          expiration_year: 26
                          security_code: '456'
                        capture: false
              Card - With device fingerprint:
                value:
                  description: Card payment with device fingerprint
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 5000
                  customer_payer:
                    merchant_customer_id: '1690161049'
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                    device_fingerprints:
                      - provider_id: CLEARSALE
                        id: hi88287gbd8d7d782ge287gbd8d7d78
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          holder_name: John Doe
                          expiration_month: 10
                          expiration_year: 26
                          security_code: '456'
              Card - With vault on success:
                value:
                  description: Card payment with vault on success
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 5000
                  customer_payer:
                    id: <customer_id>
                    merchant_customer_id: '1690161049'
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    vault_on_success: true
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          holder_name: John Doe
                          expiration_month: 10
                          expiration_year: 26
                          security_code: '456'
              Card - With vaulted token:
                value:
                  description: Card payment with vaulted token
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 5000
                  customer_payer:
                    id: <customer_id>
                    merchant_customer_id: '1690161049'
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    vaulted_token: <vaulted_token>
              Alternative payment method:
                value:
                  description: Payment with alternative method
                  account_id: <account_id>
                  merchant_order_id: '0000022'
                  country: US
                  amount:
                    currency: USD
                    value: 52000
                  customer_payer:
                    merchant_customer_id: '12367482'
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  payment_method:
                    type: CASH
                  workflow: REDIRECT
                  callback_url: www.example.com
              Card - With shipping, fee and tip amount:
                value:
                  additional_data:
                    order:
                      fee_amount: 500
                      shipping_amount: 100
                      tip_amount: 50
                      items:
                        - id: 123AD
                          name: Skirt
                          quantity: 1
                          unit_amount: 5000
                          category: Clothes
                          brand: XYZ
                          sku_code: '8765432109'
                          manufacture_part_number: XYZ123456
                          image_url: https://cdn.example.com/img/skirt-01.jpg
                    airline: null
                    seller_details: null
                  country: US
                  amount:
                    currency: USD
                    value: 100
                  customer_payer:
                    id: <customer_id>
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  checkout:
                    session: <checkout_session>
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        card_data:
                          number: '4111111111111111'
                          holder_name: John Doe
                          expiration_month: 10
                          expiration_year: 26
                          security_code: '456'
                        verify: false
                  description: Test Cards
                  account_id: <account_id>
                  merchant_order_id: '0000022'
                  merchant_reference: Payment Test 001
              Wallet - Direct:
                value:
                  country: US
                  amount:
                    currency: USD
                    value: 100
                  customer_payer:
                    merchant_customer_validations:
                      account_is_verified: true
                      email_is_verified: true
                      phone_is_verified: true
                  workflow: DIRECT
                  payment_method:
                    detail:
                      wallet:
                        verify: false
                    type: APPLE_PAY
                  account_id: ''
                  description: ApplePaytest
                  merchant_order_id: TEST01
              Wallet - Google Pay with card last four:
                summary: Wallet - Google Pay device token with card last four
                value:
                  description: Google Pay server-to-server payment with merchant-provided card last four
                  account_id: <account_id>
                  merchant_order_id: '0000024'
                  country: US
                  amount:
                    currency: USD
                    value: 5000
                  customer_payer:
                    email: johndoe@example.com
                  workflow: DIRECT
                  payment_method:
                    type: GOOGLE_PAY
                    detail:
                      wallet:
                        payment_token: '{"signature":"...","intermediateSigningKey":{...},"protocolVersion":"ECv2","signedMessage":"..."}'
                        card_data:
                          lfd: '1515'
              Split marketplace:
                value:
                  description: Split marketplace payment
                  account_id: <account_id>
                  merchant_order_id: '000022'
                  country: US
                  additional_data:
                    order:
                      items:
                        - brand: XYZ
                          category: Clothes
                          id: 123AD
                          manufacture_part_number: XYZ123456
                          image_url: https://cdn.example.com/img/skirt-01.jpg
                          name: Skirt
                          quantity: 1
                          sku_code: '8765432109'
                          unit_amount: 5000
                  customer_payer:
                    billing_address:
                      address_line_1: 123 Main Street
                      address_line_2: Apt 502
                      city: New York
                      country: US
                      state: NY
                      zip_code: '10001'
                    browser_info:
                      accept_header: string
                      color_depth: string
                      javascript_enabled: true
                      language: string
                      screen_height: string
                      screen_width: string
                      user_agent: string
                    date_of_birth: '1990-02-28'
                    document:
                      document_type: SSN
                      document_number: 123-45-6789
                    email: johndoe@example.com
                    first_name: John
                    gender: M
                    id: <customer_id>
                    ip_address: 192.168.123.167
                    last_name: Doe
                    merchant_customer_id: example00234
                    nationality: US
                    phone:
                      country_code: '1'
                      number: '5551234567'
                    shipping_address:
                      address_line_1: 123 Main Street
                      address_line_2: Apt 502
                      city: New York
                      country: US
                      state: NY
                      zip_code: '10001'
                  amount:
                    currency: USD
                    value: 5000
                  split_marketplace:
                    - provider_recipient_id: re_us16nrp0u0tl60k9t1lopi9ld
                      merchant_reference: REF-01
                      recipient_type: MEAL
                      type: PURCHASE
                      amount:
                        currency: USD
                        value: 4000
                    - provider_recipient_id: re_us16nu2f10tjv0k9t49fjeora
                      recipient_type: FOOD
                      type: COMMISSION
                      amount:
                        currency: USD
                        value: 1000
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        capture: true
                        card_data:
                          holder_name: John Doe
                          number: '4000000000000010'
                          expiration_month: 3
                          expiration_year: 30
                          security_code: '737'
              Card - Create Payment with Subscription:
                value:
                  account_id: <account_id>
                  description: Payment with card details
                  country: US
                  merchant_order_id: '000023'
                  amount:
                    currency: USD
                    value: 20000
                  customer_payer:
                    id: <customer_id>
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    detail:
                      card:
                        capture: true
                        card_data:
                          number: '4111111111111111'
                          expiration_month: 3
                          expiration_year: 30
                          security_code: '737'
                          holder_name: John Doe
                  subscription:
                    frequency:
                      type: MONTH
                      value: 1
                      execution: YUNO
                    availability:
                      start_at: '2027-05-23T20:17:30Z'
                      finish_at: '2029-05-23T20:17:30Z'
                    amount:
                      value: 20000
                      currency: USD
                      type: FIXED
              Card - Create Payment for Existing Subscription:
                value:
                  account_id: <account_id>
                  description: Payment with card details
                  country: US
                  merchant_order_id: '000023'
                  amount:
                    currency: USD
                    value: 20000
                  customer_payer:
                    id: <customer_id>
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    vaulted_token: <vaulted_token>
                  subscription:
                    id: <subscription_id>
              Pix Automático - Create Payment from a plan:
                value:
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  merchant_order_id: order-90220
                  description: Streaming BR — monthly
                  country: BR
                  workflow: DIRECT
                  amount:
                    currency: BRL
                    value: 49.9
                  customer_payer:
                    id: a3b3a0f4-1f1e-4a19-9a2a-6f0f2d6bbd11
                  payment_method:
                    type: PIX_AUTOMATIC
                    vault_on_success: true
                  subscription:
                    plan_id: 14898a9d-5a75-433d-ba17-f2ea5b33620c
              Create payment with split:
                value:
                  description: SUCCEDED
                  account_id: <account_id>
                  merchant_order_id: '1753363203'
                  country: US
                  workflow: DIRECT
                  amount:
                    currency: USD
                    value: 1000
                  metadata:
                    - key: PROVIDER
                      value: STRIPE
                  payment_method:
                    type: CARD
                    vault_on_success: false
                    detail:
                      card:
                        capture: true
                        card_data:
                          holder_name: John
                          number: '4242424242424242'
                          expiration_month: 12
                          expiration_year: 30
                          security_code: '123'
                        stored_credentials:
                          reason: SUBSCRIPTION
                          usage: USED
                          subscription_agreement_id: XXXX01
                  split_marketplace:
                    - amount:
                        currency: USD
                        value: 900
                      recipient_id: c8440141-127b-4dfe-b585-b8622c1db4c9
                      recipient_type: MEAL
                      type: PURCHASE
                    - amount:
                        currency: USD
                        value: 100
                      recipient_id: 3f2b8c1e-6d4a-4b7e-9a15-0c8d2e7f4a96
                      type: COMMISSION
                  customer_payer:
                    document:
                      document_type: SSN
                      document_number: '93095135270'
                    email: test_recipient@y.uno
                    first_name: john
                    gender: M
                    ip_address: 192.168.123.167
                    last_name: Doe
                    merchant_customer_id: example00234
                    nationality: US
                    phone:
                      country_code: '1'
                      number: '3132450765'
              Card - With external providers data:
                summary: Card payment using provider-issued tokens (no prior enrollment)
                value:
                  account_id: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
                  amount:
                    currency: COP
                    value: '10000'
                  country: CO
                  customer_payer:
                    id: 1a71c7b7-80c2-4ba5-b601-4d34d48c0e18
                  payment_method:
                    type: CARD
                    vault_on_success: false
                    detail:
                      card:
                        capture: true
                        external_providers_data:
                          - connection_id: 091cd992-a5ca-41e0-8957-05959b463e31
                            provider_id: CHECKOUT
                            provider_token: tok_ck_...
                          - connection_id: f00d04b4-584f-4790-b51d-ceede8fd8f0f
                            provider_id: ADYEN
                            provider_token: tok_ay_...
                  workflow: DIRECT
              Card - With external invoice (top-up):
                summary: Pay a specific Stripe invoice with a card (top-up)
                value:
                  account_id: fe14c7c6-c75e-43b7-bdbe-4c87ad52c482
                  merchant_order_id: topup-0001
                  description: Balance top-up
                  country: US
                  amount:
                    currency: USD
                    value: 50
                  checkout:
                    session: <checkout_session>
                  customer_payer:
                    id: 1a71c7b7-80c2-4ba5-b601-4d34d48c0e18
                  payment_method:
                    type: CARD
                    token: <one_time_token>
                  external_invoice:
                    id: in_1QwZzz
                    customer_id: cus_RplXYZ
              Card - With a Yuno promotion:
                value:
                  description: Card payment with a Yuno promotion
                  account_id: <account_id>
                  merchant_order_id: '0000023'
                  country: US
                  merchant_reference: reference-001
                  amount:
                    currency: USD
                    value: 15000
                  customer_payer:
                    id: <customer_id>
                    merchant_customer_id: '1690161049'
                    first_name: John
                    last_name: Doe
                    email: johndoe@example.com
                  workflow: DIRECT
                  payment_method:
                    type: CARD
                    vaulted_token: <vaulted_token>
                  additional_data:
                    order:
                      discounts:
                        - type: YUNO_PROMOTION
                          quote_id: qte_…
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Payment:
                  value:
                    id: 6c44ed29-cc51-4479-a5eb-108afdaadd50
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Card Payment
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '1744403449'
                    created_at: '2025-04-11T20:30:49.825637Z'
                    updated_at: '2025-04-11T20:30:51.953868Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 15000
                    checkout:
                      session: 7fb7093e-dc67-4c7a-80c5-d25cf5e6ff27
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                      type: CARD
                      vault_on_success: true
                      token: 8cabcd5c-1b40-4407-b14a-14ab21741865
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '835631'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: Fannie Weissnat
                            iin: '41961111'
                            lfd: '0010'
                            number_length: 16
                            security_code_length: 1
                            brand: VISA
                            issuer_name: METABANK
                            issuer_code: null
                            country_code: US
                            category: PREPAID RELOADABLE
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                            expiration_month: 3
                            expiration_year: 24
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 94121f98-98f7-4d57-aa5f-228401d35b12
                      merchant_customer_id: '1744402154'
                      first_name: John
                      last_name: Doe
                      gender: ''
                      date_of_birth: '1990-02-28'
                      email: john.doe2@gmail.com
                      nationality: US
                      ip_address: 192.168.123.167
                      device_fingerprint: hi88287gbd8d7d782ge....
                      device_fingerprints: []
                      browser_info:
                        user_agent: string
                        accept_header: string
                        accept_content: null
                        accept_browser: null
                        color_depth: string
                        screen_height: string
                        screen_width: string
                        javascript_enabled: true
                        java_enabled: null
                        browser_time_difference: null
                        language: string
                      document:
                        document_type: SSN
                        document_number: '38799992'
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: Test
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: Test
                      merchant_customer_created_at: '2023-08-05T14:43:58.980718Z'
                    additional_data:
                      airline:
                        pnr: 1P-2UUGJW
                        legs:
                          - departure_airport: EZE
                            departure_datetime: '2014-05-12 13:05:00'
                            departure_airport_timezone: '-03:00'
                            arrival_airport: AMS
                            arrival_airport_timezone: '+00:00'
                            arrival_datetime: ''
                            carrier_code: KL
                            carrier_name: KLM Royal Dutch Airlines
                            flight_number: '842'
                            fare_basis_code: HL7LNR
                            fare_class_code: FR
                            base_fare: 200
                            base_fare_currency: USD
                            stopover_code: s
                        passengers:
                          - first_name: string
                            last_name: string
                            middle_name: string
                            type: s
                            date_of_birth: stringstri
                            nationality: US
                            document:
                              document_type: SSN
                              document_number: '351040753'
                            country: US
                            loyalty_number: string
                            loyalty_tier: strin
                            email: null
                            phone: null
                        ticket:
                          ticket_number: '123456'
                          e_ticket: false
                          restricted: false
                          total_fare_amount: 80
                          total_tax_amount: 22
                          total_fee_amount: 14
                          issue: null
                        tickets: null
                      order:
                        fee_amount: 40.5
                        shipping_amount: 10.35
                        tip_amount: null
                        items:
                          - id: 123AD
                            name: Skirt
                            quantity: 3
                            unit_amount: 20
                            category: Clothes
                            brand: XYZ
                            sku_code: '8765432109'
                            manufacture_part_number: XYZ123456
                            image_url: https://cdn.example.com/img/skirt-01.jpg
                        account_funding: null
                        tickets: null
                        fulfillment: null
                        discounts: null
                      seller_details: null
                    transactions:
                      id: 9dc9524a-504d-4eaf-84ef-c881b46aab25
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 15000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                        type: CARD
                        vault_on_success: true
                        token: 8cabcd5c-1b40-4407-b14a-14ab21741865
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '835631'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: Fannie Weissnat
                              iin: '41961111'
                              lfd: '0010'
                              number_length: 16
                              security_code_length: 1
                              brand: VISA
                              issuer_name: METABANK
                              issuer_code: null
                              country_code: US
                              category: PREPAID RELOADABLE
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                              expiration_month: 3
                              expiration_year: 24
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Test Payment
                      merchant_reference: '1744403449'
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 04d94195-a6ce-455a-b027-5f237f91a576
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: USD
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: 90defca1-c913-4894-965c-ed536b65951a
                        name: null
                      created_at: '2025-04-11T20:30:51.097215Z'
                      updated_at: '2025-04-11T20:30:51.199007Z'
                    transactions_history:
                      - id: 9dc9524a-504d-4eaf-84ef-c881b46aab25
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 15000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                          type: CARD
                          vault_on_success: true
                          token: 8cabcd5c-1b40-4407-b14a-14ab21741865
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '835631'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: Fannie Weissnat
                                iin: '41961111'
                                lfd: '0010'
                                number_length: 16
                                security_code_length: 1
                                brand: VISA
                                issuer_name: METABANK
                                issuer_code: null
                                country_code: US
                                category: PREPAID RELOADABLE
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                                expiration_month: 3
                                expiration_year: 24
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Test Payment
                        merchant_reference: '1744403449'
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 04d94195-a6ce-455a-b027-5f237f91a576
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: USD
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: 90defca1-c913-4894-965c-ed536b65951a
                          name: null
                        created_at: '2025-04-11T20:30:51.097215Z'
                        updated_at: '2025-04-11T20:30:51.199007Z'
                    callback_url: http://www.google.com/?checkoutSession=7fb7093e-dc67-4c7a-80c5-d25cf5e6ff27
                    workflow: SDK_CHECKOUT
                    metadata:
                      - key: ID
                        value: '1234'
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 146526
                        name: null
                        description: null
                    simplified_mode: false
                    shipping: null
                Card - With card details:
                  value:
                    id: 821f9afd-f0cb-4fa9-9330-f173b90b0356
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Payment with card details
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '000023'
                    created_at: '2025-06-18T18:25:01.729174Z'
                    updated_at: '2025-06-18T18:25:02.066450Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 20000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '748912'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 11
                            expiration_year: 28
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 33a9e979-6558-4694-b00c-3d0844524681
                      merchant_customer_id: '1749820178'
                      first_name: John
                      last_name: Doe
                      gender: F
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: CO
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: CC
                        document_number: '1010268952'
                      phone:
                        number: '3132450765'
                        country_code: '57'
                      billing_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 953131e6-94d5-420f-a228-28f67c66b723
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 20000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '748912'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 11
                              expiration_year: 28
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Payment with card details
                      merchant_reference: '000023'
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 31c00baa-ced9-4477-ac1c-e963c4838dde
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T18:25:01.934784Z'
                      updated_at: '2025-06-18T18:25:02.018823Z'
                    transactions_history:
                      - id: 953131e6-94d5-420f-a228-28f67c66b723
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 20000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '748912'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Payment with card details
                        merchant_reference: '000023'
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 31c00baa-ced9-4477-ac1c-e963c4838dde
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T18:25:01.934784Z'
                        updated_at: '2025-06-18T18:25:02.018823Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With airline data:
                  value:
                    id: 096ab480-3fdc-4955-8114-681acc5645f3
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Flight Booking Payment
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: merchant_order_id
                    created_at: '2025-06-18T19:01:02.367139Z'
                    updated_at: '2025-06-18T19:01:02.638270Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 2000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '483790'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 11
                            expiration_year: 28
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: null
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1998-01-01'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: 192.0.0.1
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: DRIVER_LICENSE
                        document_number: '987654321'
                      phone: null
                      billing_address: null
                      shipping_address: null
                      merchant_customer_created_at: null
                    additional_data:
                      airline:
                        pnr: DEF456
                        legs:
                          - departure_airport: LAX
                            departure_datetime: '2024-07-03T05:00:00'
                            departure_airport_timezone: GMT-08
                            arrival_airport: JFK
                            arrival_airport_timezone: '+00:00'
                            arrival_datetime: ''
                            carrier_code: AA
                            carrier_name: American Airlines
                            flight_number: AA100
                            fare_basis_code: 'Y'
                            fare_class_code: S
                            base_fare: 500
                            base_fare_currency: USD
                            stopover_code: O
                            departure_airport_country: null
                            departure_airport_city: null
                            arrival_airport_country: null
                            arrival_airport_city: null
                        passengers:
                          - first_name: John
                            last_name: Doe
                            middle_name: Stephen
                            type: A
                            date_of_birth: '1998-01-01'
                            nationality: US
                            document:
                              document_type: PASSPORT
                              document_number: '123456789'
                            country: null
                            loyalty_number: '79250001'
                            loyalty_tier: DIAMOND
                            email: john.doe@example.com
                            phone:
                              number: '5551234567'
                              country_code: '1'
                        ticket: null
                        tickets:
                          - ticket_number: AA123456
                            e_ticket: true
                            restricted: false
                            total_fare_amount: 700
                            total_tax_amount: 100
                            total_fee_amount: 50
                            issue:
                              carrier_prefix_code: '001'
                              travel_agent_code: A12345
                              travel_agent_name: Best Travel Agency
                              date: '2023-10-31T01:30:00.000-08:00'
                              address: 123 Main St
                              city: Los Angeles
                              country: US
                              zip_code: '90001'
                              booking_system_code: null
                              booking_system_name: null
                      order: null
                      seller_details: null
                    transactions:
                      id: 6f0015cb-51b1-465a-b493-d6348aa771c0
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 2000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '483790'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 11
                              expiration_year: 28
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Flight Booking Payment
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 22c6f649-9cb8-44a8-b3bc-e1100224a565
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:01:02.528544Z'
                      updated_at: '2025-06-18T19:01:02.582688Z'
                    transactions_history:
                      - id: 6f0015cb-51b1-465a-b493-d6348aa771c0
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 2000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '483790'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Flight Booking Payment
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 22c6f649-9cb8-44a8-b3bc-e1100224a565
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:01:02.528544Z'
                        updated_at: '2025-06-18T19:01:02.582688Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With 3DS direct:
                  value:
                    id: 454db62f-16f4-4e7d-8663-bac9de8fe453
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with 3DS
                    country: US
                    status: PENDING
                    sub_status: AUTHORIZED
                    merchant_order_id: '0000022'
                    created_at: '2025-06-18T19:03:54.754024Z'
                    updated_at: '2025-06-18T19:03:55.100929Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 100
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '964016'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '40000000'
                            lfd: '1026'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: INTL HDQTRSCENTER OWNED
                            issuer_code: null
                            country_code: FR
                            category: TRADITIONAL
                            type: CREDIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: 3dbc4137-3c51-47b5-8f5f-a48b723e9022
                            expiration_month: 1
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: null
                      first_name: John
                      last_name: Doe
                      gender: null
                      date_of_birth: null
                      email: johndoe@example.com
                      nationality: null
                      ip_address: 192.168.1.1
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: PAS
                        document_number: '123456789'
                      phone: null
                      billing_address:
                        address_line_1: 1295 Charleston Road
                        address_line_2: ''
                        country: US
                        state: CA
                        city: Mountain View
                        zip_code: '94043'
                        neighborhood: null
                      shipping_address: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 1946c60b-c242-42f5-bdfe-53060ed8378f
                      type: AUTHORIZE
                      status: SUCCEEDED
                      category: CARD
                      amount: 100
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '964016'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40000000'
                              lfd: '1026'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: INTL HDQTRSCENTER OWNED
                              issuer_code: null
                              country_code: FR
                              category: TRADITIONAL
                              type: CREDIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: 3dbc4137-3c51-47b5-8f5f-a48b723e9022
                              expiration_month: 1
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with 3DS
                      merchant_reference: 29ZVMO
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 901c17f1-ac52-4c4d-a39b-a4aaed19c686
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:03:54.931079Z'
                      updated_at: '2025-06-18T19:03:54.991271Z'
                    transactions_history:
                      - id: 1946c60b-c242-42f5-bdfe-53060ed8378f
                        type: AUTHORIZE
                        status: SUCCEEDED
                        category: CARD
                        amount: 100
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '964016'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40000000'
                                lfd: '1026'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: INTL HDQTRSCENTER OWNED
                                issuer_code: null
                                country_code: FR
                                category: TRADITIONAL
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 3dbc4137-3c51-47b5-8f5f-a48b723e9022
                                expiration_month: 1
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with 3DS
                        merchant_reference: 29ZVMO
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 901c17f1-ac52-4c4d-a39b-a4aaed19c686
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:03:54.931079Z'
                        updated_at: '2025-06-18T19:03:54.991271Z'
                    callback_url: https://www.y.uno
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With customer, billing, and shipping details:
                  value:
                    id: 72c4a364-475d-4988-ac67-5f7b0e214b3b
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with customer, billing and shipping details
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:12:43.926630Z'
                    updated_at: '2025-06-18T19:12:44.226783Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '880788'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1690160581'
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '1234567890'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: CA
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: CA
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: ac8ccf5e-0829-4455-8f1e-ff34a8f19091
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '880788'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with customer, billing and shipping details
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 6f6ee117-625e-4ffb-af34-d5225a762757
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:12:44.104820Z'
                      updated_at: '2025-06-18T19:12:44.180078Z'
                    transactions_history:
                      - id: ac8ccf5e-0829-4455-8f1e-ff34a8f19091
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '880788'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with customer, billing and shipping details
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 6f6ee117-625e-4ffb-af34-d5225a762757
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:12:44.104820Z'
                        updated_at: '2025-06-18T19:12:44.180078Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With customer, billing, shipping and order items:
                  value:
                    id: 577d02e1-1114-4fbd-90aa-5c291dfccd52
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with customer, billing and shipping and order items
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:13:37.224688Z'
                    updated_at: '2025-06-18T19:13:37.649587Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '620399'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: 33a9e979-6558-4694-b00c-3d0844524681
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '1234567890'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: CA
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: CA
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data:
                      airline: null
                      order:
                        fee_amount: 0
                        shipping_amount: 0
                        tip_amount: null
                        items:
                          - id: 123AD
                            name: Skirt
                            quantity: 1
                            unit_amount: 5000
                            category: Clothes
                            brand: XYZ
                            sku_code: '8765432109'
                            manufacture_part_number: XYZ123456
                            image_url: https://cdn.example.com/img/skirt-01.jpg
                        account_funding: null
                        tickets: null
                        fulfillment: null
                        discounts: null
                        sales_channel: null
                      seller_details: null
                    transactions:
                      id: 982a8b81-4176-4b00-a287-dc66daadf332
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '620399'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with customer, billing, shipping and order items
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 888a2c91-c121-42c1-b85b-aa7d760ea186
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:13:37.523339Z'
                      updated_at: '2025-06-18T19:13:37.591018Z'
                    transactions_history:
                      - id: 982a8b81-4176-4b00-a287-dc66daadf332
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '620399'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with customer, billing, shipping and order items
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 888a2c91-c121-42c1-b85b-aa7d760ea186
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:13:37.523339Z'
                        updated_at: '2025-06-18T19:13:37.591018Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With installments:
                  value:
                    id: 6a3871a3-9aec-4e45-adf5-1e652c02b69d
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with installments
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:16:19.093013Z'
                    updated_at: '2025-06-18T19:16:19.388282Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 3
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '360480'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: 33a9e979-6558-4694-b00c-3d0844524681
                      first_name: John
                      last_name: Doe
                      gender: null
                      date_of_birth: null
                      email: johndoe@example.com
                      nationality: null
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document: null
                      phone: null
                      billing_address: null
                      shipping_address: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 1acf6cfb-0e35-4bcc-8ee4-a46d931b498a
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 3
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '360480'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with installments
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 1fcfd342-3883-4a77-8769-3df6a49859fa
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:16:19.268256Z'
                      updated_at: '2025-06-18T19:16:19.341676Z'
                    transactions_history:
                      - id: 1acf6cfb-0e35-4bcc-8ee4-a46d931b498a
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 3
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '360480'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with installments
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 1fcfd342-3883-4a77-8769-3df6a49859fa
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:16:19.268256Z'
                        updated_at: '2025-06-18T19:16:19.341676Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With authorization:
                  value:
                    id: 72367fa4-bd87-422e-ab1f-9cfe2bfbbf1c
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with authorization
                    country: US
                    status: PENDING
                    sub_status: AUTHORIZED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:19:27.467914Z'
                    updated_at: '2025-06-18T19:19:27.753439Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '744160'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1690161049'
                      first_name: John
                      last_name: Doe
                      gender: null
                      date_of_birth: null
                      email: johndoe@example.com
                      nationality: null
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document: null
                      phone: null
                      billing_address: null
                      shipping_address: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: c08063a0-468c-4330-aec6-18a263a25bd2
                      type: AUTHORIZE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '744160'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with authorization
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: ea81255e-77c3-4f7b-baf7-d27a27988da9
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:19:27.651142Z'
                      updated_at: '2025-06-18T19:19:27.710702Z'
                    transactions_history:
                      - id: c08063a0-468c-4330-aec6-18a263a25bd2
                        type: AUTHORIZE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '744160'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with authorization
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: ea81255e-77c3-4f7b-baf7-d27a27988da9
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:19:27.651142Z'
                        updated_at: '2025-06-18T19:19:27.710702Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With merchant advice code (MAC):
                  value:
                    id: 72367fa4-bd87-422e-ab1f-9cfe2bfbbf1c
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with authorization (declined)
                    country: US
                    status: PENDING
                    sub_status: DECLINED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:19:27.467914Z'
                    updated_at: '2025-06-18T19:19:27.753439Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '744160'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1690161049'
                      first_name: John
                      last_name: Doe
                      gender: null
                      date_of_birth: null
                      email: johndoe@example.com
                      nationality: null
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document: null
                      phone: null
                      billing_address: null
                      shipping_address: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: c08063a0-468c-4330-aec6-18a263a25bd2
                      type: AUTHORIZE
                      status: DECLINED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '744160'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: DECLINED
                      response_message: Transaction declined
                      reason: null
                      description: Card payment with authorization (declined)
                      merchant_reference: reference-001
                      merchant_advice_code: TRY_AGAIN_LATER
                      merchant_advice_code_message: Retry within 30 days
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: ea81255e-77c3-4f7b-baf7-d27a27988da9
                        account_id: ''
                        status: DECLINED
                        sub_status: ''
                        status_detail: ''
                        merchant_advice_code: '51'
                        merchant_advice_code_message: Insufficient funds – try again later
                        response_message: Insufficient funds
                        response_code: '51'
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:19:27.651142Z'
                      updated_at: '2025-06-18T19:19:27.710702Z'
                    transactions_history:
                      - id: c08063a0-468c-4330-aec6-18a263a25bd2
                        type: AUTHORIZE
                        status: DECLINED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '744160'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: DECLINED
                        response_message: Transaction declined
                        reason: null
                        description: Card payment with authorization (declined)
                        merchant_reference: reference-001
                        merchant_advice_code: TRY_AGAIN_LATER
                        merchant_advice_code_message: Retry within 30 days
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: ea81255e-77c3-4f7b-baf7-d27a27988da9
                          account_id: ''
                          status: DECLINED
                          sub_status: ''
                          status_detail: ''
                          merchant_advice_code: '51'
                          merchant_advice_code_message: Insufficient funds – try again later
                          response_message: Insufficient funds
                          response_code: '51'
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:19:27.651142Z'
                        updated_at: '2025-06-18T19:19:27.710702Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With device fingerprint:
                  value:
                    id: 24e0e48c-6dc7-4339-a816-42ff3b5e4a43
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with device fingerprint
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:22:17.244754Z'
                    updated_at: '2025-06-18T19:22:17.601756Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '655119'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1690161049'
                      first_name: John
                      last_name: Doe
                      gender: null
                      date_of_birth: null
                      email: johndoe@example.com
                      nationality: null
                      ip_address: null
                      device_fingerprint: hi88287gbd8d7d782ge287gbd8d7d78
                      device_fingerprints:
                        - provider_id: CLEARSALE
                          id: hi88287gbd8d7d782ge287gbd8d7d78
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document: null
                      phone: null
                      billing_address: null
                      shipping_address: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: a8a11931-703d-441f-a707-206397cdc907
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '655119'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with device fingerprint
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 41047d54-4885-4149-a1e2-4949caeb18a1
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:22:17.502970Z'
                      updated_at: '2025-06-18T19:22:17.558586Z'
                    transactions_history:
                      - id: a8a11931-703d-441f-a707-206397cdc907
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '655119'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with device fingerprint
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 41047d54-4885-4149-a1e2-4949caeb18a1
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:22:17.502970Z'
                        updated_at: '2025-06-18T19:22:17.558586Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With vault on success:
                  value:
                    id: 83b45448-6288-4f91-bbac-6b75063a0db2
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with vault on success
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:23:24.576097Z'
                    updated_at: '2025-06-18T19:23:25.014707Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ede60aeb-2b4a-4e96-a00d-e88ed1f6e163
                      type: CARD
                      vault_on_success: true
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '267390'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 33a9e979-6558-4694-b00c-3d0844524681
                      merchant_customer_id: '1690161049'
                      first_name: John
                      last_name: Doe
                      gender: F
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: CO
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: CC
                        document_number: '1010268952'
                      phone:
                        number: '3132450765'
                        country_code: '57'
                      billing_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: f07d81bc-dcdb-48a8-86bd-2bd506bc1c8c
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ede60aeb-2b4a-4e96-a00d-e88ed1f6e163
                        type: CARD
                        vault_on_success: true
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '267390'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with vault on success
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 007aa355-5916-49b5-9fb0-9c5e0242a861
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:23:24.747667Z'
                      updated_at: '2025-06-18T19:23:24.797155Z'
                    transactions_history:
                      - id: f07d81bc-dcdb-48a8-86bd-2bd506bc1c8c
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ede60aeb-2b4a-4e96-a00d-e88ed1f6e163
                          type: CARD
                          vault_on_success: true
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '267390'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with vault on success
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 007aa355-5916-49b5-9fb0-9c5e0242a861
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:23:24.747667Z'
                        updated_at: '2025-06-18T19:23:24.797155Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - With vaulted token:
                  value:
                    id: ec32830e-aa3f-4a50-9349-470a747ee603
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Card payment with vaulted token
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '0000023'
                    created_at: '2025-06-18T19:24:45.941124Z'
                    updated_at: '2025-06-18T19:24:46.248935Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ede60aeb-2b4a-4e96-a00d-e88ed1f6e163
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '248213'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 0
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 10
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 33a9e979-6558-4694-b00c-3d0844524681
                      merchant_customer_id: '1690161049'
                      first_name: John
                      last_name: Doe
                      gender: F
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: CO
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: CC
                        document_number: '1010268952'
                      phone:
                        number: '3132450765'
                        country_code: '57'
                      billing_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: ea0c5af1-aa9d-4514-9fd0-205339c43d6c
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ede60aeb-2b4a-4e96-a00d-e88ed1f6e163
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '248213'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 0
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 10
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Card payment with vaulted token
                      merchant_reference: reference-001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 879556c0-19cc-4a21-bb29-a90dedfa5cd5
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:24:46.151503Z'
                      updated_at: '2025-06-18T19:24:46.203744Z'
                    transactions_history:
                      - id: ea0c5af1-aa9d-4514-9fd0-205339c43d6c
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ede60aeb-2b4a-4e96-a00d-e88ed1f6e163
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '248213'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 0
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 10
                                expiration_year: 26
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Card payment with vaulted token
                        merchant_reference: reference-001
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 879556c0-19cc-4a21-bb29-a90dedfa5cd5
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:24:46.151503Z'
                        updated_at: '2025-06-18T19:24:46.203744Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Card - Create Payment with Subscription:
                  value:
                    id: 821f9afd-f0cb-4fa9-9330-f173b90b0356
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Payment with card details
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '000023'
                    created_at: '2025-06-18T18:25:01.729174Z'
                    updated_at: '2025-06-18T18:25:02.066450Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion:
                        code: ccv_01HVK3Z9M2...
                        cardholder_currency: QAR
                        cardholder_amount: 3640
                        cardholder_accepted: true
                        rate: 3.64
                        rate_margin_percentage: 3.75
                        rate_source: ECB
                        provider: FEXCO
                        description: 'You have chosen to pay in QAR. Amount: 3640.00 QAR. Rate: 3.6400.'
                        created_at: '2026-04-24T14:30:00Z'
                        expires_at: '2026-04-24T15:30:00Z'
                        status: APPLIED
                        error_reason: null
                        provider_data:
                          acquirer_id: MPGS_01
                      refunded: 0
                      value: 20000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: MERCHANT
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '748912'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CONOTOXIA SP Z O O
                            issuer_code: null
                            country_code: PL
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                            expiration_month: 11
                            expiration_year: 28
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 33a9e979-6558-4694-b00c-3d0844524681
                      merchant_customer_id: '1749820178'
                      first_name: John
                      last_name: Doe
                      gender: F
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: CO
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: CC
                        document_number: '1010268952'
                      phone:
                        number: '3132450765'
                        country_code: '57'
                      billing_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 'Calle 34 # 56 - 78'
                        address_line_2: Apartamento 502, Torre I
                        country: CO
                        state: Cundinamarca
                        city: Bogotá
                        zip_code: '111111'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 953131e6-94d5-420f-a228-28f67c66b723
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 20000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: MERCHANT
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '748912'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CONOTOXIA SP Z O O
                              issuer_code: null
                              country_code: PL
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                              expiration_month: 11
                              expiration_year: 28
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Payment with card details
                      merchant_reference: '000023'
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 31c00baa-ced9-4477-ac1c-e963c4838dde
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_request:
                          amount:
                            currency: BRL
                            value: 2100
                          reference: '34343434'
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T18:25:01.934784Z'
                      updated_at: '2025-06-18T18:25:02.018823Z'
                    transactions_history:
                      - id: 953131e6-94d5-420f-a228-28f67c66b723
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 20000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: MERCHANT
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '748912'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '41111111'
                                lfd: '1111'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: CONOTOXIA SP Z O O
                                issuer_code: null
                                country_code: PL
                                category: CLASSIC
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: a2ede54f-4b2a-4673-ae2c-c0704338ec7d
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Payment with card details
                        merchant_reference: '000023'
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 31c00baa-ced9-4477-ac1c-e963c4838dde
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T18:25:01.934784Z'
                        updated_at: '2025-06-18T18:25:02.018823Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: 1c9f0b2e-7d5a-4c3b-8e1f-9a0b1c2d3e4f
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    subscription:
                      frequency:
                        type: MONTH
                        value: 1
                        execution: YUNO
                      availability:
                        start_at: '2025-05-23T20:17:30.277678Z'
                        finish_at: '2027-05-23T20:17:30.277678Z'
                      amount:
                        value: 20000
                        currency: USD
                        type: FIXED
                    shipping: null
                Alternative payment method:
                  value:
                    id: 02469d14-fb2e-4d6e-9b85-615a466a8802
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Payment with alternative method
                    country: US
                    status: READY_TO_PAY
                    sub_status: CREATED
                    merchant_order_id: '0000022'
                    created_at: '2025-06-18T19:32:37.851530Z'
                    updated_at: '2025-06-18T19:32:38.337110Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 52000
                    checkout:
                      session: 859a7d1e-bf60-47db-8c74-5db075df359a
                      sdk_action_required: true
                    payment_method:
                      vaulted_token: ''
                      type: CASH
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        ticket:
                          type: null
                          benefit_type: null
                          date_of_expiration: null
                          payment_instruction: null
                          provider_number: AP001123456750436580293122302514
                          provider_barcode: null
                          provider_logo: null
                          provider_format: null
                          redirect_url: https://checkout.sandbox.y.uno/payment?session=56fc620e-d940-4dd4-b2a0-caed3acd274a
                          expires_at: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '12367482'
                      first_name: John
                      last_name: Doe
                      gender: null
                      date_of_birth: null
                      email: johndoe@example.com
                      nationality: null
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document: null
                      phone: null
                      billing_address: null
                      shipping_address: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 462eeecc-a7de-4571-b94e-48870dc27cdf
                      type: PURCHASE
                      status: CREATED
                      category: TICKET
                      amount: 52000
                      provider_id: ARCUS
                      payment_method:
                        vaulted_token: ''
                        type: CASH
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          ticket:
                            type: null
                            benefit_type: null
                            date_of_expiration: null
                            payment_instruction: null
                            provider_number: AP001123456750436580293122302514
                            provider_barcode: null
                            provider_logo: null
                            provider_format: null
                            redirect_url: https://checkout.sandbox.y.uno/payment?session=56fc620e-d940-4dd4-b2a0-caed3acd274a
                            expires_at: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Payment with alternative method
                      merchant_reference: '0000022'
                      provider_data:
                        id: ARCUS
                        transaction_id: AP001123456750436580293122302514
                        account_id: ''
                        status: ''
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response: null
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: 48425c89-8fd0-4c6f-a8f3-17a25e5ac7ce
                        name: null
                      created_at: '2025-06-18T19:32:38.026782Z'
                      updated_at: '2025-06-18T19:32:38.297636Z'
                    transactions_history:
                      - id: 462eeecc-a7de-4571-b94e-48870dc27cdf
                        type: PURCHASE
                        status: CREATED
                        category: TICKET
                        amount: 52000
                        provider_id: ARCUS
                        payment_method:
                          vaulted_token: ''
                          type: CASH
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            ticket:
                              type: null
                              benefit_type: null
                              date_of_expiration: null
                              payment_instruction: null
                              provider_number: AP001123456750436580293122302514
                              provider_barcode: null
                              provider_logo: null
                              provider_format: null
                              redirect_url: https://checkout.sandbox.y.uno/payment?session=56fc620e-d940-4dd4-b2a0-caed3acd274a
                              expires_at: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Payment with alternative method
                        merchant_reference: '0000022'
                        provider_data:
                          id: ARCUS
                          transaction_id: AP001123456750436580293122302514
                          account_id: ''
                          status: ''
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response: null
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: 48425c89-8fd0-4c6f-a8f3-17a25e5ac7ce
                          name: null
                        created_at: '2025-06-18T19:32:38.026782Z'
                        updated_at: '2025-06-18T19:32:38.297636Z'
                    callback_url: www.example.com
                    workflow: REDIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 191919
                        name: null
                        description: null
                    simplified_mode: false
                    shipping: null
                Card - With shipping, fee and tip amount:
                  value:
                    id: 591b4df0-6b18-494b-8a30-b88d7f999e03
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Card payment with tip and fee amount
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '0000022'
                    created_at: '2024-06-07T12:48:21.476913Z'
                    updated_at: '2024-06-07T12:48:22.097913Z'
                    amount:
                      captured: 0
                      currency: USD
                      refunded: 0
                      value: 100
                    checkout:
                      session: 10edfb5f-e658-446e-99b6-999598efc145
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ec9f354e-52e5-4509-ac4e-c3035dcdf111
                      type: CARD
                      vault_on_success: true
                      token: 54867b9c-989a-426e-86f2-2fc703fe8c7c
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: 08bb27be-1256-4067-976f-7f589707e90e
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41961111'
                            lfd: '0010'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: META BANK
                            issuer_code: null
                            category: PREPAID RELOADABLE
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                          stored_credentials:
                            reason: SUBSCRIPTION
                            usage: USED
                            subscription_agreement_id: XXXX01
                            network_transaction_id: null
                    customer_payer:
                      id: a577ad8f-08f1-4590-9cf1-e7679b15ee84
                      merchant_customer_id: '1717677815'
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: john.doe@example.com
                      nationality: US
                      ip_address: 192.168.1.1
                      device_fingerprint: null
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5555551234'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main Street
                        address_line_2: Suite 500
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 123 Main Street
                        address_line_2: Suite 500
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data:
                      airline: null
                      order:
                        fee_amount: 500
                        shipping_amount: 100
                        tip_amount: 50
                        items:
                          - id: 123AD
                            name: Skirt
                            quantity: 1
                            unit_amount: 5000
                            category: Clothes
                            brand: XYZ
                            sku_code: '8765432109'
                            manufacture_part_number: XYZ123456
                            image_url: https://cdn.example.com/img/skirt-01.jpg
                      seller_details: null
                    taxes: null
                    transactions:
                      id: dd1beb86-9cce-44d3-80f9-dd77eb927a6e
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 100
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ec9f354e-52e5-4509-ac4e-c3035dcdf111
                        type: CARD
                        vault_on_success: true
                        token: 54867b9c-989a-426e-86f2-2fc703fe8c7c
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: 08bb27be-1256-4067-976f-7f589707e90e
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41961111'
                              lfd: '0010'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: META BANK
                              issuer_code: null
                              category: PREPAID RELOADABLE
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Test Cards
                      merchant_reference: Pago de test 001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: b00cc57c-cd98-435a-a1c9-7a5f5c6e7481
                        account_id: ''
                        status: SUCCEEDED
                        status_detail: ''
                        response_message: ''
                        response_code: ''
                        iso8583_response_code: '00'
                        iso8583_response_message: Approved or completed successfully
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: ''
                      created_at: '2024-06-07T12:48:21.698209Z'
                      updated_at: '2024-06-07T12:48:21.859552Z'
                    transactions_history:
                      id: dd1beb86-9cce-44d3-80f9-dd77eb927a6e
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 100
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ec9f354e-52e5-4509-ac4e-c3035dcdf111
                        type: CARD
                        vault_on_success: true
                        token: 54867b9c-989a-426e-86f2-2fc703fe8c7c
                        detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: 08bb27be-1256-4067-976f-7f589707e90e
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41961111'
                              lfd: '0010'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: META BANK
                              issuer_code: null
                              category: PREPAID RELOADABLE
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Test Cards
                      merchant_reference: Pago de test 001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: b00cc57c-cd98-435a-a1c9-7a5f5c6e7481
                        account_id: ''
                        status: SUCCEEDED
                        status_detail: ''
                        response_message: ''
                        response_code: ''
                        iso8583_response_code: '00'
                        iso8583_response_message: Approved or completed successfully
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: ''
                      created_at: '2024-06-07T12:48:21.698209Z'
                      updated_at: '2024-06-07T12:48:21.859552Z'
                    split: []
                    callback_url: https://google.com/?checkoutSession=10edfb5f-e658-446e-99b6-999598efc145
                    workflow: SDK_CHECKOUT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      condition:
                        id: 76152
                        name: null
                        description: null
                    shipping: null
                    simplified_mode: false
                Card - With NT:
                  value:
                    id: bc0489ba-80bf-4bb9-98c5-ff8dfbceebf9
                    account_id: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                    description: SUCCESSFUL
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: Order_id
                    created_at: '2023-07-12T18:51:49.437886Z'
                    updated_at: '2023-07-12T18:51:54.679410Z'
                    amount:
                      currency: USD
                      value: 20000
                      refunded: 0
                      captured: 0
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      payment_method_detail:
                        card:
                          verify: null
                          capture: true
                          installments: 1
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '517862'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          network_token:
                            network: MASTERCARD
                            status: ACTIVE
                            par: V0010014622074319305424002620
                            token_data:
                              iin: '45079900'
                              lfd: '0010'
                              expiration_month: '10'
                              expiration_year: '2028'
                              network_payment_reference: MCC000000355
                              response:
                                code: succeeded
                                message: Transaction Succeeded
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                    customer_payer:
                      id: a76d79b7-902f-4152-922f-7e7eebc5f3dc
                      merchant_customer_id: '1309'
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: john.doe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      browser_info:
                        user_agent: string
                        accept_header: string
                        accept_content: null
                        accept_browser: null
                        color_depth: '32'
                        screen_height: '32'
                        screen_width: '32'
                        javascript_enabled: true
                        java_enabled: null
                        browser_time_difference: null
                        language: string
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5555551234'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: ''
                        country: US
                        city: New York
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: ''
                        country: US
                        city: New York
                    additional_data: null
                    taxes: null
                    transactions:
                      id: c718b8e9-2943-4fdf-9b3c-426cf44940fb
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 20000
                      provider_id: DLOCAL
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '517862'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            network_token:
                              network: MASTERCARD
                              status: ACTIVE
                              par: V0010014622074319305424002620
                              token_data:
                                iin: '45079900'
                                lfd: '0010'
                                expiration_month: '10'
                                expiration_year: '2028'
                                network_payment_reference: MCC000000355
                                response:
                                  code: succeeded
                                  message: Transaction Succeeded
                              stored_credentials:
                                reason: SUBSCRIPTION
                                usage: USED
                                subscription_agreement_id: XXXX01
                                network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: SUCCESSFUL
                      merchant_reference: null
                      provider_data:
                        id: DLOCAL
                        transaction_id: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                        account_id: ''
                        status: PAID
                        status_detail: '200'
                        response_message: The payment was paid.
                        iso8583_response_code: '00'
                        iso8583_response_message: Approved or completed successfully
                        raw_response:
                          value: >-
                            {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":20000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                            Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T18:51:52.000+0000","approved_date":"2023-07-12T18:51:54.000+0000","status":"PAID","status_detail":"The
                            payment was
                            paid.","status_code":"200","order_id":"c718b8e9-2943-4fdf-9b3c-426cf44940fb","description":"SUCCESSFUL","notification_url":"https://sandbox.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"517862"}}
                        third_party_transaction_id: ''
                      three_d_secure_action_required: null
                      created_at: '2023-07-12T18:51:51.908784Z'
                      updated_at: '2023-07-12T18:51:54.426087Z'
                    split: []
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_code: ''
                    shipping: null
                    transactions_history:
                      - id: d45d19fe-d45e-407b-8b47-2803eca805a3
                        type: AUTHORIZE
                        status: SUCCEEDED
                        category: CARD
                        amount: 20000
                        provider_id: CHECKOUT
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          vault_on_decline: false
                          token: ''
                          parent_payment_method_type: null
                          otp: {}
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              installments_total_amount: null
                              soft_descriptor: ''
                              authorization_code: '515560'
                              retrieval_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '45079900'
                                lfd: '0002'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                scheme: VISA
                                issuer_name: VISA ARGENTINA
                                issuer_code: null
                                country_code: AR
                                category: CREDIT
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 4a817c92-8cf1-49d1-8746-361dbbe17bb5
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials: null
                              verification_services:
                                address_line_1_check: UNAVAILABLE
                                zip_code_check: UNAVAILABLE
                                card_holder_name_check: UNCHECKED
                                card_security_code_check: PASS
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Payment with card details
                        merchant_reference: dauth-2732268
                        provider_data:
                          id: CHECKOUT
                          transaction_id: pay_hsnchrabo2eyrdpscf5jfkttkq
                          account_id: ''
                          status: Authorized
                          sub_status: ''
                          status_detail: ''
                          response_message: Approved
                          response_code: '10000'
                          raw_response:
                            value: >-
                              {"id":"pay_hsnchrabo2eyrdpscf5jfkttkq","action_id":"act_asfvka3wl6feba2rckhwepse7a","amount":2000000,"currency":"USD","approved":true,"status":"Authorized","auth_code":"515560","response_code":"10000","response_summary":"Approved","balances":{"total_authorized":2000000,"total_voided":0,"available_to_void":2000000,"total_captured":0,"available_to_capture":2000000,"total_refunded":0,"available_to_refund":0},"risk":{"flagged":false},"source":{"id":"src_qkxrcm4onifepfh2xlxkm6jd7e","type":"card","billing_address":{"address_line1":"123
                              Main St","address_line2":"Apt 4B","city":"New
                              York","state":"NY","zip":"10001","country":"US"},"phone":{"number":"5551234567","country_code":"1"},"expiry_month":11,"expiry_year":2028,"name":"John
                              Doe","scheme":"Visa","last4":"0002","fingerprint":"28B828415D6CE32ED9DDA32B0664F2DC4F6C34DFCAD39A439CD8723BD2EBA1DB","bin":"45079900","card_type":"CREDIT","card_category":"CONSUMER","issuer":"VISA
                              ARGENTINA,
                              S.A.","issuer_country":"AR","avs_check":"G","cvv_check":"Y","payment_account_reference":"V001777116202109910","regulated_indicator":false,"is_combo_card":false},"customer":{"id":"cus_w2sjgwj7mb4ufj4rlfkgxepndu","email":"johndoe@example.com","name":"John
                              Doe","phone":{"number":"5551234567","country_code":"1"}},"processed_on":"2026-10-23T07:12:55.5550101Z","reference":"d45d19fe-d45e-407b-8b47-2803eca805a3","scheme_id":"634300709033387","processing":{"acquirer_transaction_id":"252636973293505255222","retrieval_reference_number":"265021656175","merchant_category_code":"5815","scheme_merchant_id":"569051","scheme":"VISA","partner_response_code":"00","aft":false,"pan_type_processed":"fpan","cko_network_token_available":false,"provision_network_token":false},"expires_on":"2026-10-30T07:12:55.5540718Z","_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/actions"},"capture":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/captures"},"void":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/voids"},"authorizations":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/authorizations"}}}
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: '00'
                          iso8583_response_message: null
                          retrieval_reference_number: null
                          merchant_advice_code: null
                          merchant_advice_code_message: null
                          reason_code: null
                          reason_description: null
                        connection_data:
                          id: 7ae96534-83a4-4b2b-8e86-b549d49d4795
                          name: checkout-sbx-card-001
                        created_at: '2026-10-23T07:12:54.994748Z'
                        updated_at: '2026-10-23T07:12:55.696203Z'
                        split_marketplace: []
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                      - id: 7cdc442d-8625-4eda-8db7-74bc794025ba
                        type: AUTHORIZE
                        status: DECLINED
                        category: CARD
                        amount: 20000
                        provider_id: ADYEN
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          vault_on_decline: false
                          token: ''
                          parent_payment_method_type: null
                          otp: {}
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              installments_total_amount: null
                              soft_descriptor: ''
                              authorization_code: ''
                              retrieval_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '45079900'
                                lfd: '0002'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                scheme: VISA
                                issuer_name: VISA ARGENTINA
                                issuer_code: null
                                country_code: AR
                                category: CREDIT
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 4a817c92-8cf1-49d1-8746-361dbbe17bb5
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials: null
                              verification_services:
                                address_line_1_check: UNAVAILABLE
                                zip_code_check: UNAVAILABLE
                                card_holder_name_check: UNCHECKED
                                card_security_code_check: UNCHECKED
                        response_code: DECLINED_BY_PROVIDER
                        response_message: Rejected by the provider. Refer to the provider_data
                        reason: null
                        description: Payment with card details
                        merchant_reference: dauth-2732268
                        provider_data:
                          id: ADYEN
                          transaction_id: QRFGTRFPP6CVGW75
                          account_id: YunoPayments_Sandbox_TEST
                          status: Refused
                          sub_status: ''
                          status_detail: This is not a testCard
                          response_message: This is not a testCard
                          response_code: '2'
                          raw_response:
                            additionalData:
                              PaymentAccountReference: B9DbKiHRNOSPA81drjUWPCE4Gi3TT
                              acquirerCode: TestPmmAcquirer
                              avsResult: 0 Unknown
                              cvcResult: 0 Unknown
                              paymentMethod: visa
                              paymentMethodVariant: visa
                              refusalReasonRaw: This is not a testCard
                            merchantReference: dauth-2732268
                            pspReference: QRFGTRFPP6CVGW75
                            refusalReason: Refused
                            refusalReasonCode: '2'
                            resultCode: Refused
                          third_party_transaction_id: QRFGTRFPP6CVGW75
                          third_party_account_id: ''
                          iso8583_response_code: null
                          iso8583_response_message: null
                          retrieval_reference_number: null
                          merchant_advice_code: null
                          merchant_advice_code_message: null
                          reason_code: null
                          reason_description: null
                        connection_data:
                          id: b95bff50-b126-4212-86b0-ba0f7d5298a6
                          name: adyen-sbx-card-001
                        created_at: '2026-10-23T07:12:54.390824Z'
                        updated_at: '2026-10-23T07:12:54.949141Z'
                        split_marketplace: []
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                      - id: 9ae70b2b-94f8-43e0-8cc2-cbaa90cf8d17
                        type: AUTHORIZE
                        status: DECLINED
                        category: CARD
                        amount: 20000
                        provider_id: STRIPE
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          vault_on_decline: false
                          token: ''
                          parent_payment_method_type: null
                          otp: {}
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              installments_total_amount: null
                              soft_descriptor: ''
                              authorization_code: ''
                              retrieval_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '45079900'
                                lfd: '0002'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                scheme: VISA
                                issuer_name: VISA ARGENTINA
                                issuer_code: null
                                country_code: AR
                                category: CREDIT
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 4a817c92-8cf1-49d1-8746-361dbbe17bb5
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials: null
                              verification_services:
                                address_line_1_check: UNCHECKED
                                zip_code_check: UNCHECKED
                                card_holder_name_check: UNCHECKED
                                card_security_code_check: UNCHECKED
                        response_code: DECLINED_BY_PROVIDER
                        response_message: Rejected by the provider. Refer to the provider_data
                        reason: null
                        description: Payment with card details
                        merchant_reference: dauth-2732268
                        provider_data:
                          id: STRIPE
                          transaction_id: pi_3UTcenABMAWh2LvX11ZyMegJ
                          account_id: ''
                          status: card_declined
                          sub_status: ''
                          status_detail: ''
                          response_message: >-
                            Your card was declined. Your request used a real card while testing. For a list of valid
                            test cards, visit: https://stripe.com/docs/testing.
                          response_code: test_mode_live_card
                          raw_response:
                            value: >-
                              {"error":{"charge":"ch_3UTcenABMAWh2LvX1qesbxlx","code":"card_declined","decline_code":"test_mode_live_card","doc_url":"https://stripe.com/docs/error-codes/card-declined","message":"Your
                              card was declined. Your request used a real card while testing. For a list of valid test
                              cards, visit:
                              https://stripe.com/docs/testing.","payment_intent":{"id":"pi_3UTcenABMAWh2LvX11ZyMegJ","object":"payment_intent","allowed_payment_method_types":null,"amount":2000000,"amount_capturable":0,"amount_details":{"tip":{}},"amount_received":0,"application":null,"application_fee_amount":null,"automatic_payment_methods":null,"canceled_at":null,"cancellation_reason":null,"capture_method":"manual","client_secret":"****","confirmation_method":"automatic","created":1792739573,"currency":"usd","customer":null,"customer_account":null,"description":"Payment
                              with card
                              details","excluded_payment_method_types":null,"invoice":null,"last_payment_error":{"charge":"ch_3UTcenABMAWh2LvX1qesbxlx","code":"card_declined","decline_code":"test_mode_live_card","doc_url":"https://stripe.com/docs/error-codes/card-declined","message":"Your
                              card was declined. Your request used a real card while testing. For a list of valid test
                              cards, visit:
                              https://stripe.com/docs/testing.","payment_method":{"id":"pm_1UT***","object":"payment_method","allow_redisplay":"unspecified","billing_details":{"address":{"city":"N***
                              Y***","country":"US","line1":"1*** M*** S***","line2":"A***
                              4***","postal_code":"10***","state":"N***"},"email":"j***@example.com","name":"J***
                              D***","phone":null,"tax_id":null},"card":{"brand":"visa","checks":{"address_line1_check":"unchecked","address_postal_code_check":"unchecked","cvc_check":"unchecked"},"country":"AR","display_brand":"visa","exp_month":"****","exp_year":"****","fingerprint":"****","funding":"unknown","generated_from":null,"last4":"0002","network_token":null,"networks":{"available":["visa"],"preferred":null},"regulated_status":"unregulated","three_d_secure_usage":{"supported":true},"wallet":null},"created":1792739573,"customer":null,"customer_account":null,"livemode":false,"metadata":{},"shared_payment_granted_token":null,"type":"card"},"payment_method_type":"card","type":"card_error"},"latest_charge":"ch_3UTcenABMAWh2LvX1qesbxlx","livemode":false,"managed_payments":{"enabled":false},"metadata":{"transaction_code":"9ae70b2b-94f8-43e0-8cc2-cbaa90cf8d17","customer_ip":""},"next_action":null,"on_behalf_of":null,"payment_method":null,"payment_method_configuration_details":null,"payment_method_options":{"card":{"installments":null,"mandate_options":null,"network":null,"request_three_d_secure":"automatic"}},"payment_method_types":["card"],"payment_record":null,"processing":null,"radar_options":{},"receipt_email":null,"review":null,"setup_future_usage":null,"shared_payment_granted_token":null,"shipping":{"address":{"city":"N***
                              Y***","country":"US","line1":"1*** M*** S***","line2":"A***
                              4***","postal_code":"10***","state":"N***"},"carrier":null,"name":"J***
                              D***","phone":"******4567","tracking_number":null},"source":null,"statement_descriptor":null,"statement_descriptor_suffix":null,"status":"requires_payment_method","transfer_data":null,"transfer_group":null},"payment_method":{"id":"pm_1UT***","object":"payment_method","allow_redisplay":"unspecified","billing_details":{"address":{"city":"N***
                              Y***","country":"US","line1":"1*** M*** S***","line2":"A***
                              4***","postal_code":"10***","state":"N***"},"email":"j***@example.com","name":"J***
                              D***","phone":null,"tax_id":null},"card":{"brand":"visa","checks":{"address_line1_check":"unchecked","address_postal_code_check":"unchecked","cvc_check":"unchecked"},"country":"AR","display_brand":"visa","exp_month":"****","exp_year":"****","fingerprint":"****","funding":"unknown","generated_from":null,"last4":"0002","network_token":null,"networks":{"available":["visa"],"preferred":null},"regulated_status":"unregulated","three_d_secure_usage":{"supported":true},"wallet":null},"created":1792739573,"customer":null,"customer_account":null,"livemode":false,"metadata":{},"shared_payment_granted_token":null,"type":"card"},"request_log_url":"https://dashboard.stripe.com/acct_1M6kqSABMAWh2LvX/test/workbench/logs?object=req_VtHGHropsa7iMg","type":"card_error"}}
                          third_party_transaction_id: ''
                          third_party_account_id: ''
                          iso8583_response_code: null
                          iso8583_response_message: null
                          retrieval_reference_number: null
                          merchant_advice_code: null
                          merchant_advice_code_message: null
                          reason_code: null
                          reason_description: null
                        connection_data:
                          id: faf1c910-48ee-4270-8922-bd00416202ca
                          name: stripe-sbx-card-001
                        created_at: '2026-10-23T07:12:53.291760Z'
                        updated_at: '2026-10-23T07:12:54.349659Z'
                        split_marketplace: []
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 744740
                        name: default_route
                        description: null
                    simplified_mode: false
                Split Marketplace:
                  value:
                    id: 1fb43d3e-879b-4051-a82c-754e7b894029
                    account_id: 5beead35-0cd5-4e1c-9a13-b8f48f7f8f3a
                    description: Split marketplace payment
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '000022'
                    created_at: '2025-06-18T19:46:00.835357Z'
                    updated_at: '2025-06-18T19:46:01.130039Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 5000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '161102'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '40000000'
                            lfd: '0010'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: INTL HDQTRSCENTER OWNED
                            issuer_code: null
                            country_code: FR
                            category: TRADITIONAL
                            type: CREDIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: de3d7f7a-9a71-475c-bafe-a4cb18552b79
                            expiration_month: 3
                            expiration_year: 30
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 33a9e979-6558-4694-b00c-3d0844524681
                      merchant_customer_id: example00234
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: 192.168.123.167
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: string
                        accept_header: string
                        accept_content: null
                        accept_browser: null
                        color_depth: string
                        screen_height: string
                        screen_width: string
                        javascript_enabled: true
                        java_enabled: null
                        browser_time_difference: null
                        language: string
                        platform: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main Street
                        address_line_2: Apt 502
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 123 Main Street
                        address_line_2: Apt 502
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data:
                      airline: null
                      order:
                        fee_amount: null
                        shipping_amount: null
                        tip_amount: null
                        items:
                          - id: 123AD
                            name: Skirt
                            quantity: 1
                            unit_amount: 5000
                            category: Clothes
                            brand: XYZ
                            sku_code: '8765432109'
                            manufacture_part_number: XYZ123456
                            image_url: https://cdn.example.com/img/skirt-01.jpg
                        account_funding: null
                        tickets: null
                        fulfillment: null
                        discounts: null
                        sales_channel: null
                      seller_details: null
                    transactions:
                      id: 06ee5a0e-ea16-4b3f-9fdc-5e3d190f43d8
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 5000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '161102'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40000000'
                              lfd: '0010'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: INTL HDQTRSCENTER OWNED
                              issuer_code: null
                              country_code: FR
                              category: TRADITIONAL
                              type: CREDIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: de3d7f7a-9a71-475c-bafe-a4cb18552b79
                              expiration_month: 3
                              expiration_year: 30
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Split marketplace payment
                      merchant_reference: '000022'
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: ab05e8e6-1957-49c8-8c9d-ed20699171e3
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: BRL
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                        name: null
                      created_at: '2025-06-18T19:46:01.031380Z'
                      updated_at: '2025-06-18T19:46:01.089465Z'
                    transactions_history:
                      - id: 06ee5a0e-ea16-4b3f-9fdc-5e3d190f43d8
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 5000
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '161102'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '40000000'
                                lfd: '0010'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                issuer_name: INTL HDQTRSCENTER OWNED
                                issuer_code: null
                                country_code: FR
                                category: TRADITIONAL
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: de3d7f7a-9a71-475c-bafe-a4cb18552b79
                                expiration_month: 3
                                expiration_year: 30
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Split marketplace payment
                        merchant_reference: '000022'
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: ab05e8e6-1957-49c8-8c9d-ed20699171e3
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: BRL
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: a2ee2f97-8ba0-4198-a821-3b750bc97872
                          name: null
                        created_at: '2025-06-18T19:46:01.031380Z'
                        updated_at: '2025-06-18T19:46:01.089465Z'
                    split_marketplace:
                      - recipient_id: null
                        provider_recipient_id: re_us16nrp0u0tl60k9t1lopi9ld
                        type: PURCHASE
                        merchant_reference: REF-01
                        amount:
                          value: 4000
                          currency: USD
                        liability: null
                      - recipient_id: null
                        provider_recipient_id: re_us16nu2f10tjv0k9t49fjeora
                        type: COMMISSION
                        merchant_reference: null
                        amount:
                          value: 1000
                          currency: USD
                        liability: null
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 192539
                        name: Card
                        description: ''
                    simplified_mode: false
                    shipping: null
                Create payment with split:
                  value:
                    id: dfb9f23b-4429-4691-8203-2fb98e781fd9
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: SUCCEDED
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '1753363203'
                    created_at: '2025-07-30T16:50:06.978438Z'
                    updated_at: '2025-07-30T16:50:08.908690Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 1000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          installments_total_amount: null
                          card_data:
                            holder_name: John
                            iin: '42424242'
                            brand: VISA
                            issuer_name: STRIPE PAYMENTS UK
                            country_code: GB
                            category: CLASSIC
                            type: CREDIT
                            fingerprint: 54e8527e-8872-4962-b439-d2c3af14f62c
                            expiration_month: 12
                            expiration_year: 30
                          stored_credentials:
                            reason: SUBSCRIPTION
                            usage: USED
                            subscription_agreement_id: XXXX01
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: example00234
                      first_name: john
                      last_name: Doe
                      gender: M
                      email: test_recipient@y.uno
                      nationality: US
                      ip_address: 192.168.123.167
                      document:
                        document_type: SSN
                        document_number: '93095135270'
                      phone:
                        number: '3132450765'
                        country_code: '1'
                      billing_address: null
                      shipping_address: null
                    transactions:
                      id: 4859edb4-172e-4ea2-a973-417975bc7799
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 1000
                      provider_id: STRIPE
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      description: SUCCEDED
                      merchant_reference: '1753363203'
                      provider_data:
                        id: STRIPE
                        transaction_id: pi_3RqdCd2KtqBG62iM0VU2XZWz
                        status: succeeded
                      created_at: '2025-07-30T16:50:07.097239Z'
                      updated_at: '2025-07-30T16:50:08.864817Z'
                    split_marketplace:
                      - recipient_id: c8440141-127b-4dfe-b585-b8622c1db4c9
                        provider_recipient_id: acct_1RqJi4RuJnD4mgC6
                        recipient_type: MEAL
                        type: PURCHASE
                        merchant_reference: MERCHANT_usa_example_789
                        amount:
                          value: 900
                          currency: USD
                        liability: null
                      - recipient_id: null
                        provider_recipient_id: null
                        type: COMMISSION
                        merchant_reference: null
                        amount:
                          value: 100
                          currency: USD
                        liability: null
                    workflow: DIRECT
                    metadata:
                      - key: PROVIDER
                        value: STRIPE
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 205890
                        name: ''
                        description: ''
                    simplified_mode: false
                    shipping: null
                    additional_data: null
                    transactions_history:
                      - id: d45d19fe-d45e-407b-8b47-2803eca805a3
                        type: AUTHORIZE
                        status: SUCCEEDED
                        category: CARD
                        amount: 20000
                        provider_id: CHECKOUT
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          vault_on_decline: false
                          token: ''
                          parent_payment_method_type: null
                          otp: {}
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              installments_total_amount: null
                              soft_descriptor: ''
                              authorization_code: '515560'
                              retrieval_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '45079900'
                                lfd: '0002'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                scheme: VISA
                                issuer_name: VISA ARGENTINA
                                issuer_code: null
                                country_code: AR
                                category: CREDIT
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 4a817c92-8cf1-49d1-8746-361dbbe17bb5
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials: null
                              verification_services:
                                address_line_1_check: UNAVAILABLE
                                zip_code_check: UNAVAILABLE
                                card_holder_name_check: UNCHECKED
                                card_security_code_check: PASS
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Payment with card details
                        merchant_reference: dauth-2732268
                        provider_data:
                          id: CHECKOUT
                          transaction_id: pay_hsnchrabo2eyrdpscf5jfkttkq
                          account_id: ''
                          status: Authorized
                          sub_status: ''
                          status_detail: ''
                          response_message: Approved
                          response_code: '10000'
                          raw_response:
                            value: >-
                              {"id":"pay_hsnchrabo2eyrdpscf5jfkttkq","action_id":"act_asfvka3wl6feba2rckhwepse7a","amount":2000000,"currency":"USD","approved":true,"status":"Authorized","auth_code":"515560","response_code":"10000","response_summary":"Approved","balances":{"total_authorized":2000000,"total_voided":0,"available_to_void":2000000,"total_captured":0,"available_to_capture":2000000,"total_refunded":0,"available_to_refund":0},"risk":{"flagged":false},"source":{"id":"src_qkxrcm4onifepfh2xlxkm6jd7e","type":"card","billing_address":{"address_line1":"123
                              Main St","address_line2":"Apt 4B","city":"New
                              York","state":"NY","zip":"10001","country":"US"},"phone":{"number":"5551234567","country_code":"1"},"expiry_month":11,"expiry_year":2028,"name":"John
                              Doe","scheme":"Visa","last4":"0002","fingerprint":"28B828415D6CE32ED9DDA32B0664F2DC4F6C34DFCAD39A439CD8723BD2EBA1DB","bin":"45079900","card_type":"CREDIT","card_category":"CONSUMER","issuer":"VISA
                              ARGENTINA,
                              S.A.","issuer_country":"AR","avs_check":"G","cvv_check":"Y","payment_account_reference":"V001777116202109910","regulated_indicator":false,"is_combo_card":false},"customer":{"id":"cus_w2sjgwj7mb4ufj4rlfkgxepndu","email":"johndoe@example.com","name":"John
                              Doe","phone":{"number":"5551234567","country_code":"1"}},"processed_on":"2026-10-23T07:12:55.5550101Z","reference":"d45d19fe-d45e-407b-8b47-2803eca805a3","scheme_id":"634300709033387","processing":{"acquirer_transaction_id":"252636973293505255222","retrieval_reference_number":"265021656175","merchant_category_code":"5815","scheme_merchant_id":"569051","scheme":"VISA","partner_response_code":"00","aft":false,"pan_type_processed":"fpan","cko_network_token_available":false,"provision_network_token":false},"expires_on":"2026-10-30T07:12:55.5540718Z","_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/actions"},"capture":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/captures"},"void":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/voids"},"authorizations":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/authorizations"}}}
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: '00'
                          iso8583_response_message: null
                          retrieval_reference_number: null
                          merchant_advice_code: null
                          merchant_advice_code_message: null
                          reason_code: null
                          reason_description: null
                        connection_data:
                          id: 7ae96534-83a4-4b2b-8e86-b549d49d4795
                          name: checkout-sbx-card-001
                        created_at: '2026-10-23T07:12:54.994748Z'
                        updated_at: '2026-10-23T07:12:55.696203Z'
                        split_marketplace: []
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                      - id: 7cdc442d-8625-4eda-8db7-74bc794025ba
                        type: AUTHORIZE
                        status: DECLINED
                        category: CARD
                        amount: 20000
                        provider_id: ADYEN
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          vault_on_decline: false
                          token: ''
                          parent_payment_method_type: null
                          otp: {}
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              installments_total_amount: null
                              soft_descriptor: ''
                              authorization_code: ''
                              retrieval_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '45079900'
                                lfd: '0002'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                scheme: VISA
                                issuer_name: VISA ARGENTINA
                                issuer_code: null
                                country_code: AR
                                category: CREDIT
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 4a817c92-8cf1-49d1-8746-361dbbe17bb5
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials: null
                              verification_services:
                                address_line_1_check: UNAVAILABLE
                                zip_code_check: UNAVAILABLE
                                card_holder_name_check: UNCHECKED
                                card_security_code_check: UNCHECKED
                        response_code: DECLINED_BY_PROVIDER
                        response_message: Rejected by the provider. Refer to the provider_data
                        reason: null
                        description: Payment with card details
                        merchant_reference: dauth-2732268
                        provider_data:
                          id: ADYEN
                          transaction_id: QRFGTRFPP6CVGW75
                          account_id: YunoPayments_Sandbox_TEST
                          status: Refused
                          sub_status: ''
                          status_detail: This is not a testCard
                          response_message: This is not a testCard
                          response_code: '2'
                          raw_response:
                            additionalData:
                              PaymentAccountReference: B9DbKiHRNOSPA81drjUWPCE4Gi3TT
                              acquirerCode: TestPmmAcquirer
                              avsResult: 0 Unknown
                              cvcResult: 0 Unknown
                              paymentMethod: visa
                              paymentMethodVariant: visa
                              refusalReasonRaw: This is not a testCard
                            merchantReference: dauth-2732268
                            pspReference: QRFGTRFPP6CVGW75
                            refusalReason: Refused
                            refusalReasonCode: '2'
                            resultCode: Refused
                          third_party_transaction_id: QRFGTRFPP6CVGW75
                          third_party_account_id: ''
                          iso8583_response_code: null
                          iso8583_response_message: null
                          retrieval_reference_number: null
                          merchant_advice_code: null
                          merchant_advice_code_message: null
                          reason_code: null
                          reason_description: null
                        connection_data:
                          id: b95bff50-b126-4212-86b0-ba0f7d5298a6
                          name: adyen-sbx-card-001
                        created_at: '2026-10-23T07:12:54.390824Z'
                        updated_at: '2026-10-23T07:12:54.949141Z'
                        split_marketplace: []
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                      - id: 9ae70b2b-94f8-43e0-8cc2-cbaa90cf8d17
                        type: AUTHORIZE
                        status: DECLINED
                        category: CARD
                        amount: 20000
                        provider_id: STRIPE
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          vault_on_decline: false
                          token: ''
                          parent_payment_method_type: null
                          otp: {}
                          detail:
                            card:
                              verify: false
                              capture: false
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              installments_total_amount: null
                              soft_descriptor: ''
                              authorization_code: ''
                              retrieval_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: John Doe
                                iin: '45079900'
                                lfd: '0002'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                scheme: VISA
                                issuer_name: VISA ARGENTINA
                                issuer_code: null
                                country_code: AR
                                category: CREDIT
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 4a817c92-8cf1-49d1-8746-361dbbe17bb5
                                expiration_month: 11
                                expiration_year: 28
                              stored_credentials: null
                              verification_services:
                                address_line_1_check: UNCHECKED
                                zip_code_check: UNCHECKED
                                card_holder_name_check: UNCHECKED
                                card_security_code_check: UNCHECKED
                        response_code: DECLINED_BY_PROVIDER
                        response_message: Rejected by the provider. Refer to the provider_data
                        reason: null
                        description: Payment with card details
                        merchant_reference: dauth-2732268
                        provider_data:
                          id: STRIPE
                          transaction_id: pi_3UTcenABMAWh2LvX11ZyMegJ
                          account_id: ''
                          status: card_declined
                          sub_status: ''
                          status_detail: ''
                          response_message: >-
                            Your card was declined. Your request used a real card while testing. For a list of valid
                            test cards, visit: https://stripe.com/docs/testing.
                          response_code: test_mode_live_card
                          raw_response:
                            value: >-
                              {"error":{"charge":"ch_3UTcenABMAWh2LvX1qesbxlx","code":"card_declined","decline_code":"test_mode_live_card","doc_url":"https://stripe.com/docs/error-codes/card-declined","message":"Your
                              card was declined. Your request used a real card while testing. For a list of valid test
                              cards, visit:
                              https://stripe.com/docs/testing.","payment_intent":{"id":"pi_3UTcenABMAWh2LvX11ZyMegJ","object":"payment_intent","allowed_payment_method_types":null,"amount":2000000,"amount_capturable":0,"amount_details":{"tip":{}},"amount_received":0,"application":null,"application_fee_amount":null,"automatic_payment_methods":null,"canceled_at":null,"cancellation_reason":null,"capture_method":"manual","client_secret":"****","confirmation_method":"automatic","created":1792739573,"currency":"usd","customer":null,"customer_account":null,"description":"Payment
                              with card
                              details","excluded_payment_method_types":null,"invoice":null,"last_payment_error":{"charge":"ch_3UTcenABMAWh2LvX1qesbxlx","code":"card_declined","decline_code":"test_mode_live_card","doc_url":"https://stripe.com/docs/error-codes/card-declined","message":"Your
                              card was declined. Your request used a real card while testing. For a list of valid test
                              cards, visit:
                              https://stripe.com/docs/testing.","payment_method":{"id":"pm_1UT***","object":"payment_method","allow_redisplay":"unspecified","billing_details":{"address":{"city":"N***
                              Y***","country":"US","line1":"1*** M*** S***","line2":"A***
                              4***","postal_code":"10***","state":"N***"},"email":"j***@example.com","name":"J***
                              D***","phone":null,"tax_id":null},"card":{"brand":"visa","checks":{"address_line1_check":"unchecked","address_postal_code_check":"unchecked","cvc_check":"unchecked"},"country":"AR","display_brand":"visa","exp_month":"****","exp_year":"****","fingerprint":"****","funding":"unknown","generated_from":null,"last4":"0002","network_token":null,"networks":{"available":["visa"],"preferred":null},"regulated_status":"unregulated","three_d_secure_usage":{"supported":true},"wallet":null},"created":1792739573,"customer":null,"customer_account":null,"livemode":false,"metadata":{},"shared_payment_granted_token":null,"type":"card"},"payment_method_type":"card","type":"card_error"},"latest_charge":"ch_3UTcenABMAWh2LvX1qesbxlx","livemode":false,"managed_payments":{"enabled":false},"metadata":{"transaction_code":"9ae70b2b-94f8-43e0-8cc2-cbaa90cf8d17","customer_ip":""},"next_action":null,"on_behalf_of":null,"payment_method":null,"payment_method_configuration_details":null,"payment_method_options":{"card":{"installments":null,"mandate_options":null,"network":null,"request_three_d_secure":"automatic"}},"payment_method_types":["card"],"payment_record":null,"processing":null,"radar_options":{},"receipt_email":null,"review":null,"setup_future_usage":null,"shared_payment_granted_token":null,"shipping":{"address":{"city":"N***
                              Y***","country":"US","line1":"1*** M*** S***","line2":"A***
                              4***","postal_code":"10***","state":"N***"},"carrier":null,"name":"J***
                              D***","phone":"******4567","tracking_number":null},"source":null,"statement_descriptor":null,"statement_descriptor_suffix":null,"status":"requires_payment_method","transfer_data":null,"transfer_group":null},"payment_method":{"id":"pm_1UT***","object":"payment_method","allow_redisplay":"unspecified","billing_details":{"address":{"city":"N***
                              Y***","country":"US","line1":"1*** M*** S***","line2":"A***
                              4***","postal_code":"10***","state":"N***"},"email":"j***@example.com","name":"J***
                              D***","phone":null,"tax_id":null},"card":{"brand":"visa","checks":{"address_line1_check":"unchecked","address_postal_code_check":"unchecked","cvc_check":"unchecked"},"country":"AR","display_brand":"visa","exp_month":"****","exp_year":"****","fingerprint":"****","funding":"unknown","generated_from":null,"last4":"0002","network_token":null,"networks":{"available":["visa"],"preferred":null},"regulated_status":"unregulated","three_d_secure_usage":{"supported":true},"wallet":null},"created":1792739573,"customer":null,"customer_account":null,"livemode":false,"metadata":{},"shared_payment_granted_token":null,"type":"card"},"request_log_url":"https://dashboard.stripe.com/acct_1M6kqSABMAWh2LvX/test/workbench/logs?object=req_VtHGHropsa7iMg","type":"card_error"}}
                          third_party_transaction_id: ''
                          third_party_account_id: ''
                          iso8583_response_code: null
                          iso8583_response_message: null
                          retrieval_reference_number: null
                          merchant_advice_code: null
                          merchant_advice_code_message: null
                          reason_code: null
                          reason_description: null
                        connection_data:
                          id: faf1c910-48ee-4270-8922-bd00416202ca
                          name: stripe-sbx-card-001
                        created_at: '2026-10-23T07:12:53.291760Z'
                        updated_at: '2026-10-23T07:12:54.349659Z'
                        split_marketplace: []
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                Wallet Direct:
                  value:
                    id: 4cc6bc3f-2eb7-4a5f-ac31-ee9be607d863
                    account_id: 1e77dc24-9a01-4ffc-a465-7db5c2ced44d
                    description: Apple Pay test
                    country: US
                    status: ERROR
                    sub_status: ERROR
                    merchant_order_id: MER01
                    created_at: '2025-08-15T04:35:47.080114Z'
                    updated_at: '2025-08-15T04:35:47.252759Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 100
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: APPLE_PAY
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        wallet:
                          verify: false
                          capture: false
                          installments: null
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: MERCHANT
                          installment_amount: null
                          payment_method_id: null
                          payment_method_detail: null
                          date_of_expiration: null
                          money_release_date: null
                          sponsor_id: null
                          authorization_code: null
                          customer_data: null
                          card_data:
                            holder_name: ''
                            iin: ''
                            lfd: ''
                            number_length: 0
                            security_code_length: 0
                            brand: ''
                            issuer_name: ''
                            issuer_code: null
                            country_code: null
                            category: null
                            type: ''
                            fingerprint: null
                            expiration_month: null
                            expiration_year: null
                          redirect_url: null
                          expires_at: null
                          ephemeral_public_key: MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuW/NN1h3s5rQFiOOfXH7VpiPy4Twbyiy4um/5XJcRlwcRuRfy2574VFMKk4FKalyXZC/J4/hcq/taS8yImRBYg==
                          transaction_id: dcba2ab36bdf5f7131ea1c8c590039a95038cb528cf6d6c8a4326e7b8853dca3
                    additional_data:
                      airline: null
                      transportations: null
                      order: null
                      seller_details: null
                    transactions:
                      id: 7dc341d7-9974-4123-8570-60e3c296e6f1
                      type: PURCHASE
                      status: ERROR
                      category: WALLET
                      amount: 100
                      provider_id: YUNO_ROUTING
                      payment_method:
                        vaulted_token: ''
                        type: APPLE_PAY
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          wallet:
                            verify: false
                            capture: false
                            installments: null
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: MERCHANT
                            installment_amount: null
                            payment_method_id: null
                            payment_method_detail: null
                            date_of_expiration: null
                            money_release_date: null
                            sponsor_id: null
                            authorization_code: null
                            customer_data: null
                            card_data:
                              holder_name: ''
                              iin: ''
                              lfd: ''
                              number_length: 0
                              security_code_length: 0
                              brand: ''
                              issuer_name: ''
                              issuer_code: null
                              country_code: null
                              category: null
                              type: ''
                              fingerprint: null
                              expiration_month: null
                              expiration_year: null
                            redirect_url: null
                            expires_at: null
                            ephemeral_public_key: MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuW/NN1h3s5rQFiOOfXH7VpiPy4Twbyiy4um/5XJcRlwcRuRfy2574VFMKk4FKalyXZC/J4/hcq/taS8yImRBYg==
                            transaction_id: dcba2ab36bdf5f7131ea1c8c590039a95038cb528cf6d6c8a4326e7b8853dca3
                      response_code: YUNO_ROUTING_REJECTED
                      response_message: ''
                      reason: null
                      description: null
                      merchant_reference: MER01
                      provider_data:
                        id: YUNO_ROUTING
                        transaction_id: ''
                        account_id: ''
                        status: ''
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response: null
                        third_party_transaction_id: null
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data: null
                      created_at: '2025-08-15T04:35:47.180901Z'
                      updated_at: '2025-08-15T04:35:47.212881Z'
                    transactions_history:
                      - id: 7dc341d7-9974-4123-8570-60e3c296e6f1
                        type: PURCHASE
                        status: ERROR
                        category: WALLET
                        amount: 100
                        provider_id: YUNO_ROUTING
                        payment_method:
                          vaulted_token: ''
                          type: APPLE_PAY
                          vault_on_success: false
                          token: ''
                          parent_payment_method_type: null
                          detail:
                            wallet:
                              verify: false
                              capture: false
                              installments: null
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: MERCHANT
                              installment_amount: null
                              payment_method_id: null
                              payment_method_detail: null
                              date_of_expiration: null
                              money_release_date: null
                              sponsor_id: null
                              authorization_code: null
                              customer_data: null
                              card_data:
                                holder_name: ''
                                iin: ''
                                lfd: ''
                                number_length: 0
                                security_code_length: 0
                                brand: ''
                                issuer_name: ''
                                issuer_code: null
                                country_code: null
                                category: null
                                type: ''
                                fingerprint: null
                                expiration_month: null
                                expiration_year: null
                              redirect_url: null
                              expires_at: null
                              ephemeral_public_key: MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEuW/NN1h3s5rQFiOOfXH7VpiPy4Twbyiy4um/5XJcRlwcRuRfy2574VFMKk4FKalyXZC/J4/hcq/taS8yImRBYg==
                              transaction_id: dcba2ab36bdf5f7131ea1c8c590039a95038cb528cf6d6c8a4326e7b8853dca3
                        response_code: YUNO_ROUTING_REJECTED
                        response_message: ''
                        reason: null
                        description: Apple Pay test
                        merchant_reference: MER01
                        provider_data:
                          id: YUNO_ROUTING
                          transaction_id: ''
                          account_id: ''
                          status: ''
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response: null
                          third_party_transaction_id: null
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data: null
                        created_at: '2025-08-15T04:35:47.180901Z'
                        updated_at: '2025-08-15T04:35:47.212881Z'
                    workflow: DIRECT
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules: null
                    simplified_mode: false
                    shipping: null
                    customer_payer:
                      id: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                      merchant_customer_id: 4321-2732268
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info:
                        user_agent: ''
                        accept_header: ''
                        accept_content: null
                        accept_browser: null
                        color_depth: ''
                        screen_height: ''
                        screen_width: ''
                        javascript_enabled: null
                        java_enabled: null
                        browser_time_difference: null
                        language: ''
                        platform: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                      merchant_customer_validations:
                        account_is_verified: true
                        email_is_verified: true
                        phone_is_verified: true
                  summary: Wallet Direct
                Card - With a Yuno promotion:
                  value:
                    id: 6c44ed29-cc51-4479-a5eb-108afdaadd50
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Card payment with a Yuno promotion
                    country: US
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: '1744403449'
                    created_at: '2025-04-11T20:30:49.825637Z'
                    updated_at: '2025-04-11T20:30:51.953868Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 15000
                    discount_amount:
                      currency: USD
                      value: 1500
                    checkout:
                      session: 7fb7093e-dc67-4c7a-80c5-d25cf5e6ff27
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                      type: CARD
                      vault_on_success: true
                      token: 8cabcd5c-1b40-4407-b14a-14ab21741865
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: true
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: ''
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '835631'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: Fannie Weissnat
                            iin: '41961111'
                            lfd: '0010'
                            number_length: 16
                            security_code_length: 1
                            brand: VISA
                            issuer_name: METABANK
                            issuer_code: null
                            country_code: US
                            category: PREPAID RELOADABLE
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                            expiration_month: 3
                            expiration_year: 24
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 94121f98-98f7-4d57-aa5f-228401d35b12
                      merchant_customer_id: '1744402154'
                      first_name: John
                      last_name: Doe
                      gender: ''
                      date_of_birth: '1990-02-28'
                      email: john.doe2@gmail.com
                      nationality: US
                      ip_address: 192.168.123.167
                      device_fingerprint: hi88287gbd8d7d782ge....
                      device_fingerprints: []
                      browser_info:
                        user_agent: string
                        accept_header: string
                        accept_content: null
                        accept_browser: null
                        color_depth: string
                        screen_height: string
                        screen_width: string
                        javascript_enabled: true
                        java_enabled: null
                        browser_time_difference: null
                        language: string
                      document:
                        document_type: SSN
                        document_number: '38799992'
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: Test
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 502
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: Test
                      merchant_customer_created_at: '2023-08-05T14:43:58.980718Z'
                    additional_data:
                      order:
                        discounts:
                          - type: YUNO_PROMOTION
                            quote_id: qte_…
                            id: b7c1a4f2-6e0d-4a3b-9c55-1f2e7d8a0b31
                            name: 10% off with credit cards - Mother's Day
                            unit_amount: 1500
                            discount_indicator: null
                            discount_rate: null
                    transactions:
                      id: 9dc9524a-504d-4eaf-84ef-c881b46aab25
                      type: PURCHASE
                      status: SUCCEEDED
                      category: CARD
                      amount: 13500
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                        type: CARD
                        vault_on_success: true
                        token: 8cabcd5c-1b40-4407-b14a-14ab21741865
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: true
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '835631'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: Fannie Weissnat
                              iin: '41961111'
                              lfd: '0010'
                              number_length: 16
                              security_code_length: 1
                              brand: VISA
                              issuer_name: METABANK
                              issuer_code: null
                              country_code: US
                              category: PREPAID RELOADABLE
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                              expiration_month: 3
                              expiration_year: 24
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: null
                      description: Test Payment
                      merchant_reference: '1744403449'
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 04d94195-a6ce-455a-b027-5f237f91a576
                        account_id: ''
                        status: SUCCEEDED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response:
                          amount:
                            currency: USD
                            value: 2100
                          merchantAccount: YunoPaymentsECOM
                          reference: '34343434'
                          status: received
                        third_party_transaction_id: ''
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: 90defca1-c913-4894-965c-ed536b65951a
                        name: null
                      created_at: '2025-04-11T20:30:51.097215Z'
                      updated_at: '2025-04-11T20:30:51.199007Z'
                    transactions_history:
                      - id: 9dc9524a-504d-4eaf-84ef-c881b46aab25
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 13500
                        provider_id: YUNO_TEST_PAYMENT_GW
                        payment_method:
                          vaulted_token: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                          type: CARD
                          vault_on_success: true
                          token: 8cabcd5c-1b40-4407-b14a-14ab21741865
                          parent_payment_method_type: null
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              soft_descriptor: ''
                              authorization_code: '835631'
                              retrieval_reference_number: ''
                              acquirer_reference_number: ''
                              voucher: null
                              card_data:
                                holder_name: Fannie Weissnat
                                iin: '41961111'
                                lfd: '0010'
                                number_length: 16
                                security_code_length: 1
                                brand: VISA
                                issuer_name: METABANK
                                issuer_code: null
                                country_code: US
                                category: PREPAID RELOADABLE
                                type: DEBIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                                expiration_month: 3
                                expiration_year: 24
                              stored_credentials:
                                reason: null
                                usage: null
                                subscription_agreement_id: null
                                network_transaction_id: null
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: Test Payment
                        merchant_reference: '1744403449'
                        provider_data:
                          id: YUNO_TEST_PAYMENT_GW
                          transaction_id: 04d94195-a6ce-455a-b027-5f237f91a576
                          account_id: ''
                          status: SUCCEEDED
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: null
                          raw_response:
                            amount:
                              currency: USD
                              value: 2100
                            merchantAccount: YunoPaymentsECOM
                            reference: '34343434'
                            status: received
                          third_party_transaction_id: ''
                          third_party_account_id: null
                          iso8583_response_code: null
                          iso8583_response_message: null
                        connection_data:
                          id: 90defca1-c913-4894-965c-ed536b65951a
                          name: null
                        created_at: '2025-04-11T20:30:51.097215Z'
                        updated_at: '2025-04-11T20:30:51.199007Z'
                    callback_url: http://www.google.com/?checkoutSession=7fb7093e-dc67-4c7a-80c5-d25cf5e6ff27
                    workflow: SDK_CHECKOUT
                    metadata:
                      - key: ID
                        value: '1234'
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 146526
                        name: null
                        description: null
                    simplified_mode: false
                    shipping: null
              schema:
                oneOf:
                  - title: Payment
                    type: object
                    properties:
                      id:
                        type: string
                        example: 6c44ed29-cc51-4479-a5eb-108afdaadd50
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test Payment
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '1744403449'
                      created_at:
                        type: string
                        example: '2025-04-11T20:30:49.825637Z'
                      updated_at:
                        type: string
                        example: '2025-04-11T20:30:51.953868Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          currency_conversion:
                            type: object
                            properties:
                              id:
                                type: string
                                description: Unique identifier of the currency conversion rate query (UUID, 36 chars).
                              code:
                                type: string
                                description: 'Yuno''s internal identifier for this DCC record. Example: `ccv_01HVK3Z9M2...`.'
                              cardholder_currency:
                                type: string
                                description: Currency of the cardholder (ISO 4217, 3 chars).
                              cardholder_amount:
                                type: number
                                description: Total amount billed to the cardholder in `cardholder_currency`.
                              cardholder_accepted:
                                type: boolean
                                description: Indicates if the cardholder accepted the DCC offer.
                              rate:
                                type: number
                                description: Applied FX rate (markup included).
                              rate_margin_percentage:
                                type: number
                                description: Markup added over the wholesale rate, expressed as a percentage.
                              rate_source:
                                type: string
                                description: Wholesale benchmark used for the quote.
                              provider:
                                type: string
                                description: DCC provider that issued the quote.
                              description:
                                type: string
                                description: Verbatim disclosure text shown to the cardholder.
                              created_at:
                                type: string
                                format: date-time
                                description: Timestamp when the DCC provider issued the quote.
                              expires_at:
                                type: string
                                format: date-time
                                description: Timestamp when the quote expires.
                              status:
                                type: string
                                description: Lifecycle state of the conversion.
                                enum:
                                  - QUOTED
                                  - APPLIED
                                  - EXPIRED
                                  - DECLINED
                                  - REVERSED
                                  - SERVICE_UNAVAILABLE
                                  - RATES_UNAVAILABLE
                                  - UNSUPPORTED_CARD
                                  - UNSUPPORTED_LOCAL_CARD
                                  - LESS_THAN_MINIMUM
                                  - NO_INFORMATION
                              error_reason:
                                type: string
                                description: Populated only when DCC could not be applied.
                                enum:
                                  - INVALID_MERCHANT_CONFIGURATION
                                  - CURRENCY_NOT_CONFIGURED
                                  - PROVIDER_NOT_CONFIGURED
                                  - NOT_ELIGIBLE
                                  - BIN_UNKNOWN
                                  - BIN_NOT_ELIGIBLE
                                  - LOCAL_CARD
                                  - UNSUPPORTED_BRAND
                                  - UNSUPPORTED_FUNDING_TYPE
                                  - AMOUNT_BELOW_MINIMUM
                                  - AMOUNT_ABOVE_MAXIMUM
                                  - SERVICE_UNAVAILABLE
                                  - RATES_UNAVAILABLE
                                  - NO_INFORMATION_AVAILABLE
                                  - INVALID_REQUEST
                                  - UNAUTHORISED_REQUEST
                                  - MALFORMED_AMOUNT
                                  - MALFORMED_CURRENCY
                                  - RATE_EXPIRED
                                  - PROVIDER_ERROR
                                  - TIMEOUT
                                  - UNKNOWN
                              provider_data:
                                type: object
                                description: Acquirer round-trip data returned by the underlying provider adapter.
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 15000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: 7fb7093e-dc67-4c7a-80c5-d25cf5e6ff27
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: true
                            default: true
                          token:
                            type: string
                            example: 8cabcd5c-1b40-4407-b14a-14ab21741865
                          parent_payment_method_type: {}
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '835631'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: Fannie Weissnat
                                      iin:
                                        type: string
                                        example: '41961111'
                                      lfd:
                                        type: string
                                        example: '0010'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 1
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: METABANK
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: US
                                      category:
                                        type: string
                                        example: PREPAID RELOADABLE
                                      type:
                                        type: string
                                        example: DEBIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                      fingerprint:
                                        type: string
                                        example: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                                      expiration_month:
                                        type: integer
                                        example: 3
                                        default: 0
                                      expiration_year:
                                        type: integer
                                        example: 24
                                        default: 0
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason: {}
                                      usage: {}
                                      subscription_agreement_id: {}
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 94121f98-98f7-4d57-aa5f-228401d35b12
                          merchant_customer_id:
                            type: string
                            example: '1744402154'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: ''
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe2@gmail.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.123.167
                          device_fingerprint:
                            type: string
                            example: hi88287gbd8d7d782ge....
                          device_fingerprints:
                            type: array
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: string
                              accept_header:
                                type: string
                                example: string
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: string
                              screen_height:
                                type: string
                                example: string
                              screen_width:
                                type: string
                                example: string
                              javascript_enabled:
                                type: boolean
                                example: true
                                default: true
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: string
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: '38799992'
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 502
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood:
                                type: string
                                example: Test
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 502
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood:
                                type: string
                                example: Test
                          merchant_customer_created_at:
                            type: string
                            example: '2023-08-05T14:43:58.980718Z'
                      additional_data:
                        type: object
                        properties:
                          airline:
                            type: object
                            properties:
                              pnr:
                                type: string
                                example: 1P-2UUGJW
                              legs:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    departure_airport:
                                      type: string
                                      example: EZE
                                    departure_datetime:
                                      type: string
                                      example: '2014-05-12 13:05:00'
                                    departure_airport_timezone:
                                      type: string
                                      example: '-03:00'
                                    arrival_airport:
                                      type: string
                                      example: AMS
                                    arrival_airport_timezone:
                                      type: string
                                      example: '+00:00'
                                    arrival_datetime:
                                      type: string
                                      example: ''
                                    carrier_code:
                                      type: string
                                      example: KL
                                    carrier_name:
                                      type: string
                                      example: KLM Royal Dutch Airlines
                                    flight_number:
                                      type: string
                                      example: '842'
                                    fare_basis_code:
                                      type: string
                                      example: HL7LNR
                                    fare_class_code:
                                      type: string
                                      example: FR
                                    base_fare:
                                      type: integer
                                      example: 200
                                      default: 0
                                    base_fare_currency:
                                      type: string
                                      example: USD
                                    stopover_code:
                                      type: string
                                      example: s
                              passengers:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    first_name:
                                      type: string
                                      example: string
                                    last_name:
                                      type: string
                                      example: string
                                    middle_name:
                                      type: string
                                      example: string
                                    type:
                                      type: string
                                      example: s
                                    date_of_birth:
                                      type: string
                                      example: stringstri
                                    nationality:
                                      type: string
                                      example: US
                                    document:
                                      type: object
                                      properties:
                                        document_type:
                                          type: string
                                          example: SSN
                                        document_number:
                                          type: string
                                          example: '351040753'
                                    country:
                                      type: string
                                      example: US
                                    loyalty_number:
                                      type: string
                                      example: string
                                    loyalty_tier:
                                      type: string
                                      example: strin
                                    email: {}
                                    phone: {}
                              ticket:
                                type: object
                                properties:
                                  ticket_number:
                                    type: string
                                    example: '123456'
                                  e_ticket:
                                    type: boolean
                                    example: false
                                    default: true
                                  restricted:
                                    type: boolean
                                    example: false
                                    default: true
                                  total_fare_amount:
                                    type: integer
                                    example: 80
                                    default: 0
                                  total_tax_amount:
                                    type: integer
                                    example: 22
                                    default: 0
                                  total_fee_amount:
                                    type: integer
                                    example: 14
                                    default: 0
                                  issue: {}
                              tickets: {}
                          order:
                            type: object
                            properties:
                              fee_amount:
                                type: number
                                example: 40.5
                                default: 0
                              shipping_amount:
                                type: number
                                example: 10.35
                                default: 0
                              tip_amount: {}
                              items:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: 123AD
                                    name:
                                      type: string
                                      example: Skirt
                                    quantity:
                                      type: integer
                                      example: 3
                                      default: 0
                                    unit_amount:
                                      type: integer
                                      example: 20
                                      default: 0
                                    category:
                                      type: string
                                      example: Clothes
                                    brand:
                                      type: string
                                      example: XYZ
                                    sku_code:
                                      type: string
                                      example: '8765432109'
                                    manufacture_part_number:
                                      type: string
                                      example: XYZ123456
                                    image_url:
                                      type: string
                                      example: https://cdn.example.com/img/skirt-01.jpg
                              account_funding: {}
                              tickets: {}
                              fulfillment: {}
                              discounts:
                                type: array
                                description: >-
                                  The order's discounts. When the payment carries a Yuno promotion, the `YUNO_PROMOTION`
                                  line comes first and Yuno fills it; your own lines follow with `type: MERCHANT`.
                                items:
                                  type: object
                                  properties:
                                    type:
                                      type: string
                                      enum:
                                        - MERCHANT
                                        - YUNO_PROMOTION
                                      description: >-
                                        The type of the discount line. Present when the payment carries a Yuno
                                        promotion.
                                    quote_id:
                                      type: string
                                      description: The promotion quote id. `YUNO_PROMOTION` lines only.
                                    id:
                                      type: string
                                      description: ID of the discount. On a `YUNO_PROMOTION` line, the promotion id.
                                    name:
                                      type: string
                                      description: >-
                                        Name of the discount. On a `YUNO_PROMOTION` line, the promotion name, when Yuno
                                        has it.
                                    unit_amount:
                                      type: number
                                      format: float
                                      description: >-
                                        The amount of the discount. On a `YUNO_PROMOTION` line, the discount in the
                                        payment currency.
                                    discount_indicator:
                                      type:
                                        - string
                                        - 'null'
                                      description: Whether a discount was applied to the line (`Y` or `N`).
                                    discount_rate:
                                      type:
                                        - number
                                        - 'null'
                                      description: The discount rate applied to the line.
                          seller_details: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 9dc9524a-504d-4eaf-84ef-c881b46aab25
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 15000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: true
                                default: true
                              token:
                                type: string
                                example: 8cabcd5c-1b40-4407-b14a-14ab21741865
                              parent_payment_method_type: {}
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '835631'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: Fannie Weissnat
                                          iin:
                                            type: string
                                            example: '41961111'
                                          lfd:
                                            type: string
                                            example: '0010'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 1
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: METABANK
                                          issuer_code: {}
                                          country_code:
                                            type: string
                                            example: US
                                          category:
                                            type: string
                                            example: PREPAID RELOADABLE
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                          fingerprint:
                                            type: string
                                            example: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                                          expiration_month:
                                            type: integer
                                            example: 3
                                            default: 0
                                          expiration_year:
                                            type: integer
                                            example: 24
                                            default: 0
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason: {}
                                          usage: {}
                                          subscription_agreement_id: {}
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test Payment
                          merchant_reference:
                            type: string
                            example: '1744403449'
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 04d94195-a6ce-455a-b027-5f237f91a576
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              sub_status:
                                type: string
                                example: ''
                              status_detail:
                                type: string
                                example: ''
                              response_message: {}
                              response_code: {}
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id: {}
                              iso8583_response_code: {}
                              iso8583_response_message: {}
                          connection_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 90defca1-c913-4894-965c-ed536b65951a
                              name: {}
                          created_at:
                            type: string
                            example: '2025-04-11T20:30:51.097215Z'
                          updated_at:
                            type: string
                            example: '2025-04-11T20:30:51.199007Z'
                      transactions_history:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 9dc9524a-504d-4eaf-84ef-c881b46aab25
                            type:
                              type: string
                              example: PURCHASE
                            status:
                              type: string
                              example: SUCCEEDED
                            category:
                              type: string
                              example: CARD
                            amount:
                              type: number
                              example: 15000
                              default: 0
                            provider_id:
                              type: string
                              example: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: dcc06b32-43ad-4627-aa75-c631eb50c2ac
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: true
                                  default: true
                                token:
                                  type: string
                                  example: 8cabcd5c-1b40-4407-b14a-14ab21741865
                                parent_payment_method_type: {}
                                detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify:
                                          type: boolean
                                          example: false
                                          default: true
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        installments_plan_id: {}
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '835631'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: Fannie Weissnat
                                            iin:
                                              type: string
                                              example: '41961111'
                                            lfd:
                                              type: string
                                              example: '0010'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 1
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: METABANK
                                            issuer_code: {}
                                            country_code:
                                              type: string
                                              example: US
                                            category:
                                              type: string
                                              example: PREPAID RELOADABLE
                                            type:
                                              type: string
                                              example: DEBIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                            fingerprint:
                                              type: string
                                              example: 5605f3e4-69e7-4a9f-9646-2ac8c2e33e12
                                            expiration_month:
                                              type: integer
                                              example: 3
                                              default: 0
                                            expiration_year:
                                              type: integer
                                              example: 24
                                              default: 0
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason: {}
                                            usage: {}
                                            subscription_agreement_id: {}
                                            network_transaction_id: {}
                            response_code:
                              type: string
                              example: SUCCEEDED
                            response_message:
                              type: string
                              example: Transaction successful
                            reason: {}
                            description:
                              type: string
                              example: Test Payment
                            merchant_reference:
                              type: string
                              example: '1744403449'
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                transaction_id:
                                  type: string
                                  example: 04d94195-a6ce-455a-b027-5f237f91a576
                                account_id:
                                  type: string
                                  example: ''
                                status:
                                  type: string
                                  example: SUCCEEDED
                                sub_status:
                                  type: string
                                  example: ''
                                status_detail:
                                  type: string
                                  example: ''
                                response_message: {}
                                response_code: {}
                                raw_request:
                                  type: object
                                  description: >-
                                    Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                    allowlisted organizations.
                                raw_response:
                                  type: object
                                  properties:
                                    amount:
                                      type: object
                                      properties:
                                        currency:
                                          type: string
                                          example: USD
                                        value:
                                          type: integer
                                          example: 2100
                                          default: 0
                                    merchantAccount:
                                      type: string
                                      example: YunoPaymentsECOM
                                    reference:
                                      type: string
                                      example: '34343434'
                                    status:
                                      type: string
                                      example: received
                                third_party_transaction_id:
                                  type: string
                                  example: ''
                                third_party_account_id: {}
                                iso8583_response_code: {}
                                iso8583_response_message: {}
                            connection_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 90defca1-c913-4894-965c-ed536b65951a
                                name: {}
                            created_at:
                              type: string
                              example: '2025-04-11T20:30:51.097215Z'
                            updated_at:
                              type: string
                              example: '2025-04-11T20:30:51.199007Z'
                      callback_url:
                        type: string
                        example: http://www.google.com/?checkoutSession=7fb7093e-dc67-4c7a-80c5-d25cf5e6ff27
                      workflow:
                        type: string
                        example: SDK_CHECKOUT
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: ID
                            value:
                              type: string
                              example: '1234'
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          smart_routing:
                            type: boolean
                            example: false
                            default: true
                          monitors:
                            type: boolean
                            example: false
                            default: true
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 146526
                                default: 0
                              name: {}
                              description: {}
                      simplified_mode:
                        type: boolean
                        example: false
                        default: true
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                  - title: Card - With card details
                    type: object
                    properties:
                      id:
                        type: string
                        example: efa9c785-4a56-4652-9e03-fa5d4096c0e7
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: SUCCESSFUL
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: Order_id
                      created_at:
                        type: string
                        example: '2024-06-07T12:13:48.782758Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:13:49.339964Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 20000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: cd174cd4-8f05-48e9-9b5b-cfd338074ab5
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '41111111'
                                      lfd:
                                        type: string
                                        example: '1111'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: JPMORGAN CHASE BANK N A
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 4b31a9b8-4cd2-4e47-93cf-03729241bd68
                          merchant_customer_id:
                            type: string
                            example: '1717504274'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender: {}
                          date_of_birth: {}
                          email:
                            type: string
                            example: test@test.com
                          nationality: {}
                          ip_address: {}
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document: {}
                          phone: {}
                          billing_address: {}
                          shipping_address: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: b71f05b7-21e9-4f80-99d9-3818699b9676
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 20000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: cd174cd4-8f05-48e9-9b5b-cfd338074ab5
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMORGAN CHASE BANK N A
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: SUCCESSFUL
                          merchant_reference:
                            type: string
                            example: Order_id
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 7a3b40a4-bd94-4293-815b-9e15d1785d6e
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:13:49.007227Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:13:49.144755Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: b71f05b7-21e9-4f80-99d9-3818699b9676
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 20000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: cd174cd4-8f05-48e9-9b5b-cfd338074ab5
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMORGAN CHASE BANK N A
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: SUCCESSFUL
                          merchant_reference:
                            type: string
                            example: Order_id
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 7a3b40a4-bd94-4293-815b-9e15d1785d6e
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:13:49.007227Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:13:49.144755Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening:
                        type: object
                        properties:
                          status:
                            type: string
                          stand_alone:
                            type: boolean
                          created_at:
                            type: string
                          updated_at:
                            type: string
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                status:
                                  type: string
                                response_code:
                                  type: string
                                response_message:
                                  type: string
                                device_fingerprint:
                                  type: string
                                created_at:
                                  type: string
                                updated_at:
                                  type: string
                                provider_data:
                                  type: object
                                  properties:
                                    provider_id:
                                      type: string
                                    transaction_id:
                                      type: string
                                    status:
                                      type: string
                                    score:
                                      type: string
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                    account_id:
                                      type: string
                                    status_detail:
                                      type: string
                                    three_d_secure_provider:
                                      type: string
                                    three_d_secure_setup_transaction_id:
                                      type: string
                                    strong_customer_authentication_exemptions:
                                      type: array
                                      items:
                                        type: string
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With airline data
                    type: object
                    properties:
                      id:
                        type: string
                        example: 638608bf-7af8-4061-9a49-5854de19bd1f
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: SUCCESSFUL
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: Order_id
                      created_at:
                        type: string
                        example: '2024-06-07T12:15:45.471147Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:15:46.120918Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 2000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: d54fffab-0a82-456e-9703-1bf6a8cda3ec
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '41111111'
                                      lfd:
                                        type: string
                                        example: '1111'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: JPMORGAN CHASE BANK N A
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id: {}
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1998-01-01'
                          email:
                            type: string
                            example: test@test.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.0.0.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone: {}
                          billing_address: {}
                          shipping_address: {}
                          merchant_customer_created_at: {}
                      additional_data:
                        type: object
                        properties:
                          airline:
                            type: object
                            properties:
                              pnr:
                                type: string
                                example: ABC123
                              legs:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    departure_airport:
                                      type: string
                                      example: JFK
                                    departure_datetime:
                                      type: string
                                      example: '2024-07-03T05:00:00'
                                    departure_airport_timezone:
                                      type: string
                                      example: GMT-05
                                    arrival_airport:
                                      type: string
                                      example: LAX
                                    arrival_airport_timezone:
                                      type: string
                                      example: '+00:00'
                                    arrival_datetime:
                                      type: string
                                      example: ''
                                    carrier_code:
                                      type: string
                                      example: AA
                                    carrier_name:
                                      type: string
                                      example: American Airlines
                                    flight_number:
                                      type: string
                                      example: AA123
                                    fare_basis_code:
                                      type: string
                                      example: 'Y'
                                    fare_class_code:
                                      type: string
                                      example: S
                                    base_fare:
                                      type: integer
                                      example: 1800
                                      default: 0
                                    base_fare_currency:
                                      type: string
                                      example: USD
                                    stopover_code:
                                      type: string
                                      example: O
                              passengers:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    first_name:
                                      type: string
                                      example: John
                                    last_name:
                                      type: string
                                      example: Doe
                                    middle_name:
                                      type: string
                                      example: Stephen
                                    type:
                                      type: string
                                      example: A
                                    date_of_birth:
                                      type: string
                                      example: '1998-01-01'
                                    nationality:
                                      type: string
                                      example: US
                                    document:
                                      type: object
                                      properties:
                                        document_type:
                                          type: string
                                          example: SSN
                                        document_number:
                                          type: string
                                          example: 987-65-4321
                                    country: {}
                                    loyalty_number:
                                      type: string
                                      example: '79250001'
                                    loyalty_tier:
                                      type: string
                                      example: DIAMOND
                                    email:
                                      type: string
                                      example: john.doe@company.com
                                    phone:
                                      type: object
                                      properties:
                                        number:
                                          type: string
                                          example: '1234567890'
                                        country_code:
                                          type: string
                                          example: '1'
                              ticket: {}
                              tickets:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    ticket_number:
                                      type: string
                                      example: BRB0001
                                    e_ticket:
                                      type: boolean
                                      example: true
                                      default: true
                                    restricted:
                                      type: boolean
                                      example: false
                                      default: true
                                    total_fare_amount:
                                      type: integer
                                      example: 2000
                                      default: 0
                                    total_tax_amount:
                                      type: integer
                                      example: 180
                                      default: 0
                                    total_fee_amount:
                                      type: integer
                                      example: 20
                                      default: 0
                                    issue:
                                      type: object
                                      properties:
                                        carrier_prefix_code:
                                          type: string
                                          example: AA
                                        travel_agent_code:
                                          type: string
                                          example: A12345
                                        travel_agent_name:
                                          type: string
                                          example: TRAVEL AGENCY
                                        date:
                                          type: string
                                          example: '2023-10-31T01:30:00.000-05:00'
                                        address:
                                          type: string
                                          example: 123 Main St
                                        city:
                                          type: string
                                          example: New York
                                        country:
                                          type: string
                                          example: US
                                        zip_code:
                                          type: string
                                          example: '10001'
                          order: {}
                          seller_details: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 35c85e3c-56b0-4a55-b60e-5da2afc6559a
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 2000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: d54fffab-0a82-456e-9703-1bf6a8cda3ec
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMORGAN CHASE BANK N A
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: SUCCESSFUL
                          merchant_reference:
                            type: string
                            example: Order_id
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 42ef6b28-3e37-4d4e-8fbd-13e29088b7ce
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:15:45.762412Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:15:45.957053Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 35c85e3c-56b0-4a55-b60e-5da2afc6559a
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 2000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: d54fffab-0a82-456e-9703-1bf6a8cda3ec
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMORGAN CHASE BANK N A
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: SUCCESSFUL
                          merchant_reference:
                            type: string
                            example: Order_id
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 42ef6b28-3e37-4d4e-8fbd-13e29088b7ce
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:15:45.762412Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:15:45.957053Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening:
                        type: object
                        properties:
                          status:
                            type: string
                          stand_alone:
                            type: boolean
                          created_at:
                            type: string
                          updated_at:
                            type: string
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                status:
                                  type: string
                                response_code:
                                  type: string
                                response_message:
                                  type: string
                                device_fingerprint:
                                  type: string
                                created_at:
                                  type: string
                                updated_at:
                                  type: string
                                provider_data:
                                  type: object
                                  properties:
                                    provider_id:
                                      type: string
                                    transaction_id:
                                      type: string
                                    status:
                                      type: string
                                    score:
                                      type: string
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                    account_id:
                                      type: string
                                    status_detail:
                                      type: string
                                    three_d_secure_provider:
                                      type: string
                                    three_d_secure_setup_transaction_id:
                                      type: string
                                    strong_customer_authentication_exemptions:
                                      type: array
                                      items:
                                        type: string
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With customer, billing, and shipping details
                    type: object
                    properties:
                      id:
                        type: string
                        example: f1169cba-5bda-4f38-8669-6dc0dedb1cb5
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:18:31.082609Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:18:31.603608Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 28d3d22e-21d4-4a3a-a7e1-bac6051650ce
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1690160581'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: Building 43
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: Building 43
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 4928abcc-bab9-45b2-82e7-d73a5cf1e6d4
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 28d3d22e-21d4-4a3a-a7e1-bac6051650ce
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-4bb325a6-bbec-4390-b4a0-876244e2fed4
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: ea1aa51e-e717-4546-9c6f-64716d989c82
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:18:31.326706Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:18:31.511058Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 4928abcc-bab9-45b2-82e7-d73a5cf1e6d4
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 28d3d22e-21d4-4a3a-a7e1-bac6051650ce
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-4bb325a6-bbec-4390-b4a0-876244e2fed4
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: ea1aa51e-e717-4546-9c6f-64716d989c82
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:18:31.326706Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:18:31.511058Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening:
                        type: object
                        properties:
                          status:
                            type: string
                          stand_alone:
                            type: boolean
                          created_at:
                            type: string
                          updated_at:
                            type: string
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                status:
                                  type: string
                                response_code:
                                  type: string
                                response_message:
                                  type: string
                                device_fingerprint:
                                  type: string
                                created_at:
                                  type: string
                                updated_at:
                                  type: string
                                provider_data:
                                  type: object
                                  properties:
                                    provider_id:
                                      type: string
                                    transaction_id:
                                      type: string
                                    status:
                                      type: string
                                    score:
                                      type: string
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                    account_id:
                                      type: string
                                    status_detail:
                                      type: string
                                    three_d_secure_provider:
                                      type: string
                                    three_d_secure_setup_transaction_id:
                                      type: string
                                    strong_customer_authentication_exemptions:
                                      type: array
                                      items:
                                        type: string
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With customer, billing, shipping and order items
                    type: object
                    properties:
                      id:
                        type: string
                        example: dca02690-a71c-4d2e-b804-18894dc882bc
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:19:38.030912Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:19:38.678558Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 6a01dff2-2f2b-469f-b5e1-748b4bff74e0
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1690160896'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: Building 43
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: Building 43
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data:
                        type: object
                        properties:
                          airline: {}
                          order:
                            type: object
                            properties:
                              fee_amount:
                                type: integer
                                example: 0
                                default: 0
                              shipping_amount:
                                type: integer
                                example: 0
                                default: 0
                              tip_amount: {}
                              items:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: 123AD
                                    name:
                                      type: string
                                      example: Skirt
                                    quantity:
                                      type: integer
                                      example: 1
                                      default: 0
                                    unit_amount:
                                      type: integer
                                      example: 5000
                                      default: 0
                                    category:
                                      type: string
                                      example: Clothes
                                    brand:
                                      type: string
                                      example: XYZ
                                    sku_code:
                                      type: string
                                      example: '8765432109'
                                    manufacture_part_number:
                                      type: string
                                      example: XYZ123456
                                    image_url:
                                      type: string
                                      example: https://cdn.example.com/img/skirt-01.jpg
                          seller_details: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: bf22cc6e-5fc6-48eb-8b23-a436e966e396
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 6a01dff2-2f2b-469f-b5e1-748b4bff74e0
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-91bd1b3e-4cf7-43ed-ab5b-12448a0ccffc
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: dc591ae7-638e-42cb-b040-f516910544b4
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:19:38.504882Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:19:38.597089Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: bf22cc6e-5fc6-48eb-8b23-a436e966e396
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 6a01dff2-2f2b-469f-b5e1-748b4bff74e0
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-91bd1b3e-4cf7-43ed-ab5b-12448a0ccffc
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: dc591ae7-638e-42cb-b040-f516910544b4
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:19:38.504882Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:19:38.597089Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With installments
                    type: object
                    properties:
                      id:
                        type: string
                        example: 31d7ae21-2786-4c5f-bbdd-b232217a093b
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:20:48.854498Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:20:49.177216Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 3
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 50fb98cb-57c8-4008-bc50-c7bede574dbf
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1690161049'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 95083b42-55b3-468b-9cf4-05dfe6efeb61
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 3
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 50fb98cb-57c8-4008-bc50-c7bede574dbf
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-660caf6a-9e37-4f4c-934f-961406790435
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 540111bb-597a-45c7-b4eb-7611ae1d364a
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:20:49.004461Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:20:49.113139Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 95083b42-55b3-468b-9cf4-05dfe6efeb61
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 3
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 50fb98cb-57c8-4008-bc50-c7bede574dbf
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-660caf6a-9e37-4f4c-934f-961406790435
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 540111bb-597a-45c7-b4eb-7611ae1d364a
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:20:49.004461Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:20:49.113139Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With authorization
                    type: object
                    properties:
                      id:
                        type: string
                        example: 62fe7b57-9fab-495b-8d0c-00493b23382c
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: PENDING
                      sub_status:
                        type: string
                        example: AUTHORIZED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:21:52.234096Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:21:52.751636Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 44b0c463-d567-4e1c-b9c0-9ab8b7876b67
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1690161049'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 560b1feb-972f-49d7-9517-7e950cec942a
                          type:
                            type: string
                            example: AUTHORIZE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 44b0c463-d567-4e1c-b9c0-9ab8b7876b67
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-4acdf5cc-620b-4e99-bcd7-3406b78ec941
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 717de0b5-f1b6-4a3b-8e12-88c619da4e8e
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:21:52.427906Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:21:52.555318Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 560b1feb-972f-49d7-9517-7e950cec942a
                          type:
                            type: string
                            example: AUTHORIZE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 44b0c463-d567-4e1c-b9c0-9ab8b7876b67
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-4acdf5cc-620b-4e99-bcd7-3406b78ec941
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 717de0b5-f1b6-4a3b-8e12-88c619da4e8e
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:21:52.427906Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:21:52.555318Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With merchant advice code (MAC)
                    type: object
                    properties:
                      id:
                        type: string
                        example: 62fe7b57-9fab-495b-8d0c-00493b23382c
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: PENDING
                      sub_status:
                        type: string
                        example: AUTHORIZED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:21:52.234096Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:21:52.751636Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 44b0c463-d567-4e1c-b9c0-9ab8b7876b67
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1690161049'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 560b1feb-972f-49d7-9517-7e950cec942a
                          type:
                            type: string
                            example: AUTHORIZE
                          status:
                            type: string
                            example: DECLINED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 44b0c463-d567-4e1c-b9c0-9ab8b7876b67
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: DECLINED
                          response_message:
                            type: string
                            example: Transaction declined
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-4acdf5cc-620b-4e99-bcd7-3406b78ec941
                          merchant_advice_code:
                            type: string
                            example: TRY_AGAIN_LATER
                          merchant_advice_code_message:
                            type: string
                            example: Retry within 30 days
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 717de0b5-f1b6-4a3b-8e12-88c619da4e8e
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: DECLINED
                              status_detail:
                                type: string
                                example: ''
                              merchant_advice_code:
                                type: string
                                example: '51'
                              merchant_advice_code_message:
                                type: string
                                example: Insufficient funds – try again later
                              response_message:
                                type: string
                                example: Insufficient funds
                              response_code:
                                type: string
                                example: '51'
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:21:52.427906Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:21:52.555318Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 560b1feb-972f-49d7-9517-7e950cec942a
                          type:
                            type: string
                            example: AUTHORIZE
                          status:
                            type: string
                            example: DECLINED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 44b0c463-d567-4e1c-b9c0-9ab8b7876b67
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: DECLINED
                          response_message:
                            type: string
                            example: Transaction declined
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-4acdf5cc-620b-4e99-bcd7-3406b78ec941
                          merchant_advice_code:
                            type: string
                            example: TRY_AGAIN_LATER
                          merchant_advice_code_message:
                            type: string
                            example: Retry within 30 days
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 717de0b5-f1b6-4a3b-8e12-88c619da4e8e
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: DECLINED
                              status_detail:
                                type: string
                                example: ''
                              merchant_advice_code:
                                type: string
                                example: '51'
                              merchant_advice_code_message:
                                type: string
                                example: Insufficient funds – try again later
                              response_message:
                                type: string
                                example: Insufficient funds
                              response_code:
                                type: string
                                example: '51'
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:21:52.427906Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:21:52.555318Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With device fingerprint
                    type: object
                    properties:
                      id:
                        type: string
                        example: 48afc1fa-3de7-408c-8066-8278d7f9beab
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:24:52.264241Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:24:52.693718Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: acf8d864-8e87-42b4-8041-59216e3f1a88
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1690161049'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: c29bc9f6-fb80-44b9-b421-5f50e2ef5724
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: acf8d864-8e87-42b4-8041-59216e3f1a88
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-f3646ea1-b573-4548-9c2e-0a8fdbaf5525
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 7651d9d2-ae39-4a87-854e-5f27332ec3d6
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:24:52.427414Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:24:52.614018Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: c29bc9f6-fb80-44b9-b421-5f50e2ef5724
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: acf8d864-8e87-42b4-8041-59216e3f1a88
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-f3646ea1-b573-4548-9c2e-0a8fdbaf5525
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 7651d9d2-ae39-4a87-854e-5f27332ec3d6
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:24:52.427414Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:24:52.614018Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With vault on success
                    type: object
                    properties:
                      id:
                        type: string
                        example: 6b8a3776-9171-45a7-b493-9b2f9b6162f2
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:25:40.798647Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:25:41.624438Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: b527529f-0662-42e3-a597-0881b4cf8b0a
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: true
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 67fe53c7-0c94-4880-9599-411bc2373096
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 967ecd18-d898-4b88-9400-dd5b01b18edc
                          merchant_customer_id:
                            type: string
                            example: '1690161049'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint:
                            type: string
                            example: hi88287gbd8d7d782ge287gbd8d7d78
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 99f645ed-fd20-48ca-8715-c3a817a5bb1e
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: b527529f-0662-42e3-a597-0881b4cf8b0a
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: true
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 67fe53c7-0c94-4880-9599-411bc2373096
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-212be171-5061-4207-abdd-4b48bd743e16
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 102901fd-7d44-4889-9200-0b9217ea081d
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:25:40.942576Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:25:41.050420Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 99f645ed-fd20-48ca-8715-c3a817a5bb1e
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: b527529f-0662-42e3-a597-0881b4cf8b0a
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: true
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 67fe53c7-0c94-4880-9599-411bc2373096
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-212be171-5061-4207-abdd-4b48bd743e16
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 102901fd-7d44-4889-9200-0b9217ea081d
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:25:40.942576Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:25:41.050420Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With vaulted token
                    type: object
                    properties:
                      id:
                        type: string
                        example: 6a414d8d-bea3-452d-bf1a-b2bfed245e45
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-07T12:26:25.365858Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:26:25.767076Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: eb8caa17-6407-457b-960e-125d8d7a90c1
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: e0d334a5-b4d0-4623-bcc3-b9c64b5cc7cb
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40518856'
                                      lfd:
                                        type: string
                                        example: '6623'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: ''
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: CREDIT
                                      type:
                                        type: string
                                        example: CREDIT
                                      fingerprint:
                                        type: string
                                        example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 967ecd18-d898-4b88-9400-dd5b01b18edc
                          merchant_customer_id:
                            type: string
                            example: '1690161049'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint:
                            type: string
                            example: hi88287gbd8d7d782ge287gbd8d7d78
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1600 Amphitheatre Parkway
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: CA
                              city:
                                type: string
                                example: Mountain View
                              zip_code:
                                type: string
                                example: '94043'
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 545ad2a0-d7aa-4cce-be7f-d1fa6e093986
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: eb8caa17-6407-457b-960e-125d8d7a90c1
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: e0d334a5-b4d0-4623-bcc3-b9c64b5cc7cb
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          fingerprint:
                                            type: string
                                            example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-b912e874-5086-4757-8224-11644af710d0
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 664fa5e8-67c2-4d87-aa19-bfa90532cf2b
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:26:25.533632Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:26:25.646797Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 545ad2a0-d7aa-4cce-be7f-d1fa6e093986
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: eb8caa17-6407-457b-960e-125d8d7a90c1
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: e0d334a5-b4d0-4623-bcc3-b9c64b5cc7cb
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: CREDIT
                                          type:
                                            type: string
                                            example: CREDIT
                                          fingerprint:
                                            type: string
                                            example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test
                          merchant_reference:
                            type: string
                            example: reference-b912e874-5086-4757-8224-11644af710d0
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 664fa5e8-67c2-4d87-aa19-bfa90532cf2b
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: USD
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:26:25.533632Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:26:25.646797Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Alternative payment method
                    type: object
                    properties:
                      id:
                        type: string
                        example: a3f96c96-f1cb-4f97-b63b-9e4881f14778
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test ADDI
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: READY_TO_PAY
                      sub_status:
                        type: string
                        example: CREATED
                      merchant_order_id:
                        type: string
                        example: '0000022'
                      created_at:
                        type: string
                        example: '2024-06-07T12:29:19.614206Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:29:21.531934Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 52000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: 7d4a1e92-7f66-45ae-82e7-cea52a8f8e8f
                          sdk_action_required:
                            type: boolean
                            example: true
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: ADDI
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              bnpl:
                                type: object
                                properties:
                                  installments: {}
                                  provider_image: {}
                                  redirect_url:
                                    type: string
                                    example: https://checkout.sandbox.y.uno/payment?session=534d57d1-78a7-4670-b0a5-79c9c6a8259e
                                  customer_data: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: example00234
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address: {}
                          shipping_address: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 97a498dc-c50a-4bf1-97c5-f0dd1993f707
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: CREATED
                          category:
                            type: string
                            example: BUY_NOW_PAY_LATER
                          amount:
                            type: number
                            example: 52000
                            default: 0
                          provider_id:
                            type: string
                            example: ADDI
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: ADDI
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  bnpl:
                                    type: object
                                    properties:
                                      installments: {}
                                      provider_image: {}
                                      redirect_url:
                                        type: string
                                        example: https://checkout.sandbox.y.uno/payment?session=534d57d1-78a7-4670-b0a5-79c9c6a8259e
                                      customer_data: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test ADDI
                          merchant_reference:
                            type: string
                            example: '0000022'
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: ADDI
                              transaction_id:
                                type: string
                                example: '0000022'
                              account_id:
                                type: string
                                example: Bs3IB9WgGHvsiOgVt0VpHoXkx8RIeu1r
                              status:
                                type: string
                                example: CREATED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  value:
                                    type: string
                                    example: ''
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id: {}
                          created_at:
                            type: string
                            example: '2024-06-07T12:29:19.797875Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:29:21.462594Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 97a498dc-c50a-4bf1-97c5-f0dd1993f707
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: CREATED
                          category:
                            type: string
                            example: BUY_NOW_PAY_LATER
                          amount:
                            type: number
                            example: 52000
                            default: 0
                          provider_id:
                            type: string
                            example: ADDI
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: ADDI
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  bnpl:
                                    type: object
                                    properties:
                                      installments: {}
                                      provider_image: {}
                                      redirect_url:
                                        type: string
                                        example: https://checkout.sandbox.y.uno/payment?session=534d57d1-78a7-4670-b0a5-79c9c6a8259e
                                      customer_data: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test ADDI
                          merchant_reference:
                            type: string
                            example: '0000022'
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: ADDI
                              transaction_id:
                                type: string
                                example: '0000022'
                              account_id:
                                type: string
                                example: Bs3IB9WgGHvsiOgVt0VpHoXkx8RIeu1r
                              status:
                                type: string
                                example: CREATED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  value:
                                    type: string
                                    example: ''
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id: {}
                          created_at:
                            type: string
                            example: '2024-06-07T12:29:19.797875Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:29:21.462594Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: REDIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 8012
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With shipping, fee and tip amount
                    type: object
                    properties:
                      id:
                        type: string
                        example: 591b4df0-6b18-494b-8a30-b88d7f999e03
                      account_id:
                        type: string
                        example: 493e9374-510a-4201-9e09-de669d75f256
                      description:
                        type: string
                        example: Test Cards
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '0000022'
                      created_at:
                        type: string
                        example: '2024-06-07T12:48:21.476913Z'
                      updated_at:
                        type: string
                        example: '2024-06-07T12:48:22.097913Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 100
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: 10edfb5f-e658-446e-99b6-999598efc145
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ec9f354e-52e5-4509-ac4e-c3035dcdf111
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: true
                            default: true
                          token:
                            type: string
                            example: 54867b9c-989a-426e-86f2-2fc703fe8c7c
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 08bb27be-1256-4067-976f-7f589707e90e
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '41961111'
                                      lfd:
                                        type: string
                                        example: '0010'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: META BANK
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: PREPAID RELOADABLE
                                      type:
                                        type: string
                                        example: DEBIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: a577ad8f-08f1-4590-9cf1-e7679b15ee84
                          merchant_customer_id:
                            type: string
                            example: '1717677815'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main Street
                              address_line_2:
                                type: string
                                example: Suite 500
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main Street
                              address_line_2:
                                type: string
                                example: Suite 500
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data:
                        type: object
                        properties:
                          airline: {}
                          order:
                            type: object
                            properties:
                              fee_amount:
                                type: integer
                                example: 500
                                default: 0
                              shipping_amount:
                                type: integer
                                example: 100
                                default: 0
                              tip_amount:
                                type: integer
                                example: 50
                                default: 0
                              items:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: 123AD
                                    name:
                                      type: string
                                      example: Skirt
                                    quantity:
                                      type: integer
                                      example: 1
                                      default: 0
                                    unit_amount:
                                      type: integer
                                      example: 5000
                                      default: 0
                                    category:
                                      type: string
                                      example: Clothes
                                    brand:
                                      type: string
                                      example: XYZ
                                    sku_code:
                                      type: string
                                      example: '8765432109'
                                    manufacture_part_number:
                                      type: string
                                      example: XYZ123456
                                    image_url:
                                      type: string
                                      example: https://cdn.example.com/img/skirt-01.jpg
                          seller_details: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: dd1beb86-9cce-44d3-80f9-dd77eb927a6e
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 100
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ec9f354e-52e5-4509-ac4e-c3035dcdf111
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: true
                                default: true
                              token:
                                type: string
                                example: 54867b9c-989a-426e-86f2-2fc703fe8c7c
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 08bb27be-1256-4067-976f-7f589707e90e
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41961111'
                                          lfd:
                                            type: string
                                            example: '0010'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: META BANK
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: PREPAID RELOADABLE
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test Cards
                          merchant_reference:
                            type: string
                            example: Pago de test 001
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: b00cc57c-cd98-435a-a1c9-7a5f5c6e7481
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: BRL
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:48:21.698209Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:48:21.859552Z'
                      transactions_history:
                        type: object
                        properties:
                          id:
                            type: string
                            example: dd1beb86-9cce-44d3-80f9-dd77eb927a6e
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 100
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ec9f354e-52e5-4509-ac4e-c3035dcdf111
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: true
                                default: true
                              token:
                                type: string
                                example: 54867b9c-989a-426e-86f2-2fc703fe8c7c
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 08bb27be-1256-4067-976f-7f589707e90e
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41961111'
                                          lfd:
                                            type: string
                                            example: '0010'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: META BANK
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: PREPAID RELOADABLE
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test Cards
                          merchant_reference:
                            type: string
                            example: Pago de test 001
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: b00cc57c-cd98-435a-a1c9-7a5f5c6e7481
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: BRL
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-07T12:48:21.698209Z'
                          updated_at:
                            type: string
                            example: '2024-06-07T12:48:21.859552Z'
                      split:
                        type: array
                      callback_url:
                        type: string
                        example: https://google.com/?checkoutSession=10edfb5f-e658-446e-99b6-999598efc145
                      workflow:
                        type: string
                        example: SDK_CHECKOUT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 76152
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Card - With NT
                    type: object
                    properties:
                      id:
                        type: string
                        example: bc0489ba-80bf-4bb9-98c5-ff8dfbceebf9
                      account_id:
                        type: string
                        example: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                      description:
                        type: string
                        example: SUCCESSFUL
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: Order_id
                      created_at:
                        type: string
                        example: '2023-07-12T18:51:49.437886Z'
                      updated_at:
                        type: string
                        example: '2023-07-12T18:51:54.679410Z'
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: integer
                            example: 20000
                            default: 0
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          captured:
                            type: integer
                            example: 0
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify: {}
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '517862'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  network_token:
                                    type: object
                                    properties:
                                      network:
                                        type: string
                                        example: MASTERCARD
                                      status:
                                        type: string
                                        example: ACTIVE
                                      par:
                                        type: string
                                        example: V0010014622074319305424002620
                                      token_data:
                                        type: object
                                        properties:
                                          iin:
                                            type: string
                                            example: '45079900'
                                          lfd:
                                            type: string
                                            example: '0010'
                                          expiration_month:
                                            type: string
                                            example: '10'
                                          expiration_year:
                                            type: string
                                            example: '2028'
                                          network_payment_reference:
                                            type: string
                                            example: MCC000000355
                                          response:
                                            type: object
                                            properties:
                                              code:
                                                type: string
                                                example: succeeded
                                              message:
                                                type: string
                                                example: Transaction Succeeded
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: a76d79b7-902f-4152-922f-7e7eebc5f3dc
                          merchant_customer_id:
                            type: string
                            example: '1309'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address: {}
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: string
                              accept_header:
                                type: string
                                example: string
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: '32'
                              screen_height:
                                type: string
                                example: '32'
                              screen_width:
                                type: string
                                example: '32'
                              javascript_enabled:
                                type: boolean
                                example: true
                                default: true
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: string
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5555551234'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              city:
                                type: string
                                example: New York
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: ''
                              country:
                                type: string
                                example: US
                              city:
                                type: string
                                example: New York
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: c718b8e9-2943-4fdf-9b3c-426cf44940fb
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 20000
                            default: 0
                          provider_id:
                            type: string
                            example: DLOCAL
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '517862'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      network_token:
                                        type: object
                                        properties:
                                          network:
                                            type: string
                                            example: MASTERCARD
                                          status:
                                            type: string
                                            example: ACTIVE
                                          par:
                                            type: string
                                            example: V0010014622074319305424002620
                                          token_data:
                                            type: object
                                            properties:
                                              iin:
                                                type: string
                                                example: '45079900'
                                              lfd:
                                                type: string
                                                example: '0010'
                                              expiration_month:
                                                type: string
                                                example: '10'
                                              expiration_year:
                                                type: string
                                                example: '2028'
                                              network_payment_reference:
                                                type: string
                                                example: MCC000000355
                                              response:
                                                type: object
                                                properties:
                                                  code:
                                                    type: string
                                                    example: succeeded
                                                  message:
                                                    type: string
                                                    example: Transaction Succeeded
                                          stored_credentials:
                                            type: object
                                            properties:
                                              reason:
                                                type: string
                                                example: SUBSCRIPTION
                                              usage:
                                                type: string
                                                example: USED
                                              subscription_agreement_id:
                                                type: string
                                                example: XXXX01
                                              network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: SUCCESSFUL
                          merchant_reference: {}
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: DLOCAL
                              transaction_id:
                                type: string
                                example: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: PAID
                              status_detail:
                                type: string
                                example: '200'
                              response_message:
                                type: string
                                example: The payment was paid.
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  value:
                                    type: string
                                    example: >-
                                      {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":20000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                      Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T18:51:52.000+0000","approved_date":"2023-07-12T18:51:54.000+0000","status":"PAID","status_detail":"The
                                      payment was
                                      paid.","status_code":"200","order_id":"c718b8e9-2943-4fdf-9b3c-426cf44940fb","description":"SUCCESSFUL","notification_url":"https://sandbox.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"517862"}}
                              third_party_transaction_id:
                                type: string
                                example: ''
                          three_d_secure_action_required: {}
                          created_at:
                            type: string
                            example: '2023-07-12T18:51:51.908784Z'
                          updated_at:
                            type: string
                            example: '2023-07-12T18:51:54.426087Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_code:
                        type: string
                        example: ''
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      transactions_history:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: d45d19fe-d45e-407b-8b47-2803eca805a3
                            type:
                              type: string
                              example: AUTHORIZE
                            status:
                              type: string
                              example: SUCCEEDED
                            category:
                              type: string
                              example: CARD
                            amount:
                              type: number
                              example: 20000
                            provider_id:
                              type: string
                              example: CHECKOUT
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                vault_on_decline:
                                  type: boolean
                                  example: false
                                token:
                                  type: string
                                  example: ''
                                parent_payment_method_type:
                                  nullable: true
                                otp:
                                  type: object
                                  properties: {}
                                detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify:
                                          type: boolean
                                          example: false
                                        capture:
                                          type: boolean
                                          example: false
                                        installments:
                                          type: integer
                                          example: 1
                                        installments_plan_id:
                                          nullable: true
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount:
                                          nullable: true
                                        installments_total_amount:
                                          nullable: true
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '515560'
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        voucher:
                                          nullable: true
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '45079900'
                                            lfd:
                                              type: string
                                              example: '0002'
                                            number_length:
                                              type: integer
                                              example: 16
                                            security_code_length:
                                              type: integer
                                              example: 3
                                            brand:
                                              type: string
                                              example: VISA
                                            scheme:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: VISA ARGENTINA
                                            issuer_code:
                                              nullable: true
                                            country_code:
                                              type: string
                                              example: AR
                                            category:
                                              type: string
                                              example: CREDIT
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version:
                                                  nullable: true
                                                electronic_commerce_indicator:
                                                  nullable: true
                                                cryptogram:
                                                  nullable: true
                                                transaction_id:
                                                  nullable: true
                                                directory_server_transaction_id:
                                                  nullable: true
                                                pares_status:
                                                  nullable: true
                                                acs_id:
                                                  nullable: true
                                            fingerprint:
                                              type: string
                                              example: 4a817c92-8cf1-49d1-8746-361dbbe17bb5
                                            expiration_month:
                                              type: integer
                                              example: 11
                                            expiration_year:
                                              type: integer
                                              example: 28
                                        stored_credentials:
                                          nullable: true
                                        verification_services:
                                          type: object
                                          properties:
                                            address_line_1_check:
                                              type: string
                                              example: UNAVAILABLE
                                            zip_code_check:
                                              type: string
                                              example: UNAVAILABLE
                                            card_holder_name_check:
                                              type: string
                                              example: UNCHECKED
                                            card_security_code_check:
                                              type: string
                                              example: PASS
                            response_code:
                              type: string
                              example: SUCCEEDED
                            response_message:
                              type: string
                              example: Transaction successful
                            reason:
                              nullable: true
                            description:
                              type: string
                              example: Payment with card details
                            merchant_reference:
                              type: string
                              example: dauth-2732268
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: CHECKOUT
                                transaction_id:
                                  type: string
                                  example: pay_hsnchrabo2eyrdpscf5jfkttkq
                                account_id:
                                  type: string
                                  example: ''
                                status:
                                  type: string
                                  example: Authorized
                                sub_status:
                                  type: string
                                  example: ''
                                status_detail:
                                  type: string
                                  example: ''
                                response_message:
                                  type: string
                                  example: Approved
                                response_code:
                                  type: string
                                  example: '10000'
                                raw_response:
                                  type: object
                                  properties:
                                    value:
                                      type: string
                                      example: >-
                                        {"id":"pay_hsnchrabo2eyrdpscf5jfkttkq","action_id":"act_asfvka3wl6feba2rckhwepse7a","amount":2000000,"currency":"USD","approved":true,"status":"Authorized","auth_code":"515560","response_code":"10000","response_summary":"Approved","balances":{"total_authorized":2000000,"total_voided":0,"available_to_void":2000000,"total_captured":0,"available_to_capture":2000000,"total_refunded":0,"available_to_refund":0},"risk":{"flagged":false},"source":{"id":"src_qkxrcm4onifepfh2xlxkm6jd7e","type":"card","billing_address":{"address_line1":"123
                                        Main St","address_line2":"Apt 4B","city":"New
                                        York","state":"NY","zip":"10001","country":"US"},"phone":{"number":"5551234567","country_code":"1"},"expiry_month":11,"expiry_year":2028,"name":"John
                                        Doe","scheme":"Visa","last4":"0002","fingerprint":"28B828415D6CE32ED9DDA32B0664F2DC4F6C34DFCAD39A439CD8723BD2EBA1DB","bin":"45079900","card_type":"CREDIT","card_category":"CONSUMER","issuer":"VISA
                                        ARGENTINA,
                                        S.A.","issuer_country":"AR","avs_check":"G","cvv_check":"Y","payment_account_reference":"V001777116202109910","regulated_indicator":false,"is_combo_card":false},"customer":{"id":"cus_w2sjgwj7mb4ufj4rlfkgxepndu","email":"johndoe@example.com","name":"John
                                        Doe","phone":{"number":"5551234567","country_code":"1"}},"processed_on":"2026-10-23T07:12:55.5550101Z","reference":"d45d19fe-d45e-407b-8b47-2803eca805a3","scheme_id":"634300709033387","processing":{"acquirer_transaction_id":"252636973293505255222","retrieval_reference_number":"265021656175","merchant_category_code":"5815","scheme_merchant_id":"569051","scheme":"VISA","partner_response_code":"00","aft":false,"pan_type_processed":"fpan","cko_network_token_available":false,"provision_network_token":false},"expires_on":"2026-10-30T07:12:55.5540718Z","_links":{"self":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq"},"actions":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/actions"},"capture":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/captures"},"void":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/voids"},"authorizations":{"href":"https://api.sandbox.checkout.com/payments/pay_hsnchrabo2eyrdpscf5jfkttkq/authorizations"}}}
                                third_party_transaction_id:
                                  type: string
                                  example: ''
                                third_party_account_id:
                                  nullable: true
                                iso8583_response_code:
                                  type: string
                                  example: '00'
                                iso8583_response_message:
                                  nullable: true
                                retrieval_reference_number:
                                  nullable: true
                                merchant_advice_code:
                                  nullable: true
                                merchant_advice_code_message:
                                  nullable: true
                                reason_code:
                                  nullable: true
                                reason_description:
                                  nullable: true
                            connection_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 7ae96534-83a4-4b2b-8e86-b549d49d4795
                                name:
                                  type: string
                                  example: checkout-sbx-card-001
                            created_at:
                              type: string
                              example: '2026-10-23T07:12:54.994748Z'
                            updated_at:
                              type: string
                              example: '2026-10-23T07:12:55.696203Z'
                            split_marketplace:
                              type: array
                              items: {}
                            merchant_advice_code:
                              nullable: true
                            merchant_advice_code_message:
                              nullable: true
                        description: Transactions history.
                      payment_link_id:
                        type: string
                        example: ''
                        description: Payment link id.
                      subscription_code:
                        nullable: true
                        description: Subscription code.
                      routing_rules:
                        type: object
                        properties:
                          smart_routing:
                            type: boolean
                            example: false
                          monitors:
                            type: boolean
                            example: false
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 744740
                              name:
                                type: string
                                example: default_route
                              description:
                                nullable: true
                        description: Routing rules.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Wallet - Direct
                    type: object
                    properties:
                      id:
                        type: string
                        example: 83ef67f1-db87-4c78-918a-e1199c8f9889
                      account_id:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      description:
                        type: string
                        example: Test Apple Pay
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '1719585343'
                      created_at:
                        type: string
                        example: '2024-06-28T14:35:47.193965Z'
                      updated_at:
                        type: string
                        example: '2024-06-28T14:35:52.918803Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 500
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: 0a3666b1-ea6e-4ebb-937d-5a9f69ef2b77
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '48302690'
                                      lfd:
                                        type: string
                                        example: '9081'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 0
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: UNITED OVERSEAS BANK
                                      issuer_code: {}
                                      category:
                                        type: string
                                        example: PLATINUM
                                      type:
                                        type: string
                                        example: DEBIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                                  fingerprint: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 36e470e3-eeb7-4b3a-9b51-57eb78eb0476
                          merchant_customer_id:
                            type: string
                            example: '1719502776'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender: {}
                          date_of_birth: {}
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address: {}
                          device_fingerprint: {}
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: ''
                              accept_header:
                                type: string
                                example: ''
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: ''
                              screen_height:
                                type: string
                                example: ''
                              screen_width:
                                type: string
                                example: ''
                              javascript_enabled: {}
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: ''
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone: {}
                          billing_address: {}
                          shipping_address: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      taxes: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: f1caa080-9174-481a-8c04-62e790b257bc
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 500
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: 0a3666b1-ea6e-4ebb-937d-5a9f69ef2b77
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '48302690'
                                          lfd:
                                            type: string
                                            example: '9081'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 0
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: UNITED OVERSEAS BANK
                                          issuer_code: {}
                                          category:
                                            type: string
                                            example: PLATINUM
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                                      fingerprint: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: Test Apple Pay
                          merchant_reference:
                            type: string
                            example: '1719585343'
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 14d38e69-25fe-414b-96d0-fa829c4ea2e8
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: SUCCEEDED
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: ''
                              response_code:
                                type: string
                                example: ''
                              iso8583_response_code:
                                type: string
                                example: '00'
                              iso8583_response_message:
                                type: string
                                example: Approved or completed successfully
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: object
                                    properties:
                                      currency:
                                        type: string
                                        example: BRL
                                      value:
                                        type: integer
                                        example: 2100
                                        default: 0
                                  merchantAccount:
                                    type: string
                                    example: YunoPaymentsECOM
                                  reference:
                                    type: string
                                    example: '34343434'
                                  status:
                                    type: string
                                    example: received
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id:
                                type: string
                                example: ''
                          created_at:
                            type: string
                            example: '2024-06-28T14:35:48.757654Z'
                          updated_at:
                            type: string
                            example: '2024-06-28T14:35:52.414067Z'
                      transactions_history:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: f1caa080-9174-481a-8c04-62e790b257bc
                            type:
                              type: string
                              example: PURCHASE
                            status:
                              type: string
                              example: SUCCEEDED
                            category:
                              type: string
                              example: CARD
                            amount:
                              type: number
                              example: 500
                              default: 0
                            provider_id:
                              type: string
                              example: YUNO_TEST_PAYMENT_GW
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify: {}
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        installments_plan_id: {}
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: 0a3666b1-ea6e-4ebb-937d-5a9f69ef2b77
                                        retrieval_reference_number:
                                          type: string
                                          example: ''
                                        acquirer_reference_number:
                                          type: string
                                          example: ''
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John Doe
                                            iin:
                                              type: string
                                              example: '48302690'
                                            lfd:
                                              type: string
                                              example: '9081'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 0
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: UNITED OVERSEAS BANK
                                            issuer_code: {}
                                            category:
                                              type: string
                                              example: PLATINUM
                                            type:
                                              type: string
                                              example: DEBIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                                        fingerprint: {}
                            response_code:
                              type: string
                              example: SUCCEEDED
                            response_message:
                              type: string
                              example: Transaction successful
                            reason: {}
                            description:
                              type: string
                              example: Test Apple Pay
                            merchant_reference:
                              type: string
                              example: '1719585343'
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                transaction_id:
                                  type: string
                                  example: 14d38e69-25fe-414b-96d0-fa829c4ea2e8
                                account_id:
                                  type: string
                                  example: ''
                                status:
                                  type: string
                                  example: SUCCEEDED
                                status_detail:
                                  type: string
                                  example: ''
                                response_message:
                                  type: string
                                  example: ''
                                response_code:
                                  type: string
                                  example: ''
                                iso8583_response_code:
                                  type: string
                                  example: '00'
                                iso8583_response_message:
                                  type: string
                                  example: Approved or completed successfully
                                raw_request:
                                  type: object
                                  description: >-
                                    Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                    allowlisted organizations.
                                raw_response:
                                  type: object
                                  properties:
                                    amount:
                                      type: object
                                      properties:
                                        currency:
                                          type: string
                                          example: BRL
                                        value:
                                          type: integer
                                          example: 2100
                                          default: 0
                                    merchantAccount:
                                      type: string
                                      example: YunoPaymentsECOM
                                    reference:
                                      type: string
                                      example: '34343434'
                                    status:
                                      type: string
                                      example: received
                                third_party_transaction_id:
                                  type: string
                                  example: ''
                                third_party_account_id:
                                  type: string
                                  example: ''
                            created_at:
                              type: string
                              example: '2024-06-28T14:35:48.757654Z'
                            updated_at:
                              type: string
                              example: '2024-06-28T14:35:52.414067Z'
                      split:
                        type: array
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 34646
                                default: 0
                              name: {}
                              description: {}
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                  - title: Split Marketplace
                    type: object
                    properties:
                      id:
                        type: string
                        example: 2886d661-43a3-4298-9c60-d0d519146eae
                      account_id:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      description:
                        type: string
                        example: SUCCEEDED
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: APPROVED
                      merchant_order_id:
                        type: string
                        example: '1726689692'
                      created_at:
                        type: string
                        example: '2024-09-18T20:01:34.641603Z'
                      updated_at:
                        type: string
                        example: '2024-09-18T20:01:37.787304Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          currency_conversion:
                            type: object
                            properties:
                              id:
                                type: string
                                description: Unique identifier of the currency conversion rate query (UUID, 36 chars).
                              code:
                                type: string
                                description: 'Yuno''s internal identifier for this DCC record. Example: `ccv_01HVK3Z9M2...`.'
                              cardholder_currency:
                                type: string
                                description: Currency of the cardholder (ISO 4217, 3 chars).
                              cardholder_amount:
                                type: number
                                description: Total amount billed to the cardholder in `cardholder_currency`.
                              cardholder_accepted:
                                type: boolean
                                description: Indicates if the cardholder accepted the DCC offer.
                              rate:
                                type: number
                                description: Applied FX rate (markup included).
                              rate_margin_percentage:
                                type: number
                                description: Markup added over the wholesale rate, expressed as a percentage.
                              rate_source:
                                type: string
                                description: Wholesale benchmark used for the quote.
                              provider:
                                type: string
                                description: DCC provider that issued the quote.
                              description:
                                type: string
                                description: Verbatim disclosure text shown to the cardholder.
                              created_at:
                                type: string
                                format: date-time
                                description: Timestamp when the DCC provider issued the quote.
                              expires_at:
                                type: string
                                format: date-time
                                description: Timestamp when the quote expires.
                              status:
                                type: string
                                description: Lifecycle state of the conversion.
                                enum:
                                  - QUOTED
                                  - APPLIED
                                  - EXPIRED
                                  - DECLINED
                                  - REVERSED
                                  - SERVICE_UNAVAILABLE
                                  - RATES_UNAVAILABLE
                                  - UNSUPPORTED_CARD
                                  - UNSUPPORTED_LOCAL_CARD
                                  - LESS_THAN_MINIMUM
                                  - NO_INFORMATION
                              error_reason:
                                type: string
                                description: Populated only when DCC could not be applied.
                                enum:
                                  - INVALID_MERCHANT_CONFIGURATION
                                  - CURRENCY_NOT_CONFIGURED
                                  - PROVIDER_NOT_CONFIGURED
                                  - NOT_ELIGIBLE
                                  - BIN_UNKNOWN
                                  - BIN_NOT_ELIGIBLE
                                  - LOCAL_CARD
                                  - UNSUPPORTED_BRAND
                                  - UNSUPPORTED_FUNDING_TYPE
                                  - AMOUNT_BELOW_MINIMUM
                                  - AMOUNT_ABOVE_MAXIMUM
                                  - SERVICE_UNAVAILABLE
                                  - RATES_UNAVAILABLE
                                  - NO_INFORMATION_AVAILABLE
                                  - INVALID_REQUEST
                                  - UNAUTHORISED_REQUEST
                                  - MALFORMED_AMOUNT
                                  - MALFORMED_CURRENCY
                                  - RATE_EXPIRED
                                  - PROVIDER_ERROR
                                  - TIMEOUT
                                  - UNKNOWN
                              provider_data:
                                type: object
                                description: Acquirer round-trip data returned by the underlying provider adapter.
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 5000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: true
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '847277'
                                  retrieval_reference_number:
                                    type: string
                                    example: '2206177255'
                                  acquirer_reference_number:
                                    type: string
                                    example: '2206177255'
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '40000000'
                                      lfd:
                                        type: string
                                        example: '0010'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: CHASE BANK
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: US
                                      category:
                                        type: string
                                        example: STANDARD
                                      type:
                                        type: string
                                        example: CREDIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                      fingerprint: {}
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason:
                                        type: string
                                        example: SUBSCRIPTION
                                      usage:
                                        type: string
                                        example: USED
                                      subscription_agreement_id:
                                        type: string
                                        example: XXXX01
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 6c75c6aa-9602-4a31-b772-41de43586cfb
                          merchant_customer_id:
                            type: string
                            example: example00234
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.123.167
                          device_fingerprint:
                            type: string
                            example: hi88287gbd8d7d782ge....
                          browser_info:
                            type: object
                            properties:
                              user_agent:
                                type: string
                                example: string
                              accept_header:
                                type: string
                                example: string
                              accept_content: {}
                              accept_browser: {}
                              color_depth:
                                type: string
                                example: string
                              screen_height:
                                type: string
                                example: string
                              screen_width:
                                type: string
                                example: string
                              javascript_enabled:
                                type: boolean
                                example: true
                                default: true
                              java_enabled: {}
                              browser_time_difference: {}
                              language:
                                type: string
                                example: string
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data:
                        type: object
                        properties:
                          airline: {}
                          order:
                            type: object
                            properties:
                              fee_amount: {}
                              shipping_amount: {}
                              tip_amount: {}
                              items:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: 123AD
                                    name:
                                      type: string
                                      example: Skirt
                                    quantity:
                                      type: integer
                                      example: 1
                                      default: 0
                                    unit_amount:
                                      type: integer
                                      example: 5000
                                      default: 0
                                    category:
                                      type: string
                                      example: Clothes
                                    brand:
                                      type: string
                                      example: XYZ
                                    sku_code:
                                      type: string
                                      example: '8765432109'
                                    manufacture_part_number:
                                      type: string
                                      example: XYZ123456
                                    image_url:
                                      type: string
                                      example: https://cdn.example.com/img/skirt-01.jpg
                          seller_details: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 8c5cc283-9c01-4ab0-938e-226c19536ce4
                          type:
                            type: string
                            example: PURCHASE
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: number
                            example: 5000
                            default: 0
                          provider_id:
                            type: string
                            example:
                              - PAGARME
                              - ALELO
                              - EDENRED
                              - PLUXEE
                              - VR
                              - STRIPE
                              - ADYEN
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '847277'
                                      retrieval_reference_number:
                                        type: string
                                        example: '2206177255'
                                      acquirer_reference_number:
                                        type: string
                                        example: '2206177255'
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John
                                          iin:
                                            type: string
                                            example: '40000000'
                                          lfd:
                                            type: string
                                            example: '0010'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: ''
                                          issuer_code: {}
                                          country_code:
                                            type: string
                                            example: US
                                          category:
                                            type: string
                                            example: STANDARD
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                          fingerprint: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason: {}
                          description:
                            type: string
                            example: SUCCEDED
                          merchant_reference:
                            type: string
                            example: '1726689692'
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example:
                                  - PAGARME
                                  - ALELO
                                  - EDENRED
                                  - PLUXEE
                                  - VR
                                  - STRIPE
                                  - ADYEN
                              transaction_id:
                                type: string
                                example: ch_Roz1ld4HkcRb1A4W
                              account_id:
                                type: string
                                example: sk_test_5eaa117d8c524eae8836438a49fdaefd
                              status:
                                type: string
                                example: captured
                              sub_status:
                                type: string
                                example: ''
                              status_detail:
                                type: string
                                example: ''
                              response_message:
                                type: string
                                example: Transaction approved successfully
                              response_code:
                                type: string
                                example: '200'
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  amount:
                                    type: integer
                                    example: 500000
                                    default: 0
                                  charges:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        amount:
                                          type: integer
                                          example: 500000
                                          default: 0
                                        code:
                                          type: string
                                          example: PDXHD8BNER
                                        created_at:
                                          type: string
                                          example: '2024-09-18T20:01:35Z'
                                        currency:
                                          type: string
                                          example: USD
                                        customer:
                                          type: object
                                          properties:
                                            address:
                                              type: object
                                              properties:
                                                city:
                                                  type: string
                                                  example: New York
                                                country:
                                                  type: string
                                                  example: US
                                                created_at:
                                                  type: string
                                                  example: '2024-09-13T19:37:46Z'
                                                id:
                                                  type: string
                                                  example: addr_EoRV4ZjhrhV4N7W3
                                                line_1:
                                                  type: string
                                                  example: 'Calle 34 # 56 - 78'
                                                state:
                                                  type: string
                                                  example: NY
                                                status:
                                                  type: string
                                                  example: active
                                                updated_at:
                                                  type: string
                                                  example: '2024-09-18T19:37:01Z'
                                                zip_code:
                                                  type: string
                                                  example: '111111'
                                            created_at:
                                              type: string
                                              example: '2024-09-13T19:37:46Z'
                                            delinquent:
                                              type: boolean
                                              example: false
                                              default: true
                                            document:
                                              type: string
                                              example: '83885322005'
                                            document_type:
                                              type: string
                                              example: cpf
                                            email:
                                              type: string
                                              example: Johndoe@y.uno
                                            id:
                                              type: string
                                              example: cus_78Y42XPSkSZ2ky3P
                                            metadata:
                                              type: object
                                              properties:
                                                platform_integration:
                                                  type: string
                                                  example: yuno
                                            name:
                                              type: string
                                              example: John Doe
                                            phones:
                                              type: object
                                              properties:
                                                home_phone:
                                                  type: object
                                                  properties:
                                                    area_code:
                                                      type: string
                                                      example: '31'
                                                    country_code:
                                                      type: string
                                                      example: '57'
                                                    number:
                                                      type: string
                                                      example: '32450765'
                                                mobile_phone:
                                                  type: object
                                                  properties:
                                                    area_code:
                                                      type: string
                                                      example: '31'
                                                    country_code:
                                                      type: string
                                                      example: '57'
                                                    number:
                                                      type: string
                                                      example: '32450765'
                                            type:
                                              type: string
                                              example: individual
                                            updated_at:
                                              type: string
                                              example: '2024-09-18T19:37:01Z'
                                        gateway_id:
                                          type: string
                                          example: '2206177255'
                                        id:
                                          type: string
                                          example: ch_Roz1ld4HkcRb1A4W
                                        last_transaction:
                                          type: object
                                          properties:
                                            acquirer_auth_code:
                                              type: string
                                              example: '847277'
                                            acquirer_message:
                                              type: string
                                              example: Transaction approved successfully
                                            acquirer_name:
                                              type: string
                                              example: pagarme
                                            acquirer_nsu:
                                              type: string
                                              example: '2206177255'
                                            acquirer_return_code:
                                              type: string
                                              example: '0000'
                                            acquirer_tid:
                                              type: string
                                              example: '2206177255'
                                            amount:
                                              type: integer
                                              example: 500000
                                              default: 0
                                            antifraud_response:
                                              type: object
                                              properties:
                                                provider_name:
                                                  type: string
                                                  example: pagarme
                                                score:
                                                  type: string
                                                  example: very_low
                                                status:
                                                  type: string
                                                  example: approved
                                            card:
                                              type: object
                                              properties:
                                                billing_address:
                                                  type: object
                                                  properties:
                                                    city:
                                                      type: string
                                                      example: New York
                                                    complement:
                                                      type: string
                                                      example: Apartamento 502, Torre I
                                                    country:
                                                      type: string
                                                      example: US
                                                    line_1:
                                                      type: string
                                                      example: 'Calle 34 # 56 - 78'
                                                    line_2:
                                                      type: string
                                                      example: Apartamento 502, Torre I
                                                    state:
                                                      type: string
                                                      example: NY
                                                    street:
                                                      type: string
                                                      example: 'Calle 34 # 56 - 78'
                                                    zip_code:
                                                      type: string
                                                      example: '111111'
                                                brand:
                                                  type: string
                                                  example: Visa
                                                created_at:
                                                  type: string
                                                  example: '2024-09-17T18:12:52Z'
                                                exp_month:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                exp_year:
                                                  type: integer
                                                  example: 2030
                                                  default: 0
                                                first_six_digits:
                                                  type: string
                                                  example: '400000'
                                                holder_name:
                                                  type: string
                                                  example: John
                                                id:
                                                  type: string
                                                  example: card_4QyP124IVIWDbpqO
                                                last_four_digits:
                                                  type: string
                                                  example: '0010'
                                                status:
                                                  type: string
                                                  example: active
                                                type:
                                                  type: string
                                                  example: credit
                                                updated_at:
                                                  type: string
                                                  example: '2024-09-18T20:01:35Z'
                                            created_at:
                                              type: string
                                              example: '2024-09-18T20:01:35Z'
                                            funding_source:
                                              type: string
                                              example: credit
                                            gateway_id:
                                              type: string
                                              example: '2206177255'
                                            gateway_response:
                                              type: object
                                              properties:
                                                code:
                                                  type: string
                                                  example: '200'
                                                errors:
                                                  type: array
                                            id:
                                              type: string
                                              example: tran_xgr0Om8HXQi5X4pJ
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            metadata:
                                              type: object
                                              properties: {}
                                            operation_type:
                                              type: string
                                              example: auth_and_capture
                                            split:
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  amount:
                                                    type: integer
                                                    example: 400000
                                                    default: 0
                                                  gateway_id:
                                                    type: string
                                                    example: sr_cm18agoda1hdd0k9t5kh2hb76
                                                  id:
                                                    type: string
                                                    example: sr_cm18agoda1hdd0k9t5kh2hb76
                                                  options:
                                                    type: object
                                                    properties:
                                                      charge_processing_fee:
                                                        type: boolean
                                                        example: true
                                                        default: true
                                                      charge_remainder_fee:
                                                        type: boolean
                                                        example: true
                                                        default: true
                                                      liable:
                                                        type: boolean
                                                        example: true
                                                        default: true
                                                  recipient:
                                                    type: object
                                                    properties:
                                                      created_at:
                                                        type: string
                                                        example: '2024-09-17T16:38:32Z'
                                                      description:
                                                        type: string
                                                        example: ''
                                                      document:
                                                        type: string
                                                        example: '26224451990'
                                                      email:
                                                        type: string
                                                        example: steverogers@yuno.com
                                                      id:
                                                        type: string
                                                        example: re_cm16nrp0u0tl60k9t1lopi9ld
                                                      name:
                                                        type: string
                                                        example: Steve Rogers
                                                      payment_mode:
                                                        type: string
                                                        example: bank_transfer
                                                      status:
                                                        type: string
                                                        example: active
                                                      type:
                                                        type: string
                                                        example: company
                                                      updated_at:
                                                        type: string
                                                        example: '2024-09-17T16:38:32Z'
                                                  type:
                                                    type: string
                                                    example: flat
                                            status:
                                              type: string
                                              example: captured
                                            success:
                                              type: boolean
                                              example: true
                                              default: true
                                            transaction_type:
                                              type: string
                                              example: credit_card
                                            updated_at:
                                              type: string
                                              example: '2024-09-18T20:01:35Z'
                                        paid_amount:
                                          type: integer
                                          example: 500000
                                          default: 0
                                        paid_at:
                                          type: string
                                          example: '2024-09-18T20:01:37Z'
                                        payment_method:
                                          type: string
                                          example: credit_card
                                        status:
                                          type: string
                                          example: paid
                                        updated_at:
                                          type: string
                                          example: '2024-09-18T20:01:37Z'
                                  checkouts:
                                    type: array
                                  closed:
                                    type: boolean
                                    example: true
                                    default: true
                                  closed_at:
                                    type: string
                                    example: '2024-09-18T20:01:35Z'
                                  code:
                                    type: string
                                    example: PDXHD8BNER
                                  created_at:
                                    type: string
                                    example: '2024-09-18T20:01:35Z'
                                  currency:
                                    type: string
                                    example: USD
                                  customer:
                                    type: object
                                    properties:
                                      address:
                                        type: object
                                        properties:
                                          city:
                                            type: string
                                            example: New York
                                          country:
                                            type: string
                                            example: US
                                          created_at:
                                            type: string
                                            example: '2024-09-13T19:37:46Z'
                                          id:
                                            type: string
                                            example: addr_EoRV4ZjhrhV4N7W3
                                          line_1:
                                            type: string
                                            example: 'Calle 34 # 56 - 78'
                                          state:
                                            type: string
                                            example: NY
                                          status:
                                            type: string
                                            example: active
                                          updated_at:
                                            type: string
                                            example: '2024-09-18T19:37:01Z'
                                          zip_code:
                                            type: string
                                            example: '111111'
                                      created_at:
                                        type: string
                                        example: '2024-09-13T19:37:46Z'
                                      delinquent:
                                        type: boolean
                                        example: false
                                        default: true
                                      document:
                                        type: string
                                        example: '83885322005'
                                      document_type:
                                        type: string
                                        example: cpf
                                      email:
                                        type: string
                                        example: Johndoe@y.uno
                                      id:
                                        type: string
                                        example: cus_78Y42XPSkSZ2ky3P
                                      metadata:
                                        type: object
                                        properties:
                                          platform_integration:
                                            type: string
                                            example: yuno
                                      name:
                                        type: string
                                        example: John Doe
                                      phones:
                                        type: object
                                        properties:
                                          home_phone:
                                            type: object
                                            properties:
                                              area_code:
                                                type: string
                                                example: '31'
                                              country_code:
                                                type: string
                                                example: '57'
                                              number:
                                                type: string
                                                example: '32450765'
                                          mobile_phone:
                                            type: object
                                            properties:
                                              area_code:
                                                type: string
                                                example: '31'
                                              country_code:
                                                type: string
                                                example: '57'
                                              number:
                                                type: string
                                                example: '32450765'
                                      type:
                                        type: string
                                        example: individual
                                      updated_at:
                                        type: string
                                        example: '2024-09-18T19:37:01Z'
                                  id:
                                    type: string
                                    example: or_xZ3ewgPfQ4UKevmP
                                  items:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        amount:
                                          type: integer
                                          example: 500000
                                          default: 0
                                        code:
                                          type: string
                                          example: '8765432109'
                                        created_at:
                                          type: string
                                          example: '2024-09-18T20:01:35Z'
                                        description:
                                          type: string
                                          example: Skirt
                                        id:
                                          type: string
                                          example: oi_2e8lbEqI4rT41LWX
                                        quantity:
                                          type: integer
                                          example: 1
                                          default: 0
                                        status:
                                          type: string
                                          example: active
                                        type:
                                          type: string
                                          example: product
                                        updated_at:
                                          type: string
                                          example: '2024-09-18T20:01:35Z'
                                  shipping:
                                    type: object
                                    properties:
                                      address:
                                        type: object
                                        properties:
                                          city:
                                            type: string
                                            example: New York
                                          country:
                                            type: string
                                            example: CO
                                          line_1:
                                            type: string
                                            example: 'Calle 34 # 56 - 78'
                                          state:
                                            type: string
                                            example: NY
                                          zip_code:
                                            type: string
                                            example: '111111'
                                      description:
                                        type: string
                                        example: Shipping
                                      recipient_name:
                                        type: string
                                        example: John Doe
                                      recipient_phone:
                                        type: string
                                        example: 57 3132450765
                                  status:
                                    type: string
                                    example: paid
                                  updated_at:
                                    type: string
                                    example: '2024-09-18T20:01:37Z'
                              third_party_transaction_id:
                                type: string
                                example: ''
                              third_party_account_id: {}
                              iso8583_response_code: {}
                              iso8583_response_message: {}
                          created_at:
                            type: string
                            example: '2024-09-18T20:01:34.847998Z'
                          updated_at:
                            type: string
                            example: '2024-09-18T20:01:37.751372Z'
                      transactions_history:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 8c5cc283-9c01-4ab0-938e-226c19536ce4
                            type:
                              type: string
                              example: PURCHASE
                            status:
                              type: string
                              example: SUCCEEDED
                            category:
                              type: string
                              example: CARD
                            amount:
                              type: number
                              example: 5000
                              default: 0
                            provider_id:
                              type: string
                              example: PAGARME
                            payment_method:
                              type: object
                              properties:
                                vaulted_token:
                                  type: string
                                  example: ''
                                type:
                                  type: string
                                  example: CARD
                                vault_on_success:
                                  type: boolean
                                  example: false
                                  default: true
                                token:
                                  type: string
                                  example: ''
                                detail:
                                  type: object
                                  properties:
                                    card:
                                      type: object
                                      properties:
                                        verify:
                                          type: boolean
                                          example: false
                                          default: true
                                        capture:
                                          type: boolean
                                          example: true
                                          default: true
                                        installments:
                                          type: integer
                                          example: 1
                                          default: 0
                                        installments_plan_id: {}
                                        first_installment_deferral:
                                          type: integer
                                          example: 0
                                          default: 0
                                        installments_type:
                                          type: string
                                          example: ''
                                        installment_amount: {}
                                        soft_descriptor:
                                          type: string
                                          example: ''
                                        authorization_code:
                                          type: string
                                          example: '847277'
                                        retrieval_reference_number:
                                          type: string
                                          example: '2206177255'
                                        acquirer_reference_number:
                                          type: string
                                          example: '2206177255'
                                        voucher: {}
                                        card_data:
                                          type: object
                                          properties:
                                            holder_name:
                                              type: string
                                              example: John
                                            iin:
                                              type: string
                                              example: '40000000'
                                            lfd:
                                              type: string
                                              example: '0010'
                                            number_length:
                                              type: integer
                                              example: 16
                                              default: 0
                                            security_code_length:
                                              type: integer
                                              example: 3
                                              default: 0
                                            brand:
                                              type: string
                                              example: VISA
                                            issuer_name:
                                              type: string
                                              example: ''
                                            issuer_code: {}
                                            country_code:
                                              type: string
                                              example: US
                                            category:
                                              type: string
                                              example: STANDARD
                                            type:
                                              type: string
                                              example: CREDIT
                                            three_d_secure:
                                              type: object
                                              properties:
                                                version: {}
                                                electronic_commerce_indicator: {}
                                                cryptogram: {}
                                                transaction_id: {}
                                                directory_server_transaction_id: {}
                                                pares_status: {}
                                                acs_id: {}
                                            fingerprint: {}
                                        stored_credentials:
                                          type: object
                                          properties:
                                            reason:
                                              type: string
                                              example: SUBSCRIPTION
                                            usage:
                                              type: string
                                              example: USED
                                            subscription_agreement_id:
                                              type: string
                                              example: XXXX01
                                            network_transaction_id: {}
                            response_code:
                              type: string
                              example: SUCCEEDED
                            response_message:
                              type: string
                              example: Transaction successful
                            reason: {}
                            description:
                              type: string
                              example: SUCCEDED
                            merchant_reference:
                              type: string
                              example: '1726689692'
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: PAGARME
                                transaction_id:
                                  type: string
                                  example: ch_Roz1ld4HkcRb1A4W
                                account_id:
                                  type: string
                                  example: sk_test_5eaa117d8c524eae8836438a49fdaefd
                                status:
                                  type: string
                                  example: captured
                                sub_status:
                                  type: string
                                  example: ''
                                status_detail:
                                  type: string
                                  example: ''
                                response_message:
                                  type: string
                                  example: Transaction approved successfully
                                response_code:
                                  type: string
                                  example: '200'
                                raw_request:
                                  type: object
                                  description: >-
                                    Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                    allowlisted organizations.
                                raw_response:
                                  type: object
                                  properties:
                                    amount:
                                      type: integer
                                      example: 500000
                                      default: 0
                                    charges:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          amount:
                                            type: integer
                                            example: 500000
                                            default: 0
                                          code:
                                            type: string
                                            example: PDXHD8BNER
                                          created_at:
                                            type: string
                                            example: '2024-09-18T20:01:35Z'
                                          currency:
                                            type: string
                                            example: USD
                                          customer:
                                            type: object
                                            properties:
                                              address:
                                                type: object
                                                properties:
                                                  city:
                                                    type: string
                                                    example: New York
                                                  country:
                                                    type: string
                                                    example: US
                                                  created_at:
                                                    type: string
                                                    example: '2024-09-13T19:37:46Z'
                                                  id:
                                                    type: string
                                                    example: addr_EoRV4ZjhrhV4N7W3
                                                  line_1:
                                                    type: string
                                                    example: 'Calle 34 # 56 - 78'
                                                  state:
                                                    type: string
                                                    example: NY
                                                  status:
                                                    type: string
                                                    example: active
                                                  updated_at:
                                                    type: string
                                                    example: '2024-09-18T19:37:01Z'
                                                  zip_code:
                                                    type: string
                                                    example: '111111'
                                              created_at:
                                                type: string
                                                example: '2024-09-13T19:37:46Z'
                                              delinquent:
                                                type: boolean
                                                example: false
                                                default: true
                                              document:
                                                type: string
                                                example: '83885322005'
                                              document_type:
                                                type: string
                                                example: cpf
                                              email:
                                                type: string
                                                example: Johndoe@y.uno
                                              id:
                                                type: string
                                                example: cus_78Y42XPSkSZ2ky3P
                                              metadata:
                                                type: object
                                                properties:
                                                  platform_integration:
                                                    type: string
                                                    example: yuno
                                              name:
                                                type: string
                                                example: John Doe
                                              phones:
                                                type: object
                                                properties:
                                                  home_phone:
                                                    type: object
                                                    properties:
                                                      area_code:
                                                        type: string
                                                        example: '31'
                                                      country_code:
                                                        type: string
                                                        example: '57'
                                                      number:
                                                        type: string
                                                        example: '32450765'
                                                  mobile_phone:
                                                    type: object
                                                    properties:
                                                      area_code:
                                                        type: string
                                                        example: '31'
                                                      country_code:
                                                        type: string
                                                        example: '57'
                                                      number:
                                                        type: string
                                                        example: '32450765'
                                              type:
                                                type: string
                                                example: individual
                                              updated_at:
                                                type: string
                                                example: '2024-09-18T19:37:01Z'
                                          gateway_id:
                                            type: string
                                            example: '2206177255'
                                          id:
                                            type: string
                                            example: ch_Roz1ld4HkcRb1A4W
                                          last_transaction:
                                            type: object
                                            properties:
                                              acquirer_auth_code:
                                                type: string
                                                example: '847277'
                                              acquirer_message:
                                                type: string
                                                example: Transaction approved successfully
                                              acquirer_name:
                                                type: string
                                                example: pagarme
                                              acquirer_nsu:
                                                type: string
                                                example: '2206177255'
                                              acquirer_return_code:
                                                type: string
                                                example: '0000'
                                              acquirer_tid:
                                                type: string
                                                example: '2206177255'
                                              amount:
                                                type: integer
                                                example: 500000
                                                default: 0
                                              antifraud_response:
                                                type: object
                                                properties:
                                                  provider_name:
                                                    type: string
                                                    example: pagarme
                                                  score:
                                                    type: string
                                                    example: very_low
                                                  status:
                                                    type: string
                                                    example: approved
                                              card:
                                                type: object
                                                properties:
                                                  billing_address:
                                                    type: object
                                                    properties:
                                                      city:
                                                        type: string
                                                        example: New York
                                                      complement:
                                                        type: string
                                                        example: Apartamento 502, Torre I
                                                      country:
                                                        type: string
                                                        example: US
                                                      line_1:
                                                        type: string
                                                        example: 'Calle 34 # 56 - 78'
                                                      line_2:
                                                        type: string
                                                        example: Apartamento 502, Torre I
                                                      state:
                                                        type: string
                                                        example: NY
                                                      street:
                                                        type: string
                                                        example: 'Calle 34 # 56 - 78'
                                                      zip_code:
                                                        type: string
                                                        example: '111111'
                                                  brand:
                                                    type: string
                                                    example: Visa
                                                  created_at:
                                                    type: string
                                                    example: '2024-09-17T18:12:52Z'
                                                  exp_month:
                                                    type: integer
                                                    example: 3
                                                    default: 0
                                                  exp_year:
                                                    type: integer
                                                    example: 2030
                                                    default: 0
                                                  first_six_digits:
                                                    type: string
                                                    example: '400000'
                                                  holder_name:
                                                    type: string
                                                    example: John
                                                  id:
                                                    type: string
                                                    example: card_4QyP124IVIWDbpqO
                                                  last_four_digits:
                                                    type: string
                                                    example: '0010'
                                                  status:
                                                    type: string
                                                    example: active
                                                  type:
                                                    type: string
                                                    example: credit
                                                  updated_at:
                                                    type: string
                                                    example: '2024-09-18T20:01:35Z'
                                              created_at:
                                                type: string
                                                example: '2024-09-18T20:01:35Z'
                                              funding_source:
                                                type: string
                                                example: credit
                                              gateway_id:
                                                type: string
                                                example: '2206177255'
                                              gateway_response:
                                                type: object
                                                properties:
                                                  code:
                                                    type: string
                                                    example: '200'
                                                  errors:
                                                    type: array
                                              id:
                                                type: string
                                                example: tran_xgr0Om8HXQi5X4pJ
                                              installments:
                                                type: integer
                                                example: 1
                                                default: 0
                                              metadata:
                                                type: object
                                                properties: {}
                                              operation_type:
                                                type: string
                                                example: auth_and_capture
                                              split:
                                                type: array
                                                items:
                                                  type: object
                                                  properties:
                                                    amount:
                                                      type: integer
                                                      example: 400000
                                                      default: 0
                                                    gateway_id:
                                                      type: string
                                                      example: sr_cm18agoda1hdd0k9t5kh2hb76
                                                    id:
                                                      type: string
                                                      example: sr_cm18agoda1hdd0k9t5kh2hb76
                                                    options:
                                                      type: object
                                                      properties:
                                                        charge_processing_fee:
                                                          type: boolean
                                                          example: true
                                                          default: true
                                                        charge_remainder_fee:
                                                          type: boolean
                                                          example: true
                                                          default: true
                                                        liable:
                                                          type: boolean
                                                          example: true
                                                          default: true
                                                    recipient:
                                                      type: object
                                                      properties:
                                                        created_at:
                                                          type: string
                                                          example: '2024-09-17T16:38:32Z'
                                                        description:
                                                          type: string
                                                          example: ''
                                                        document:
                                                          type: string
                                                          example: '26224451990'
                                                        email:
                                                          type: string
                                                          example: steverogers@yuno.com
                                                        id:
                                                          type: string
                                                          example: re_cm16nrp0u0tl60k9t1lopi9ld
                                                        name:
                                                          type: string
                                                          example: Steve Rogers
                                                        payment_mode:
                                                          type: string
                                                          example: bank_transfer
                                                        status:
                                                          type: string
                                                          example: active
                                                        type:
                                                          type: string
                                                          example: company
                                                        updated_at:
                                                          type: string
                                                          example: '2024-09-17T16:38:32Z'
                                                    type:
                                                      type: string
                                                      example: flat
                                              status:
                                                type: string
                                                example: captured
                                              success:
                                                type: boolean
                                                example: true
                                                default: true
                                              transaction_type:
                                                type: string
                                                example: credit_card
                                              updated_at:
                                                type: string
                                                example: '2024-09-18T20:01:35Z'
                                          paid_amount:
                                            type: integer
                                            example: 500000
                                            default: 0
                                          paid_at:
                                            type: string
                                            example: '2024-09-18T20:01:37Z'
                                          payment_method:
                                            type: string
                                            example: credit_card
                                          status:
                                            type: string
                                            example: paid
                                          updated_at:
                                            type: string
                                            example: '2024-09-18T20:01:37Z'
                                    checkouts:
                                      type: array
                                    closed:
                                      type: boolean
                                      example: true
                                      default: true
                                    closed_at:
                                      type: string
                                      example: '2024-09-18T20:01:35Z'
                                    code:
                                      type: string
                                      example: PDXHD8BNER
                                    created_at:
                                      type: string
                                      example: '2024-09-18T20:01:35Z'
                                    currency:
                                      type: string
                                      example: USD
                                    customer:
                                      type: object
                                      properties:
                                        address:
                                          type: object
                                          properties:
                                            city:
                                              type: string
                                              example: New York
                                            country:
                                              type: string
                                              example: US
                                            created_at:
                                              type: string
                                              example: '2024-09-13T19:37:46Z'
                                            id:
                                              type: string
                                              example: addr_EoRV4ZjhrhV4N7W3
                                            line_1:
                                              type: string
                                              example: 'Calle 34 # 56 - 78'
                                            state:
                                              type: string
                                              example: NY
                                            status:
                                              type: string
                                              example: active
                                            updated_at:
                                              type: string
                                              example: '2024-09-18T19:37:01Z'
                                            zip_code:
                                              type: string
                                              example: '111111'
                                        created_at:
                                          type: string
                                          example: '2024-09-13T19:37:46Z'
                                        delinquent:
                                          type: boolean
                                          example: false
                                          default: true
                                        document:
                                          type: string
                                          example: '83885322005'
                                        document_type:
                                          type: string
                                          example: cpf
                                        email:
                                          type: string
                                          example: Johndoe@y.uno
                                        id:
                                          type: string
                                          example: cus_78Y42XPSkSZ2ky3P
                                        metadata:
                                          type: object
                                          properties:
                                            platform_integration:
                                              type: string
                                              example: yuno
                                        name:
                                          type: string
                                          example: John Doe
                                        phones:
                                          type: object
                                          properties:
                                            home_phone:
                                              type: object
                                              properties:
                                                area_code:
                                                  type: string
                                                  example: '31'
                                                country_code:
                                                  type: string
                                                  example: '57'
                                                number:
                                                  type: string
                                                  example: '32450765'
                                            mobile_phone:
                                              type: object
                                              properties:
                                                area_code:
                                                  type: string
                                                  example: '31'
                                                country_code:
                                                  type: string
                                                  example: '57'
                                                number:
                                                  type: string
                                                  example: '32450765'
                                        type:
                                          type: string
                                          example: individual
                                        updated_at:
                                          type: string
                                          example: '2024-09-18T19:37:01Z'
                                    id:
                                      type: string
                                      example: or_xZ3ewgPfQ4UKevmP
                                    items:
                                      type: array
                                      items:
                                        type: object
                                        properties:
                                          amount:
                                            type: integer
                                            example: 500000
                                            default: 0
                                          code:
                                            type: string
                                            example: '8765432109'
                                          created_at:
                                            type: string
                                            example: '2024-09-18T20:01:35Z'
                                          description:
                                            type: string
                                            example: Skirt
                                          id:
                                            type: string
                                            example: oi_2e8lbEqI4rT41LWX
                                          quantity:
                                            type: integer
                                            example: 1
                                            default: 0
                                          status:
                                            type: string
                                            example: active
                                          type:
                                            type: string
                                            example: product
                                          updated_at:
                                            type: string
                                            example: '2024-09-18T20:01:35Z'
                                    shipping:
                                      type: object
                                      properties:
                                        address:
                                          type: object
                                          properties:
                                            city:
                                              type: string
                                              example: New York
                                            country:
                                              type: string
                                              example: CO
                                            line_1:
                                              type: string
                                              example: 'Calle 34 # 56 - 78'
                                            state:
                                              type: string
                                              example: NY
                                            zip_code:
                                              type: string
                                              example: '111111'
                                        description:
                                          type: string
                                          example: Shipping
                                        recipient_name:
                                          type: string
                                          example: John Doe
                                        recipient_phone:
                                          type: string
                                          example: 57 3132450765
                                    status:
                                      type: string
                                      example: paid
                                    updated_at:
                                      type: string
                                      example: '2024-09-18T20:01:37Z'
                                third_party_transaction_id:
                                  type: string
                                  example: ''
                                third_party_account_id: {}
                                iso8583_response_code: {}
                                iso8583_response_message: {}
                            created_at:
                              type: string
                              example: '2024-09-18T20:01:34.847998Z'
                            updated_at:
                              type: string
                              example: '2024-09-18T20:01:37.751372Z'
                      split_marketplace:
                        type: array
                        items:
                          type: object
                          properties:
                            recipient_id: {}
                            provider_recipient_id:
                              type: string
                              example: re_cm16nrp0u0tl60k9t1lopi9ld
                            type:
                              type: string
                              example: PURCHASE
                            merchant_reference:
                              type: string
                              example: aaa2
                            amount:
                              type: object
                              properties:
                                value:
                                  type: number
                                  example: 4000
                                  default: 0
                                currency:
                                  type: string
                                  example: USD
                                calculation_type:
                                  type: string
                                  description: The method used to calculate the split amount.
                                  enum:
                                    - PERCENTAGE
                                    - FIXED
                                    - MIXED
                                  example: PERCENTAGE
                                percentage:
                                  type: number
                                  description: Percentage used in the calculation.
                                  example: 10.5
                                rounding_mode:
                                  type: string
                                  description: Rounding strategy used for the calculation.
                                  enum:
                                    - STANDARD
                                    - ROUND_UP
                                    - ROUND_DOWN
                                  example: STANDARD
                                fixed_amount:
                                  type: number
                                  description: The fixed amount component used in the calculation.
                                  example: 5
                            liability: {}
                      workflow:
                        type: string
                        example: DIRECT
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code:
                        type:
                          - string
                          - 'null'
                        format: uuid
                        description: >-
                          Identifier of the subscription created or charged by this payment. Null when the payment
                          carries no subscription.
                      plan_id:
                        type: string
                        description: >-
                          The subscription's plan when this payment was created. Present only on payments created with
                          `subscription.plan_id` and on their renewals; absent otherwise.
                      plan_assigned_at:
                        type: string
                        format: date-time
                        description: >-
                          When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments that
                          carry `plan_id`.
                      routing_rules:
                        type: object
                        properties:
                          condition:
                            type: object
                            properties:
                              id:
                                type: integer
                                example: 41295
                                default: 0
                              name: {}
                              description: {}
                      simplified_mode:
                        type: boolean
                        example: false
                        default: true
                      external_subscription:
                        $ref: '#/components/schemas/ExternalSubscription'
                      external_invoice:
                        $ref: '#/components/schemas/ExternalInvoice'
                      shipping:
                        nullable: true
                        description: Shipping.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                Request in process:
                  value:
                    code: REQUEST_IN_PROCESS
                    messages:
                      - Request with the same idempotency is already in process. Try again in a few seconds.
                External invoice - amount above remaining:
                  value:
                    code: EXTERNAL_INVOICE_AMOUNT_EXCEEDS_REMAINING
                    messages:
                      - >-
                        Invalid Request. The amount can not be greater than the amount remaining on the invoice (12.00
                        USD).
                External invoice - invoice not open:
                  value:
                    code: EXTERNAL_INVOICE_NOT_OPEN
                    messages:
                      - Invalid Request. The invoice is not open and can not be paid.
                External invoice - customer mismatch:
                  value:
                    code: EXTERNAL_INVOICE_CUSTOMER_MISMATCH
                    messages:
                      - >-
                        Invalid Request. The customer of the external_invoice does not match the customer of the
                        invoice.
                External invoice - currency mismatch:
                  value:
                    code: EXTERNAL_INVOICE_CURRENCY_MISMATCH
                    messages:
                      - Invalid Request. The payment currency does not match the invoice currency.
                External invoice - invoice not found:
                  value:
                    code: EXTERNAL_INVOICE_NOT_FOUND
                    messages:
                      - Invalid Request. The invoice does not exist.
                External invoice - payment rejected:
                  value:
                    code: EXTERNAL_INVOICE_REJECTED
                    messages:
                      - Invalid Request. The invoice can not be paid with this payment.
                External invoice - sent with external_subscription:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - >-
                        Invalid Request. external_invoice and external_subscription can not be sent together. Please
                        send only one of them.
                Invalid discount line:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        The field 'additional_data.order.discounts[0].id' must not be sent on a YUNO_PROMOTION discount
                        line.
                Idempotency key already used:
                  value:
                    code: IDEMPOTENCY_DUPLICATED
                    messages:
                      - Idempotency is duplicated.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid Credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid Credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API
        '422':
          description: >-
            422. The payment carries a `YUNO_PROMOTION` line that Yuno cannot honour. Nothing was charged and no payment
            was created. See
            [Promotions](/docs/payment-features/promotions#the-customer-pays-the-quoted-price-or-the-payment-is-rejected).
          content:
            application/json:
              examples:
                Quote id not valid:
                  value:
                    code: PROMOTION_QUOTE_INVALID
                    messages:
                      - The quote id is not valid.
                Quote expired:
                  value:
                    code: PROMOTION_QUOTE_EXPIRED
                    messages:
                      - The promotion quote expired.
                Quote for another account:
                  value:
                    code: PROMOTION_ACCOUNT_MISMATCH
                    messages:
                      - The promotion quote does not match this account.
                Amount differs from the quote:
                  value:
                    code: PROMOTION_AMOUNT_MISMATCH
                    messages:
                      - The payment amount does not match the promotion quote.
                Payment differs from the quote:
                  value:
                    code: PROMOTION_CONTEXT_MISMATCH
                    messages:
                      - The payment context does not match the promotion quote.
                Quote could not be verified:
                  value:
                    code: PROMOTION_ENGINE_UNAVAILABLE
                    messages:
                      - The promotions engine did not answer. Retry the payment.
                Promotions temporarily disabled by Yuno:
                  value:
                    code: PROMOTION_ENGINE_UNAVAILABLE
                    messages:
                      - Promotions are temporarily unavailable. Pay again without the promotion.
                Promotion on a subscription:
                  value:
                    code: PROMOTION_SUBSCRIPTION_UNSUPPORTED
                    messages:
                      - YUNO_PROMOTION discount lines are not supported on subscriptions.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: PROMOTION_QUOTE_EXPIRED
                  messages:
                    type: array
                    description: >-
                      Informational text for people. The text for one `code` can differ from the examples and can
                      change, so branch on `code` and never parse `messages`.
                    items:
                      type: string
                      example: The promotion quote expired.
      deprecated: false
      tags:
        - Payments
  /payments/{payment_id}:
    get:
      summary: Retrieve Payment by ID
      description: ''
      operationId: retrieve-payment-by-id-v2
      parameters:
        - name: raw_response
          in: query
          description: When true, includes the provider raw response in the output (default false).
          schema:
            type: boolean
        - name: transactions_history
          in: query
          description: When true, includes the transactions history in the response (default false).
          schema:
            type: boolean
        - in: path
          name: payment_id
          schema:
            type: string
          required: true
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                SDK_Checkout - Required Fields:
                  value:
                    payment:
                      id: e3f397ed-b7d0-4816-ab75-8457b0a30ec1
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test Bank of America
                      country: US
                      status: READY_TO_PAY
                      sub_status: CREATED
                      merchant_order_id: '0000022'
                      created_at: '2023-07-20T17:24:58.900553Z'
                      updated_at: '2023-07-20T17:25:13.447662Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 52000
                      checkout:
                        session: 954dc216-60ff-4ae4-a299-c603b93bd267
                        sdk_action_required: true
                      payment_method:
                        vaulted_token: ''
                        type: BANK_TRANSFER
                        vault_on_success: false
                        token: 2cd31999-e44e-4de3-bbe4-179981ff4295
                        payment_method_detail:
                          bank_transfer:
                            provider_image: ''
                            account_type: null
                            bank_name: Bank of America
                            beneficiary_name: John Doe
                            bank_account: '123456789'
                            bank_account_2: null
                            beneficiary_document_type: SSN
                            beneficiary_document: 123-45-6789
                            payment_instruction: null
                            redirect_url: https://api-sandbox.bankofamerica.com/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                      customer_payer:
                        id: cfae0941-7234-427a-a739-ef4fce966c79
                        merchant_customer_id: '1689873883'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1980-01-01'
                        email: johndoe@gmail.com
                        nationality: US
                        ip_address: 192.168.1.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main Street
                          address_line_2: null
                          city: New York
                          state: NY
                          country: US
                          zip_code: '10001'
                        shipping_address:
                          address_line_1: 123 Main Street
                          address_line_2: null
                          city: New York
                          state: NY
                          country: US
                          zip_code: '10001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: 09135cb9-159c-4662-8fe3-da5523bb2266
                          type: PURCHASE
                          status: SUCCEEDED
                          category: BANK_TRANSFER
                          amount: 52000
                          provider_id: BANK_OF_AMERICA
                          payment_method:
                            vaulted_token: ''
                            type: BANK_TRANSFER
                            vault_on_success: false
                            token: 2cd31999-e44e-4de3-bbe4-179981ff4295
                            detail:
                              bank_transfer:
                                provider_image: ''
                                account_type: null
                                bank_name: Bank of America
                                beneficiary_name: John Doe
                                bank_account: '123456789'
                                bank_account_2: null
                                beneficiary_document_type: SSN
                                beneficiary_document: 123-45-6789
                                payment_instruction: null
                                redirect_url: https://api-sandbox.bankofamerica.com/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test Bank of America
                          merchant_reference: null
                          provider_data:
                            id: BANK_OF_AMERICA
                            transaction_id: 117490-1689873907-17347
                            account_id: ''
                            status: APPROVED
                            status_detail: ''
                            response_code: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              data:
                                amount_in_cents: 5200000
                                bill_id: null
                                billing_data: null
                                created_at: '2023-07-20T17:25:07.167Z'
                                currency: USD
                                customer_data: null
                                customer_email: johndoe@gmail.com
                                finalized_at: null
                                id: 117490-1689873907-17347
                                payment_link_id: null
                                payment_method:
                                  extra:
                                    is_three_ds: false
                                  payment_description: Test Bank of America
                                  sandbox_status: APPROVED
                                  type: BANK_TRANSFER
                                  user_type: PERSON
                                payment_method_type: BANK_TRANSFER
                                payment_source_id: null
                                redirect_url: https://google.com/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                                reference: 09135cb9-159c-4662-8fe3-da5523bb2266
                                shipping_address:
                                  address_line_1: 123 Main Street
                                  address_line_2: null
                                  city: New York
                                  state: NY
                                  country: US
                                  zip_code: '10001'
                                status: PENDING
                                status_message: null
                                taxes: []
                              meta: {}
                            third_party_transaction_id: ''
                          three_d_secure_action_required: null
                          created_at: '2023-07-20T17:25:05.410687Z'
                          updated_at: '2023-07-20T17:25:11.472652Z'
                      split: []
                      callback_url: https://y.uno/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                      workflow: SDK_CHECKOUT
                      metadata: []
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      fraud_screening: null
                      idempotency_key: null
                      payment_link_code: ''
                      routing_rules: null
                      split_marketplace: []
                Card - With card details:
                  value:
                    payment:
                      id: bc0489ba-80bf-4bb9-98c5-ff8dfbceebf9
                      account_id: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                      description: SUCCESSFUL
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: Order_id
                      created_at: '2023-07-12T18:51:49.437886Z'
                      updated_at: '2023-07-12T18:51:54.679410Z'
                      amount:
                        currency: USD
                        value: 20000
                        refunded: 0
                        captured: 0
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '517862'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank NA
                              issuer_code: US_JPMORGAN_CHASE_BANK_NA
                              category: null
                              type: CREDIT
                              three_d_secure:
                                token: null
                                collect_url: null
                                setup_reference_id: null
                                developer_id: null
                                solution_id: null
                                code: null
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                acs_id: null
                                ds_id: null
                                pares_status: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: a76d79b7-902f-4152-922f-7e7eebc5f3dc
                        merchant_customer_id: '1309'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: null
                        device_fingerprint: null
                        browser_info:
                          user_agent: string
                          accept_header: string
                          accept_content: null
                          accept_browser: null
                          color_depth: '32'
                          screen_height: '32'
                          screen_width: '32'
                          javascript_enabled: true
                          java_enabled: null
                          browser_time_difference: null
                          language: string
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Peak Avenue
                          address_line_2: ''
                          country: US
                          city: San Diego
                        shipping_address:
                          address_line_1: 123 Peak Avenue
                          address_line_2: ''
                          country: US
                          city: San Diego
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: c718b8e9-2943-4fdf-9b3c-426cf44940fb
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 20000
                          provider_id: DLOCAL
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '517862'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '41111111'
                                  lfd: '1111'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank NA
                                  issuer_code: US_JPMORGAN_CHASE_BANK_NA
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    token: null
                                    collect_url: null
                                    setup_reference_id: null
                                    developer_id: null
                                    solution_id: null
                                    code: null
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    acs_id: null
                                    ds_id: null
                                    pares_status: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: SUCCESSFUL
                          merchant_reference: null
                          provider_data:
                            id: DLOCAL
                            transaction_id: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                            account_id: ''
                            status: PAID
                            status_detail: '200'
                            response_message: The payment was paid.
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              value: >-
                                {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":20000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T18:51:52.000+0000","approved_date":"2023-07-12T18:51:54.000+0000","status":"PAID","status_detail":"The
                                payment was
                                paid.","status_code":"200","order_id":"c718b8e9-2943-4fdf-9b3c-426cf44940fb","description":"SUCCESSFUL","notification_url":"https://sandbox.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"517862"}}
                            third_party_transaction_id: ''
                          three_d_secure_action_required: null
                          created_at: '2023-07-12T18:51:51.908784Z'
                          updated_at: '2023-07-12T18:51:54.426087Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With airline data:
                  value:
                    payment:
                      id: 6e7cc5da-2b39-4b6e-b382-df8bb1feddf1
                      account_id: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                      description: SUCCESSFUL
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: Order_id
                      created_at: '2023-07-12T20:06:41.418163Z'
                      updated_at: '2023-07-12T20:06:41.806898Z'
                      amount:
                        currency: USD
                        value: 2000
                        refunded: 0
                        captured: 0
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: false
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: ''
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank NA
                              issuer_code: US_JPMORGAN_CHASE_BANK_NA
                              category: null
                              type: CREDIT
                              three_d_secure:
                                token: null
                                collect_url: null
                                setup_reference_id: null
                                developer_id: null
                                solution_id: null
                                code: null
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                acs_id: null
                                ds_id: null
                                pares_status: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: null
                        merchant_customer_id: null
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1998-01-01'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.0.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: string
                          accept_header: string
                          accept_content: string
                          accept_browser: string
                          color_depth: '32'
                          screen_height: '32'
                          screen_width: '32'
                          javascript_enabled: true
                          java_enabled: null
                          browser_time_difference: null
                          language: string
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone: null
                        billing_address:
                          address_line_1: 123 Main Street
                          address_line_2: Apt 42
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main Street
                          address_line_2: Apt 42
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data:
                        airline:
                          pnr: ABC123
                          legs:
                            - departure_airport: LAX
                              departure_datetime: '2023-10-31T01:30:00.000-07:00'
                              departure_airport_timezone: GMT-07
                              arrival_airport: JFK
                              arrival_datetime: '2023-10-31T07:30:00.000-04:00'
                              carrier_code: AA
                              carrier_name: American Airlines
                              flight_number: AA100
                              fare_basis_code: 'Y'
                              fare_class_code: M
                              base_fare: 250
                              base_fare_currency: USD
                              stopover_code: 'N'
                          passengers:
                            - first_name: John
                              last_name: Doe
                              middle_name: Michael
                              type: A
                              date_of_birth: '1998-01-01'
                              nationality: US
                              document:
                                document_type: SSN
                                document_number: 123-45-6789
                              country: US
                              loyalty_number: '79250001'
                              loyalty_tier: Platinum
                              email: john.doe@company.com
                              phone:
                                number: '5551234567'
                                country_code: '1'
                          tickets:
                            - ticket_number: BRB0001
                              e_ticket: true
                              restricted: false
                              total_fare_amount: 500
                              total_tax_amount: 50
                              total_fee_amount: 25
                              issue:
                                carrier_prefix_code: AA
                                travel_agent_code: A104121
                                travel_agent_name: SkyTravel
                                date: '2023-10-30T10:00:00.000-07:00'
                                address: 123 Main Street, Apt 42
                                city: Los Angeles
                                country: US
                                zip_code: '90001'
                        order: null
                        seller_details: null
                      taxes: null
                      transactions:
                        - id: f4740123-2662-437c-a52b-7a80aa8fe807
                          type: AUTHORIZE
                          status: REJECTED
                          category: CARD
                          amount: 2000
                          provider_id: MERCADO_PAGO
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: false
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: ''
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '41111111'
                                  lfd: '1111'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank NA
                                  issuer_code: US_JPMORGAN_CHASE_BANK_NA
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    token: null
                                    collect_url: null
                                    setup_reference_id: null
                                    developer_id: null
                                    solution_id: null
                                    code: null
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    acs_id: null
                                    ds_id: null
                                    pares_status: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: REJECTED
                          response_message: Transaction unsuccessful
                          reason: Insufficient funds
                          description: Transaction failed
                          merchant_reference: null
                          provider_data:
                            id: MERCADO_PAGO
                            transaction_id: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                            account_id: ''
                            status: DECLINED
                            status_detail: Insufficient funds
                            response_message: Payment could not be completed.
                            iso8583_response_code: '05'
                            iso8583_response_message: Do not honor
                            raw_response:
                              value: >-
                                {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":2000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T20:06:41.000+0000","status":"DECLINED","status_detail":"Insufficient
                                funds","status_code":"05","order_id":"f4740123-2662-437c-a52b-7a80aa8fe807","description":"Transaction
                                failed","notification_url":"https://sandbox.y.uno/mercado-pago-webhook/v1/confirmations","acquirer":{"authorization_code":""}}
                            third_party_transaction_id: ''
                          three_d_secure_action_required: null
                          created_at: '2023-07-12T20:06:41.418163Z'
                          updated_at: '2023-07-12T20:06:41.806898Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With 3DS direct:
                  value:
                    payment:
                      id: cb3ca163-cb79-41d7-b9a3-0115e30a7c01
                      idempotency_key: fc0d89a1-8d18-4759-8d0a-ee1c6d0386e2
                      account_code: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                      account_id: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                      description: TEST_3DS
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-17T17:00:39.678379Z'
                      updated_at: '2023-07-17T17:41:48.453381Z'
                      amount:
                        currency: USD
                        value: 5000
                        refunded: 0
                        captured: 0
                      checkout:
                        session: b0751c96-0b00-4b8c-8372-c16f72f60598
                        sdk_action_required: false
                      customer_payer:
                        id: fc7ef8ae-000d-4903-ab76-494ebc8d5fa3
                        merchant_customer_id: '1689374657'
                        first_name: John
                        last_name: Doe
                        gender: null
                        date_of_birth: null
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info: null
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone: null
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: New York
                          city: New York
                          zip_code: '10001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: New York
                          city: New York
                          zip_code: '10001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data:
                        airline: null
                        order: null
                        seller_details: null
                      taxes: null
                      transactions:
                        - id: caada737-27ab-46ca-91a9-744da64c4787
                          type: THREE_D_SECURE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: CYBERSOURCE_3DS
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: ''
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                redirect_url: https://checkout.staging.y.uno/payment?session=14c263bd-e01d-400f-885a-70205df8b417
                                card_data:
                                  holder_name: John Doe
                                  iin: '44565300'
                                  lfd: '0007'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank NA
                                  issuer_code: US_JPMORGAN_CHASE_BANK_NA
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    three_d_secure_setup_id: 24127d61-b852-42fb-acd4-1ee661645376
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: 'Y'
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: TEST_3DS
                          merchant_reference: reference-5f6dd991-ab14-4da3-b7d8-9f24a04ebd92
                          provider_data:
                            id: CYBERSOURCE_3DS
                            transaction_id: '6896132402506977804951'
                            account_id: ''
                            status: AUTHENTICATION_SUCCESSFUL
                            status_detail: ''
                            response_message: CONSUMER_AUTHENTICATION_REQUIRED
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              clientReferenceInformation:
                                code: 24127d61-b852-42fb-acd4-1ee661645376
                              consumerAuthenticationInformation:
                                accessToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxZmM5ZDVhMS04M2ZhLTQwYWEtYjI5Ny1iZDM1ZGIxODQ4ZjAiLCJpYXQiOjE2ODk2MTMyNDAsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIsImV4cCI6MTY4OTYxNjg0MCwiT3JnVW5pdElkIjoiNjQwYTM1NjlkODdhMjUwYTQyNTEwOWRjIiwiUGF5bG9hZCI6eyJBQ1NVcmwiOiJodHRwczovL21lcmNoYW50YWNzc3RhZy5jYXJkaW5hbGNvbW1lcmNlLmNvbS9NZXJjaGFudEFDU1dlYi9wYXJlcS5qc3A_dmFhPWImZ29sZD1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEiLCJQYXlsb2FkIjoiZU5wVlVWMXZna0FRZkw5ZlFVd2ZHKzZBS3RHc2w5QnE2a2MwdHRCb254cUViU1dWRDQvRHFMKytkd2kxdmFlZHljN3R6aXdFTzRFNDhqR3FCSEpZWUZtR1gyZ2s4YkRqWC9KcHZqaVV6M0kyUzc4LzAvUE1ZeDBPSys4VkR4eU9LTW9rejdobE10TUcya0tpdmhEUkxzd2toekE2UEU2WC9LSFh0NjBlMEFZU1NGRk1SendZKzhHSE0vS0JYakdCTEV5UnYxZFpiaWphQ0xDVVFHdU9RSlJYbVJSbmJya01hQXNJVkdMUGQxSVc1WURTczZtVVFEVkZnTjYyV0ZXNktwVzVVeEx6TjZjNCt1ditNdG9zSi9HNG1HL1hNdDF1OXZPWHdCc0MxUjBFNGxBaXQ1bnRNTmR5RGNzZE1EWncra0JybmtDWTZ2bjhybXN5eHU2WldxaGhDQlI2bG5kRlhhWWYwTCtjTWxJSmdWblVPbWtSQVR3VmVZYXFSNFg1V3lzanQvV2ZKanJTU0txc1hPWTR6TEoxcGpXdTVZbUt4TzR4cTlZbmRUNVVhMmh6TWRvY1YxWC9qdjREQVEybVdnPT0iLCJUcmFuc2FjdGlvbklkIjoiU3pvSW9NcXNHdEpKbWtmbXlKQTAifSwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUmV0dXJuVXJsIjoiaHR0cHM6Ly9zdGFnaW5nLnkudW5vL2N5YmVyc291cmNlLTNkcy13ZWJob29rL3YxL2NvbmZpcm1hdGlvbnMvYXV0aC8yNDEyN2Q2MS1iODUyLTQyZmItYWNkNC0xZWU2NjE2NDUzNzYifQ.5ehSTA5uUKc2DfvTRGJZ8dPKbxAJ5WproKSTLqu4egM
                                acsUrl: https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
                                authenticationPath: ENROLLED
                                authenticationTransactionId: SzoIoMqsGtJJmkfmyJA0
                                pareq: eNpVUV1vgkAQfL9fQUwfG+6AKtGsl9Bq6kc0ttBonxqEbSWVD4/DqL++dwi1vaedyc7tziwEO4E48jGqBHJYYFmGX2gk8bDjX/JpvjiUz3I2S78/0/PMYx0OK+8VDxyOKMokz7hlMtMG2kKivhDRLswkhzA6PE6X/KHXt60e0AYSSFFMRzwY+8GHM/KBXjGBLEyRv1dZbijaCLCUQGuOQJRXmRRnbrkMaAsIVGLPd1IW5YDSs6mUQDVFgN62WFW6KpW5UxLzN6c4+uv+MtosJ/G4mG/XMt1u9vOXwBsC1R0E4lAit5ntMNdyDcsdMDZw+kBrnkCY6vn8rmsyxu6ZWqhhCBR6lndFXaYf0L+cMlIJgVnUOmkRATwVeYaqR4X5Wysjt/WfJjrSSKqsXOY4zLJ1pjWu5YmKxO4xq9YndT5Ua2hzMdocV1X/jv4DAQ2mWg==
                                proofXml: >-
                                  <AuthProof><Time>2023 Jul 17
                                  17:00:39</Time><DSUrl>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/vereq.jsp?acqid=CYBS</DSUrl><VEReqProof><Message
                                  id="SzoIoMqsGtJJmkfmyJA0"><VEReq><version>1.0.2</version><pan>XXXXXXXXXXXX0007</pan><Merchant><acqBIN>469216</acqBIN><merID>TEST_3DS</merID></Merchant><Browser><deviceCategory>0</deviceCategory><accept>*/*</accept><userAgent>Mozilla/5.0
                                  (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko)
                                  Chrome/114.0.0.0
                                  Safari/537.36</userAgent></Browser></VEReq></Message></VEReqProof><VEResProof><Message
                                  id="SzoIoMqsGtJJmkfmyJA0"><VERes><version>1.0.2</version><CH><enrolled>Y</enrolled><acctID>7033012</acctID></CH><url>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&amp;gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</url><protocol>ThreeDSecure</protocol></VERes></Message></VEResProof></AuthProof>
                                proxyPan: '7033012'
                                specificationVersion: 1.0.2
                                stepUpUrl: https://centinelapistag.cardinalcommerce.com/V2/Cruise/StepUp
                                strongAuthentication:
                                  OutageExemptionIndicator: '0'
                                token: AxjzbwSTddcP6s4BiIKXABEBURzGv4QYVRP0JAY/LtaSZejFq0T8BEAAwwdp
                                veresEnrolled: 'Y'
                                xid: U3pvSW9NcXNHdEpKbWtmbXlKQTA=
                              errorInformation:
                                message: >-
                                  The cardholder is enrolled in Payer Authentication. Please authenticate the cardholder
                                  before continuing with the transaction.
                                reason: CONSUMER_AUTHENTICATION_REQUIRED
                              id: '6896132402506977804951'
                              paymentInformation:
                                card:
                                  bin: '445653'
                                  type: VISA
                              status: PENDING_AUTHENTICATION
                              submitTimeUtc: '2023-07-17T17:00:40Z'
                            third_party_transaction_id: null
                          three_d_secure_action_required: null
                          created_at: '2023-07-17T17:00:39.765728Z'
                          updated_at: '2023-07-17T17:41:43.593769Z'
                        - id: 4081b900-3efa-44a2-83d8-bca350476b06
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: DLOCAL
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '445975'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '44565300'
                                  lfd: '0007'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank NA
                                  issuer_code: US_JPMORGAN_CHASE_BANK_NA
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    three_d_secure_setup_id: 24127d61-b852-42fb-acd4-1ee661645376
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: 'Y'
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: TEST_3DS
                          merchant_reference: null
                          provider_data:
                            id: DLOCAL
                            transaction_id: T-385928-57934367-25ca-4445-a973-da5c1a4635b2
                            account_id: ''
                            status: PAID
                            sub_status: ''
                            status_detail: '200'
                            response_message: The payment was paid.
                            raw_response:
                              value: >-
                                {"id":"T-385928-57934367-25ca-4445-a973-da5c1a4635b2","amount":5000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                Doe","expiration_month":1,"expiration_year":2026,"brand":"VI","last4":"0007","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-17T17:41:44.000+0000","approved_date":"2023-07-17T17:41:48.000+0000","status":"PAID","status_detail":"The
                                payment was
                                paid.","status_code":"200","order_id":"4081b900-3efa-44a2-83d8-bca350476b06","description":"TEST_3DS","notification_url":"https://staging.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"445975"}}
                            third_party_transaction_id: ''
                          three_d_secure_action_required: null
                          created_at: '2023-07-17T17:41:43.752435Z'
                          updated_at: '2023-07-17T17:41:48.395863Z'
                      split: []
                      callback_url: https://google.com
                      workflow: REDIRECT
                      fraud_screening: null
                      metadata: []
                      payment_link_code: ''
                      routing_rules: null
                      split_marketplace: []
                Card - With customer, billing, and shipping details:
                  value:
                    payment:
                      id: 12113b61-015a-4a01-a69c-ab7423d0138d
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-24T01:03:02.291414Z'
                      updated_at: '2023-07-24T01:03:04.571022Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '123456'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40518856'
                              lfd: '6623'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank
                              issuer_code: null
                              category: null
                              type: CREDIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: null
                        merchant_customer_id: '1690160581'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: 73e5cddf-32c7-4b12-9d8e-92335862928f
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '123456'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '40518856'
                                  lfd: '6623'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank
                                  issuer_code: null
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: null
                                    acs_id: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test
                          merchant_reference: reference-85ffbde3-2256-418f-b761-41ab2d8706dd
                          provider_data:
                            id: YUNO_TEST_PAYMENT_GW
                            transaction_id: d570b77a-759e-45ae-abb9-ab4ab3034d0c
                            account_id: ''
                            status: SUCCEEDED
                            status_detail: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              amount:
                                currency: USD
                                value: 2100
                              merchantAccount: YunoPaymentsECOM
                              reference: '34343434'
                              status: received
                            third_party_transaction_id: ''
                          created_at: '2023-07-24T01:03:02.407480Z'
                          updated_at: '2023-07-24T01:03:04.499303Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With customer, billing, shipping and order items:
                  value:
                    payment:
                      id: cf205a5e-140e-4c08-9a5b-ee44b91256dc
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-24T01:08:17.039613Z'
                      updated_at: '2023-07-24T01:08:19.300337Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '123456'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40518856'
                              lfd: '6623'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank
                              issuer_code: null
                              category: null
                              type: CREDIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: null
                        merchant_customer_id: '1690160896'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data:
                        airline: null
                        order:
                          fee_amount: 0
                          shipping_amount: 0
                          items:
                            - id: 123AD
                              name: Skirt
                              quantity: 1
                              unit_amount: 5000
                              category: Clothes
                              brand: XYZ
                              sku_code: '8765432109'
                              manufacture_part_number: XYZ123456
                        seller_details: null
                      taxes: null
                      transactions:
                        - id: bf442c7f-2393-4607-98b5-a4c2a8a97bbc
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '123456'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '40518856'
                                  lfd: '6623'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank
                                  issuer_code: null
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: null
                                    acs_id: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test
                          merchant_reference: reference-9260ef97-81b5-4e35-ac17-0d3d124a0d59
                          provider_data:
                            id: YUNO_TEST_PAYMENT_GW
                            transaction_id: ade1dcf5-cbf5-408b-84af-f504abe01a26
                            account_id: ''
                            status: SUCCEEDED
                            status_detail: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              amount:
                                currency: USD
                                value: 2100
                              merchantAccount: YunoPaymentsECOM
                              reference: '34343434'
                              status: received
                            third_party_transaction_id: ''
                          created_at: '2023-07-24T01:08:17.147871Z'
                          updated_at: '2023-07-24T01:08:19.222926Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With installments:
                  value:
                    payment:
                      id: 3707bcc5-f88c-4092-ba44-142d1f3ea229
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-24T01:10:50.152163Z'
                      updated_at: '2023-07-24T01:10:52.417211Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: true
                            installments: 3
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '123456'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40518856'
                              lfd: '6623'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank
                              issuer_code: null
                              category: null
                              type: CREDIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: null
                        merchant_customer_id: '1690161049'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: a58043ab-e5c6-4476-adfb-623fa8cc320d
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 3
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '123456'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '40518856'
                                  lfd: '6623'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank
                                  issuer_code: null
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: null
                                    acs_id: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test
                          merchant_reference: reference-f3f9319f-f3f7-48a3-90c2-fac0a2f782be
                          provider_data:
                            id: YUNO_TEST_PAYMENT_GW
                            transaction_id: 9efdc397-2a74-479a-af00-bf5ae7e2a76e
                            account_id: ''
                            status: SUCCEEDED
                            status_detail: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              amount:
                                currency: USD
                                value: 2100
                              merchantAccount: YunoPaymentsECOM
                              reference: '34343434'
                              status: received
                            third_party_transaction_id: ''
                          created_at: '2023-07-24T01:10:50.273142Z'
                          updated_at: '2023-07-24T01:10:52.339967Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With authorization:
                  value:
                    payment:
                      id: c0409fc0-87d5-453f-bf91-8f0af2f09347
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test
                      country: US
                      status: PENDING
                      sub_status: AUTHORIZED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-24T01:13:37.372312Z'
                      updated_at: '2023-07-24T01:13:39.654433Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: false
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '123456'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40518856'
                              lfd: '6623'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank
                              issuer_code: null
                              category: null
                              type: CREDIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: null
                        merchant_customer_id: '1690161049'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: e9108a97-5d0d-492a-99bf-da1ee42af425
                          type: AUTHORIZE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: false
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '123456'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '40518856'
                                  lfd: '6623'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank
                                  issuer_code: null
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: null
                                    acs_id: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test
                          merchant_reference: reference-0b914bf9-0e86-4713-a908-0ec01d60c486
                          provider_data:
                            id: YUNO_TEST_PAYMENT_GW
                            transaction_id: 1b7011ff-4252-4ac6-99a4-d5de2086896b
                            account_id: ''
                            status: SUCCEEDED
                            status_detail: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              amount:
                                currency: USD
                                value: 2100
                              merchantAccount: YunoPaymentsECOM
                              reference: '34343434'
                              status: received
                            third_party_transaction_id: ''
                          created_at: '2023-07-24T01:13:37.492230Z'
                          updated_at: '2023-07-24T01:13:39.584118Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With device fingerprint:
                  value:
                    payment:
                      id: 8e7fbcad-9c7b-43c6-8fbf-b864e87c5e41
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-24T01:20:02.671644Z'
                      updated_at: '2023-07-24T01:20:04.946852Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '123456'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40518856'
                              lfd: '6623'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank
                              issuer_code: null
                              category: null
                              type: CREDIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: null
                        merchant_customer_id: '1690161049'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: hi88287gbd8d7d782ge287gbd8d7d78
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: 36524be2-b33e-4d33-b9d7-9f7853035bbd
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            vaulted_token: ''
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '123456'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '40518856'
                                  lfd: '6623'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank
                                  issuer_code: null
                                  category: null
                                  type: CREDIT
                                  three_d_secure:
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: null
                                    acs_id: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test
                          merchant_reference: reference-89ab43dc-57de-4ea0-8058-6f7fc0d972a7
                          provider_data:
                            id: YUNO_TEST_PAYMENT_GW
                            transaction_id: 20500c62-96d2-457b-8e64-b64480190e89
                            account_id: ''
                            status: SUCCEEDED
                            status_detail: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              amount:
                                currency: USD
                                value: 2100
                              merchantAccount: YunoPaymentsECOM
                              reference: '34343434'
                              status: received
                            third_party_transaction_id: ''
                          created_at: '2023-07-24T01:20:02.794825Z'
                          updated_at: '2023-07-24T01:20:04.873386Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With vault on success:
                  value:
                    payment:
                      id: 96b56df3-0013-4401-b58e-646f5e716ab8
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-24T01:27:23.360857Z'
                      updated_at: '2023-07-24T01:27:25.682059Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                        type: CARD
                        vault_on_success: true
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '123456'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40518856'
                              lfd: '6623'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank
                              issuer_code: null
                              category: null
                              type: CREDIT
                              fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: 967ecd18-d898-4b88-9400-dd5b01b18edc
                        merchant_customer_id: '1690161049'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: hi88287gbd8d7d782ge287gbd8d7d78
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: 85c19c82-dc31-4a50-aa7d-570d89dbc475
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                            type: CARD
                            vault_on_success: true
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '123456'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '40518856'
                                  lfd: '6623'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank
                                  issuer_code: null
                                  category: null
                                  type: CREDIT
                                  fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                  three_d_secure:
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: null
                                    acs_id: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test
                          merchant_reference: reference-7cf75e3a-c8eb-4c62-bd02-74928f68f174
                          provider_data:
                            id: YUNO_TEST_PAYMENT_GW
                            transaction_id: 604075b9-52e9-48f5-8fcf-3c2d9bacbe66
                            account_id: ''
                            status: SUCCEEDED
                            status_detail: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              amount:
                                currency: USD
                                value: 2100
                              merchantAccount: YunoPaymentsECOM
                              reference: '34343434'
                              status: received
                            third_party_transaction_id: ''
                          created_at: '2023-07-24T01:27:23.473451Z'
                          updated_at: '2023-07-24T01:27:25.550651Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Card - With vaulted token:
                  value:
                    payment:
                      id: 821ddfe4-309a-46a8-bd4b-819564aa9c5a
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: APPROVED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-24T01:28:45.444722Z'
                      updated_at: '2023-07-24T01:28:47.712002Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: ''
                        sdk_action_required: false
                      payment_method:
                        vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                        type: CARD
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          card:
                            verify: null
                            capture: true
                            installments: 1
                            first_installment_deferral: 0
                            installments_type: ''
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '123456'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '40518856'
                              lfd: '6623'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: JPMorgan Chase Bank
                              issuer_code: null
                              category: null
                              type: CREDIT
                              fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                            stored_credentials:
                              reason: SUBSCRIPTION
                              usage: USED
                              subscription_agreement_id: XXXX01
                              network_transaction_id: null
                      customer_payer:
                        id: 967ecd18-d898-4b88-9400-dd5b01b18edc
                        merchant_customer_id: '1690161049'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: hi88287gbd8d7d782ge287gbd8d7d78
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: a47e879e-3cd1-49f3-ab72-fc33b0185057
                          type: PURCHASE
                          status: SUCCEEDED
                          category: CARD
                          amount: 5000
                          provider_id: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            vaulted_token: eb8caa17-6407-457b-960e-125d8d7a90c1
                            type: CARD
                            vault_on_success: false
                            token: ''
                            detail:
                              card:
                                verify: null
                                capture: true
                                installments: 1
                                first_installment_deferral: 0
                                installments_type: ''
                                installment_amount: null
                                soft_descriptor: ''
                                authorization_code: '123456'
                                retrieval_reference_number: ''
                                acquirer_reference_number: ''
                                voucher: null
                                card_data:
                                  holder_name: John Doe
                                  iin: '40518856'
                                  lfd: '6623'
                                  number_length: 16
                                  security_code_length: 3
                                  brand: VISA
                                  issuer_name: JPMorgan Chase Bank
                                  issuer_code: null
                                  category: null
                                  type: CREDIT
                                  fingerprint: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                  three_d_secure:
                                    version: null
                                    electronic_commerce_indicator: null
                                    cryptogram: null
                                    transaction_id: null
                                    directory_server_transaction_id: null
                                    pares_status: null
                                    acs_id: null
                                stored_credentials:
                                  reason: SUBSCRIPTION
                                  usage: USED
                                  subscription_agreement_id: XXXX01
                                  network_transaction_id: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test
                          merchant_reference: reference-22103236-c3fc-4871-9fc0-98ce48a9f553
                          provider_data:
                            id: YUNO_TEST_PAYMENT_GW
                            transaction_id: f9bcb8a8-d5d8-4c53-b551-5932c9804f16
                            account_id: ''
                            status: SUCCEEDED
                            status_detail: ''
                            response_message: ''
                            iso8583_response_code: '00'
                            iso8583_response_message: Approved or completed successfully
                            raw_response:
                              amount:
                                currency: USD
                                value: 2100
                              merchantAccount: YunoPaymentsECOM
                              reference: '34343434'
                              status: received
                            third_party_transaction_id: ''
                          created_at: '2023-07-24T01:28:45.562437Z'
                          updated_at: '2023-07-24T01:28:47.639121Z'
                      split: []
                      workflow: DIRECT
                      metadata: []
                      fraud_screening: null
                      payment_link_code: ''
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      routing_rules: null
                      split_marketplace: []
                Bank Transfer:
                  value:
                    payment:
                      id: ac427adb-3ac9-4a7c-9389-0a923146b39b
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test Bank of America
                      country: US
                      status: READY_TO_PAY
                      sub_status: CREATED
                      merchant_order_id: '0000022'
                      created_at: '2023-07-23T23:56:25.405475Z'
                      updated_at: '2023-07-23T23:56:29.742339Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 52000
                      checkout:
                        session: c21df85b-6c39-4cf5-aa7d-305aac6441e6
                        sdk_action_required: true
                      payment_method:
                        vaulted_token: ''
                        type: BANK_TRANSFER
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          bank_transfer:
                            provider_image: ''
                            account_type: null
                            bank_name: Bank of America
                            beneficiary_name: John Doe
                            bank_account: '123456789'
                            bank_account_2: null
                            beneficiary_document_type: SSN
                            beneficiary_document: 123-45-6789
                            payment_instruction: null
                            redirect_url: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                      customer_payer:
                        id: null
                        merchant_customer_id: '1689888489'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: acbf992c-e448-4efc-a39c-05f74fa624cf
                          type: PURCHASE
                          status: CREATED
                          category: BANK_TRANSFER
                          amount: 52000
                          provider_id: WOMPI
                          payment_method:
                            vaulted_token: ''
                            type: BANK_TRANSFER
                            vault_on_success: false
                            token: ''
                            detail:
                              bank_transfer:
                                provider_image: ''
                                account_type: null
                                bank_name: Bank of America
                                beneficiary_name: John Doe
                                bank_account: '123456789'
                                bank_account_2: null
                                beneficiary_document_type: SSN
                                beneficiary_document: 123-45-6789
                                payment_instruction: null
                                redirect_url: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test Bank of America
                          merchant_reference: null
                          provider_data:
                            id: WOMPI
                            transaction_id: 117490-1690156586-55850
                            account_id: ''
                            status: APPROVED
                            status_detail: ''
                            response_message: ''
                            iso8583_code: ''
                            iso8583_message: ''
                            raw_response:
                              data:
                                amount_in_cents: 5200000
                                bill_id: null
                                billing_data: null
                                created_at: '2023-07-23T23:56:26.350Z'
                                currency: USD
                                customer_data: null
                                customer_email: johndoe@example.com
                                finalized_at: null
                                id: 117490-1690156586-55850
                                payment_link_id: null
                                payment_method:
                                  extra:
                                    is_three_ds: false
                                  payment_description: Test Bank of America
                                  sandbox_status: APPROVED
                                  type: BANK_TRANSFER
                                  user_type: PERSON
                                payment_method_type: BANK_TRANSFER
                                payment_source_id: null
                                redirect_url: https://demo.dev.y.uno/checkout/status?checkoutSession=
                                reference: acbf992c-e448-4efc-a39c-05f74fa624cf
                                shipping_address: null
                                status: PENDING
                                status_message: null
                                taxes: []
                              meta: {}
                            third_party_transaction_id: ''
                          created_at: '2023-07-23T23:56:25.506471Z'
                          updated_at: '2023-07-23T23:56:29.673135Z'
                      split: []
                      workflow: REDIRECT
                      metadata: []
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      fraud_screening: null
                      idempotency_key: null
                      payment_link_code: ''
                      routing_rules: null
                      split_marketplace: []
                Buy Now Pay Later:
                  value:
                    payment:
                      id: 087be3a5-bed7-4c58-bbe0-c2ebcf376ebb
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test Bank of America
                      country: US
                      status: READY_TO_PAY
                      sub_status: CREATED
                      merchant_order_id: '0000022'
                      created_at: '2023-07-20T21:25:11.903819Z'
                      updated_at: '2023-07-20T21:25:12.983059Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 52000
                      checkout:
                        session: 25e073ae-016c-4bca-89e7-64e05f766f11
                        sdk_action_required: true
                      payment_method:
                        vaulted_token: ''
                        type: ADDI
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          bnpl:
                            installments: null
                            provider_image: null
                            redirect_url: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                            customer_data: null
                      customer_payer:
                        id: null
                        merchant_customer_id: example00234
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: 1328382d-f6e8-4f09-91b7-c18b1308c031
                          type: PURCHASE
                          status: CREATED
                          category: BUY_NOW_PAY_LATER
                          amount: 52000
                          provider_id: ADDI
                          payment_method:
                            vaulted_token: ''
                            type: ADDI
                            vault_on_success: false
                            token: ''
                            detail:
                              bnpl:
                                installments: null
                                provider_image: null
                                redirect_url: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                                customer_data: null
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test Bank of America
                          merchant_reference: null
                          provider_data:
                            id: ADDI
                            transaction_id: '0000022'
                            account_id: ''
                            status: CREATED
                            status_detail: ''
                            response_message: ''
                            iso8583_code: ''
                            iso8583_message: ''
                            raw_response:
                              value: ''
                            third_party_transaction_id: ''
                          three_d_secure_action_required: null
                          created_at: '2023-07-20T21:25:12.008657Z'
                          updated_at: '2023-07-20T21:25:12.918362Z'
                      split: []
                      workflow: REDIRECT
                      metadata: []
                      fraud_screening: null
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      idempotency_key: null
                      payment_link_code: ''
                      routing_rules: null
                      split_marketplace: []
                Payment Link:
                  value:
                    payment:
                      id: 9c1f6ba0-d483-42a9-8d06-d53a07c284e0
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test Bank of America
                      country: US
                      status: READY_TO_PAY
                      sub_status: CREATED
                      merchant_order_id: '0000022'
                      created_at: '2023-07-23T23:11:24.724037Z'
                      updated_at: '2023-07-23T23:11:26.318691Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 5000
                      checkout:
                        session: 3c9eb446-388a-4c2e-9818-573d54300dd1
                        sdk_action_required: true
                      payment_method:
                        vaulted_token: ''
                        type: WEBPAY
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          payment_link:
                            verify: null
                            capture: null
                            installments: null
                            payment_method_id: null
                            payment_method_detail: null
                            date_of_expiration: null
                            money_release_date: null
                            sponsor_id: null
                            authorization_code: null
                            redirect_url: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                      customer_payer:
                        id: null
                        merchant_customer_id: null
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: 762abda0-2de5-43ba-a52b-04279acfb869
                          type: PURCHASE
                          status: CREATED
                          category: PAYMENT_LINK
                          amount: 5000
                          provider_id: TRANSBANK_2
                          payment_method:
                            vaulted_token: ''
                            type: WEBPAY
                            vault_on_success: false
                            token: ''
                            detail: {}
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test Bank of America
                          merchant_reference: null
                          provider_data:
                            id: TRANSBANK_2
                            transaction_id: ''
                            account_id: ''
                            status: ''
                            status_detail: ''
                            response_message: ''
                            iso8583_code: '00'
                            iso8583_message: Approved or completed successfully
                            raw_response:
                              token: 01aba0f569c8a78370aa35461ca482b57d1b767365535de9a0540c03791a3d97
                              url: https://webpay3gint.transbank.cl/webpayserver/initTransaction
                            third_party_transaction_id: ''
                          created_at: '2023-07-23T23:11:24.842815Z'
                          updated_at: '2023-07-23T23:11:26.242431Z'
                      split: []
                      callback_url: www.y.uno
                      workflow: REDIRECT
                      metadata: []
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      fraud_screening: null
                      idempotency_key: null
                      payment_link_code: ''
                      routing_rules: null
                      split_marketplace: []
                Ticket:
                  value:
                    payment:
                      id: 1c109200-3236-43f3-ab44-9a317991a288
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test Bank of America
                      country: US
                      status: READY_TO_PAY
                      sub_status: CREATED
                      merchant_order_id: '0000022'
                      created_at: '2023-07-23T23:35:25.021285Z'
                      updated_at: '2023-07-23T23:35:26.067120Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 52000
                      checkout:
                        session: 3faeb04f-0a52-41fc-9aba-33e535386776
                        sdk_action_required: true
                      payment_method:
                        vaulted_token: ''
                        type: BANK_TRANSFER
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          ticket:
                            type: null
                            date_of_expiration: null
                            provider_number: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                            provider_barcode: null
                            provider_logo: null
                            provider_format: null
                            redirect_url: https://checkout.sandbox.y.uno/payment?session=3feff49c-a422-434a-9fad-eca87e2193d5
                      customer_payer:
                        id: null
                        merchant_customer_id: '1690155316'
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data: null
                      taxes: null
                      transactions:
                        - id: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                          type: PURCHASE
                          status: CREATED
                          category: TICKET
                          amount: 52000
                          provider_id: UNLIMINT
                          payment_method:
                            vaulted_token: ''
                            type: BANK_TRANSFER
                            vault_on_success: false
                            token: ''
                            detail: {}
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test Bank of America
                          merchant_reference: null
                          provider_data:
                            id: UNLIMINT
                            transaction_id: ''
                            account_id: ''
                            status: ''
                            status_detail: ''
                            response_message: ''
                            iso8583_code: '00'
                            iso8583_message: Approved or completed successfully
                            raw_response:
                              redirect_url: https://sandbox.cardpay.com/MI/payment.html?uuid=a6cfEG0H3c1Hf42f23HhH3Ch
                            third_party_transaction_id: ''
                          created_at: '2023-07-23T23:35:25.116858Z'
                          updated_at: '2023-07-23T23:35:25.988725Z'
                      split: []
                      callback_url: www.google.com
                      workflow: REDIRECT
                      metadata: []
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      fraud_screening: null
                      idempotency_key: null
                      payment_link_code: ''
                      routing_rules: null
                      split_marketplace: []
                Wallet:
                  value:
                    payment:
                      id: d0ff19c2-cf55-4015-a613-e35f22da0233
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      description: Test Bank of America
                      country: US
                      status: READY_TO_PAY
                      sub_status: CREATED
                      merchant_order_id: '0000023'
                      created_at: '2023-07-23T23:02:39.401790Z'
                      updated_at: '2023-07-23T23:02:40.312593Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 3000
                      checkout:
                        session: b7e15362-4ac0-4e23-886e-329695933ecb
                        sdk_action_required: true
                      payment_method:
                        vaulted_token: ''
                        type: BANK_TRANSFER
                        vault_on_success: false
                        token: ''
                        payment_method_detail:
                          wallet:
                            verify: false
                            capture: false
                            installments: null
                            payment_method_id: null
                            payment_method_detail: null
                            date_of_expiration: null
                            money_release_date: null
                            sponsor_id: null
                            authorization_code: null
                            customer_data: null
                            card_data: null
                            redirect_url: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                      customer_payer:
                        id: null
                        merchant_customer_id: null
                        first_name: John
                        last_name: Doe
                        gender: M
                        date_of_birth: '1990-02-28'
                        email: johndoe@example.com
                        nationality: US
                        ip_address: 192.0.2.1
                        device_fingerprint: null
                        browser_info:
                          user_agent: ''
                          accept_header: ''
                          accept_content: null
                          accept_browser: null
                          color_depth: ''
                          screen_height: ''
                          screen_width: ''
                          javascript_enabled: null
                          java_enabled: null
                          browser_time_difference: null
                          language: ''
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          number: '5551234567'
                          country_code: '1'
                        billing_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        shipping_address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 4B
                          country: US
                          state: California
                          city: Los Angeles
                          zip_code: '90001'
                        device_fingerprints: []
                        geolocation: null
                        merchant_customer_validations: null
                        merchant_customer_created_at: null
                      additional_data:
                        airline: null
                        order:
                          fee_amount: null
                          shipping_amount: null
                          items:
                            - id: 123AD
                              name: Skirt
                              quantity: 1
                              unit_amount: 3000
                              category: null
                              brand: null
                              sku_code: null
                              manufacture_part_number: null
                        seller_details: null
                      taxes: null
                      transactions:
                        - id: 286ad833-7cbc-4e66-92f9-01019eb7d7a3
                          type: PURCHASE
                          status: CREATED
                          category: WALLET
                          amount: 3000
                          provider_id: BANK_OF_AMERICA
                          payment_method:
                            vaulted_token: ''
                            type: BANK_TRANSFER
                            vault_on_success: false
                            token: ''
                            detail:
                              wallet:
                                verify: false
                                capture: false
                                installments: null
                                payment_method_id: null
                                payment_method_detail: null
                                date_of_expiration: null
                                money_release_date: null
                                sponsor_id: null
                                authorization_code: null
                                customer_data: null
                                card_data: null
                                redirect_url: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                          response_code: SUCCEEDED
                          response_message: Transaction successful
                          reason: null
                          description: Test Bank of America
                          merchant_reference: reference-d2b08e8e-c87a-4806-b1ea-b35a19a36a6d
                          provider_data:
                            id: BANK_OF_AMERICA
                            transaction_id: ''
                            account_id: ''
                            status: ''
                            status_detail: ''
                            response_message: ''
                            iso8583_code: '00'
                            iso8583_message: Approved or completed successfully
                            raw_response:
                              value: '{"additional_info":"","auto_return":"approved","back_urls":{"failure":"http://www.y.uno","pending":"http://www.y.uno","success":"http://www.y.uno"},"binary_mode":true,"client_id":"3615163740385056","collector_id":1131498549,"coupon_code":null,"coupon_labels":null,"date_created":"2023-07-23T19:02:40.082-04:00","date_of_expiration":null,"expiration_date_from":null,"expiration_date_to":null,"expires":false,"external_reference":"286ad833-7cbc-4e66-92f9-01019eb7d7a3","id":"1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","init_point":"https://www.mercadopago.com.ar/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","internal_metadata":null,"items":[{"id":"123AD","category_id":"others","currency_id":"ARS","description":"","title":"Skirt","quantity":1,"unit_price":3000}],"marketplace":"MP-MKT-3615163740385056","marketplace_fee":0,"metadata":{},"notification_url":"https://sandbox.y.uno/mercadopago-webhook/v1/checkout-pro/events?source_news=webhooks&transaction=286ad833-7cbc-4e66-92f9-01019eb7d7a3","operation_type":"regular_payment","payer":{"phone":{"area_code":"","number":""},"address":{"zip_code":"","street_name":"","street_number":null},"email":"johndoe@example.com","identification":{"number":"123-45-6789","type":"SSN"},"name":"John","surname":"Doe","date_created":null,"last_purchase":null},"payment_methods":{"default_card_id":null,"default_payment_method_id":null,"excluded_payment_methods":[{"id":""}],"excluded_payment_types":[{"id":"ticket"},{"id":"atm"}],"installments":null,"default_installments":null},"processing_modes":null,"product_id":null,"redirect_urls":{"failure":"","pending":"","success":""},"sandbox_init_point":"https://sandbox.mercadopago.com.ar/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","site_id":"MLA","shipments":{"mode":"not_specified","default_shipping_method":null,"cost":0,"receiver_address":{"zip_code":"","street_name":"","street_number":null,"floor":"","apartment":"","city_name":null,"state_name":null,"country_name":null}},"total_amount":null,"last_updated":null}'
                            third_party_transaction_id: ''
                          created_at: '2023-07-23T23:02:39.582570Z'
                          updated_at: '2023-07-23T23:02:40.227158Z'
                      split: []
                      callback_url: www.y.uno
                      workflow: REDIRECT
                      metadata: []
                      account_code: 493e9374-510a-4201-9e09-de669d75f256
                      fraud_screening: null
                      idempotency_key: null
                      payment_link_code: ''
                      routing_rules: null
                      split_marketplace: []
              schema:
                oneOf:
                  - title: SDK_Checkout - Required Fields
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: e3f397ed-b7d0-4816-ab75-8457b0a30ec1
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test Bank of America
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: READY_TO_PAY
                          sub_status:
                            type: string
                            example: CREATED
                          merchant_order_id:
                            type: string
                            example: '0000022'
                          created_at:
                            type: string
                            example: '2023-07-20T17:24:58.900553Z'
                          updated_at:
                            type: string
                            example: '2023-07-20T17:25:13.447662Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 52000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: 954dc216-60ff-4ae4-a299-c603b93bd267
                              sdk_action_required:
                                type: boolean
                                example: true
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: BANK_TRANSFER
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: 2cd31999-e44e-4de3-bbe4-179981ff4295
                              payment_method_detail:
                                type: object
                                properties:
                                  bank_transfer:
                                    type: object
                                    properties:
                                      provider_image:
                                        type: string
                                        example: ''
                                      account_type: {}
                                      bank_name:
                                        type: string
                                        example: Bank of America
                                      beneficiary_name:
                                        type: string
                                        example: John Doe
                                      bank_account:
                                        type: string
                                        example: '123456789'
                                      bank_account_2: {}
                                      beneficiary_document_type:
                                        type: string
                                        example: SSN
                                      beneficiary_document:
                                        type: string
                                        example: 123-45-6789
                                      payment_instruction: {}
                                      redirect_url:
                                        type: string
                                        example: https://api-sandbox.bankofamerica.com/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                                      bank_account_mask_number:
                                        type: string
                                        description: >-
                                          Masked bank account number associated with the bank transfer (for example,
                                          ****6789). This is account data, not mandate data.
                                      mandate:
                                        type: object
                                        description: >-
                                          Direct debit mandate details, for bank transfer methods that operate with
                                          mandates (for example, ACH, SEPA, BACS, PAD).
                                        properties:
                                          id:
                                            type: string
                                            description: Mandate identifier, as provided by the payment provider.
                                          info:
                                            type: string
                                            description: Free-text mandate information.
                                          received_status:
                                            type: string
                                            description: >-
                                              Provider status indicating whether the mandate was received. Forwarded as
                                              provided by the payment provider.
                                          existing_status:
                                            type: string
                                            description: >-
                                              Provider status of the existing mandate. Forwarded as provided by the
                                              payment provider.
                                          created_at:
                                            type: string
                                            format: date-time
                                            description: Date and time when the mandate was created (ISO 8601).
                                          updated_at:
                                            type: string
                                            format: date-time
                                            description: Date and time when the mandate was last updated (ISO 8601).
                          customer_payer:
                            type: object
                            properties:
                              id:
                                type: string
                                example: cfae0941-7234-427a-a739-ef4fce966c79
                              merchant_customer_id:
                                type: string
                                example: '1689873883'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1980-01-01'
                              email:
                                type: string
                                example: johndoe@gmail.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.168.1.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main Street
                                  address_line_2: {}
                                  city:
                                    type: string
                                    example: New York
                                  state:
                                    type: string
                                    example: NY
                                  country:
                                    type: string
                                    example: US
                                  zip_code:
                                    type: string
                                    example: '10001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main Street
                                  address_line_2: {}
                                  city:
                                    type: string
                                    example: New York
                                  state:
                                    type: string
                                    example: NY
                                  country:
                                    type: string
                                    example: US
                                  zip_code:
                                    type: string
                                    example: '10001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 09135cb9-159c-4662-8fe3-da5523bb2266
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: BANK_TRANSFER
                                amount:
                                  type: integer
                                  example: 52000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: BANK_OF_AMERICA
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: BANK_TRANSFER
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: 2cd31999-e44e-4de3-bbe4-179981ff4295
                                    detail:
                                      type: object
                                      properties:
                                        bank_transfer:
                                          type: object
                                          properties:
                                            provider_image:
                                              type: string
                                              example: ''
                                            account_type: {}
                                            bank_name:
                                              type: string
                                              example: Bank of America
                                            beneficiary_name:
                                              type: string
                                              example: John Doe
                                            bank_account:
                                              type: string
                                              example: '123456789'
                                            bank_account_2: {}
                                            beneficiary_document_type:
                                              type: string
                                              example: SSN
                                            beneficiary_document:
                                              type: string
                                              example: 123-45-6789
                                            payment_instruction: {}
                                            redirect_url:
                                              type: string
                                              example: https://api-sandbox.bankofamerica.com/v1/payment_methods/redirect/bank_transfer?transferCode=52xB9jF695TdDvHK-approved
                                            bank_account_mask_number:
                                              type: string
                                              description: >-
                                                Masked bank account number associated with the bank transfer (for
                                                example, ****6789). This is account data, not mandate data.
                                            mandate:
                                              type: object
                                              description: >-
                                                Direct debit mandate details, for bank transfer methods that operate
                                                with mandates (for example, ACH, SEPA, BACS, PAD).
                                              properties:
                                                id:
                                                  type: string
                                                  description: Mandate identifier, as provided by the payment provider.
                                                info:
                                                  type: string
                                                  description: Free-text mandate information.
                                                received_status:
                                                  type: string
                                                  description: >-
                                                    Provider status indicating whether the mandate was received.
                                                    Forwarded as provided by the payment provider.
                                                existing_status:
                                                  type: string
                                                  description: >-
                                                    Provider status of the existing mandate. Forwarded as provided by
                                                    the payment provider.
                                                created_at:
                                                  type: string
                                                  format: date-time
                                                  description: Date and time when the mandate was created (ISO 8601).
                                                updated_at:
                                                  type: string
                                                  format: date-time
                                                  description: Date and time when the mandate was last updated (ISO 8601).
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test Bank of America
                                merchant_reference: {}
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: BANK_OF_AMERICA
                                    transaction_id:
                                      type: string
                                      example: 117490-1689873907-17347
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: APPROVED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_code:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        data:
                                          type: object
                                          properties:
                                            amount_in_cents:
                                              type: integer
                                              example: 5200000
                                              default: 0
                                            bill_id: {}
                                            billing_data: {}
                                            created_at:
                                              type: string
                                              example: '2023-07-20T17:25:07.167Z'
                                            currency:
                                              type: string
                                              example: USD
                                            customer_data: {}
                                            customer_email:
                                              type: string
                                              example: johndoe@gmail.com
                                            finalized_at: {}
                                            id:
                                              type: string
                                              example: 117490-1689873907-17347
                                            payment_link_id: {}
                                            payment_method:
                                              type: object
                                              properties:
                                                extra:
                                                  type: object
                                                  properties:
                                                    is_three_ds:
                                                      type: boolean
                                                      example: false
                                                      default: true
                                                payment_description:
                                                  type: string
                                                  example: Test Bank of America
                                                sandbox_status:
                                                  type: string
                                                  example: APPROVED
                                                type:
                                                  type: string
                                                  example: BANK_TRANSFER
                                                user_type:
                                                  type: string
                                                  example: PERSON
                                            payment_method_type:
                                              type: string
                                              example: BANK_TRANSFER
                                            payment_source_id: {}
                                            redirect_url:
                                              type: string
                                              example: https://google.com/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                                            reference:
                                              type: string
                                              example: 09135cb9-159c-4662-8fe3-da5523bb2266
                                            shipping_address:
                                              type: object
                                              properties:
                                                address_line_1:
                                                  type: string
                                                  example: 123 Main Street
                                                address_line_2: {}
                                                city:
                                                  type: string
                                                  example: New York
                                                state:
                                                  type: string
                                                  example: NY
                                                country:
                                                  type: string
                                                  example: US
                                                zip_code:
                                                  type: string
                                                  example: '10001'
                                            status:
                                              type: string
                                              example: PENDING
                                            status_message: {}
                                            taxes:
                                              type: array
                                        meta:
                                          type: object
                                          properties: {}
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                three_d_secure_action_required: {}
                                created_at:
                                  type: string
                                  example: '2023-07-20T17:25:05.410687Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-20T17:25:11.472652Z'
                          split:
                            type: array
                          callback_url:
                            type: string
                            example: https://y.uno/?checkoutSession=954dc216-60ff-4ae4-a299-c603b93bd267
                          workflow:
                            type: string
                            example: SDK_CHECKOUT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          fraud_screening:
                            type:
                              - object
                              - 'null'
                            example: null
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          payment_link_code:
                            type: string
                            example: ''
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With card details
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: bc0489ba-80bf-4bb9-98c5-ff8dfbceebf9
                          account_id:
                            type: string
                            example: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                          description:
                            type: string
                            example: SUCCESSFUL
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: Order_id
                          created_at:
                            type: string
                            example: '2023-07-12T18:51:49.437886Z'
                          updated_at:
                            type: string
                            example: '2023-07-12T18:51:54.679410Z'
                          amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: integer
                                example: 20000
                                default: 0
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              captured:
                                type: integer
                                example: 0
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '517862'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank NA
                                          issuer_code:
                                            type: string
                                            example: US_JPMORGAN_CHASE_BANK_NA
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              token: {}
                                              collect_url: {}
                                              setup_reference_id: {}
                                              developer_id: {}
                                              solution_id: {}
                                              code: {}
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              acs_id: {}
                                              ds_id: {}
                                              pares_status: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id:
                                type: string
                                example: a76d79b7-902f-4152-922f-7e7eebc5f3dc
                              merchant_customer_id:
                                type: string
                                example: '1309'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address: {}
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: string
                                  accept_header:
                                    type: string
                                    example: string
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: '32'
                                  screen_height:
                                    type: string
                                    example: '32'
                                  screen_width:
                                    type: string
                                    example: '32'
                                  javascript_enabled:
                                    type: boolean
                                    example: true
                                    default: true
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: string
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Peak Avenue
                                  address_line_2:
                                    type: string
                                    example: ''
                                  country:
                                    type: string
                                    example: US
                                  city:
                                    type: string
                                    example: San Diego
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Peak Avenue
                                  address_line_2:
                                    type: string
                                    example: ''
                                  country:
                                    type: string
                                    example: US
                                  city:
                                    type: string
                                    example: San Diego
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: c718b8e9-2943-4fdf-9b3c-426cf44940fb
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 20000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: DLOCAL
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '517862'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '41111111'
                                                lfd:
                                                  type: string
                                                  example: '1111'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank NA
                                                issuer_code:
                                                  type: string
                                                  example: US_JPMORGAN_CHASE_BANK_NA
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    token: {}
                                                    collect_url: {}
                                                    setup_reference_id: {}
                                                    developer_id: {}
                                                    solution_id: {}
                                                    code: {}
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    acs_id: {}
                                                    ds_id: {}
                                                    pares_status: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: SUCCESSFUL
                                merchant_reference: {}
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: DLOCAL
                                    transaction_id:
                                      type: string
                                      example: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: PAID
                                    status_detail:
                                      type: string
                                      example: '200'
                                    response_message:
                                      type: string
                                      example: The payment was paid.
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        value:
                                          type: string
                                          example: >-
                                            {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":20000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                            Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T18:51:52.000+0000","approved_date":"2023-07-12T18:51:54.000+0000","status":"PAID","status_detail":"The
                                            payment was
                                            paid.","status_code":"200","order_id":"c718b8e9-2943-4fdf-9b3c-426cf44940fb","description":"SUCCESSFUL","notification_url":"https://sandbox.y.uno/dlocal-webhook/v1/confirmations","acquirer":{"authorization_code":"517862"}}
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                three_d_secure_action_required: {}
                                created_at:
                                  type: string
                                  example: '2023-07-12T18:51:51.908784Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-12T18:51:54.426087Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With airline data
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 6e7cc5da-2b39-4b6e-b382-df8bb1feddf1
                          account_id:
                            type: string
                            example: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                          description:
                            type: string
                            example: SUCCESSFUL
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: Order_id
                          created_at:
                            type: string
                            example: '2023-07-12T20:06:41.418163Z'
                          updated_at:
                            type: string
                            example: '2023-07-12T20:06:41.806898Z'
                          amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: integer
                                example: 2000
                                default: 0
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              captured:
                                type: integer
                                example: 0
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: ''
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank NA
                                          issuer_code:
                                            type: string
                                            example: US_JPMORGAN_CHASE_BANK_NA
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              token: {}
                                              collect_url: {}
                                              setup_reference_id: {}
                                              developer_id: {}
                                              solution_id: {}
                                              code: {}
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              acs_id: {}
                                              ds_id: {}
                                              pares_status: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id: {}
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1998-01-01'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.0.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: string
                                  accept_header:
                                    type: string
                                    example: string
                                  accept_content:
                                    type: string
                                    example: string
                                  accept_browser:
                                    type: string
                                    example: string
                                  color_depth:
                                    type: string
                                    example: '32'
                                  screen_height:
                                    type: string
                                    example: '32'
                                  screen_width:
                                    type: string
                                    example: '32'
                                  javascript_enabled:
                                    type: boolean
                                    example: true
                                    default: true
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: string
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone: {}
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main Street
                                  address_line_2:
                                    type: string
                                    example: Apt 42
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main Street
                                  address_line_2:
                                    type: string
                                    example: Apt 42
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data:
                            type: object
                            properties:
                              airline:
                                type: object
                                properties:
                                  pnr:
                                    type: string
                                    example: ABC123
                                  legs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        departure_airport:
                                          type: string
                                          example: LAX
                                        departure_datetime:
                                          type: string
                                          example: '2023-10-31T01:30:00.000-07:00'
                                        departure_airport_timezone:
                                          type: string
                                          example: GMT-07
                                        arrival_airport:
                                          type: string
                                          example: JFK
                                        arrival_datetime:
                                          type: string
                                          example: '2023-10-31T07:30:00.000-04:00'
                                        carrier_code:
                                          type: string
                                          example: AA
                                        carrier_name:
                                          type: string
                                          example: American Airlines
                                        flight_number:
                                          type: string
                                          example: AA100
                                        fare_basis_code:
                                          type: string
                                          example: 'Y'
                                        fare_class_code:
                                          type: string
                                          example: M
                                        base_fare:
                                          type: integer
                                          example: 250
                                          default: 0
                                        base_fare_currency:
                                          type: string
                                          example: USD
                                        stopover_code:
                                          type: string
                                          example: 'N'
                                  passengers:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        first_name:
                                          type: string
                                          example: John
                                        last_name:
                                          type: string
                                          example: Doe
                                        middle_name:
                                          type: string
                                          example: Michael
                                        type:
                                          type: string
                                          example: A
                                        date_of_birth:
                                          type: string
                                          example: '1998-01-01'
                                        nationality:
                                          type: string
                                          example: US
                                        document:
                                          type: object
                                          properties:
                                            document_type:
                                              type: string
                                              example: SSN
                                            document_number:
                                              type: string
                                              example: 123-45-6789
                                        country:
                                          type: string
                                          example: US
                                        loyalty_number:
                                          type: string
                                          example: '79250001'
                                        loyalty_tier:
                                          type: string
                                          example: Platinum
                                        email:
                                          type: string
                                          example: john.doe@company.com
                                        phone:
                                          type: object
                                          properties:
                                            number:
                                              type: string
                                              example: '5551234567'
                                            country_code:
                                              type: string
                                              example: '1'
                                  tickets:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        ticket_number:
                                          type: string
                                          example: BRB0001
                                        e_ticket:
                                          type: boolean
                                          example: true
                                          default: true
                                        restricted:
                                          type: boolean
                                          example: false
                                          default: true
                                        total_fare_amount:
                                          type: integer
                                          example: 500
                                          default: 0
                                        total_tax_amount:
                                          type: integer
                                          example: 50
                                          default: 0
                                        total_fee_amount:
                                          type: integer
                                          example: 25
                                          default: 0
                                        issue:
                                          type: object
                                          properties:
                                            carrier_prefix_code:
                                              type: string
                                              example: AA
                                            travel_agent_code:
                                              type: string
                                              example: A104121
                                            travel_agent_name:
                                              type: string
                                              example: SkyTravel
                                            date:
                                              type: string
                                              example: '2023-10-30T10:00:00.000-07:00'
                                            address:
                                              type: string
                                              example: 123 Main Street, Apt 42
                                            city:
                                              type: string
                                              example: Los Angeles
                                            country:
                                              type: string
                                              example: US
                                            zip_code:
                                              type: string
                                              example: '90001'
                              order: {}
                              seller_details: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: f4740123-2662-437c-a52b-7a80aa8fe807
                                type:
                                  type: string
                                  example: AUTHORIZE
                                status:
                                  type: string
                                  example: REJECTED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 2000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: MERCADO_PAGO
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: false
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: ''
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '41111111'
                                                lfd:
                                                  type: string
                                                  example: '1111'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank NA
                                                issuer_code:
                                                  type: string
                                                  example: US_JPMORGAN_CHASE_BANK_NA
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    token: {}
                                                    collect_url: {}
                                                    setup_reference_id: {}
                                                    developer_id: {}
                                                    solution_id: {}
                                                    code: {}
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    acs_id: {}
                                                    ds_id: {}
                                                    pares_status: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: REJECTED
                                response_message:
                                  type: string
                                  example: Transaction unsuccessful
                                reason:
                                  type: string
                                  example: Insufficient funds
                                description:
                                  type: string
                                  example: Transaction failed
                                merchant_reference: {}
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: MERCADO_PAGO
                                    transaction_id:
                                      type: string
                                      example: T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: DECLINED
                                    status_detail:
                                      type: string
                                      example: Insufficient funds
                                    response_message:
                                      type: string
                                      example: Payment could not be completed.
                                    iso8583_response_code:
                                      type: string
                                      example: '05'
                                    iso8583_response_message:
                                      type: string
                                      example: Do not honor
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        value:
                                          type: string
                                          example: >-
                                            {"id":"T-385928-c64b755f-1318-4a4c-a963-cd39bcefdc42","amount":2000,"currency":"USD","payment_method_id":"CARD","payment_method_type":"CARD","payment_method_flow":"DIRECT","country":"US","card":{"holder_name":"John
                                            Doe","expiration_month":11,"expiration_year":2028,"brand":"VI","last4":"1111","installments":1,"installments_responsible":"customer"},"three_dsecure":{},"created_date":"2023-07-12T20:06:41.000+0000","status":"DECLINED","status_detail":"Insufficient
                                            funds","status_code":"05","order_id":"f4740123-2662-437c-a52b-7a80aa8fe807","description":"Transaction
                                            failed","notification_url":"https://sandbox.y.uno/mercado-pago-webhook/v1/confirmations","acquirer":{"authorization_code":""}}
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                three_d_secure_action_required: {}
                                created_at:
                                  type: string
                                  example: '2023-07-12T20:06:41.418163Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-12T20:06:41.806898Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 64761a45-6e49-4ea5-a6ff-6b52030b92ac
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With 3DS direct
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: cb3ca163-cb79-41d7-b9a3-0115e30a7c01
                          idempotency_key:
                            type: string
                            example: fc0d89a1-8d18-4759-8d0a-ee1c6d0386e2
                          account_code:
                            type: string
                            example: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                          account_id:
                            type: string
                            example: 26a6626c-d3ec-4caa-bf7c-a994b145dc00
                          description:
                            type: string
                            example: TEST_3DS
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-17T17:00:39.678379Z'
                          updated_at:
                            type: string
                            example: '2023-07-17T17:41:48.453381Z'
                          amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: integer
                                example: 5000
                                default: 0
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              captured:
                                type: integer
                                example: 0
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: b0751c96-0b00-4b8c-8372-c16f72f60598
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          customer_payer:
                            type: object
                            properties:
                              id:
                                type: string
                                example: fc7ef8ae-000d-4903-ab76-494ebc8d5fa3
                              merchant_customer_id:
                                type: string
                                example: '1689374657'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender: {}
                              date_of_birth: {}
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info: {}
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone: {}
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: New York
                                  city:
                                    type: string
                                    example: New York
                                  zip_code:
                                    type: string
                                    example: '10001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: New York
                                  city:
                                    type: string
                                    example: New York
                                  zip_code:
                                    type: string
                                    example: '10001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data:
                            type: object
                            properties:
                              airline: {}
                              order: {}
                              seller_details: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: caada737-27ab-46ca-91a9-744da64c4787
                                type:
                                  type: string
                                  example: THREE_D_SECURE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: CYBERSOURCE_3DS
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: ''
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            redirect_url:
                                              type: string
                                              example: https://checkout.staging.y.uno/payment?session=14c263bd-e01d-400f-885a-70205df8b417
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '44565300'
                                                lfd:
                                                  type: string
                                                  example: '0007'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank NA
                                                issuer_code:
                                                  type: string
                                                  example: US_JPMORGAN_CHASE_BANK_NA
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    three_d_secure_setup_id:
                                                      type: string
                                                      example: 24127d61-b852-42fb-acd4-1ee661645376
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status:
                                                      type: string
                                                      example: 'Y'
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: TEST_3DS
                                merchant_reference:
                                  type: string
                                  example: reference-5f6dd991-ab14-4da3-b7d8-9f24a04ebd92
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: CYBERSOURCE_3DS
                                    transaction_id:
                                      type: string
                                      example: '6896132402506977804951'
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: AUTHENTICATION_SUCCESSFUL
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: CONSUMER_AUTHENTICATION_REQUIRED
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        clientReferenceInformation:
                                          type: object
                                          properties:
                                            code:
                                              type: string
                                              example: 24127d61-b852-42fb-acd4-1ee661645376
                                        consumerAuthenticationInformation:
                                          type: object
                                          properties:
                                            accessToken:
                                              type: string
                                              example: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiIxZmM5ZDVhMS04M2ZhLTQwYWEtYjI5Ny1iZDM1ZGIxODQ4ZjAiLCJpYXQiOjE2ODk2MTMyNDAsImlzcyI6IjVkZDgzYmYwMGU0MjNkMTQ5OGRjYmFjYSIsImV4cCI6MTY4OTYxNjg0MCwiT3JnVW5pdElkIjoiNjQwYTM1NjlkODdhMjUwYTQyNTEwOWRjIiwiUGF5bG9hZCI6eyJBQ1NVcmwiOiJodHRwczovL21lcmNoYW50YWNzc3RhZy5jYXJkaW5hbGNvbW1lcmNlLmNvbS9NZXJjaGFudEFDU1dlYi9wYXJlcS5qc3A_dmFhPWImZ29sZD1BQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUEiLCJQYXlsb2FkIjoiZU5wVlVWMXZna0FRZkw5ZlFVd2ZHKzZBS3RHc2w5QnE2a2MwdHRCb254cUViU1dWRDQvRHFMKytkd2kxdmFlZHljN3R6aXdFTzRFNDhqR3FCSEpZWUZtR1gyZ2s4YkRqWC9KcHZqaVV6M0kyUzc4LzAvUE1ZeDBPSys4VkR4eU9LTW9rejdobE10TUcya0tpdmhEUkxzd2toekE2UEU2WC9LSFh0NjBlMEFZU1NGRk1SendZKzhHSE0vS0JYakdCTEV5UnYxZFpiaWphQ0xDVVFHdU9RSlJYbVJSbmJya01hQXNJVkdMUGQxSVc1WURTczZtVVFEVkZnTjYyV0ZXNktwVzVVeEx6TjZjNCt1ditNdG9zSi9HNG1HL1hNdDF1OXZPWHdCc0MxUjBFNGxBaXQ1bnRNTmR5RGNzZE1EWncra0JybmtDWTZ2bjhybXN5eHU2WldxaGhDQlI2bG5kRlhhWWYwTCtjTWxJSmdWblVPbWtSQVR3VmVZYXFSNFg1V3lzanQvV2ZKanJTU0txc1hPWTR6TEoxcGpXdTVZbUt4TzR4cTlZbmRUNVVhMmh6TWRvY1YxWC9qdjREQVEybVdnPT0iLCJUcmFuc2FjdGlvbklkIjoiU3pvSW9NcXNHdEpKbWtmbXlKQTAifSwiT2JqZWN0aWZ5UGF5bG9hZCI6dHJ1ZSwiUmV0dXJuVXJsIjoiaHR0cHM6Ly9zdGFnaW5nLnkudW5vL2N5YmVyc291cmNlLTNkcy13ZWJob29rL3YxL2NvbmZpcm1hdGlvbnMvYXV0aC8yNDEyN2Q2MS1iODUyLTQyZmItYWNkNC0xZWU2NjE2NDUzNzYifQ.5ehSTA5uUKc2DfvTRGJZ8dPKbxAJ5WproKSTLqu4egM
                                            acsUrl:
                                              type: string
                                              example: https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
                                            authenticationPath:
                                              type: string
                                              example: ENROLLED
                                            authenticationTransactionId:
                                              type: string
                                              example: SzoIoMqsGtJJmkfmyJA0
                                            pareq:
                                              type: string
                                              example: eNpVUV1vgkAQfL9fQUwfG+6AKtGsl9Bq6kc0ttBonxqEbSWVD4/DqL++dwi1vaedyc7tziwEO4E48jGqBHJYYFmGX2gk8bDjX/JpvjiUz3I2S78/0/PMYx0OK+8VDxyOKMokz7hlMtMG2kKivhDRLswkhzA6PE6X/KHXt60e0AYSSFFMRzwY+8GHM/KBXjGBLEyRv1dZbijaCLCUQGuOQJRXmRRnbrkMaAsIVGLPd1IW5YDSs6mUQDVFgN62WFW6KpW5UxLzN6c4+uv+MtosJ/G4mG/XMt1u9vOXwBsC1R0E4lAit5ntMNdyDcsdMDZw+kBrnkCY6vn8rmsyxu6ZWqhhCBR6lndFXaYf0L+cMlIJgVnUOmkRATwVeYaqR4X5Wysjt/WfJjrSSKqsXOY4zLJ1pjWu5YmKxO4xq9YndT5Ua2hzMdocV1X/jv4DAQ2mWg==
                                            proofXml:
                                              type: string
                                              example: >-
                                                <AuthProof><Time>2023 Jul 17
                                                17:00:39</Time><DSUrl>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/vereq.jsp?acqid=CYBS</DSUrl><VEReqProof><Message
                                                id="SzoIoMqsGtJJmkfmyJA0"><VEReq><version>1.0.2</version><pan>XXXXXXXXXXXX0007</pan><Merchant><acqBIN>469216</acqBIN><merID>TEST_3DS</merID></Merchant><Browser><deviceCategory>0</deviceCategory><accept>*/*</accept><userAgent>Mozilla/5.0
                                                (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like
                                                Gecko) Chrome/114.0.0.0
                                                Safari/537.36</userAgent></Browser></VEReq></Message></VEReqProof><VEResProof><Message
                                                id="SzoIoMqsGtJJmkfmyJA0"><VERes><version>1.0.2</version><CH><enrolled>Y</enrolled><acctID>7033012</acctID></CH><url>https://merchantacsstag.cardinalcommerce.com/MerchantACSWeb/pareq.jsp?vaa=b&amp;gold=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</url><protocol>ThreeDSecure</protocol></VERes></Message></VEResProof></AuthProof>
                                            proxyPan:
                                              type: string
                                              example: '7033012'
                                            specificationVersion:
                                              type: string
                                              example: 1.0.2
                                            stepUpUrl:
                                              type: string
                                              example: https://centinelapistag.cardinalcommerce.com/V2/Cruise/StepUp
                                            strongAuthentication:
                                              type: object
                                              properties:
                                                OutageExemptionIndicator:
                                                  type: string
                                                  example: '0'
                                            token:
                                              type: string
                                              example: AxjzbwSTddcP6s4BiIKXABEBURzGv4QYVRP0JAY/LtaSZejFq0T8BEAAwwdp
                                            veresEnrolled:
                                              type: string
                                              example: 'Y'
                                            xid:
                                              type: string
                                              example: U3pvSW9NcXNHdEpKbWtmbXlKQTA=
                                        errorInformation:
                                          type: object
                                          properties:
                                            message:
                                              type: string
                                              example: >-
                                                The cardholder is enrolled in Payer Authentication. Please authenticate
                                                the cardholder before continuing with the transaction.
                                            reason:
                                              type: string
                                              example: CONSUMER_AUTHENTICATION_REQUIRED
                                        id:
                                          type: string
                                          example: '6896132402506977804951'
                                        paymentInformation:
                                          type: object
                                          properties:
                                            card:
                                              type: object
                                              properties:
                                                bin:
                                                  type: string
                                                  example: '445653'
                                                type:
                                                  type: string
                                                  example: VISA
                                        status:
                                          type: string
                                          example: PENDING_AUTHENTICATION
                                        submitTimeUtc:
                                          type: string
                                          example: '2023-07-17T17:00:40Z'
                                    third_party_transaction_id: {}
                                three_d_secure_action_required: {}
                                created_at:
                                  type: string
                                  example: '2023-07-17T17:00:39.765728Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-17T17:41:43.593769Z'
                          split:
                            type: array
                          callback_url:
                            type: string
                            example: https://google.com
                          workflow:
                            type: string
                            example: REDIRECT
                          fraud_screening: {}
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          payment_link_code:
                            type: string
                            example: ''
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With customer, billing, and shipping details
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 12113b61-015a-4a01-a69c-ab7423d0138d
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-24T01:03:02.291414Z'
                          updated_at:
                            type: string
                            example: '2023-07-24T01:03:04.571022Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '123456'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank
                                          issuer_code: {}
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: '1690160581'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 73e5cddf-32c7-4b12-9d8e-92335862928f
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '123456'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '40518856'
                                                lfd:
                                                  type: string
                                                  example: '6623'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank
                                                issuer_code: {}
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status: {}
                                                    acs_id: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test
                                merchant_reference:
                                  type: string
                                  example: reference-85ffbde3-2256-418f-b761-41ab2d8706dd
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: YUNO_TEST_PAYMENT_GW
                                    transaction_id:
                                      type: string
                                      example: d570b77a-759e-45ae-abb9-ab4ab3034d0c
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        amount:
                                          type: object
                                          properties:
                                            currency:
                                              type: string
                                              example: USD
                                            value:
                                              type: integer
                                              example: 2100
                                              default: 0
                                        merchantAccount:
                                          type: string
                                          example: YunoPaymentsECOM
                                        reference:
                                          type: string
                                          example: '34343434'
                                        status:
                                          type: string
                                          example: received
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-24T01:03:02.407480Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-24T01:03:04.499303Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With customer, billing, shipping and order items
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: cf205a5e-140e-4c08-9a5b-ee44b91256dc
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-24T01:08:17.039613Z'
                          updated_at:
                            type: string
                            example: '2023-07-24T01:08:19.300337Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '123456'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank
                                          issuer_code: {}
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: '1690160896'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data:
                            type: object
                            properties:
                              airline: {}
                              order:
                                type: object
                                properties:
                                  fee_amount:
                                    type: integer
                                    example: 0
                                    default: 0
                                  shipping_amount:
                                    type: integer
                                    example: 0
                                    default: 0
                                  items:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          example: 123AD
                                        name:
                                          type: string
                                          example: Skirt
                                        quantity:
                                          type: integer
                                          example: 1
                                          default: 0
                                        unit_amount:
                                          type: integer
                                          example: 5000
                                          default: 0
                                        category:
                                          type: string
                                          example: Clothes
                                        brand:
                                          type: string
                                          example: XYZ
                                        sku_code:
                                          type: string
                                          example: '8765432109'
                                        manufacture_part_number:
                                          type: string
                                          example: XYZ123456
                              seller_details: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: bf442c7f-2393-4607-98b5-a4c2a8a97bbc
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '123456'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '40518856'
                                                lfd:
                                                  type: string
                                                  example: '6623'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank
                                                issuer_code: {}
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status: {}
                                                    acs_id: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test
                                merchant_reference:
                                  type: string
                                  example: reference-9260ef97-81b5-4e35-ac17-0d3d124a0d59
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: YUNO_TEST_PAYMENT_GW
                                    transaction_id:
                                      type: string
                                      example: ade1dcf5-cbf5-408b-84af-f504abe01a26
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        amount:
                                          type: object
                                          properties:
                                            currency:
                                              type: string
                                              example: USD
                                            value:
                                              type: integer
                                              example: 2100
                                              default: 0
                                        merchantAccount:
                                          type: string
                                          example: YunoPaymentsECOM
                                        reference:
                                          type: string
                                          example: '34343434'
                                        status:
                                          type: string
                                          example: received
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-24T01:08:17.147871Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-24T01:08:19.222926Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With installments
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 3707bcc5-f88c-4092-ba44-142d1f3ea229
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-24T01:10:50.152163Z'
                          updated_at:
                            type: string
                            example: '2023-07-24T01:10:52.417211Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 3
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '123456'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank
                                          issuer_code: {}
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: '1690161049'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: a58043ab-e5c6-4476-adfb-623fa8cc320d
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 3
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '123456'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '40518856'
                                                lfd:
                                                  type: string
                                                  example: '6623'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank
                                                issuer_code: {}
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status: {}
                                                    acs_id: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test
                                merchant_reference:
                                  type: string
                                  example: reference-f3f9319f-f3f7-48a3-90c2-fac0a2f782be
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: YUNO_TEST_PAYMENT_GW
                                    transaction_id:
                                      type: string
                                      example: 9efdc397-2a74-479a-af00-bf5ae7e2a76e
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        amount:
                                          type: object
                                          properties:
                                            currency:
                                              type: string
                                              example: USD
                                            value:
                                              type: integer
                                              example: 2100
                                              default: 0
                                        merchantAccount:
                                          type: string
                                          example: YunoPaymentsECOM
                                        reference:
                                          type: string
                                          example: '34343434'
                                        status:
                                          type: string
                                          example: received
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-24T01:10:50.273142Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-24T01:10:52.339967Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With authorization
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: c0409fc0-87d5-453f-bf91-8f0af2f09347
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: PENDING
                          sub_status:
                            type: string
                            example: AUTHORIZED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-24T01:13:37.372312Z'
                          updated_at:
                            type: string
                            example: '2023-07-24T01:13:39.654433Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '123456'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank
                                          issuer_code: {}
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: '1690161049'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: e9108a97-5d0d-492a-99bf-da1ee42af425
                                type:
                                  type: string
                                  example: AUTHORIZE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: false
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '123456'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '40518856'
                                                lfd:
                                                  type: string
                                                  example: '6623'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank
                                                issuer_code: {}
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status: {}
                                                    acs_id: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test
                                merchant_reference:
                                  type: string
                                  example: reference-0b914bf9-0e86-4713-a908-0ec01d60c486
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: YUNO_TEST_PAYMENT_GW
                                    transaction_id:
                                      type: string
                                      example: 1b7011ff-4252-4ac6-99a4-d5de2086896b
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        amount:
                                          type: object
                                          properties:
                                            currency:
                                              type: string
                                              example: USD
                                            value:
                                              type: integer
                                              example: 2100
                                              default: 0
                                        merchantAccount:
                                          type: string
                                          example: YunoPaymentsECOM
                                        reference:
                                          type: string
                                          example: '34343434'
                                        status:
                                          type: string
                                          example: received
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-24T01:13:37.492230Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-24T01:13:39.584118Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With device fingerprint
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 8e7fbcad-9c7b-43c6-8fbf-b864e87c5e41
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-24T01:20:02.671644Z'
                          updated_at:
                            type: string
                            example: '2023-07-24T01:20:04.946852Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '123456'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank
                                          issuer_code: {}
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: '1690161049'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint:
                                type: string
                                example: hi88287gbd8d7d782ge287gbd8d7d78
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 36524be2-b33e-4d33-b9d7-9f7853035bbd
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '123456'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '40518856'
                                                lfd:
                                                  type: string
                                                  example: '6623'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank
                                                issuer_code: {}
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status: {}
                                                    acs_id: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test
                                merchant_reference:
                                  type: string
                                  example: reference-89ab43dc-57de-4ea0-8058-6f7fc0d972a7
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: YUNO_TEST_PAYMENT_GW
                                    transaction_id:
                                      type: string
                                      example: 20500c62-96d2-457b-8e64-b64480190e89
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        amount:
                                          type: object
                                          properties:
                                            currency:
                                              type: string
                                              example: USD
                                            value:
                                              type: integer
                                              example: 2100
                                              default: 0
                                        merchantAccount:
                                          type: string
                                          example: YunoPaymentsECOM
                                        reference:
                                          type: string
                                          example: '34343434'
                                        status:
                                          type: string
                                          example: received
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-24T01:20:02.794825Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-24T01:20:04.873386Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With vault on success
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 96b56df3-0013-4401-b58e-646f5e716ab8
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-24T01:27:23.360857Z'
                          updated_at:
                            type: string
                            example: '2023-07-24T01:27:25.682059Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: eb8caa17-6407-457b-960e-125d8d7a90c1
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: true
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '123456'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank
                                          issuer_code: {}
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          fingerprint:
                                            type: string
                                            example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 967ecd18-d898-4b88-9400-dd5b01b18edc
                              merchant_customer_id:
                                type: string
                                example: '1690161049'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint:
                                type: string
                                example: hi88287gbd8d7d782ge287gbd8d7d78
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 85c19c82-dc31-4a50-aa7d-570d89dbc475
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: eb8caa17-6407-457b-960e-125d8d7a90c1
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: true
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '123456'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '40518856'
                                                lfd:
                                                  type: string
                                                  example: '6623'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank
                                                issuer_code: {}
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                fingerprint:
                                                  type: string
                                                  example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status: {}
                                                    acs_id: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test
                                merchant_reference:
                                  type: string
                                  example: reference-7cf75e3a-c8eb-4c62-bd02-74928f68f174
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: YUNO_TEST_PAYMENT_GW
                                    transaction_id:
                                      type: string
                                      example: 604075b9-52e9-48f5-8fcf-3c2d9bacbe66
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        amount:
                                          type: object
                                          properties:
                                            currency:
                                              type: string
                                              example: USD
                                            value:
                                              type: integer
                                              example: 2100
                                              default: 0
                                        merchantAccount:
                                          type: string
                                          example: YunoPaymentsECOM
                                        reference:
                                          type: string
                                          example: '34343434'
                                        status:
                                          type: string
                                          example: received
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-24T01:27:23.473451Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-24T01:27:25.550651Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Card - With vaulted token
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 821ddfe4-309a-46a8-bd4b-819564aa9c5a
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: APPROVED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-24T01:28:45.444722Z'
                          updated_at:
                            type: string
                            example: '2023-07-24T01:28:47.712002Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: ''
                              sdk_action_required:
                                type: boolean
                                example: false
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: eb8caa17-6407-457b-960e-125d8d7a90c1
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture:
                                        type: boolean
                                        example: true
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_plan_id:
                                        type:
                                          - string
                                          - 'null'
                                        example: null
                                      installments_type:
                                        type: string
                                        enum:
                                          - MERCHANT
                                          - ISSUER
                                          - NONE
                                        example: ''
                                      installment_amount: {}
                                      installments_total_amount:
                                        type:
                                          - integer
                                          - 'null'
                                        example: null
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '123456'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '40518856'
                                          lfd:
                                            type: string
                                            example: '6623'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: JPMorgan Chase Bank
                                          issuer_code: {}
                                          category: {}
                                          type:
                                            type: string
                                            example: CREDIT
                                          fingerprint:
                                            type: string
                                            example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason:
                                            type: string
                                            example: SUBSCRIPTION
                                          usage:
                                            type: string
                                            example: USED
                                          subscription_agreement_id:
                                            type: string
                                            example: XXXX01
                                          network_transaction_id: {}
                          customer_payer:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 967ecd18-d898-4b88-9400-dd5b01b18edc
                              merchant_customer_id:
                                type: string
                                example: '1690161049'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint:
                                type: string
                                example: hi88287gbd8d7d782ge287gbd8d7d78
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: a47e879e-3cd1-49f3-ab72-fc33b0185057
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: SUCCEEDED
                                category:
                                  type: string
                                  example: CARD
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: YUNO_TEST_PAYMENT_GW
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: eb8caa17-6407-457b-960e-125d8d7a90c1
                                    type:
                                      type: string
                                      example: CARD
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        card:
                                          type: object
                                          properties:
                                            verify: {}
                                            capture:
                                              type: boolean
                                              example: true
                                              default: true
                                            installments:
                                              type: integer
                                              example: 1
                                              default: 0
                                            first_installment_deferral:
                                              type: integer
                                              example: 0
                                              default: 0
                                            installments_plan_id:
                                              type:
                                                - string
                                                - 'null'
                                              example: null
                                            installments_type:
                                              type: string
                                              enum:
                                                - MERCHANT
                                                - ISSUER
                                                - NONE
                                              example: ''
                                            installment_amount: {}
                                            installments_total_amount:
                                              type:
                                                - integer
                                                - 'null'
                                              example: null
                                            soft_descriptor:
                                              type: string
                                              example: ''
                                            authorization_code:
                                              type: string
                                              example: '123456'
                                            retrieval_reference_number:
                                              type: string
                                              example: ''
                                            acquirer_reference_number:
                                              type: string
                                              example: ''
                                            voucher: {}
                                            card_data:
                                              type: object
                                              properties:
                                                holder_name:
                                                  type: string
                                                  example: John Doe
                                                iin:
                                                  type: string
                                                  example: '40518856'
                                                lfd:
                                                  type: string
                                                  example: '6623'
                                                number_length:
                                                  type: integer
                                                  example: 16
                                                  default: 0
                                                security_code_length:
                                                  type: integer
                                                  example: 3
                                                  default: 0
                                                brand:
                                                  type: string
                                                  example: VISA
                                                issuer_name:
                                                  type: string
                                                  example: JPMorgan Chase Bank
                                                issuer_code: {}
                                                category: {}
                                                type:
                                                  type: string
                                                  example: CREDIT
                                                fingerprint:
                                                  type: string
                                                  example: 55a7fe38-cdc3-45dc-8c5f-820751799c76
                                                three_d_secure:
                                                  type: object
                                                  properties:
                                                    version: {}
                                                    electronic_commerce_indicator: {}
                                                    cryptogram: {}
                                                    transaction_id: {}
                                                    directory_server_transaction_id: {}
                                                    pares_status: {}
                                                    acs_id: {}
                                            stored_credentials:
                                              type: object
                                              properties:
                                                reason:
                                                  type: string
                                                  example: SUBSCRIPTION
                                                usage:
                                                  type: string
                                                  example: USED
                                                subscription_agreement_id:
                                                  type: string
                                                  example: XXXX01
                                                network_transaction_id: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test
                                merchant_reference:
                                  type: string
                                  example: reference-22103236-c3fc-4871-9fc0-98ce48a9f553
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: YUNO_TEST_PAYMENT_GW
                                    transaction_id:
                                      type: string
                                      example: f9bcb8a8-d5d8-4c53-b551-5932c9804f16
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: SUCCEEDED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_response_code:
                                      type: string
                                      example: '00'
                                    iso8583_response_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        amount:
                                          type: object
                                          properties:
                                            currency:
                                              type: string
                                              example: USD
                                            value:
                                              type: integer
                                              example: 2100
                                              default: 0
                                        merchantAccount:
                                          type: string
                                          example: YunoPaymentsECOM
                                        reference:
                                          type: string
                                          example: '34343434'
                                        status:
                                          type: string
                                          example: received
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-24T01:28:45.562437Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-24T01:28:47.639121Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: DIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          payment_link_code:
                            type: string
                            example: ''
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Bank Transfer
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: ac427adb-3ac9-4a7c-9389-0a923146b39b
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test Bank of America
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: READY_TO_PAY
                          sub_status:
                            type: string
                            example: CREATED
                          merchant_order_id:
                            type: string
                            example: '0000022'
                          created_at:
                            type: string
                            example: '2023-07-23T23:56:25.405475Z'
                          updated_at:
                            type: string
                            example: '2023-07-23T23:56:29.742339Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 52000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: c21df85b-6c39-4cf5-aa7d-305aac6441e6
                              sdk_action_required:
                                type: boolean
                                example: true
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: BANK_TRANSFER
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  bank_transfer:
                                    type: object
                                    properties:
                                      provider_image:
                                        type: string
                                        example: ''
                                      account_type: {}
                                      bank_name:
                                        type: string
                                        example: Bank of America
                                      beneficiary_name:
                                        type: string
                                        example: John Doe
                                      bank_account:
                                        type: string
                                        example: '123456789'
                                      bank_account_2: {}
                                      beneficiary_document_type:
                                        type: string
                                        example: SSN
                                      beneficiary_document:
                                        type: string
                                        example: 123-45-6789
                                      payment_instruction: {}
                                      redirect_url:
                                        type: string
                                        example: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                                      bank_account_mask_number:
                                        type: string
                                        description: >-
                                          Masked bank account number associated with the bank transfer (for example,
                                          ****6789). This is account data, not mandate data.
                                      mandate:
                                        type: object
                                        description: >-
                                          Direct debit mandate details, for bank transfer methods that operate with
                                          mandates (for example, ACH, SEPA, BACS, PAD).
                                        properties:
                                          id:
                                            type: string
                                            description: Mandate identifier, as provided by the payment provider.
                                          info:
                                            type: string
                                            description: Free-text mandate information.
                                          received_status:
                                            type: string
                                            description: >-
                                              Provider status indicating whether the mandate was received. Forwarded as
                                              provided by the payment provider.
                                          existing_status:
                                            type: string
                                            description: >-
                                              Provider status of the existing mandate. Forwarded as provided by the
                                              payment provider.
                                          created_at:
                                            type: string
                                            format: date-time
                                            description: Date and time when the mandate was created (ISO 8601).
                                          updated_at:
                                            type: string
                                            format: date-time
                                            description: Date and time when the mandate was last updated (ISO 8601).
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: '1689888489'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: acbf992c-e448-4efc-a39c-05f74fa624cf
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: CREATED
                                category:
                                  type: string
                                  example: BANK_TRANSFER
                                amount:
                                  type: integer
                                  example: 52000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: WOMPI
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: BANK_TRANSFER
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        bank_transfer:
                                          type: object
                                          properties:
                                            provider_image:
                                              type: string
                                              example: ''
                                            account_type: {}
                                            bank_name:
                                              type: string
                                              example: Bank of America
                                            beneficiary_name:
                                              type: string
                                              example: John Doe
                                            bank_account:
                                              type: string
                                              example: '123456789'
                                            bank_account_2: {}
                                            beneficiary_document_type:
                                              type: string
                                              example: SSN
                                            beneficiary_document:
                                              type: string
                                              example: 123-45-6789
                                            payment_instruction: {}
                                            redirect_url:
                                              type: string
                                              example: https://checkout.sandbox.y.uno/payment?session=2cc7ac83-029d-4e13-8360-9b627bba8fc5
                                            bank_account_mask_number:
                                              type: string
                                              description: >-
                                                Masked bank account number associated with the bank transfer (for
                                                example, ****6789). This is account data, not mandate data.
                                            mandate:
                                              type: object
                                              description: >-
                                                Direct debit mandate details, for bank transfer methods that operate
                                                with mandates (for example, ACH, SEPA, BACS, PAD).
                                              properties:
                                                id:
                                                  type: string
                                                  description: Mandate identifier, as provided by the payment provider.
                                                info:
                                                  type: string
                                                  description: Free-text mandate information.
                                                received_status:
                                                  type: string
                                                  description: >-
                                                    Provider status indicating whether the mandate was received.
                                                    Forwarded as provided by the payment provider.
                                                existing_status:
                                                  type: string
                                                  description: >-
                                                    Provider status of the existing mandate. Forwarded as provided by
                                                    the payment provider.
                                                created_at:
                                                  type: string
                                                  format: date-time
                                                  description: Date and time when the mandate was created (ISO 8601).
                                                updated_at:
                                                  type: string
                                                  format: date-time
                                                  description: Date and time when the mandate was last updated (ISO 8601).
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test Bank of America
                                merchant_reference: {}
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: WOMPI
                                    transaction_id:
                                      type: string
                                      example: 117490-1690156586-55850
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: APPROVED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_code:
                                      type: string
                                      example: ''
                                    iso8583_message:
                                      type: string
                                      example: ''
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        data:
                                          type: object
                                          properties:
                                            amount_in_cents:
                                              type: integer
                                              example: 5200000
                                              default: 0
                                            bill_id: {}
                                            billing_data: {}
                                            created_at:
                                              type: string
                                              example: '2023-07-23T23:56:26.350Z'
                                            currency:
                                              type: string
                                              example: USD
                                            customer_data: {}
                                            customer_email:
                                              type: string
                                              example: johndoe@example.com
                                            finalized_at: {}
                                            id:
                                              type: string
                                              example: 117490-1690156586-55850
                                            payment_link_id: {}
                                            payment_method:
                                              type: object
                                              properties:
                                                extra:
                                                  type: object
                                                  properties:
                                                    is_three_ds:
                                                      type: boolean
                                                      example: false
                                                      default: true
                                                payment_description:
                                                  type: string
                                                  example: Test Bank of America
                                                sandbox_status:
                                                  type: string
                                                  example: APPROVED
                                                type:
                                                  type: string
                                                  example: BANK_TRANSFER
                                                user_type:
                                                  type: string
                                                  example: PERSON
                                            payment_method_type:
                                              type: string
                                              example: BANK_TRANSFER
                                            payment_source_id: {}
                                            redirect_url:
                                              type: string
                                              example: https://demo.dev.y.uno/checkout/status?checkoutSession=
                                            reference:
                                              type: string
                                              example: acbf992c-e448-4efc-a39c-05f74fa624cf
                                            shipping_address: {}
                                            status:
                                              type: string
                                              example: PENDING
                                            status_message: {}
                                            taxes:
                                              type: array
                                        meta:
                                          type: object
                                          properties: {}
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-23T23:56:25.506471Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-23T23:56:29.673135Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: REDIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          fraud_screening:
                            type:
                              - object
                              - 'null'
                            example: null
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          payment_link_code:
                            type: string
                            example: ''
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Buy Now Pay Later
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 087be3a5-bed7-4c58-bbe0-c2ebcf376ebb
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test Bank of America
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: READY_TO_PAY
                          sub_status:
                            type: string
                            example: CREATED
                          merchant_order_id:
                            type: string
                            example: '0000022'
                          created_at:
                            type: string
                            example: '2023-07-20T21:25:11.903819Z'
                          updated_at:
                            type: string
                            example: '2023-07-20T21:25:12.983059Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 52000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: 25e073ae-016c-4bca-89e7-64e05f766f11
                              sdk_action_required:
                                type: boolean
                                example: true
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: ADDI
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  bnpl:
                                    type: object
                                    properties:
                                      installments: {}
                                      provider_image: {}
                                      redirect_url:
                                        type: string
                                        example: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                                      customer_data: {}
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: example00234
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 1328382d-f6e8-4f09-91b7-c18b1308c031
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: CREATED
                                category:
                                  type: string
                                  example: BUY_NOW_PAY_LATER
                                amount:
                                  type: integer
                                  example: 52000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: ADDI
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: ADDI
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        bnpl:
                                          type: object
                                          properties:
                                            installments: {}
                                            provider_image: {}
                                            redirect_url:
                                              type: string
                                              example: https://checkout.sandbox.y.uno/payment?session=82e244a2-9d5b-4998-93b7-8a293fb43b9c
                                            customer_data: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test Bank of America
                                merchant_reference: {}
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: ADDI
                                    transaction_id:
                                      type: string
                                      example: '0000022'
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: CREATED
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_code:
                                      type: string
                                      example: ''
                                    iso8583_message:
                                      type: string
                                      example: ''
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        value:
                                          type: string
                                          example: ''
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                three_d_secure_action_required: {}
                                created_at:
                                  type: string
                                  example: '2023-07-20T21:25:12.008657Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-20T21:25:12.918362Z'
                          split:
                            type: array
                          workflow:
                            type: string
                            example: REDIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          fraud_screening: {}
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          payment_link_code:
                            type: string
                            example: ''
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Payment Link
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 9c1f6ba0-d483-42a9-8d06-d53a07c284e0
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test Bank of America
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: READY_TO_PAY
                          sub_status:
                            type: string
                            example: CREATED
                          merchant_order_id:
                            type: string
                            example: '0000022'
                          created_at:
                            type: string
                            example: '2023-07-23T23:11:24.724037Z'
                          updated_at:
                            type: string
                            example: '2023-07-23T23:11:26.318691Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 5000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: 3c9eb446-388a-4c2e-9818-573d54300dd1
                              sdk_action_required:
                                type: boolean
                                example: true
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: WEBPAY
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  payment_link:
                                    type: object
                                    properties:
                                      verify: {}
                                      capture: {}
                                      installments: {}
                                      payment_method_id: {}
                                      payment_method_detail: {}
                                      date_of_expiration: {}
                                      money_release_date: {}
                                      sponsor_id: {}
                                      authorization_code: {}
                                      redirect_url:
                                        type: string
                                        example: https://checkout.sandbox.y.uno/payment?session=40ebcd0c-3598-4bd9-81cc-9f8e29c86987
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id: {}
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 762abda0-2de5-43ba-a52b-04279acfb869
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: CREATED
                                category:
                                  type: string
                                  example: PAYMENT_LINK
                                amount:
                                  type: integer
                                  example: 5000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: TRANSBANK_2
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: WEBPAY
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test Bank of America
                                merchant_reference: {}
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: TRANSBANK_2
                                    transaction_id:
                                      type: string
                                      example: ''
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: ''
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_code:
                                      type: string
                                      example: '00'
                                    iso8583_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        token:
                                          type: string
                                          example: 01aba0f569c8a78370aa35461ca482b57d1b767365535de9a0540c03791a3d97
                                        url:
                                          type: string
                                          example: https://webpay3gint.transbank.cl/webpayserver/initTransaction
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-23T23:11:24.842815Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-23T23:11:26.242431Z'
                          split:
                            type: array
                          callback_url:
                            type: string
                            example: www.y.uno
                          workflow:
                            type: string
                            example: REDIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          fraud_screening:
                            type:
                              - object
                              - 'null'
                            example: null
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          payment_link_code:
                            type: string
                            example: ''
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Ticket
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 1c109200-3236-43f3-ab44-9a317991a288
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test Bank of America
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: READY_TO_PAY
                          sub_status:
                            type: string
                            example: CREATED
                          merchant_order_id:
                            type: string
                            example: '0000022'
                          created_at:
                            type: string
                            example: '2023-07-23T23:35:25.021285Z'
                          updated_at:
                            type: string
                            example: '2023-07-23T23:35:26.067120Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 52000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: 3faeb04f-0a52-41fc-9aba-33e535386776
                              sdk_action_required:
                                type: boolean
                                example: true
                                default: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: BANK_TRANSFER
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  ticket:
                                    type: object
                                    properties:
                                      type: {}
                                      date_of_expiration: {}
                                      provider_number:
                                        type: string
                                        example: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                                      provider_barcode: {}
                                      provider_logo: {}
                                      provider_format: {}
                                      redirect_url:
                                        type: string
                                        example: https://checkout.sandbox.y.uno/payment?session=3feff49c-a422-434a-9fad-eca87e2193d5
                          customer_payer:
                            type: object
                            properties:
                              id: {}
                              merchant_customer_id:
                                type: string
                                example: '1690155316'
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint: {}
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content: {}
                                  accept_browser: {}
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled: {}
                                  java_enabled: {}
                                  browser_time_difference: {}
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data: {}
                          taxes: {}
                          transactions:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 762c4604-d4ba-4a8f-ba2f-5d39931e9ed8
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: CREATED
                                category:
                                  type: string
                                  example: TICKET
                                amount:
                                  type: integer
                                  example: 52000
                                  default: 0
                                provider_id:
                                  type: string
                                  example: UNLIMINT
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: BANK_TRANSFER
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                      default: true
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties: {}
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason: {}
                                description:
                                  type: string
                                  example: Test Bank of America
                                merchant_reference: {}
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: UNLIMINT
                                    transaction_id:
                                      type: string
                                      example: ''
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: ''
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_code:
                                      type: string
                                      example: '00'
                                    iso8583_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        redirect_url:
                                          type: string
                                          example: https://sandbox.cardpay.com/MI/payment.html?uuid=a6cfEG0H3c1Hf42f23HhH3Ch
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-23T23:35:25.116858Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-23T23:35:25.988725Z'
                          split:
                            type: array
                          callback_url:
                            type: string
                            example: www.google.com
                          workflow:
                            type: string
                            example: REDIRECT
                          metadata:
                            type: array
                          plan_id:
                            type: string
                            description: >-
                              The subscription's plan when this payment was created. Present only on payments created
                              with `subscription.plan_id` and on their renewals; absent otherwise.
                          plan_assigned_at:
                            type: string
                            format: date-time
                            description: >-
                              When the plan was assigned to the subscription (UTC, ISO 8601). Present only on payments
                              that carry `plan_id`.
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          fraud_screening:
                            type:
                              - object
                              - 'null'
                            example: null
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          payment_link_code:
                            type: string
                            example: ''
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
                  - title: Wallet
                    type: object
                    properties:
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: d0ff19c2-cf55-4015-a613-e35f22da0233
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          description:
                            type: string
                            example: Test Bank of America
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: READY_TO_PAY
                          sub_status:
                            type: string
                            example: CREATED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2023-07-23T23:02:39.401790Z'
                          updated_at:
                            type: string
                            example: '2023-07-23T23:02:40.312593Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: number
                                example: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: number
                                example: 0
                              value:
                                type: number
                                example: 3000
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          checkout:
                            type: object
                            properties:
                              session:
                                type: string
                                example: b7e15362-4ac0-4e23-886e-329695933ecb
                              sdk_action_required:
                                type: boolean
                                example: true
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: BANK_TRANSFER
                              vault_on_success:
                                type: boolean
                                example: false
                              token:
                                type: string
                                example: ''
                              payment_method_detail:
                                type: object
                                properties:
                                  wallet:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                      capture:
                                        type: boolean
                                        example: false
                                      installments:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      payment_method_id:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      payment_method_detail:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      date_of_expiration:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      money_release_date:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      sponsor_id:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      authorization_code:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      customer_data:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      card_data:
                                        type:
                                          - object
                                          - 'null'
                                        example: null
                                      redirect_url:
                                        type: string
                                        example: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                          customer_payer:
                            type: object
                            properties:
                              id:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_id:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              first_name:
                                type: string
                                example: John
                              last_name:
                                type: string
                                example: Doe
                              gender:
                                type: string
                                example: M
                              date_of_birth:
                                type: string
                                example: '1990-02-28'
                              email:
                                type: string
                                example: johndoe@example.com
                              nationality:
                                type: string
                                example: US
                              ip_address:
                                type: string
                                example: 192.0.2.1
                              device_fingerprint:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              browser_info:
                                type: object
                                properties:
                                  user_agent:
                                    type: string
                                    example: ''
                                  accept_header:
                                    type: string
                                    example: ''
                                  accept_content:
                                    type:
                                      - object
                                      - 'null'
                                    example: null
                                  accept_browser:
                                    type:
                                      - object
                                      - 'null'
                                    example: null
                                  color_depth:
                                    type: string
                                    example: ''
                                  screen_height:
                                    type: string
                                    example: ''
                                  screen_width:
                                    type: string
                                    example: ''
                                  javascript_enabled:
                                    type:
                                      - object
                                      - 'null'
                                    example: null
                                  java_enabled:
                                    type:
                                      - object
                                      - 'null'
                                    example: null
                                  browser_time_difference:
                                    type:
                                      - object
                                      - 'null'
                                    example: null
                                  language:
                                    type: string
                                    example: ''
                              document:
                                type: object
                                properties:
                                  document_type:
                                    type: string
                                    example: SSN
                                  document_number:
                                    type: string
                                    example: 123-45-6789
                              phone:
                                type: object
                                properties:
                                  number:
                                    type: string
                                    example: '5551234567'
                                  country_code:
                                    type: string
                                    example: '1'
                              billing_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              shipping_address:
                                type: object
                                properties:
                                  address_line_1:
                                    type: string
                                    example: 123 Main St
                                  address_line_2:
                                    type: string
                                    example: Apt 4B
                                  country:
                                    type: string
                                    example: US
                                  state:
                                    type: string
                                    example: California
                                  city:
                                    type: string
                                    example: Los Angeles
                                  zip_code:
                                    type: string
                                    example: '90001'
                              device_fingerprints:
                                type: array
                                example: []
                                items:
                                  type: object
                              geolocation:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_validations:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              merchant_customer_created_at:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          additional_data:
                            type: object
                            properties:
                              airline:
                                type:
                                  - object
                                  - 'null'
                                example: null
                              order:
                                type: object
                                properties:
                                  fee_amount:
                                    type:
                                      - object
                                      - 'null'
                                    example: null
                                  shipping_amount:
                                    type:
                                      - object
                                      - 'null'
                                    example: null
                                  items:
                                    type: array
                                    example:
                                      - id: 123AD
                                        name: Skirt
                                        quantity: 1
                                        unit_amount: 3000
                                        category: null
                                        brand: null
                                        sku_code: null
                                        manufacture_part_number: null
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          example: 123AD
                                        name:
                                          type: string
                                          example: Skirt
                                        quantity:
                                          type: integer
                                          example: 1
                                        unit_amount:
                                          type: integer
                                          example: 3000
                                        category:
                                          type:
                                            - object
                                            - 'null'
                                          example: null
                                        brand:
                                          type:
                                            - object
                                            - 'null'
                                          example: null
                                        sku_code:
                                          type:
                                            - object
                                            - 'null'
                                          example: null
                                        manufacture_part_number:
                                          type:
                                            - object
                                            - 'null'
                                          example: null
                              seller_details:
                                type:
                                  - object
                                  - 'null'
                                example: null
                          taxes:
                            type:
                              - object
                              - 'null'
                            example: null
                          transactions:
                            type: array
                            example:
                              - id: 286ad833-7cbc-4e66-92f9-01019eb7d7a3
                                type: PURCHASE
                                status: CREATED
                                category: WALLET
                                amount: 3000
                                provider_id: BANK_OF_AMERICA
                                payment_method:
                                  vaulted_token: ''
                                  type: BANK_TRANSFER
                                  vault_on_success: false
                                  token: ''
                                  detail:
                                    wallet:
                                      verify: false
                                      capture: false
                                      installments: null
                                      payment_method_id: null
                                      payment_method_detail: null
                                      date_of_expiration: null
                                      money_release_date: null
                                      sponsor_id: null
                                      authorization_code: null
                                      customer_data: null
                                      card_data: null
                                      redirect_url: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                                response_code: SUCCEEDED
                                response_message: Transaction successful
                                reason: null
                                description: Test Bank of America
                                merchant_reference: reference-d2b08e8e-c87a-4806-b1ea-b35a19a36a6d
                                provider_data:
                                  id: BANK_OF_AMERICA
                                  transaction_id: ''
                                  account_id: ''
                                  status: ''
                                  status_detail: ''
                                  response_message: ''
                                  iso8583_code: '00'
                                  iso8583_message: Approved or completed successfully
                                  raw_response:
                                    value: '{"additional_info":"","auto_return":"approved","back_urls":{"failure":"http://www.y.uno","pending":"http://www.y.uno","success":"http://www.y.uno"},"binary_mode":true,"client_id":"3615163740385056","collector_id":1131498549,"coupon_code":null,"coupon_labels":null,"date_created":"2023-07-23T19:02:40.082-04:00","date_of_expiration":null,"expiration_date_from":null,"expiration_date_to":null,"expires":false,"external_reference":"286ad833-7cbc-4e66-92f9-01019eb7d7a3","id":"1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","init_point":"https://www.mercadopago.com.ar/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","internal_metadata":null,"items":[{"id":"123AD","category_id":"others","currency_id":"ARS","description":"","title":"Skirt","quantity":1,"unit_price":3000}],"marketplace":"MP-MKT-3615163740385056","marketplace_fee":0,"metadata":{},"notification_url":"https://sandbox.y.uno/mercadopago-webhook/v1/checkout-pro/events?source_news=webhooks&transaction=286ad833-7cbc-4e66-92f9-01019eb7d7a3","operation_type":"regular_payment","payer":{"phone":{"area_code":"","number":""},"address":{"zip_code":"","street_name":"","street_number":null},"email":"johndoe@example.com","identification":{"number":"123-45-6789","type":"SSN"},"name":"John","surname":"Doe","date_created":null,"last_purchase":null},"payment_methods":{"default_card_id":null,"default_payment_method_id":null,"excluded_payment_methods":[{"id":""}],"excluded_payment_types":[{"id":"ticket"},{"id":"atm"}],"installments":null,"default_installments":null},"processing_modes":null,"product_id":null,"redirect_urls":{"failure":"","pending":"","success":""},"sandbox_init_point":"https://sandbox.mercadopago.com.ar/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","site_id":"MLA","shipments":{"mode":"not_specified","default_shipping_method":null,"cost":0,"receiver_address":{"zip_code":"","street_name":"","street_number":null,"floor":"","apartment":"","city_name":null,"state_name":null,"country_name":null}},"total_amount":null,"last_updated":null}'
                                  third_party_transaction_id: ''
                                created_at: '2023-07-23T23:02:39.582570Z'
                                updated_at: '2023-07-23T23:02:40.227158Z'
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 286ad833-7cbc-4e66-92f9-01019eb7d7a3
                                type:
                                  type: string
                                  example: PURCHASE
                                status:
                                  type: string
                                  example: CREATED
                                category:
                                  type: string
                                  example: WALLET
                                amount:
                                  type: number
                                  example: 3000
                                provider_id:
                                  type: string
                                  example: BANK_OF_AMERICA
                                payment_method:
                                  type: object
                                  properties:
                                    vaulted_token:
                                      type: string
                                      example: ''
                                    type:
                                      type: string
                                      example: BANK_TRANSFER
                                    vault_on_success:
                                      type: boolean
                                      example: false
                                    token:
                                      type: string
                                      example: ''
                                    detail:
                                      type: object
                                      properties:
                                        wallet:
                                          type: object
                                          properties:
                                            verify:
                                              type: boolean
                                              example: false
                                            capture:
                                              type: boolean
                                              example: false
                                            installments:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            payment_method_id:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            payment_method_detail:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            date_of_expiration:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            money_release_date:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            sponsor_id:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            authorization_code:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            customer_data:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            card_data:
                                              type:
                                                - object
                                                - 'null'
                                              example: null
                                            redirect_url:
                                              type: string
                                              example: https://checkout.sandbox.y.uno/payment?session=e93d8431-f55c-43a3-a4e4-0c7a4bcc7e27
                                response_code:
                                  type: string
                                  example: SUCCEEDED
                                response_message:
                                  type: string
                                  example: Transaction successful
                                reason:
                                  type:
                                    - object
                                    - 'null'
                                  example: null
                                description:
                                  type: string
                                  example: Test Bank of America
                                merchant_reference:
                                  type: string
                                  example: reference-d2b08e8e-c87a-4806-b1ea-b35a19a36a6d
                                provider_data:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: BANK_OF_AMERICA
                                    transaction_id:
                                      type: string
                                      example: ''
                                    account_id:
                                      type: string
                                      example: ''
                                    status:
                                      type: string
                                      example: ''
                                    status_detail:
                                      type: string
                                      example: ''
                                    response_message:
                                      type: string
                                      example: ''
                                    iso8583_code:
                                      type: string
                                      example: '00'
                                    iso8583_message:
                                      type: string
                                      example: Approved or completed successfully
                                    raw_request:
                                      type: object
                                      description: >-
                                        Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                        allowlisted organizations.
                                    raw_response:
                                      type: object
                                      properties:
                                        value:
                                          type: string
                                          example: '{"additional_info":"","auto_return":"approved","back_urls":{"failure":"http://www.y.uno","pending":"http://www.y.uno","success":"http://www.y.uno"},"binary_mode":true,"client_id":"3615163740385056","collector_id":1131498549,"coupon_code":null,"coupon_labels":null,"date_created":"2023-07-23T19:02:40.082-04:00","date_of_expiration":null,"expiration_date_from":null,"expiration_date_to":null,"expires":false,"external_reference":"286ad833-7cbc-4e66-92f9-01019eb7d7a3","id":"1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","init_point":"https://www.mercadopago.com.ar/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","internal_metadata":null,"items":[{"id":"123AD","category_id":"others","currency_id":"ARS","description":"","title":"Skirt","quantity":1,"unit_price":3000}],"marketplace":"MP-MKT-3615163740385056","marketplace_fee":0,"metadata":{},"notification_url":"https://sandbox.y.uno/mercadopago-webhook/v1/checkout-pro/events?source_news=webhooks&transaction=286ad833-7cbc-4e66-92f9-01019eb7d7a3","operation_type":"regular_payment","payer":{"phone":{"area_code":"","number":""},"address":{"zip_code":"","street_name":"","street_number":null},"email":"johndoe@example.com","identification":{"number":"123-45-6789","type":"SSN"},"name":"John","surname":"Doe","date_created":null,"last_purchase":null},"payment_methods":{"default_card_id":null,"default_payment_method_id":null,"excluded_payment_methods":[{"id":""}],"excluded_payment_types":[{"id":"ticket"},{"id":"atm"}],"installments":null,"default_installments":null},"processing_modes":null,"product_id":null,"redirect_urls":{"failure":"","pending":"","success":""},"sandbox_init_point":"https://sandbox.mercadopago.com.ar/checkout/v1/redirect?pref_id=1131498549-ef2fc547-72b3-4e19-acce-83f94c70609a","site_id":"MLA","shipments":{"mode":"not_specified","default_shipping_method":null,"cost":0,"receiver_address":{"zip_code":"","street_name":"","street_number":null,"floor":"","apartment":"","city_name":null,"state_name":null,"country_name":null}},"total_amount":null,"last_updated":null}'
                                    third_party_transaction_id:
                                      type: string
                                      example: ''
                                created_at:
                                  type: string
                                  example: '2023-07-23T23:02:39.582570Z'
                                updated_at:
                                  type: string
                                  example: '2023-07-23T23:02:40.227158Z'
                          split:
                            type: array
                            example: []
                            items:
                              type: object
                          callback_url:
                            type: string
                            example: www.y.uno
                          workflow:
                            type: string
                            example: REDIRECT
                          metadata:
                            type: array
                            example: []
                            items:
                              type: object
                          account_code:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          fraud_screening:
                            type:
                              - object
                              - 'null'
                            example: null
                          idempotency_key:
                            type:
                              - object
                              - 'null'
                            example: null
                          payment_link_code:
                            type: string
                            example: ''
                          routing_rules:
                            type:
                              - object
                              - 'null'
                            example: null
                          split_marketplace:
                            type: array
                            example: []
                            items:
                              type: object
                          external_subscription:
                            $ref: '#/components/schemas/ExternalSubscription'
                          external_invoice:
                            $ref: '#/components/schemas/ExternalInvoice'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid Credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid Credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API
      deprecated: false
      tags:
        - Payments
  /payments/{payment_id}/cancel-or-refund:
    post:
      summary: Cancel or Refund a Payment
      description: ''
      operationId: cancel-or-refund-a-payment
      parameters:
        - name: payment_id
          in: path
          description: The unique identifier of the payment (UUID, 36 chars).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  description: Description of the cancellation or refund. (MAX 255; MIN 3).
                reason:
                  type: string
                  description: >-
                    Indicating the reason for the cancellation or refund. If set, possible values are `DUPLICATE`,
                    `FRAUDULENT`, `REQUESTED_BY_CUSTOMER`, and `REVERSE`. Use `REVERSE` to request an automatic reverse
                    of the recipient funds when a recipient is involved in the transaction.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                    - REVERSE
                merchant_reference:
                  type: string
                  description: >-
                    Identification of the payment transaction defined by the merchant. If no merchant_reference is
                    defined, the merchant_order_id of the payment will be associated to the transaction. (MAX 255; MIN
                    3).
                amount:
                  type: object
                  description: Specifies the amount object for refund.
                  properties:
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      format: float
                      description: >-
                        The payment amount (multiple of 0.0001). For a zero-decimal currency (for example KRW, JPY, or
                        CLP) the value must be a whole number: see [Amounts and
                        currencies](/docs/basic-concepts/amounts-and-currencies).
                split_marketplace:
                  type: array
                  description: Split marketplace array of objects
                  items:
                    properties:
                      recipient_id:
                        type: string
                        description: >-
                          The unique identifier of the recipient in the Yuno system. <br/> You must provide the
                          [`recipient_id`](/reference/create-recipient-1) (Yuno-generated) or the
                          `provider_recipient_id` (external provider's ID) when creating a payment.
                      provider_recipient_id:
                        type: string
                        description: >-
                          The recipient ID provided by the external payment provider, if applicable. <br/> You must
                          provide the `provider_recipient_id` or the [`recipient_id`](/reference/create-recipients)
                          (Yuno-generated) when creating a payment.
                      description:
                        type: string
                        description: Description for the split. (MAX 255; MIN 3).
                      type:
                        type: string
                        description: The type of split. `recipient_id` is mandatory for `PURCHASE` and `MARKETPLACE`.
                        enum:
                          - PURCHASE
                          - PAYMENTFEE
                          - VAT
                          - COMMISSION
                          - MARKETPLACE
                          - SHIPPING
                      merchant_reference:
                        type: string
                        description: Optional unique identifier for the split transaction (MAX 255; MIN 3).
                      recipient_type:
                        type: string
                        description: The type of recipient for the provider.
                        enum:
                          - MEAL
                          - FOOD
                          - MULTI_BENEFITS
                          - FLEET
                        example: MEAL
                      amount:
                        type: object
                        description: Defines the amount of the split.
                        required:
                          - value
                          - currency
                        properties:
                          value:
                            type: number
                            description: The split amount (multiple of 0.0001).
                            format: float
                          currency:
                            type: string
                            description: >-
                              The currency used to make the payment. For a full list of currency codes, see [Country
                              reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                      liability:
                        type: object
                        description: Optional information regarding the recipient's liability for fees and chargebacks.
                        properties:
                          processing_fee:
                            type: string
                            description: Indicates who will be charged the transaction fee.
                            enum:
                              - MERCHANT
                              - RECIPIENT
                              - SHARED
                          chargebacks:
                            type: boolean
                            description: The recipient is responsible in case of a chargeback.
                    required:
                      - type
                    type: object
                simplified_mode:
                  type: boolean
                  description: >-
                    Indicates if we should try to refund a payment after an error/declined on the first try. It is
                    `false` by default. For more information, access the [guide](transaction-retries).
                  default: false
                response_additional_data:
                  type: object
                  description: Specifies additional data for required the transaction response
                  properties:
                    receipt:
                      type: boolean
                      description: Indicates if a receipt is necessary for the transaction response
                    receipt_language:
                      type: string
                      description: Indicates the language of the receipt to be generated
                      enum:
                        - ES
                        - EN
                        - PT
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 3).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 3).
                    gender:
                      type: string
                      description: >-
                        The customer's gender (MAX 2; MIN 1). <br/>- M=Male <br/>- F=Female <br/>- NB=Non Binary <br/>-
                        NA=Not applicable <br/>- NK=Not Known <br/>- U=Undefined.
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the `YYYY-MM-DD` format (Length: 10).'
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      properties:
                        document_number:
                          type: string
                          description: Document number for customer (MAX 40; MIN 3)
                        document_type:
                          type: string
                          description: >-
                            The customer's document type (MAX 6, MIN 2). Access [Document Type
                            List](/reference/country-reference) for more details.
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Specifies the customer's phone object.
                      properties:
                        country_code:
                          type: string
                          description: The country code of the customer's phone (MAX 3; MIN 1).
                        number:
                          type: string
                          description: The customer's phone number, without the country code (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary billing address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary billing address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the billing address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the billing address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the billing address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary shipping address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the shipping address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the shipping address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the shipping address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                payment_method:
                  type: object
                  description: Specifies payment method object for payments.
                  properties:
                    detail:
                      type: object
                      description: Specifies the payment method detail object.
                      properties:
                        bank_transfer:
                          type: object
                          description: Specifies bank transfer payment method details.
                          properties:
                            account_type:
                              type: string
                              description: Type of bank account (MAX 255; MIN 3)
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_name:
                              type: string
                              description: Name of the bank (MAX 255; MIN 3)
                            bank_id:
                              type: string
                              description: ID of the bank (MAX 255; MIN 3)
                            beneficiary_name:
                              type: string
                              description: Name of the account holder (MAX 255; MIN 3)
                            bank_account:
                              type: string
                              description: Bank account number (MAX 255; MIN 3)
                            beneficiary_document_type:
                              type: string
                              description: Document type of the account holder (MAX 255; MIN 3)
                            beneficiary_document:
                              type: string
                              description: Document number of the account holder (MAX 255; MIN 3)
                            reference:
                              type: string
                              description: Reference code for the user (MAX 255; MIN 1)
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
              required:
                - reason
            examples:
              Full Refund:
                value:
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
              Partial Refund:
                value:
                  amount:
                    currency: COP
                    value: 500
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
              Cancel:
                value:
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Full Refund:
                  value:
                    id: 7fd485f3-bd72-45eb-a3fb-774daa3d79b6
                    type: REFUND
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: USD
                      refunded: 0
                      value: 30000
                    merchant_reference: '0000023'
                    created_at: '2024-06-06T14:06:06.284443Z'
                    updated_at: '2024-06-06T14:06:37.984065Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: ''
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      status: ''
                      status_detail: ''
                      response_message: null
                      response_code: SUCCEEDED
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_request:
                        amount:
                          currency: BRL
                          value: 2100
                        reference: '34343434'
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: c3583c27-0478-4e02-8827-4d8f2121c670
                      account_id: ''
                      description: Test Bank of America
                      country: US
                      status: REFUNDED
                      sub_status: REFUNDED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:06:06.284443Z'
                      updated_at: '2024-06-06T14:06:06.284443Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 30000
                        value: 30000
                      additional_data:
                        airline:
                          pnr: 1P-2UUGJW
                          legs:
                            - departure_airport: EWR
                              departure_datetime: '2014-05-12 13:05:00'
                              departure_airport_timezone: '-05:00'
                              arrival_airport: SFO
                              arrival_airport_timezone: '-08:00'
                              arrival_datetime: ''
                              carrier_code: UA
                              carrier_name: United Airlines
                              flight_number: '842'
                              fare_basis_code: HL7LNR
                              fare_class_code: FR
                              base_fare: 200
                              base_fare_currency: USD
                              stopover_code: s
                          passengers:
                            - first_name: John
                              last_name: Doe
                              middle_name: A
                              type: adult
                              date_of_birth: '1980-01-01'
                              nationality: US
                              document:
                                document_type: SSN
                                document_number: 123-45-6789
                              country: US
                              loyalty_number: UA123456
                              loyalty_tier: Gold
                              email: johndoe@example.com
                              phone: '+15555555555'
                          ticket: null
                          tickets:
                            - ticket_number: '123456'
                              e_ticket: false
                              restricted: false
                              total_fare_amount: 80
                              total_tax_amount: 22
                              total_fee_amount: 14
                              issue: null
                        order:
                          fee_amount: 100
                          shipping_amount: 100
                          tip_amount: null
                          items:
                            - id: 123AD
                              name: Skirt
                              quantity: 1
                              unit_amount: 29800
                              category: Clothes
                              brand: XYZ
                              sku_code: '8765432109'
                              manufacture_part_number: XYZ123456
                        seller_details: null
                    customer_payer:
                      id: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                      merchant_customer_id: 4321-2732268
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                    simplified_mode: false
                    receipt: false
                    receipt_url: null
                    receipt_language: null
                    split_marketplace: []
                    metadata: null
                Partial Refund:
                  value:
                    id: e44cdc8e-01e7-4767-a1b6-3a646a609dc5
                    type: REFUND
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: USD
                      refunded: 0
                      value: 30000
                    merchant_reference: '0000023'
                    created_at: '2024-06-06T14:07:53.881239Z'
                    updated_at: '2024-06-06T14:08:17.438878Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: ''
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      status: ''
                      sub_status: ''
                      status_detail: ''
                      response_message: null
                      response_code: SUCCEEDED
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: eee7daeb-5ed7-41bd-8fee-7a440ca2ab86
                      account_id: ''
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: PARTIALLY_REFUNDED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:07:53.881239Z'
                      updated_at: '2024-06-06T14:07:53.881239Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 1000
                        value: 30000
                      additional_data:
                        airline:
                          pnr: 1P-2UUGJW
                          legs:
                            - departure_airport: EZE
                              departure_datetime: '2014-05-12 13:05:00'
                              departure_airport_timezone: '-03:00'
                              arrival_airport: AMS
                              arrival_airport_timezone: '+00:00'
                              arrival_datetime: ''
                              carrier_code: KL
                              carrier_name: KLM Royal Dutch Airlines
                              flight_number: '842'
                              fare_basis_code: HL7LNR
                              fare_class_code: FR
                              base_fare: 200
                              base_fare_currency: USD
                              stopover_code: s
                          passengers:
                            - first_name: John
                              last_name: Doe
                              middle_name: A.
                              type: adult
                              date_of_birth: '1980-01-01'
                              nationality: US
                              document:
                                document_type: SSN
                                document_number: 123-45-6789
                              country: US
                              loyalty_number: JD123456
                              loyalty_tier: Gold
                              email: johndoe@example.com
                              phone: '5551234567'
                          ticket: null
                          tickets:
                            - ticket_number: '123456'
                              e_ticket: false
                              restricted: false
                              total_fare_amount: 80
                              total_tax_amount: 22
                              total_fee_amount: 14
                              issue: null
                        order:
                          fee_amount: 100
                          shipping_amount: 100
                          tip_amount: null
                          items:
                            - id: 123AD
                              name: Skirt
                              quantity: 1
                              unit_amount: 29800
                              category: Clothes
                              brand: XYZ
                              sku_code: '8765432109'
                              manufacture_part_number: XYZ123456
                        seller_details: null
                    customer_payer:
                      id: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                      merchant_customer_id: 4321-2732268
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                    simplified_mode: false
                    receipt: false
                    receipt_url: null
                    receipt_language: null
                    split_marketplace: []
                    metadata: null
                Cancel:
                  value:
                    id: 2fbc6db6-718b-4554-b03f-826e552f1b9f
                    type: CANCEL
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: USD
                      refunded: 0
                      value: 30000
                    merchant_reference: ''
                    created_at: '2024-06-06T14:05:31.651012Z'
                    updated_at: '2024-06-06T14:05:31.742355Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: ''
                      account_id: ''
                      status: SUCCEEDED
                      sub_status: ''
                      status_detail: SUCCEEDED
                      response_message: null
                      response_code: SUCCEEDED
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: cddba02c-e47d-4330-9cac-afcd9c0194b1
                      account_id: ''
                      description: Test
                      country: US
                      status: CANCELED
                      sub_status: CANCELED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:04:44.768364Z'
                      updated_at: '2024-06-06T14:05:31.79539Z'
                      amount:
                        captured: 0
                        currency: USD
                        refunded: 0
                        value: 30000
                    customer_payer:
                      id: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                      merchant_customer_id: 4321-2732268
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                    simplified_mode: false
                    receipt: false
                    receipt_url: null
                    receipt_language: null
                    split_marketplace: []
                    metadata: null
              schema:
                oneOf:
                  - title: Full Refund
                    type: object
                    properties:
                      id:
                        type: string
                        example: 7fd485f3-bd72-45eb-a3fb-774daa3d79b6
                      type:
                        type: string
                        example: REFUND
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      merchant_reference:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-06T14:06:06.284443Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:06:37.984065Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: ''
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: ''
                          response_message: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: c3583c27-0478-4e02-8827-4d8f2121c670
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test Bank of America
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: REFUNDED
                          sub_status:
                            type: string
                            example: REFUNDED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:06:06.284443Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:06:06.284443Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 30000
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          additional_data:
                            type: object
                            properties:
                              airline:
                                type: object
                                properties:
                                  pnr:
                                    type: string
                                    example: 1P-2UUGJW
                                  legs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        departure_airport:
                                          type: string
                                          example: EWR
                                        departure_datetime:
                                          type: string
                                          example: '2014-05-12 13:05:00'
                                        departure_airport_timezone:
                                          type: string
                                          example: '-05:00'
                                        arrival_airport:
                                          type: string
                                          example: SFO
                                        arrival_airport_timezone:
                                          type: string
                                          example: '-08:00'
                                        arrival_datetime:
                                          type: string
                                          example: ''
                                        carrier_code:
                                          type: string
                                          example: UA
                                        carrier_name:
                                          type: string
                                          example: United Airlines
                                        flight_number:
                                          type: string
                                          example: '842'
                                        fare_basis_code:
                                          type: string
                                          example: HL7LNR
                                        fare_class_code:
                                          type: string
                                          example: FR
                                        base_fare:
                                          type: integer
                                          example: 200
                                          default: 0
                                        base_fare_currency:
                                          type: string
                                          example: USD
                                        stopover_code:
                                          type: string
                                          example: s
                                  passengers:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        first_name:
                                          type: string
                                          example: John
                                        last_name:
                                          type: string
                                          example: Doe
                                        middle_name:
                                          type: string
                                          example: A
                                        type:
                                          type: string
                                          example: adult
                                        date_of_birth:
                                          type: string
                                          example: '1980-01-01'
                                        nationality:
                                          type: string
                                          example: US
                                        document:
                                          type: object
                                          properties:
                                            document_type:
                                              type: string
                                              example: SSN
                                            document_number:
                                              type: string
                                              example: 123-45-6789
                                        country:
                                          type: string
                                          example: US
                                        loyalty_number:
                                          type: string
                                          example: UA123456
                                        loyalty_tier:
                                          type: string
                                          example: Gold
                                        email:
                                          type: string
                                          example: johndoe@example.com
                                        phone:
                                          type: string
                                          example: '+15555555555'
                                  ticket: {}
                                  tickets:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        ticket_number:
                                          type: string
                                          example: '123456'
                                        e_ticket:
                                          type: boolean
                                          example: false
                                          default: true
                                        restricted:
                                          type: boolean
                                          example: false
                                          default: true
                                        total_fare_amount:
                                          type: integer
                                          example: 80
                                          default: 0
                                        total_tax_amount:
                                          type: integer
                                          example: 22
                                          default: 0
                                        total_fee_amount:
                                          type: integer
                                          example: 14
                                          default: 0
                                        issue: {}
                              order:
                                type: object
                                properties:
                                  fee_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  shipping_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  tip_amount: {}
                                  items:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          example: 123AD
                                        name:
                                          type: string
                                          example: Skirt
                                        quantity:
                                          type: integer
                                          example: 1
                                          default: 0
                                        unit_amount:
                                          type: integer
                                          example: 29800
                                          default: 0
                                        category:
                                          type: string
                                          example: Clothes
                                        brand:
                                          type: string
                                          example: XYZ
                                        sku_code:
                                          type: string
                                          example: '8765432109'
                                        manufacture_part_number:
                                          type: string
                                          example: XYZ123456
                              seller_details: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                          merchant_customer_id:
                            type: string
                            example: 4321-2732268
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: johndoe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            nullable: true
                          device_fingerprint:
                            nullable: true
                          device_fingerprints:
                            type: array
                            items: {}
                          browser_info:
                            nullable: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          merchant_customer_created_at:
                            type: string
                            example: '2022-05-09T20:46:54.786342Z'
                        description: Customer payer.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                      receipt:
                        type: boolean
                        example: false
                        description: Receipt.
                      receipt_url:
                        nullable: true
                        description: Receipt url.
                      receipt_language:
                        nullable: true
                        description: Receipt language.
                      split_marketplace:
                        type: array
                        items: {}
                        description: Split marketplace.
                      metadata:
                        nullable: true
                        description: Metadata.
                  - title: Partial Refund
                    type: object
                    properties:
                      id:
                        type: string
                        example: e44cdc8e-01e7-4767-a1b6-3a646a609dc5
                      type:
                        type: string
                        example: REFUND
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      merchant_reference:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-06T14:07:53.881239Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:08:17.438878Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: ''
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          status:
                            type: string
                            example: ''
                          sub_status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: ''
                          response_message: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: eee7daeb-5ed7-41bd-8fee-7a440ca2ab86
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: PARTIALLY_REFUNDED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:07:53.881239Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:07:53.881239Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 1000
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          additional_data:
                            type: object
                            properties:
                              airline:
                                type: object
                                properties:
                                  pnr:
                                    type: string
                                    example: 1P-2UUGJW
                                  legs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        departure_airport:
                                          type: string
                                          example: EZE
                                        departure_datetime:
                                          type: string
                                          example: '2014-05-12 13:05:00'
                                        departure_airport_timezone:
                                          type: string
                                          example: '-03:00'
                                        arrival_airport:
                                          type: string
                                          example: AMS
                                        arrival_airport_timezone:
                                          type: string
                                          example: '+00:00'
                                        arrival_datetime:
                                          type: string
                                          example: ''
                                        carrier_code:
                                          type: string
                                          example: KL
                                        carrier_name:
                                          type: string
                                          example: KLM Royal Dutch Airlines
                                        flight_number:
                                          type: string
                                          example: '842'
                                        fare_basis_code:
                                          type: string
                                          example: HL7LNR
                                        fare_class_code:
                                          type: string
                                          example: FR
                                        base_fare:
                                          type: integer
                                          example: 200
                                          default: 0
                                        base_fare_currency:
                                          type: string
                                          example: USD
                                        stopover_code:
                                          type: string
                                          example: s
                                  passengers:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        first_name:
                                          type: string
                                          example: John
                                        last_name:
                                          type: string
                                          example: Doe
                                        middle_name:
                                          type: string
                                          example: A.
                                        type:
                                          type: string
                                          example: adult
                                        date_of_birth:
                                          type: string
                                          example: '1980-01-01'
                                        nationality:
                                          type: string
                                          example: US
                                        document:
                                          type: object
                                          properties:
                                            document_type:
                                              type: string
                                              example: SSN
                                            document_number:
                                              type: string
                                              example: 123-45-6789
                                        country:
                                          type: string
                                          example: US
                                        loyalty_number:
                                          type: string
                                          example: JD123456
                                        loyalty_tier:
                                          type: string
                                          example: Gold
                                        email:
                                          type: string
                                          example: johndoe@example.com
                                        phone:
                                          type: string
                                          example: '5551234567'
                                  ticket: {}
                                  tickets:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        ticket_number:
                                          type: string
                                          example: '123456'
                                        e_ticket:
                                          type: boolean
                                          example: false
                                          default: true
                                        restricted:
                                          type: boolean
                                          example: false
                                          default: true
                                        total_fare_amount:
                                          type: integer
                                          example: 80
                                          default: 0
                                        total_tax_amount:
                                          type: integer
                                          example: 22
                                          default: 0
                                        total_fee_amount:
                                          type: integer
                                          example: 14
                                          default: 0
                                        issue: {}
                              order:
                                type: object
                                properties:
                                  fee_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  shipping_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  tip_amount: {}
                                  items:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          example: 123AD
                                        name:
                                          type: string
                                          example: Skirt
                                        quantity:
                                          type: integer
                                          example: 1
                                          default: 0
                                        unit_amount:
                                          type: integer
                                          example: 29800
                                          default: 0
                                        category:
                                          type: string
                                          example: Clothes
                                        brand:
                                          type: string
                                          example: XYZ
                                        sku_code:
                                          type: string
                                          example: '8765432109'
                                        manufacture_part_number:
                                          type: string
                                          example: XYZ123456
                              seller_details: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                          merchant_customer_id:
                            type: string
                            example: 4321-2732268
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: johndoe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            nullable: true
                          device_fingerprint:
                            nullable: true
                          device_fingerprints:
                            type: array
                            items: {}
                          browser_info:
                            nullable: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          merchant_customer_created_at:
                            type: string
                            example: '2022-05-09T20:46:54.786342Z'
                        description: Customer payer.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                      receipt:
                        type: boolean
                        example: false
                        description: Receipt.
                      receipt_url:
                        nullable: true
                        description: Receipt url.
                      receipt_language:
                        nullable: true
                        description: Receipt language.
                      split_marketplace:
                        type: array
                        items: {}
                        description: Split marketplace.
                      metadata:
                        nullable: true
                        description: Metadata.
                  - title: Cancel
                    type: object
                    properties:
                      id:
                        type: string
                        example: 2fbc6db6-718b-4554-b03f-826e552f1b9f
                      type:
                        type: string
                        example: CANCEL
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      merchant_reference:
                        type: string
                        example: ''
                      created_at:
                        type: string
                        example: '2024-06-06T14:05:31.651012Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:05:31.742355Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: ''
                          account_id:
                            type: string
                            example: ''
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: SUCCEEDED
                          response_message: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: cddba02c-e47d-4330-9cac-afcd9c0194b1
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: CANCELED
                          sub_status:
                            type: string
                            example: CANCELED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:04:44.768364Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:05:31.79539Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 5e7baf7d-88d5-47c4-8baf-93354d5e195e
                          merchant_customer_id:
                            type: string
                            example: 4321-2732268
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: johndoe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            nullable: true
                          device_fingerprint:
                            nullable: true
                          device_fingerprints:
                            type: array
                            items: {}
                          browser_info:
                            nullable: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          merchant_customer_created_at:
                            type: string
                            example: '2022-05-09T20:46:54.786342Z'
                        description: Customer payer.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                      receipt:
                        type: boolean
                        example: false
                        description: Receipt.
                      receipt_url:
                        nullable: true
                        description: Receipt url.
                      receipt_language:
                        nullable: true
                        description: Receipt language.
                      split_marketplace:
                        type: array
                        items: {}
                        description: Split marketplace.
                      metadata:
                        nullable: true
                        description: Metadata.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payments
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /payments/{payment_id}/fulfillments:
    post:
      summary: Notify Fulfillment
      description: Notify fulfillment status and shipping details for a payment order.
      operationId: fulfillments
      parameters:
        - name: payment_id
          in: path
          required: true
          schema:
            type: string
          description: The unique identifier of the payment (MAX 64; MIN 36).
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - status
                - fulfillments
              properties:
                status:
                  type: string
                  description: The status of the order fulfillment.
                  enum:
                    - PARTIAL
                    - COMPLETED
                    - REPLACEMENT
                    - CANCELED
                fulfillments:
                  type: array
                  description: Fulfillments array
                  items:
                    type: object
                    properties:
                      id:
                        type: string
                        description: The unique identifier of the fulfillment (MAX 255; MIN 3)
                      type:
                        type: string
                        description: The type of the fulfillment
                        enum:
                          - CUSTOM
                          - MILITARY
                          - ELECTRONIC
                          - EXPRESS
                          - STANDARD
                          - SCHEDULED
                          - ECONOMY
                          - PRIORITY
                          - SAME_DAY
                          - NEXT_DAY
                          - THIRD_DAY
                          - STORE_PICK_UP
                          - LOCKER_PICK_UP
                          - OTHER
                      status:
                        type: string
                        description: The status of the fulfillment.
                        enum:
                          - PARTIAL
                          - COMPLETED
                          - REPLACEMENT
                          - CANCELED
                      description:
                        type: string
                        description: The description of the fulfillment.  (MAX 255; MIN 3)
                      carriers:
                        type: array
                        description: >-
                          Carriers array. Send it for every fulfillment: a fulfillment without `carriers` is rejected
                          with 400 VALIDATION_ERROR. An empty array (`[]`) is accepted.
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              description: The unique identifier of the carrier (MAX 255; MIN 3)
                            tracking_id:
                              type: array
                              description: Tracking identifiers from the carrier (MAX 255; MIN 3 per item)
                              items:
                                type: string
                            tracking_url:
                              type: array
                              description: Tracking URLs from the carrier (MAX 999; MIN 1 per item)
                              items:
                                type: string
                            shipped_at:
                              type: string
                              description: Shipping date and time (RFC3339, for example 2024-11-20T15:00:00Z)
                              format: date-time
                            delivered_at:
                              type: string
                              description: Delivery date and time (RFC3339, for example 2024-11-23T18:00:00Z)
                              format: date-time
                          required:
                            - id
                            - tracking_id
                            - tracking_url
                    required:
                      - id
                      - type
                      - status
                      - carriers
                carriers:
                  type: 'null'
                  description: 'Deprecated: use `fulfillments[].carriers` instead'
            examples:
              Request Example:
                value:
                  status: PARTIAL
                  fulfillments:
                    - id: fulfillment-1
                      type: STANDARD
                      status: COMPLETED
                      description: Package delivered successfully.
                      carriers:
                        - id: UPS
                          tracking_id:
                            - TRK12345
                            - TRK67890
                          tracking_url:
                            - https://tracking.example.com/TRK12345
                            - https://tracking.example.com/TRK67890
                          shipped_at: '2024-11-20T15:00:00Z'
                          delivered_at: '2024-11-23T18:00:00Z'
              Empty Carriers:
                summary: Empty Carriers
                value:
                  status: PARTIAL
                  fulfillments:
                    - id: fulfillment-1
                      type: STANDARD
                      status: COMPLETED
                      description: Package delivered successfully.
                      carriers: []
      responses:
        '202':
          description: Accepted. The response has no body.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Invalid Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payments
  /payments/{payment_id}/transactions/{transaction_id}/cancel:
    post:
      summary: Cancel Payment
      description: ''
      operationId: cancel-payment
      parameters:
        - name: payment_id
          in: path
          description: The unique identifier of the payment (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: transaction_id
          in: path
          description: The unique identifier of the transaction (UUID, 36 chars).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
              properties:
                description:
                  type: string
                  description: Description of the cancellation.(MAX 255; MIN 3)
                reason:
                  type: string
                  description: Reason for the cancellation. Values can be `DUPLICATE`, `FRAUDULENT`, and `REQUESTED_BY_CUSTOMER`.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                merchant_reference:
                  type: string
                  description: Identification of the payment transaction defined by the merchant (MAX 255; MIN 3).
                response_additional_data:
                  type: object
                  description: Specifies additional data for required the transaction response
                  properties:
                    receipt:
                      type: boolean
                      description: Indicates if a receipt is necessary for the transaction response
                    receipt_language:
                      type: string
                      description: Indicates the language of the receipt to be generated
                      enum:
                        - ES
                        - EN
                        - PT
                    transactions_history:
                      type: boolean
                      description: When true, includes the transactions history in the response
                    raw_request:
                      type: boolean
                      description: When true, includes the provider raw request in the output
                    raw_response:
                      type: boolean
                      description: When true, includes the provider raw response in the output
            examples:
              Request Example:
                value:
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 438bea6c-9061-4416-b824-469c3c05868d
                    type: CANCEL
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 0
                      value: 30000
                    merchant_reference: ''
                    created_at: '2024-06-06T14:03:08.384014Z'
                    updated_at: '2024-06-06T14:03:08.453617Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: ''
                      account_id: ''
                      status: SUCCEEDED
                      sub_status: ''
                      status_detail: SUCCEEDED
                      response_message: null
                      response_code: SUCCEEDED
                      raw_response:
                        message: provider response
                      third_party_transaction_id: null
                      third_party_account_id: null
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: 2d6f75c1-c4bc-4d2d-80ec-0af4d12c85da
                      account_id: ''
                      description: Test
                      country: US
                      status: CANCELED
                      sub_status: CANCELED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:01:34.286228Z'
                      updated_at: '2024-06-06T14:03:08.484781Z'
                      amount:
                        captured: 0
                        currency: USD
                        currency_conversion: null
                        refunded: 0
                        value: 30000
                      split_marketplace: []
                    customer_payer: null
                    simplified_mode: false
                    receipt: false
                    receipt_url: null
                    receipt_language: null
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 438bea6c-9061-4416-b824-469c3c05868d
                  type:
                    type: string
                    example: CANCEL
                  status:
                    type: string
                    example: SUCCEEDED
                  category:
                    type: string
                    example: CARD
                  amount:
                    type: object
                    properties:
                      captured:
                        type: integer
                        example: 0
                        default: 0
                      currency:
                        type: string
                        example: USD
                      currency_conversion: {}
                      refunded:
                        type: integer
                        example: 0
                        default: 0
                      value:
                        type: integer
                        example: 30000
                        default: 0
                  merchant_reference:
                    type: string
                    example: ''
                  created_at:
                    type: string
                    example: '2024-06-06T14:03:08.384014Z'
                  updated_at:
                    type: string
                    example: '2024-06-06T14:03:08.453617Z'
                  provider_data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: YUNO_TEST_PAYMENT_GW
                      transaction_id:
                        type: string
                        example: ''
                      account_id:
                        type: string
                        example: ''
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: ''
                      status_detail:
                        type: string
                        example: SUCCEEDED
                      response_message: {}
                      response_code:
                        type: string
                        example: SUCCEEDED
                      raw_request:
                        type: object
                        description: >-
                          Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                          organizations.
                      raw_response:
                        type: object
                        properties:
                          message:
                            type: string
                            example: provider response
                      third_party_transaction_id: {}
                      third_party_account_id: {}
                      iso8583_response_code:
                        type: string
                        example: '00'
                      iso8583_response_message:
                        type: string
                        example: Approved or completed successfully
                  connection_data:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name:
                        type: string
                        example: Connection name
                  response_code:
                    type: string
                    example: SUCCEEDED
                  response_message:
                    type: string
                    example: Transaction successful
                  payment:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 2d6f75c1-c4bc-4d2d-80ec-0af4d12c85da
                      account_id:
                        type: string
                        example: ''
                      description:
                        type: string
                        example: Test
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: CANCELED
                      sub_status:
                        type: string
                        example: CANCELED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-06T14:01:34.286228Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:03:08.484781Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          currency_conversion: {}
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      split_marketplace:
                        type: array
                  customer_payer: {}
                  simplified_mode:
                    type: boolean
                    example: false
                    default: true
                  receipt:
                    type: boolean
                    example: false
                    default: true
                  receipt_url: {}
                  receipt_language: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payments
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /payments/{payment_id}/transactions/{transaction_id}/cancel-or-refund:
    post:
      summary: Cancel or Refund a Payment with transaction
      description: ''
      operationId: cancel-or-refund-payment-with-transaction
      parameters:
        - name: payment_id
          in: path
          description: The unique identifier of the payment (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: transaction_id
          in: path
          description: The unique identifier of the transaction (UUID, 36 chars).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                description:
                  type: string
                  description: Description of the cancellation or refund. (MAX 255; MIN 3).
                reason:
                  type: string
                  description: >-
                    Indicating the reason for the cancellation or refund. If set, possible values are `DUPLICATE`,
                    `FRAUDULENT`, `REQUESTED_BY_CUSTOMER`, and `REVERSE`. Use `REVERSE` to request an automatic reverse
                    of the recipient funds when a recipient is involved in the transaction.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                    - REVERSE
                merchant_reference:
                  type: string
                  description: >-
                    Identification of the payment transaction defined by the merchant. If no merchant_reference is
                    defined, the merchant_order_id of the payment will be associated to the transaction. (MAX 255; MIN
                    3).
                amount:
                  type: object
                  description: Specifies the amount object for refund.
                  properties:
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/docs/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      format: float
                      description: >-
                        The payment amount (multiple of 0.0001). For a zero-decimal currency (for example KRW, JPY, or
                        CLP) the value must be a whole number: see [Amounts and
                        currencies](/docs/basic-concepts/amounts-and-currencies).
                split_marketplace:
                  type: array
                  description: Split marketplace array of objects
                  items:
                    properties:
                      recipient_id:
                        type: string
                        description: >-
                          The unique identifier of the recipient in the Yuno system. <br/> You must provide the
                          [`recipient_id`](/reference/create-recipient-1) (Yuno-generated) or the
                          `provider_recipient_id` (external provider's ID) when creating a payment.
                      provider_recipient_id:
                        type: string
                        description: >-
                          The recipient ID provided by the external payment provider, if applicable. <br/> You must
                          provide the `provider_recipient_id` or the [`recipient_id`](/reference/create-recipients)
                          (Yuno-generated) when creating a payment.
                      description:
                        type: string
                        description: Description for the split. (MAX 255; MIN 3).
                      type:
                        type: string
                        description: The type of split. `recipient_id` is mandatory for `PURCHASE` and `MARKETPLACE`.
                        enum:
                          - PURCHASE
                          - PAYMENTFEE
                          - VAT
                          - COMMISSION
                          - MARKETPLACE
                          - SHIPPING
                      merchant_reference:
                        type: string
                        description: Optional unique identifier for the split transaction (MAX 255; MIN 3).
                      recipient_type:
                        type: string
                        description: The type of recipient for the provider.
                        enum:
                          - MEAL
                          - FOOD
                          - MULTI_BENEFITS
                          - FLEET
                        example: MEAL
                      amount:
                        type: object
                        description: Defines the amount of the split.
                        required:
                          - value
                          - currency
                        properties:
                          value:
                            type: number
                            description: The split amount (multiple of 0.0001).
                            format: float
                          currency:
                            type: string
                            description: >-
                              The currency used to make the payment. For a full list of currency codes, see [Country
                              reference](/docs/country-reference) (MAX 3; MIN 3; ISO 4217).
                      liability:
                        type: object
                        description: Optional information regarding the recipient's liability for fees and chargebacks.
                        properties:
                          processing_fee:
                            type: string
                            description: Indicates who will be charged the transaction fee.
                            enum:
                              - MERCHANT
                              - RECIPIENT
                              - SHARED
                          chargebacks:
                            type: boolean
                            description: The recipient is responsible in case of a chargeback.
                    required:
                      - type
                    type: object
                simplified_mode:
                  type: boolean
                  description: >-
                    Indicates if we should try to refund a payment after an error/declined on the first try. It is
                    `false` by default. For more information, access the [guide](transaction-retries).
                  default: false
                response_additional_data:
                  type: object
                  description: Specifies additional data for required the transaction response
                  properties:
                    receipt:
                      type: boolean
                      description: Indicates if a receipt is necessary for the transaction response
                    receipt_language:
                      type: string
                      description: Indicates the language of the receipt to be generated
                      enum:
                        - ES
                        - EN
                        - PT
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 3).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 3).
                    gender:
                      type: string
                      description: >-
                        The customer's gender (MAX 2; MIN 1). <br/>- M=Male <br/>- F=Female <br/>- NB=Non Binary <br/>-
                        NA=Not applicable <br/>- NK=Not Known <br/>- U=Undefined.
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the `YYYY-MM-DD` format (Length: 10).'
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      properties:
                        document_number:
                          type: string
                          description: Document number for customer (MAX 40; MIN 3)
                        document_type:
                          type: string
                          description: >-
                            The customer's document type (MAX 6, MIN 2). Access [Document Type
                            List](/reference/country-reference) for more details.
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Specifies the customer's phone object.
                      properties:
                        country_code:
                          type: string
                          description: The country code of the customer's phone (MAX 3; MIN 1).
                        number:
                          type: string
                          description: The customer's phone number, without the country code (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary billing address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary billing address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the billing address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the billing address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the billing address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary shipping address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the shipping address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the shipping address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the shipping address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                payment_method:
                  type: object
                  description: Specifies payment method object for payments.
                  properties:
                    detail:
                      type: object
                      description: Specifies the payment method detail object.
                      properties:
                        bank_transfer:
                          type: object
                          description: Specifies bank transfer payment method details.
                          properties:
                            account_type:
                              type: string
                              description: Type of bank account (MAX 255; MIN 3)
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_name:
                              type: string
                              description: Name of the bank (MAX 255; MIN 3)
                            bank_id:
                              type: string
                              description: ID of the bank (MAX 255; MIN 3)
                            beneficiary_name:
                              type: string
                              description: Name of the account holder (MAX 255; MIN 3)
                            bank_account:
                              type: string
                              description: Bank account number (MAX 255; MIN 3)
                            beneficiary_document_type:
                              type: string
                              description: Document type of the account holder (MAX 255; MIN 3)
                            beneficiary_document:
                              type: string
                              description: Document number of the account holder (MAX 255; MIN 3)
                            reference:
                              type: string
                              description: Reference code for the user (MAX 255; MIN 1)
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
            examples:
              Full Refund:
                value:
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
              Partial Refund:
                value:
                  amount:
                    currency: COP
                    value: 500
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
              Cancel:
                value:
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Full Refund:
                  value:
                    id: 7fd485f3-bd72-45eb-a3fb-774daa3d79b6
                    type: REFUND
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: COP
                      refunded: 0
                      value: 30000
                    merchant_reference: '0000023'
                    created_at: '2024-06-06T14:06:06.284443Z'
                    updated_at: '2024-06-06T14:06:37.984065Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: ''
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      status: ''
                      status_detail: ''
                      response_message: null
                      response_code: SUCCEEDED
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_request:
                        amount:
                          currency: BRL
                          value: 2100
                        reference: '34343434'
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: c3583c27-0478-4e02-8827-4d8f2121c670
                      account_id: ''
                      description: Test
                      country: CO
                      status: REFUNDED
                      sub_status: REFUNDED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:06:06.284443Z'
                      updated_at: '2024-06-06T14:06:06.284443Z'
                      amount:
                        captured: 0
                        currency: COP
                        refunded: 30000
                        value: 30000
                      additional_data:
                        airline:
                          pnr: 1P-2UUGJW
                          legs:
                            - departure_airport: EZE
                              departure_datetime: '2014-05-12 13:05:00'
                              departure_airport_timezone: '-03:00'
                              arrival_airport: AMS
                              arrival_airport_timezone: '+00:00'
                              arrival_datetime: ''
                              carrier_code: KL
                              carrier_name: KLM Royal Dutch Airlines
                              flight_number: '842'
                              fare_basis_code: HL7LNR
                              fare_class_code: FR
                              base_fare: 200
                              base_fare_currency: BRL
                              stopover_code: s
                          passengers:
                            - first_name: string
                              last_name: string
                              middle_name: string
                              type: s
                              date_of_birth: stringstri
                              nationality: st
                              document:
                                document_type: CPF
                                document_number: 351.040.753-97
                              country: st
                              loyalty_number: string
                              loyalty_tier: strin
                              email: null
                              phone: null
                          ticket: null
                          tickets:
                            - ticket_number: '123456'
                              e_ticket: false
                              restricted: false
                              total_fare_amount: 80
                              total_tax_amount: 22
                              total_fee_amount: 14
                              issue: null
                        order:
                          fee_amount: 100
                          shipping_amount: 100
                          tip_amount: null
                          items:
                            - id: 123AD
                              name: Skirt
                              quantity: 1
                              unit_amount: 29800
                              category: Clothes
                              brand: XYZ
                              sku_code: '8765432109'
                              manufacture_part_number: XYZ123456
                        seller_details: null
                    customer_payer:
                      id: f73dd905-a242-477f-8273-539ed8fbad9e
                      merchant_customer_id: c2-2745600
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                    simplified_mode: false
                    receipt: false
                    receipt_url: null
                    receipt_language: null
                    split_marketplace: []
                    metadata: null
                Partial Refund:
                  value:
                    id: e44cdc8e-01e7-4767-a1b6-3a646a609dc5
                    type: REFUND
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: COP
                      refunded: 0
                      value: 30000
                    merchant_reference: '0000023'
                    created_at: '2024-06-06T14:07:53.881239Z'
                    updated_at: '2024-06-06T14:08:17.438878Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: ''
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      status: ''
                      sub_status: ''
                      status_detail: ''
                      response_message: null
                      response_code: SUCCEEDED
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: eee7daeb-5ed7-41bd-8fee-7a440ca2ab86
                      account_id: ''
                      description: Test
                      country: CO
                      status: SUCCEEDED
                      sub_status: PARTIALLY_REFUNDED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:07:53.881239Z'
                      updated_at: '2024-06-06T14:07:53.881239Z'
                      amount:
                        captured: 0
                        currency: COP
                        refunded: 1000
                        value: 30000
                      additional_data:
                        airline:
                          pnr: 1P-2UUGJW
                          legs:
                            - departure_airport: EZE
                              departure_datetime: '2014-05-12 13:05:00'
                              departure_airport_timezone: '-03:00'
                              arrival_airport: AMS
                              arrival_airport_timezone: '+00:00'
                              arrival_datetime: ''
                              carrier_code: KL
                              carrier_name: KLM Royal Dutch Airlines
                              flight_number: '842'
                              fare_basis_code: HL7LNR
                              fare_class_code: FR
                              base_fare: 200
                              base_fare_currency: BRL
                              stopover_code: s
                          passengers:
                            - first_name: string
                              last_name: string
                              middle_name: string
                              type: s
                              date_of_birth: stringstri
                              nationality: st
                              document:
                                document_type: CPF
                                document_number: 351.040.753-97
                              country: st
                              loyalty_number: string
                              loyalty_tier: strin
                              email: null
                              phone: null
                          ticket: null
                          tickets:
                            - ticket_number: '123456'
                              e_ticket: false
                              restricted: false
                              total_fare_amount: 80
                              total_tax_amount: 22
                              total_fee_amount: 14
                              issue: null
                        order:
                          fee_amount: 100
                          shipping_amount: 100
                          tip_amount: null
                          items:
                            - id: 123AD
                              name: Skirt
                              quantity: 1
                              unit_amount: 29800
                              category: Clothes
                              brand: XYZ
                              sku_code: '8765432109'
                              manufacture_part_number: XYZ123456
                        seller_details: null
                    customer_payer:
                      id: f73dd905-a242-477f-8273-539ed8fbad9e
                      merchant_customer_id: c2-2745600
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                    simplified_mode: false
                    receipt: false
                    receipt_url: null
                    receipt_language: null
                    split_marketplace: []
                    metadata: null
                Cancel:
                  value:
                    id: 2fbc6db6-718b-4554-b03f-826e552f1b9f
                    type: CANCEL
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: COP
                      refunded: 0
                      value: 30000
                    merchant_reference: ''
                    created_at: '2024-06-06T14:05:31.651012Z'
                    updated_at: '2024-06-06T14:05:31.742355Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: ''
                      account_id: ''
                      status: SUCCEEDED
                      sub_status: ''
                      status_detail: SUCCEEDED
                      response_message: null
                      response_code: SUCCEEDED
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: cddba02c-e47d-4330-9cac-afcd9c0194b1
                      account_id: ''
                      description: Test
                      country: CO
                      status: CANCELED
                      sub_status: CANCELED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:04:44.768364Z'
                      updated_at: '2024-06-06T14:05:31.79539Z'
                      amount:
                        captured: 0
                        currency: COP
                        refunded: 0
                        value: 30000
                    customer_payer:
                      id: f73dd905-a242-477f-8273-539ed8fbad9e
                      merchant_customer_id: c2-2745600
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: johndoe@example.com
                      nationality: US
                      ip_address: null
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      shipping_address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 4B
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                        neighborhood: Manhattan
                      merchant_customer_created_at: '2022-05-09T20:46:54.786342Z'
                    simplified_mode: false
                    receipt: false
                    receipt_url: null
                    receipt_language: null
                    split_marketplace: []
                    metadata: null
              schema:
                oneOf:
                  - title: Full Refund
                    type: object
                    properties:
                      id:
                        type: string
                        example: 7fd485f3-bd72-45eb-a3fb-774daa3d79b6
                      type:
                        type: string
                        example: REFUND
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: COP
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      merchant_reference:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-06T14:06:06.284443Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:06:37.984065Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: ''
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: ''
                          response_message: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: c3583c27-0478-4e02-8827-4d8f2121c670
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: CO
                          status:
                            type: string
                            example: REFUNDED
                          sub_status:
                            type: string
                            example: REFUNDED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:06:06.284443Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:06:06.284443Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: COP
                              refunded:
                                type: integer
                                example: 30000
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          additional_data:
                            type: object
                            properties:
                              airline:
                                type: object
                                properties:
                                  pnr:
                                    type: string
                                    example: 1P-2UUGJW
                                  legs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        departure_airport:
                                          type: string
                                          example: EZE
                                        departure_datetime:
                                          type: string
                                          example: '2014-05-12 13:05:00'
                                        departure_airport_timezone:
                                          type: string
                                          example: '-03:00'
                                        arrival_airport:
                                          type: string
                                          example: AMS
                                        arrival_airport_timezone:
                                          type: string
                                          example: '+00:00'
                                        arrival_datetime:
                                          type: string
                                          example: ''
                                        carrier_code:
                                          type: string
                                          example: KL
                                        carrier_name:
                                          type: string
                                          example: KLM Royal Dutch Airlines
                                        flight_number:
                                          type: string
                                          example: '842'
                                        fare_basis_code:
                                          type: string
                                          example: HL7LNR
                                        fare_class_code:
                                          type: string
                                          example: FR
                                        base_fare:
                                          type: integer
                                          example: 200
                                          default: 0
                                        base_fare_currency:
                                          type: string
                                          example: BRL
                                        stopover_code:
                                          type: string
                                          example: s
                                  passengers:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        first_name:
                                          type: string
                                          example: string
                                        last_name:
                                          type: string
                                          example: string
                                        middle_name:
                                          type: string
                                          example: string
                                        type:
                                          type: string
                                          example: s
                                        date_of_birth:
                                          type: string
                                          example: stringstri
                                        nationality:
                                          type: string
                                          example: st
                                        document:
                                          type: object
                                          properties:
                                            document_type:
                                              type: string
                                              example: CPF
                                            document_number:
                                              type: string
                                              example: 351.040.753-97
                                        country:
                                          type: string
                                          example: st
                                        loyalty_number:
                                          type: string
                                          example: string
                                        loyalty_tier:
                                          type: string
                                          example: strin
                                        email: {}
                                        phone: {}
                                  ticket: {}
                                  tickets:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        ticket_number:
                                          type: string
                                          example: '123456'
                                        e_ticket:
                                          type: boolean
                                          example: false
                                          default: true
                                        restricted:
                                          type: boolean
                                          example: false
                                          default: true
                                        total_fare_amount:
                                          type: integer
                                          example: 80
                                          default: 0
                                        total_tax_amount:
                                          type: integer
                                          example: 22
                                          default: 0
                                        total_fee_amount:
                                          type: integer
                                          example: 14
                                          default: 0
                                        issue: {}
                              order:
                                type: object
                                properties:
                                  fee_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  shipping_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  tip_amount: {}
                                  items:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          example: 123AD
                                        name:
                                          type: string
                                          example: Skirt
                                        quantity:
                                          type: integer
                                          example: 1
                                          default: 0
                                        unit_amount:
                                          type: integer
                                          example: 29800
                                          default: 0
                                        category:
                                          type: string
                                          example: Clothes
                                        brand:
                                          type: string
                                          example: XYZ
                                        sku_code:
                                          type: string
                                          example: '8765432109'
                                        manufacture_part_number:
                                          type: string
                                          example: XYZ123456
                              seller_details: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: f73dd905-a242-477f-8273-539ed8fbad9e
                          merchant_customer_id:
                            type: string
                            example: c2-2745600
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: johndoe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            nullable: true
                          device_fingerprint:
                            nullable: true
                          device_fingerprints:
                            type: array
                            items: {}
                          browser_info:
                            nullable: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          merchant_customer_created_at:
                            type: string
                            example: '2022-05-09T20:46:54.786342Z'
                        description: Customer payer.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                      receipt:
                        type: boolean
                        example: false
                        description: Receipt.
                      receipt_url:
                        nullable: true
                        description: Receipt url.
                      receipt_language:
                        nullable: true
                        description: Receipt language.
                      split_marketplace:
                        type: array
                        items: {}
                        description: Split marketplace.
                      metadata:
                        nullable: true
                        description: Metadata.
                  - title: Partial Refund
                    type: object
                    properties:
                      id:
                        type: string
                        example: e44cdc8e-01e7-4767-a1b6-3a646a609dc5
                      type:
                        type: string
                        example: REFUND
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: COP
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      merchant_reference:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2024-06-06T14:07:53.881239Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:08:17.438878Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: ''
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          status:
                            type: string
                            example: ''
                          sub_status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: ''
                          response_message: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: eee7daeb-5ed7-41bd-8fee-7a440ca2ab86
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: CO
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: PARTIALLY_REFUNDED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:07:53.881239Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:07:53.881239Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: COP
                              refunded:
                                type: integer
                                example: 1000
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          additional_data:
                            type: object
                            properties:
                              airline:
                                type: object
                                properties:
                                  pnr:
                                    type: string
                                    example: 1P-2UUGJW
                                  legs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        departure_airport:
                                          type: string
                                          example: EZE
                                        departure_datetime:
                                          type: string
                                          example: '2014-05-12 13:05:00'
                                        departure_airport_timezone:
                                          type: string
                                          example: '-03:00'
                                        arrival_airport:
                                          type: string
                                          example: AMS
                                        arrival_airport_timezone:
                                          type: string
                                          example: '+00:00'
                                        arrival_datetime:
                                          type: string
                                          example: ''
                                        carrier_code:
                                          type: string
                                          example: KL
                                        carrier_name:
                                          type: string
                                          example: KLM Royal Dutch Airlines
                                        flight_number:
                                          type: string
                                          example: '842'
                                        fare_basis_code:
                                          type: string
                                          example: HL7LNR
                                        fare_class_code:
                                          type: string
                                          example: FR
                                        base_fare:
                                          type: integer
                                          example: 200
                                          default: 0
                                        base_fare_currency:
                                          type: string
                                          example: BRL
                                        stopover_code:
                                          type: string
                                          example: s
                                  passengers:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        first_name:
                                          type: string
                                          example: string
                                        last_name:
                                          type: string
                                          example: string
                                        middle_name:
                                          type: string
                                          example: string
                                        type:
                                          type: string
                                          example: s
                                        date_of_birth:
                                          type: string
                                          example: stringstri
                                        nationality:
                                          type: string
                                          example: st
                                        document:
                                          type: object
                                          properties:
                                            document_type:
                                              type: string
                                              example: CPF
                                            document_number:
                                              type: string
                                              example: 351.040.753-97
                                        country:
                                          type: string
                                          example: st
                                        loyalty_number:
                                          type: string
                                          example: string
                                        loyalty_tier:
                                          type: string
                                          example: strin
                                        email: {}
                                        phone: {}
                                  ticket: {}
                                  tickets:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        ticket_number:
                                          type: string
                                          example: '123456'
                                        e_ticket:
                                          type: boolean
                                          example: false
                                          default: true
                                        restricted:
                                          type: boolean
                                          example: false
                                          default: true
                                        total_fare_amount:
                                          type: integer
                                          example: 80
                                          default: 0
                                        total_tax_amount:
                                          type: integer
                                          example: 22
                                          default: 0
                                        total_fee_amount:
                                          type: integer
                                          example: 14
                                          default: 0
                                        issue: {}
                              order:
                                type: object
                                properties:
                                  fee_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  shipping_amount:
                                    type: integer
                                    example: 100
                                    default: 0
                                  tip_amount: {}
                                  items:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        id:
                                          type: string
                                          example: 123AD
                                        name:
                                          type: string
                                          example: Skirt
                                        quantity:
                                          type: integer
                                          example: 1
                                          default: 0
                                        unit_amount:
                                          type: integer
                                          example: 29800
                                          default: 0
                                        category:
                                          type: string
                                          example: Clothes
                                        brand:
                                          type: string
                                          example: XYZ
                                        sku_code:
                                          type: string
                                          example: '8765432109'
                                        manufacture_part_number:
                                          type: string
                                          example: XYZ123456
                              seller_details: {}
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: f73dd905-a242-477f-8273-539ed8fbad9e
                          merchant_customer_id:
                            type: string
                            example: c2-2745600
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: johndoe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            nullable: true
                          device_fingerprint:
                            nullable: true
                          device_fingerprints:
                            type: array
                            items: {}
                          browser_info:
                            nullable: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          merchant_customer_created_at:
                            type: string
                            example: '2022-05-09T20:46:54.786342Z'
                        description: Customer payer.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                      receipt:
                        type: boolean
                        example: false
                        description: Receipt.
                      receipt_url:
                        nullable: true
                        description: Receipt url.
                      receipt_language:
                        nullable: true
                        description: Receipt language.
                      split_marketplace:
                        type: array
                        items: {}
                        description: Split marketplace.
                      metadata:
                        nullable: true
                        description: Metadata.
                  - title: Cancel
                    type: object
                    properties:
                      id:
                        type: string
                        example: 2fbc6db6-718b-4554-b03f-826e552f1b9f
                      type:
                        type: string
                        example: CANCEL
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: COP
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      merchant_reference:
                        type: string
                        example: ''
                      created_at:
                        type: string
                        example: '2024-06-06T14:05:31.651012Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:05:31.742355Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: ''
                          account_id:
                            type: string
                            example: ''
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: SUCCEEDED
                          response_message: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: cddba02c-e47d-4330-9cac-afcd9c0194b1
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: CO
                          status:
                            type: string
                            example: CANCELED
                          sub_status:
                            type: string
                            example: CANCELED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:04:44.768364Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:05:31.79539Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: COP
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                      customer_payer:
                        type: object
                        properties:
                          id:
                            type: string
                            example: f73dd905-a242-477f-8273-539ed8fbad9e
                          merchant_customer_id:
                            type: string
                            example: c2-2745600
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: johndoe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            nullable: true
                          device_fingerprint:
                            nullable: true
                          device_fingerprints:
                            type: array
                            items: {}
                          browser_info:
                            nullable: true
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 4B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood:
                                type: string
                                example: Manhattan
                          merchant_customer_created_at:
                            type: string
                            example: '2022-05-09T20:46:54.786342Z'
                        description: Customer payer.
                      simplified_mode:
                        type: boolean
                        example: false
                        description: Simplified mode.
                      receipt:
                        type: boolean
                        example: false
                        description: Receipt.
                      receipt_url:
                        nullable: true
                        description: Receipt url.
                      receipt_language:
                        nullable: true
                        description: Receipt language.
                      split_marketplace:
                        type: array
                        items: {}
                        description: Split marketplace.
                      metadata:
                        nullable: true
                        description: Metadata.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payments
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /payments/{payment_id}/transactions/{transaction_id}/capture:
    post:
      summary: Capture Authorization
      description: ''
      operationId: capture-authorization
      parameters:
        - name: payment_id
          in: path
          description: The unique identifier of the payment (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: transaction_id
          in: path
          description: The unique identifier of the transaction (UUID, 36 chars)
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
                - reason
              properties:
                merchant_reference:
                  type: string
                  description: Identification of the payment transaction defined by the merchant (MAX 255; MIN 3)
                amount:
                  type: object
                  description: >-
                    Specifies the amount object for capturing. Optional: if you omit it, the API captures the full
                    authorized amount.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      description: The payment amount (multiple of 0.0001).
                      format: float
                reason:
                  type: string
                  description: 'Indicating the reason for the capture. For example: PRODUCT_CONFIRMED and REQUESTED_BY_CUSTOMER.'
                additional_data:
                  type: object
                  description: Additional data to complement the payment capture
                  properties:
                    order:
                      type: object
                      description: Specifies the order object.
                      properties:
                        shipping_amount:
                          type: number
                          description: The shipping amount of the order (multiple of 0.0001)
                          format: float
                        fee_amount:
                          type: number
                          description: The fee amount of the order (multiple of 0.0001)
                          format: float
                        items:
                          type: array
                          description: Specifies the items array of object.
                          items:
                            properties:
                              id:
                                type: string
                                description: The unique identifier of the item (MAX 255; MIN 3).
                              name:
                                type: string
                                description: The name of the item (MAX 255; MIN 3).
                              quantity:
                                type: integer
                                description: The quantity of the item.
                                format: int32
                              unit_amount:
                                type: number
                                description: The unit amount of the item (multiple of 0.0001).
                                format: float
                              category:
                                type: string
                                description: >-
                                  The category of the item. Check the [Item category
                                  reference](/reference/items-category-list).
                                enum:
                                  - art
                                  - baby
                                  - coupons
                                  - beauty_&_personal_care
                                  - donations
                                  - computing
                                  - books
                                  - grocery_&_gourmet_food
                                  - cameras
                                  - video_games
                                  - television
                                  - car_electronics
                                  - electronics
                                  - automotive
                                  - toys_&_games
                                  - musical_instruments
                                  - handmade
                                  - garden_&_outdoor
                                  - entertainment
                                  - industrial_&_scientific
                                  - fashion
                                  - games
                                  - pet_supplies
                                  - home
                                  - musical
                                  - phones
                                  - services
                                  - learnings
                                  - tickets
                                  - travels
                                  - virtual_goods
                                  - others
                              brand:
                                type: string
                                description: The brand of the item (MAX 255; MIN 3).
                              sku_code:
                                type: string
                                description: The stock keeping unit (SKU) of the item (MAX 255; MIN 3).
                              manufacture_part_number:
                                type: string
                                description: The manufacture part number of the item
                            required:
                              - id
                              - name
                              - quantity
                              - unit_amount
                            type: object
                    airline:
                      type: object
                      description: Specifies the airline object.
                      properties:
                        pnr:
                          type: string
                          description: Passenger name record (MAX 10; MIN 1).
                        legs:
                          type: array
                          description: Specifies the legs array of objects.
                          items:
                            properties:
                              departure_airport:
                                type: string
                                description: IATA code. See http://www.iata.org (MAX 3; MIN 3).
                              departure_datetime:
                                type: string
                                description: >-
                                  The departure date and time in UTC time ([ISO
                                  8601](https://en.wikipedia.org/wiki/ISO_8601), MAX 27; MIN 27).
                                format: date-time
                              departure_airport_timezone:
                                type: string
                                description: Airport timezone (MAX 6; MIN 6).
                              arrival_airport:
                                type: string
                                description: IATA airport code. See http://www.iata.org (MAX 3; MIN 3).
                              carrier_code:
                                type: string
                                description: IATA carrier code. See http://www.iata.org (MAX 2; MIN 2).
                              carrier_name:
                                type: string
                                description: The name of the airline carrier (MAX 100; MIN 1).
                              flight_number:
                                type: string
                                description: The flight number assigned by the airline carrier (MAX 5; MIN 1).
                              fare_basis_code:
                                type: string
                                description: >-
                                  Code base rate provides specific information on the fare in addition to the class
                                  service, both required for booking (MAX 15; MIN 1).
                              fare_class_code:
                                type: string
                                description: >-
                                  The fare class code of the airline (MAX 1; MIN 1). The values can be a letter (A-Z)
                                  but may vary depending on the airline's definition. Check the [Airline information
                                  reference](/reference/airline-information#fare-class-code).
                                enum:
                                  - F
                                  - FR
                                  - B
                                  - CR
                                  - 'Y'
                                  - YD
                              base_fare:
                                type: number
                                description: >-
                                  The transaction amount, excluding taxes and fees, the smallest unit of currency
                                  (multipleOf 0.0001).
                                format: float
                              base_fare_currency:
                                type: string
                                description: The currency used to transaction amount (MAX 3; MIN 3; [ISO 4217](country-reference)).
                              stopover_code:
                                type: string
                                description: >-
                                  1-letter code that indicates whether the passenger is allowed to make a stopover. Only
                                  two types of characters are allowed: O: Stopover allowed (the letter “O”, not zero) /
                                  X: Stopover not allowed. (MAX 1; MIN 1)
                            required:
                              - departure_airport
                              - departure_datetime
                              - departure_airport_timezone
                              - arrival_airport
                              - carrier_code
                              - flight_number
                              - fare_basis_code
                              - fare_class_code
                            type: object
                        passengers:
                          type: array
                          description: Specifies the passengers array of objects associated to the tickets.
                          items:
                            properties:
                              first_name:
                                type: string
                                description: The passenger first name (MAX 255; MIN 3).
                              last_name:
                                type: string
                                description: The passenger last name (MAX 255; MIN 3)
                              middle_name:
                                type: string
                                description: The passenger middle name (MAX 255; MIN 3).
                              type:
                                type: string
                                description: >-
                                  The passenger type (MAX 1; MIN 1). Check the [Airline information
                                  reference](/reference/airline-information#passenger-type).
                                enum:
                                  - A
                                  - C
                                  - I
                              date_of_birth:
                                type: string
                                description: The passenger date of birth in the YYYY-MM-DD (MAX 10; MIN 10).
                                format: date
                              nationality:
                                type: string
                                description: The passenger nationality (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                                enum:
                                  - AR
                                  - BO
                                  - BR
                                  - CL
                                  - CO
                                  - CR
                                  - EC
                                  - SV
                                  - GT
                                  - HN
                                  - MX
                                  - NI
                                  - PA
                                  - PY
                                  - PE
                                  - US
                                  - UY
                              document:
                                type: object
                                description: Specifies the passengers' document object.
                                properties:
                                  document_number:
                                    type: string
                                    description: Document number for passenger (MAX 40; MIN 3).
                                  document_type:
                                    type: string
                                    description: >-
                                      The passenger's document type (MAX 6, MIN 2; ([Country
                                      reference](country-reference))).
                                    enum:
                                      - DNI
                                      - CI
                                      - LC
                                      - LE
                                      - CUIT
                                      - CUIL
                                      - PAS
                                      - CPF
                                      - RG
                                      - CNH
                                      - CNPJ
                                      - RUT
                                      - RUN
                                      - CC
                                      - CE
                                      - NIT
                                      - DUI
                                      - PIC
                                      - DPI
                                      - IFR
                                      - INE
                                      - CP
                                      - RFC
                                      - CURP
                                      - CIP
                                      - CIC
                                      - CUI
                                      - RUC
                                      - ''
                                  country:
                                    type: string
                                    description: >-
                                      Country where the document was issued (MAX 2; MIN 2; [ISO
                                      3166-1](country-reference)).
                                    enum:
                                      - AR
                                      - BO
                                      - BR
                                      - CL
                                      - CO
                                      - CR
                                      - EC
                                      - SV
                                      - GT
                                      - HN
                                      - MX
                                      - NI
                                      - PA
                                      - PY
                                      - PE
                                      - US
                                      - UY
                              loyalty_number:
                                type: string
                                description: Number of passenger loyalty program.
                              loyalty_tier:
                                type: string
                                description: >-
                                  Tier of passenger loyalty program. Check the [Airline information
                                  reference](/reference/airline-information#loyalty-tier).
                                enum:
                                  - '1'
                                  - '2'
                                  - '3'
                              phone:
                                type: object
                                description: Specifies the phone object for the passenger.
                            type: object
                        tickets:
                          type: array
                          description: Specifies the array of ticket objects associated to the passengers.
                          items:
                            properties:
                              ticket_number:
                                type: string
                                description: Ticket number (MAX 14; MIN 1).
                              e_ticket:
                                type: boolean
                                description: Is this an e-ticket?  (true) (false).
                              restricted:
                                type: boolean
                                description: Indicates if the ticket is refunfable or not (true/false)
                              total_fare_amount:
                                type: number
                                description: Total fare amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              total_tax_amount:
                                type: number
                                description: Total taxes amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              total_fee_amount:
                                type: number
                                description: Total fee amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              issue:
                                type: object
                                description: Specifies the issue object.
                                properties:
                                  carrier_prefix_code:
                                    type: string
                                    description: >-
                                      Issuing or Validating carrier. This is the AWB Prefix (Air waybill) 3-numeric code
                                      (MAX 3; MIN 3).
                                  travel_agent_code:
                                    type: string
                                    description: Code of the travel agent issuing the ticket (MAX 9; MIN 8).
                                  travel_agent_name:
                                    type: string
                                    description: >-
                                      The name under which the point of sale appears on the agency list or franchise
                                      name (MAX 32; MIN 1).
                                  date:
                                    type: string
                                    description: Ticket issuing date (MAX 27; MIN 27).
                                    format: date-time
                                  address:
                                    type: string
                                    description: Address of the agent whose sold the ticket (MAX 255; MIN 3).
                                  city:
                                    type: string
                                    description: City name of the agent whose sold the ticket (MAX 255; MIN 3).
                                  country:
                                    type: string
                                    description: >-
                                      Country code alpha 2 where the ticket was issued (MAX 2; MIN 2; [ISO
                                      3166-1](country-reference)).
                                    enum:
                                      - AR
                                      - BO
                                      - BR
                                      - CL
                                      - CO
                                      - CR
                                      - EC
                                      - SV
                                      - GT
                                      - HN
                                      - MX
                                      - NI
                                      - PA
                                      - PY
                                      - PE
                                      - US
                                      - UY
                            type: object
                    seller_details:
                      type: object
                      description: Specifies the seller's details object.
                      properties:
                        name:
                          type: string
                          description: The seller's legal name (MAX 255; MIN 3).
                        email:
                          type: string
                          description: The seller's e-mail (MAX 255; MIN 3).
                        reference:
                          type: number
                          description: The seller's identification code (MAX 255; MIN 3).
                          format: float
                        website:
                          type: string
                          description: The seller's website URL (MAX 255; MIN 3).
                        industry:
                          type: string
                          description: >-
                            The seller's industry (MAX 235; MIN 1) For more information access the [Industry category
                            reference page](/reference/industry-category-list).
                        merchant_category_code:
                          type: string
                          description: MCC - The merchant category code (MAX 235; MIN 1).
                        country:
                          type: string
                          description: The seller's country (MAX 255; MIN 3; [ISO 3166-1](/reference/country-reference)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                            - ''
                        document:
                          type: object
                          description: Specifies the document object of the seller.
                          properties:
                            document_number:
                              type: string
                              description: The seller's document number (MAX 40; MIN 3).
                            document_type:
                              type: string
                              description: >-
                                The seller's document type (MAX 6, MIN 2; [Document Type
                                List](/reference/country-reference)).
                              enum:
                                - DNI
                                - CI
                                - LC
                                - LE
                                - CUIT
                                - CUIL
                                - PAS
                                - CPF
                                - RG
                                - CNH
                                - CNPJ
                                - RUT
                                - RUN
                                - CC
                                - CE
                                - NIT
                                - DUI
                                - PIC
                                - DPI
                                - IFR
                                - INE
                                - CP
                                - RFC
                                - CURP
                                - CIP
                                - CIC
                                - CUI
                                - RUC
                                - ''
                        phone:
                          type: object
                          description: Specifies the seller's phone number object.
                          properties:
                            country_code:
                              type: string
                              description: >-
                                The country calling code of the seller's phone (MAX 3; MIN 1). Check the [Country
                                reference](country-reference) to see the phone codes.
                            number:
                              type: string
                              description: The seller's phone number, without the country code (MAX 32; MIN 1).
                        address:
                          type: object
                          description: Specifies the seller's address object.
                          properties:
                            address_line_1:
                              type: string
                              description: The primary address line of the seller (MAX 255; MIN 3).
                            address_line_2:
                              type: string
                              description: The secondary billing address line of the seller (MAX 255; MIN 3).
                            city:
                              type: string
                              description: The city considered for the seller's address (MAX 255; MIN 3).
                            country:
                              type: string
                              description: >-
                                The country considered for the seller's address (MAX 2; MIN 2; [ISO
                                3166-1](/reference/country-reference)).
                              enum:
                                - AR
                                - BO
                                - BR
                                - CL
                                - CO
                                - CR
                                - EC
                                - SV
                                - GT
                                - HN
                                - MX
                                - NI
                                - PA
                                - PY
                                - PE
                                - US
                                - UY
                                - ''
                            state:
                              type: string
                              description: The state considered for the seller's address (MAX 255; MIN 3).
                            zip_code:
                              type: string
                              description: The zipcode considered for the seller's address (MAX 11; MIN 4).
                simplified_mode:
                  type: boolean
                  description: >-
                    Determines whether Yuno should automatically attempt to capture a payment after an initial error or
                    decline. When set to `true`, Yuno will retry the process if the first attempt fails. By default,
                    this is set to `false`. Access [Transaction Retries](https://docs.y.uno/docs/transaction-retries)
                    for more details.
            examples:
              Full Capture:
                value:
                  amount:
                    currency: USD
                    value: 5000
                  description: Confirmed
                  reason: PRODUCT_CONFIRMED
                  merchant_reference: AAB01-432245
              Card Direct (with Airline Data):
                value:
                  merchant_reference: EJEMPLO_DE_REFERENCIA
                  amount:
                    currency: USD
                    value: '2000'
                  reason: PRODUCT_CONFIRMED
                  additional_data:
                    airline:
                      pnr: ABC123
                      legs:
                        - departure_airport: JFK
                          departure_datetime: '2023-10-31T01:30:00.000-05:00'
                          departure_airport_timezone: GMT-05
                          arrival_airport: LAX
                          carrier_code: AA
                          carrier_name: American Airlines
                          flight_number: AA348
                          fare_basis_code: 'Y'
                          fare_class_code: S
                          base_fare: 18000
                          base_fare_currency: USD
                          stopover_code: O
                      passengers:
                        - first_name: JOHN
                          last_name: DOE
                          middle_name: STEPHEN
                          type: A
                          date_of_birth: '1998-01-01'
                          nationality: US
                          document:
                            document_number: '123456789'
                            document_type: PASSPORT
                            country: US
                          loyalty_number: '79250001'
                          loyalty_tier: DIAMOND
                      tickets:
                        - ticket_number: AA0001
                          e_ticket: true
                          restricted: false
                          total_fare_amount: 20000
                          total_tax_amount: 18000
                          total_fee_amount: 1000
                          issue:
                            carrier_prefix_code: AA
                            travel_agent_code: A104121
                            travel_agent_name: TRAVELPRO
                            date: '2023-10-31T01:30:00.000-05:00'
                            address: 123 Main Street
                            city: NEW YORK
                            country: US
                            zip_code: '10001'
              Partial Capture:
                value:
                  amount:
                    currency: USD
                    value: 3000
                  description: Confirmed Partially
                  reason: PRODUCT_CONFIRMED
                  merchant_reference: AAB01-432245
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Full Capture:
                  value:
                    id: 89fd7fd0-951d-4335-ad1b-ef899a79630d
                    type: CAPTURE
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: USD
                      refunded: 0
                      value: 5000
                    merchant_reference: AAB01-432245
                    created_at: '2024-06-06T14:26:41.535489Z'
                    updated_at: '2024-06-06T14:26:41.615608Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: 1173513e-2422-4ba0-ba40-fd568a4904f9
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      status: SUCCEEDED
                      status_detail: ''
                      response_message: Transaction successful
                      response_code: ''
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_request:
                        amount:
                          currency: BRL
                          value: 2100
                        reference: '34343434'
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: af170f9d-e8c1-47e4-a988-25535e0f88a1
                      account_id: ''
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: CAPTURED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:26:22.933194Z'
                      updated_at: '2024-06-06T14:26:41.655119Z'
                      amount:
                        captured: 5000
                        currency: USD
                        refunded: 0
                        value: 5000
                      additional_data:
                        airline: null
                        order: null
                        seller_details: null
                CARD DIRECT (with Airline Data):
                  value:
                    id: 230292dd-b3e9-41e4-ae09-0a54e2f7a6d4
                    type: CAPTURE
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      currency: USD
                      value: 20000
                      refunded: 0
                      captured: 0
                    merchant_reference: EJEMPLO_DE_REFERENCIA
                    created_at: '2023-04-27T02:51:52.213075Z'
                    updated_at: '2023-04-27T02:51:52.284381Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: a9a47e01-2dc1-4d5f-af23-11ab7164cd03
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      status: SUCCEEDED
                      status_detail: ''
                      response_message: Transaction successful
                      response_code: ''
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: 637dffe9-5d18-4cdc-a5bf-95b8cd12bbd5
                      account_id: ''
                      description: SUCCESSFUL
                      country: US
                      status: SUCCEEDED
                      sub_status: CAPTURED
                      merchant_order_id: Order_id
                      created_at: '2023-04-27T02:51:24.470834Z'
                      updated_at: '2023-04-27T02:51:52.312297Z'
                      amount:
                        value: 20000
                        captured: 20000
                        refunded: 0
                        currency: USD
                      additional_data:
                        airline:
                          pnr: ABC123
                          legs:
                            - departure_airport: BOG
                              departure_datetime: '2023-10-31T01:30:00.000-05:00'
                              departure_airport_timezone: GMT-05
                              arrival_airport: BOM
                              carrier_code: PR
                              carrier_name: Philippine Airlines
                              flight_number: AV348
                              fare_basis_code: 'Y'
                              fare_class_code: S
                              base_fare: 18000
                              base_fare_currency: USD
                              stopover_code: O
                          passengers:
                            - first_name: JOHN
                              last_name: DOE
                              middle_name: STEPHEN
                              type: A
                              date_of_birth: '1998-01-01'
                              nationality: US
                              document:
                                document_type: SSN
                                document_number: 123-45-6789
                              country: null
                              loyalty_number: '79250001'
                              loyalty_tier: DIAMOND
                          tickets:
                            - ticket_number: BRB0001
                              e_ticket: true
                              restricted: false
                              total_fare_amount: 20000
                              total_tax_amount: 18000
                              total_fee_amount: 1000
                              issue:
                                carrier_prefix_code: '134'
                                travel_agent_code: A104121
                                travel_agent_name: AEROVIAJES
                                date: '2023-10-31T01:30:00.000-05:00'
                                address: 123 Main Street
                                city: New York
                                country: US
                                zip_code: '10001'
                        order: null
                        seller_details: null
                Partial Capture:
                  value:
                    id: c8104f4b-30d6-476f-8e6b-49daa110e31f
                    type: CAPTURE
                    status: SUCCEEDED
                    category: CARD
                    amount:
                      captured: 0
                      currency: USD
                      refunded: 0
                      value: 3000
                    merchant_reference: AAB01-432245
                    created_at: '2024-06-06T14:27:53.594183Z'
                    updated_at: '2024-06-06T14:27:53.705858Z'
                    provider_data:
                      id: YUNO_TEST_PAYMENT_GW
                      transaction_id: a9a47e01-2dc1-4d5f-af23-11ab7164cd03
                      account_id: 493e9374-510a-4201-9e09-de669d75f256
                      status: SUCCEEDED
                      status_detail: ''
                      response_message: Transaction successful
                      response_code: ''
                      iso8583_response_code: '00'
                      iso8583_response_message: Approved or completed successfully
                      raw_response: null
                      third_party_transaction_id: null
                      third_party_account_id: null
                    connection_data:
                      id: 58cc35f4-faef-4107-8e09-d18d60121d38
                      name: Connection name
                    response_code: SUCCEEDED
                    response_message: Transaction successful
                    payment:
                      id: 60915b59-e403-4c00-8404-15ececa9b5dd
                      account_id: ''
                      description: Test
                      country: US
                      status: SUCCEEDED
                      sub_status: PARTIALLY_CAPTURED
                      merchant_order_id: '0000023'
                      created_at: '2024-06-06T14:27:22.8355Z'
                      updated_at: '2024-06-06T14:27:53.74127Z'
                      amount:
                        captured: 3000
                        currency: USD
                        refunded: 0
                        value: 30000
                      additional_data:
                        airline: null
                        order: null
                        seller_details: null
              schema:
                oneOf:
                  - title: Full Capture
                    type: object
                    properties:
                      id:
                        type: string
                        example: 89fd7fd0-951d-4335-ad1b-ef899a79630d
                      type:
                        type: string
                        example: CAPTURE
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      merchant_reference:
                        type: string
                        example: AAB01-432245
                      created_at:
                        type: string
                        example: '2024-06-06T14:26:41.535489Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:26:41.615608Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: 1173513e-2422-4ba0-ba40-fd568a4904f9
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          status:
                            type: string
                            example: SUCCEEDED
                          status_detail:
                            type: string
                            example: ''
                          response_message:
                            type: string
                            example: Transaction successful
                          response_code:
                            type: string
                            example: ''
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: af170f9d-e8c1-47e4-a988-25535e0f88a1
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: CAPTURED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:26:22.933194Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:26:41.655119Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 30000
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          additional_data:
                            type: object
                            properties:
                              airline: {}
                              order: {}
                              seller_details: {}
                  - title: CARD DIRECT (with Airline Data)
                    type: object
                    properties:
                      id:
                        type: string
                        example: 230292dd-b3e9-41e4-ae09-0a54e2f7a6d4
                      type:
                        type: string
                        example: CAPTURE
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: integer
                            example: 20000
                            default: 0
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          captured:
                            type: integer
                            example: 0
                            default: 0
                      merchant_reference:
                        type: string
                        example: EJEMPLO_DE_REFERENCIA
                      created_at:
                        type: string
                        example: '2023-04-27T02:51:52.213075Z'
                      updated_at:
                        type: string
                        example: '2023-04-27T02:51:52.284381Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: a9a47e01-2dc1-4d5f-af23-11ab7164cd03
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          status:
                            type: string
                            example: SUCCEEDED
                          status_detail:
                            type: string
                            example: ''
                          response_message:
                            type: string
                            example: Transaction successful
                          response_code:
                            type: string
                            example: ''
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 637dffe9-5d18-4cdc-a5bf-95b8cd12bbd5
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: SUCCESSFUL
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: CAPTURED
                          merchant_order_id:
                            type: string
                            example: Order_id
                          created_at:
                            type: string
                            example: '2023-04-27T02:51:24.470834Z'
                          updated_at:
                            type: string
                            example: '2023-04-27T02:51:52.312297Z'
                          amount:
                            type: object
                            properties:
                              value:
                                type: integer
                                example: 20000
                                default: 0
                              captured:
                                type: integer
                                example: 20000
                                default: 0
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              currency:
                                type: string
                                example: USD
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          additional_data:
                            type: object
                            properties:
                              airline:
                                type: object
                                properties:
                                  pnr:
                                    type: string
                                    example: ABC123
                                  legs:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        departure_airport:
                                          type: string
                                          example: BOG
                                        departure_datetime:
                                          type: string
                                          example: '2023-10-31T01:30:00.000-05:00'
                                        departure_airport_timezone:
                                          type: string
                                          example: GMT-05
                                        arrival_airport:
                                          type: string
                                          example: BOM
                                        carrier_code:
                                          type: string
                                          example: PR
                                        carrier_name:
                                          type: string
                                          example: Philippine Airlines
                                        flight_number:
                                          type: string
                                          example: AV348
                                        fare_basis_code:
                                          type: string
                                          example: 'Y'
                                        fare_class_code:
                                          type: string
                                          example: S
                                        base_fare:
                                          type: integer
                                          example: 18000
                                          default: 0
                                        base_fare_currency:
                                          type: string
                                          example: USD
                                        stopover_code:
                                          type: string
                                          example: O
                                  passengers:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        first_name:
                                          type: string
                                          example: JOHN
                                        last_name:
                                          type: string
                                          example: DOE
                                        middle_name:
                                          type: string
                                          example: STEPHEN
                                        type:
                                          type: string
                                          example: A
                                        date_of_birth:
                                          type: string
                                          example: '1998-01-01'
                                        nationality:
                                          type: string
                                          example: US
                                        document:
                                          type: object
                                          properties:
                                            document_type:
                                              type: string
                                              example: SSN
                                            document_number:
                                              type: string
                                              example: 123-45-6789
                                        country: {}
                                        loyalty_number:
                                          type: string
                                          example: '79250001'
                                        loyalty_tier:
                                          type: string
                                          example: DIAMOND
                                  tickets:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        ticket_number:
                                          type: string
                                          example: BRB0001
                                        e_ticket:
                                          type: boolean
                                          example: true
                                          default: true
                                        restricted:
                                          type: boolean
                                          example: false
                                          default: true
                                        total_fare_amount:
                                          type: integer
                                          example: 20000
                                          default: 0
                                        total_tax_amount:
                                          type: integer
                                          example: 18000
                                          default: 0
                                        total_fee_amount:
                                          type: integer
                                          example: 1000
                                          default: 0
                                        issue:
                                          type: object
                                          properties:
                                            carrier_prefix_code:
                                              type: string
                                              example: '134'
                                            travel_agent_code:
                                              type: string
                                              example: A104121
                                            travel_agent_name:
                                              type: string
                                              example: AEROVIAJES
                                            date:
                                              type: string
                                              example: '2023-10-31T01:30:00.000-05:00'
                                            address:
                                              type: string
                                              example: 123 Main Street
                                            city:
                                              type: string
                                              example: New York
                                            country:
                                              type: string
                                              example: US
                                            zip_code:
                                              type: string
                                              example: '10001'
                              order: {}
                              seller_details: {}
                  - title: Partial Capture
                    type: object
                    properties:
                      id:
                        type: string
                        example: c8104f4b-30d6-476f-8e6b-49daa110e31f
                      type:
                        type: string
                        example: CAPTURE
                      status:
                        type: string
                        example: SUCCEEDED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          refunded:
                            type: integer
                            example: 0
                            default: 0
                          value:
                            type: integer
                            example: 3000
                            default: 0
                      merchant_reference:
                        type: string
                        example: AAB01-432245
                      created_at:
                        type: string
                        example: '2024-06-06T14:27:53.594183Z'
                      updated_at:
                        type: string
                        example: '2024-06-06T14:27:53.705858Z'
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          transaction_id:
                            type: string
                            example: a9a47e01-2dc1-4d5f-af23-11ab7164cd03
                          account_id:
                            type: string
                            example: 493e9374-510a-4201-9e09-de669d75f256
                          status:
                            type: string
                            example: SUCCEEDED
                          status_detail:
                            type: string
                            example: ''
                          response_message:
                            type: string
                            example: Transaction successful
                          response_code:
                            type: string
                            example: ''
                          iso8583_response_code:
                            type: string
                            example: '00'
                          iso8583_response_message:
                            type: string
                            example: Approved or completed successfully
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                      connection_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 58cc35f4-faef-4107-8e09-d18d60121d38
                          name:
                            type: string
                            example: Connection name
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: Transaction successful
                      payment:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 60915b59-e403-4c00-8404-15ececa9b5dd
                          account_id:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          country:
                            type: string
                            example: US
                          status:
                            type: string
                            example: SUCCEEDED
                          sub_status:
                            type: string
                            example: PARTIALLY_CAPTURED
                          merchant_order_id:
                            type: string
                            example: '0000023'
                          created_at:
                            type: string
                            example: '2024-06-06T14:27:22.8355Z'
                          updated_at:
                            type: string
                            example: '2024-06-06T14:27:53.74127Z'
                          amount:
                            type: object
                            properties:
                              captured:
                                type: integer
                                example: 3000
                                default: 0
                              currency:
                                type: string
                                example: USD
                              refunded:
                                type: integer
                                example: 0
                                default: 0
                              value:
                                type: integer
                                example: 30000
                                default: 0
                          discount_amount:
                            type: object
                            description: >-
                              The total discount of the Yuno promotion applied to the payment: the sum of the
                              `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion
                              applied. The amount charged is `amount.value` minus this value, and it is on
                              `transactions.amount`. See [Promotions](/docs/payment-features/promotions).
                            properties:
                              currency:
                                type: string
                                description: The currency of the discount, the same as `amount.currency`.
                              value:
                                type: number
                                description: The discount.
                          additional_data:
                            type: object
                            properties:
                              airline: {}
                              order: {}
                              seller_details: {}
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                Invalid status:
                  summary: The payment is already in a final state (for example, already captured)
                  value:
                    code: INVALID_STATUS
                    messages:
                      - Invalid transaction status.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payments
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /payments/{payment_id}/transactions/{transaction_id}/dispute:
    post:
      summary: Dispute a chargeback
      description: >-
        Submits evidence for a chargeback. The payment must already have a transaction of type CHARGEBACK in status
        CREATED or ADDITIONAL_INFORMATION_REQUIRED; otherwise the API answers 400 INVALID_TRANSACTION. The `content` of
        each file must be valid base64 (maximum 1 MB). On success the API answers 201.
      operationId: disputes
      parameters:
        - name: payment_id
          in: path
          description: The unique identifier of the payment (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: transaction_id
          in: path
          description: The unique identifier of the transaction (UUID, 36 chars).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - evidence
              properties:
                account_id:
                  type: string
                  description: The unique identifier of the account (UUID, 36 chars).
                evidence:
                  type: array
                  description: The evidence files object
                  items:
                    type: object
                    properties:
                      file_name:
                        type: string
                        description: The name of the documentation sent (MAX 255; MIN 3).
                      content_type:
                        type: string
                        description: The type of the documentation sent by the merchant
                        enum:
                          - application/pdf
                      content_category:
                        type: string
                        description: The category of the documentation sent by the merchant
                        enum:
                          - CANCEL_POLICY
                          - CUSTOMER_INTERACTION
                          - OTHERS
                          - PAYMENT_DETAIL
                          - PROOF_OF_AUTHENTICITY
                          - PROOF_OF_DELIVERY
                          - PROOF_OF_SERVICE
                          - RECEIPT
                          - REFUND_POLICY
                          - SERVICE_AGREEMENT
                          - TERMS_AND_CONDITIONS
                      content:
                        type: string
                        description: 'The content of the documentation sent by the merchant  encoded in base64. Max size: 1MB.'
                    required:
                      - file_name
                      - content_type
                      - content_category
                      - content
            examples:
              Request Example:
                value:
                  account_id: <Your Yuno account_id>
                  evidence:
                    - content_type: application/pdf
                      file_name: Receipt_AA001
                      content_category: RECEIPT
                      content: JVBERi0xLjQKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbXS9Db3VudCAwPj5lbmRvYmoKdHJhaWxlcjw8L1Jvb3QgMSAwIFI+PgolJUVPRgo=
      responses:
        '201':
          description: Evidence submitted
          content:
            application/json:
              examples:
                Success:
                  summary: Success
                  value:
                    id: b001d824-3f3f-48fc-98ef-a3114b918c1e
                    account_id: 210a524f-7ad3-437a-be7e-9e99bdf4d742
                    description: Test Purchase
                    country: AR
                    status: IN_DISPUTE
                    sub_status: PENDING_REVIEW
                    merchant_order_id: '65742358'
                    created_at: '2025-11-26T20:34:08.330622Z'
                    updated_at: '2025-11-26T20:34:12.580560Z'
                    amount:
                      captured: 0
                      currency: ARS
                      currency_conversion: null
                      refunded: 0
                      value: 2000
                    checkout: null
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: null
                          installment_amount: null
                          installments_total_amount: null
                          soft_descriptor: ''
                          authorization_code: '393119'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Diaz
                            iin: '45130761'
                            lfd: '5348'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: BANCOLOMBIA
                            issuer_code: null
                            country_code: CO
                            category: CLASSIC
                            type: CREDIT
                            fingerprint: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                            expiration_month: 6
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 1b9ef2f7-b69e-4dd0-b0a1-3605dfc2ad2f
                      merchant_customer_id: 6a1b6e7e0e104f28929015fd6182e9f9
                      first_name: Margarita
                      last_name: Parra
                      gender: NB
                      date_of_birth: '1952-02-27'
                      email: qpacheco@example.com
                      nationality: AR
                      ip_address: 205.52.88.44
                      device_fingerprint: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                      device_fingerprints:
                        - provider_id: DEFAULT
                          id: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                        - provider_id: CLEAR_SALE
                          id: c1c4907c-3339-4217-a4bd-1e9be74b3819
                        - provider_id: CYBERSOURCE
                          id: d5c56387-4d06-479b-b55b-eab81e5211bc
                        - provider_id: OPENPAY
                          id: '89451345904503181146447710703990'
                        - provider_id: MERCADO_PAGO
                          id: armor.cofxzlvhsrpuslf5ychwxvszwaicsanbuub2on7rfuzmyfijppqm8vcziky3h3emxkz3b2aopl04ublu0jufbtwk8sm232fin19btcnd3q1jdpku6cp9ybn8exc2vcuoalosq51bpfefzhsqx4tuythte5jaruh4keo2fcm9r9wwy96s8djk0e5nmsi8z6pfi7e94tsoe7h09s227umko9kyf4p0xanqn
                      browser_info:
                        user_agent: Chrome
                        accept_header: 'true'
                        accept_content: 'true'
                        accept_browser: 'true'
                        color_depth: red
                        screen_height: '500'
                        screen_width: '100'
                        javascript_enabled: true
                        java_enabled: true
                        browser_time_difference: '-3:00'
                        language: es
                        platform: null
                      document:
                        document_type: DNI
                        document_number: '82183204'
                      phone:
                        number: '91112345678'
                        country_code: '54'
                      billing_address:
                        address_line_1: Avenida Putumayo 1780
                        address_line_2: Diagonal 181G 6572
                        country: AR
                        state: Álava
                        city: Suárez
                        zip_code: '25207'
                        neighborhood: Barrio Núñez
                      shipping_address:
                        address_line_1: Diagonal 61 2487
                        address_line_2: Av. carrera 54 7627
                        country: AR
                        state: Guipúzcoa
                        city: San Benito
                        zip_code: '31718'
                        neighborhood: Villa La Esperanza
                      merchant_customer_created_at: '2025-11-26T20:34:06.941Z'
                      geolocation:
                        latitude: '80.00'
                        longitude: '103.00'
                    additional_data:
                      airline:
                        pnr: ABC123
                        legs:
                          - order: null
                            route_order: null
                            passenger_id: null
                            departure_airport: JFK
                            departure_datetime: '2024-07-03T05:00:00'
                            departure_airport_timezone: GMT-05
                            arrival_airport: LAX
                            arrival_airport_timezone: '+00:00'
                            arrival_datetime: '2030-07-03T22:59:00'
                            carrier_code: AA
                            carrier_name: American Airlines
                            flight_number: '123'
                            fare_basis_code: 'Y'
                            fare_class_code: S
                            base_fare: 1800
                            base_fare_currency: USD
                            stopover_code: O
                            departure_airport_country: NL
                            departure_airport_city: Amsterdam
                            arrival_airport_country: AR
                            arrival_airport_city: Buenos aires
                            expedited_boarding: null
                            extra_baggage: null
                            purchased_meals: null
                            selected_seat: null
                        passengers:
                          - id: null
                            first_name: Antonio
                            last_name: Vargas
                            middle_name: Piedad
                            type: A
                            date_of_birth: '1999-12-17'
                            nationality: US
                            document:
                              document_type: DNI
                              document_number: '82183204'
                            country: CO
                            loyalty_number: '79250001'
                            loyalty_tier: DIAMOND
                            email: anaarias@example.com
                            phone:
                              number: '91112345678'
                              country_code: '54'
                            address: null
                            evidence_document_source: null
                          - id: null
                            first_name: Álvaro
                            last_name: Bravo
                            middle_name: Edwin
                            type: C
                            date_of_birth: '1973-07-25'
                            nationality: CO
                            document:
                              document_type: DNI
                              document_number: '82183204'
                            country: CO
                            loyalty_number: '79250002'
                            loyalty_tier: SILVER
                            email: leidysanchez@example.com
                            phone:
                              number: '91112345678'
                              country_code: '54'
                            address: null
                            evidence_document_source: null
                        type: null
                        ticket:
                          ticket_number: BRB0001
                          passenger_id: null
                          e_ticket: true
                          restricted: false
                          total_fare_amount: 2000
                          total_tax_amount: 180
                          total_fee_amount: 20
                          issue:
                            carrier_prefix_code: AA
                            travel_agent_code: A12345
                            travel_agent_name: TRAVEL AGENCY
                            date: '2023-10-31'
                            address: 123 Main St
                            city: New York
                            country: US
                            zip_code: '10001'
                            booking_system_code: 1G
                            booking_system_name: Galileo
                        tickets:
                          - ticket_number: BRB0001
                            passenger_id: null
                            e_ticket: true
                            restricted: false
                            total_fare_amount: 2000
                            total_tax_amount: 180
                            total_fee_amount: 20
                            issue:
                              carrier_prefix_code: AA
                              travel_agent_code: A12345
                              travel_agent_name: TRAVEL AGENCY
                              date: '2023-10-31'
                              address: 123 Main St
                              city: New York
                              country: US
                              zip_code: '10001'
                              booking_system_code: 1G
                              booking_system_name: Galileo
                      transportations: null
                      order:
                        fee_amount: 1
                        shipping_amount: 3
                        tip_amount: 2
                        items:
                          - id: '97029'
                            name: SKIRT
                            quantity: 3
                            unit_amount: 2000
                            category: OTHERS
                            brand: Barrera Group
                            sku_code: SC-01905
                            manufacture_part_number: MPN-70919
                          - id: '61906'
                            name: SKIRT
                            quantity: 1
                            unit_amount: 2000
                            category: OTHERS
                            brand: Suárez-Castellanos
                            sku_code: SC-14444
                            manufacture_part_number: MPN-43825
                        taxes:
                          - type: VAT
                            tax_base: 100
                            value: 10
                            percentage: 10
                        shipping:
                          type: ELECTRONIC
                          description: q4O6W8x8ONwpbgHjlxlz
                          carrier: AR_OCA
                          deliver_at: '2025-11-26T20:34:07.500866Z'
                          recipients: []
                        account_funding:
                          sender:
                            national_entity: null
                            first_name: Reinaldo
                            last_name: Rojas
                            legal_name: null
                            email: null
                            country: null
                            date_of_birth: null
                            document: null
                            phone: null
                            address: null
                          beneficiary:
                            national_entity: null
                            first_name: Leidy
                            last_name: González
                            legal_name: null
                            email: null
                            country: AR
                            date_of_birth: '1983-12-07'
                            document: null
                            phone:
                              number: '91112345678'
                              country_code: '54'
                            address:
                              address_line_1: Calle 4ª 3050
                              address_line_2: Carrera 98 6425
                              country: AR
                              city: ''
                              zip_code: ''
                              neighborhood: Barrio Colegiales
                        tickets:
                          - id: 57bfc6e7-c270-4fcc-a578-a76e6eaa4576
                            name: Ticket vitae
                            description: Description 4I%n
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: 3e9d0621-e8ca-4415-9025-95d568cac569
                              name: Event doloremque
                              description: Description ipsam
                              type: CIRCUS
                              date: '2025-11-26'
                              address:
                                address_line_1: Diagonal 33 2395
                                address_line_2: Cl. 112E 6497
                                city: Paz de Ariporo
                                country: AR
                                state: Lleida
                                zip_code: '18124'
                                neighborhood: Conjunto Los Laureles
                          - id: f842ae67-2f7d-4415-9d9e-9a51d2712c13
                            name: Ticket aspernatur
                            description: Description jS3*
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: af726450-abf5-49d1-b43a-9e65f88d606e
                              name: Event officia
                              description: Description quo
                              type: CIRCUS
                              date: '2025-11-26'
                              address:
                                address_line_1: Tr. 194B 459
                                address_line_2: Cl. 102L Sur 2950
                                city: Moniquirá
                                country: AR
                                state: Segovia
                                zip_code: '31278'
                                neighborhood: Barrio Los Olivos
                          - id: 51100a8e-04ec-45c1-8fea-2fa70a7966d3
                            name: Ticket hic
                            description: Description mR;2
                            type: PHYSICAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: 2164fb39-7be3-46aa-adc9-310eb33b4f05
                              name: Event hic
                              description: Description beatae
                              type: SPORTS
                              date: '2025-11-26'
                              address:
                                address_line_1: Av. Pérez 8882
                                address_line_2: Carrera 23 5900
                                city: Vijes
                                country: AR
                                state: Zamora
                                zip_code: '24300'
                                neighborhood: Barrio El Paraíso
                          - id: 6f465375-0ded-4ac7-848c-39450bff069d
                            name: Ticket totam
                            description: Description t0}E
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: e564bf42-0385-4ad8-a38a-eb481a434cbf
                              name: Event neque
                              description: Description facilis
                              type: OTHERS
                              date: '2025-11-26'
                              address:
                                address_line_1: Avenida carrera 153 3115
                                address_line_2: Cr. 121G Bis 4048
                                city: La Ceja
                                country: AR
                                state: Castellón
                                zip_code: '39464'
                                neighborhood: Conjunto Belgrano
                          - id: b40b5fb7-3a1b-4315-bf01-4ba9b7ef99aa
                            name: Ticket esse
                            description: Description wI2;
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: a4f1f47f-8853-4ac2-b574-6b05d4a611fd
                              name: Event eos
                              description: Description natus
                              type: CINEMA
                              date: '2025-11-26'
                              address:
                                address_line_1: Cr. 6E Bis 3665
                                address_line_2: Carrera 9 Este 1918
                                city: Teorama
                                country: AR
                                state: Madrid
                                zip_code: '32993'
                                neighborhood: Villa Las Flores
                        fulfillment: null
                        discounts:
                          - id: 10FF
                            name: 10% Discount
                            unit_amount: 10
                        sales_channel: marketplace
                      seller_details:
                        name: Mendoza-Cerón
                        website: http://navarro.info/category/postsregister.html
                        email: iospina@example.net
                        address:
                          address_line_1: Av. calle 5ª 3906
                          address_line_2: Dg. 8ª 8965
                          country: AR
                          state: ARGENTINA
                          city: Curití
                          zip_code: '15484'
                        reference: '39245884'
                        country: AR
                        phone:
                          number: '6844503463'
                          country_code: '23'
                        document:
                          document_type: DNI
                          document_number: '82183204'
                        industry: ELECTRONICS
                        merchant_category_code: '6628'
                    transactions:
                      id: 4a963490-70c2-4669-975a-a6901b4b5abf
                      type: CHARGEBACK
                      status: CREATED
                      category: CARD
                      amount: 2000
                      provider_id: BAMBOO
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: null
                            installment_amount: null
                            installments_total_amount: null
                            soft_descriptor: ''
                            authorization_code: '393119'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: Pepito Perez
                              iin: '45130761'
                              lfd: '5348'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: BANCOLOMBIA
                              issuer_code: null
                              country_code: CO
                              category: CLASSIC
                              type: CREDIT
                              fingerprint: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                              expiration_month: 6
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: CHARGEBACK_CREATED
                      reason: REQUESTED_BY_CUSTOMER
                      description: webhook transaction
                      merchant_reference: Reference-ac04c8a6-78c7-4588-b915-5498455369ef
                      provider_data:
                        id: BAMBOO
                        transaction_id: '121030201030210312'
                        account_id: ''
                        status: APPROVED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response: null
                        third_party_transaction_id: null
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                        reason_code: null
                        reason_description: null
                      connection_data:
                        id: null
                        name: null
                      created_at: '2025-11-26T20:34:12.529203Z'
                      updated_at: '2025-11-26T20:34:12.559289Z'
                      merchant_advice_code: null
                      merchant_advice_code_message: null
                    transactions_history: null
                    split_marketplace: []
                    callback_url: https://example.com/callback
                    workflow: DIRECT
                    metadata:
                      - key: explicabo
                        value: nihil
                      - key: quas
                        value: veritatis
                      - key: numquam
                        value: placeat
                      - key: eos
                        value: quo
                      - key: corrupti
                        value: eveniet
                      - key: occaecati
                        value: consectetur
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 64972
                        name: null
                        description: null
                    simplified_mode: false
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: b001d824-3f3f-48fc-98ef-a3114b918c1e
                  account_id:
                    type: string
                    example: 210a524f-7ad3-437a-be7e-9e99bdf4d742
                  description:
                    type: string
                    example: Test Purchase
                  country:
                    type: string
                    example: AR
                  status:
                    type: string
                    example: IN_DISPUTE
                  sub_status:
                    type: string
                    example: PENDING_REVIEW
                  merchant_order_id:
                    type: string
                    example: '65742358'
                  created_at:
                    type: string
                    example: '2025-11-26T20:34:08.330622Z'
                  updated_at:
                    type: string
                    example: '2025-11-26T20:34:12.580560Z'
                  amount:
                    type: object
                    properties:
                      captured:
                        type: integer
                        example: 0
                        default: 0
                      currency:
                        type: string
                        example: ARS
                      currency_conversion: {}
                      refunded:
                        type: integer
                        example: 0
                        default: 0
                      value:
                        type: integer
                        example: 2000
                        default: 0
                  discount_amount:
                    type: object
                    description: >-
                      The total discount of the Yuno promotion applied to the payment: the sum of the `YUNO_PROMOTION`
                      lines of `additional_data.order.discounts`. Absent when no promotion applied. The amount charged
                      is `amount.value` minus this value, and it is on `transactions.amount`. See
                      [Promotions](/docs/payment-features/promotions).
                    properties:
                      currency:
                        type: string
                        description: The currency of the discount, the same as `amount.currency`.
                      value:
                        type: number
                        description: The discount.
                  checkout: {}
                  payment_method:
                    type: object
                    properties:
                      vaulted_token:
                        type: string
                        example: ''
                      type:
                        type: string
                        example: CARD
                      vault_on_success:
                        type: boolean
                        example: false
                        default: true
                      token:
                        type: string
                        example: ''
                      parent_payment_method_type: {}
                      payment_method_detail:
                        type: object
                        properties:
                          card:
                            type: object
                            properties:
                              verify:
                                type: boolean
                                example: false
                                default: true
                              capture:
                                type: boolean
                                example: false
                                default: true
                              installments:
                                type: integer
                                example: 1
                                default: 0
                              installments_plan_id: {}
                              first_installment_deferral:
                                type: integer
                                example: 0
                                default: 0
                              installments_type: {}
                              installment_amount: {}
                              installments_total_amount: {}
                              soft_descriptor:
                                type: string
                                example: ''
                              authorization_code:
                                type: string
                                example: '393119'
                              retrieval_reference_number:
                                type: string
                                example: ''
                              acquirer_reference_number:
                                type: string
                                example: ''
                              voucher: {}
                              card_data:
                                type: object
                                properties:
                                  holder_name:
                                    type: string
                                    example: John Diaz
                                  iin:
                                    type: string
                                    example: '45130761'
                                  lfd:
                                    type: string
                                    example: '5348'
                                  number_length:
                                    type: integer
                                    example: 16
                                    default: 0
                                  security_code_length:
                                    type: integer
                                    example: 3
                                    default: 0
                                  brand:
                                    type: string
                                    example: VISA
                                  issuer_name:
                                    type: string
                                    example: BANCOLOMBIA
                                  issuer_code: {}
                                  country_code:
                                    type: string
                                    example: CO
                                  category:
                                    type: string
                                    example: CLASSIC
                                  type:
                                    type: string
                                    example: CREDIT
                                  fingerprint:
                                    type: string
                                    example: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                                  expiration_month:
                                    type: integer
                                    example: 6
                                    default: 0
                                  expiration_year:
                                    type: integer
                                    example: 26
                                    default: 0
                              stored_credentials:
                                type: object
                                properties:
                                  reason: {}
                                  usage: {}
                                  subscription_agreement_id: {}
                                  network_transaction_id: {}
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 1b9ef2f7-b69e-4dd0-b0a1-3605dfc2ad2f
                      merchant_customer_id:
                        type: string
                        example: 6a1b6e7e0e104f28929015fd6182e9f9
                      first_name:
                        type: string
                        example: Margarita
                      last_name:
                        type: string
                        example: Parra
                      gender:
                        type: string
                        example: NB
                      date_of_birth:
                        type: string
                        example: '1952-02-27'
                      email:
                        type: string
                        example: qpacheco@example.com
                      nationality:
                        type: string
                        example: AR
                      ip_address:
                        type: string
                        example: 205.52.88.44
                      device_fingerprint:
                        type: string
                        example: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                      device_fingerprints:
                        type: array
                        items:
                          type: object
                          properties:
                            provider_id:
                              type: string
                              example: DEFAULT
                            id:
                              type: string
                              example: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                      browser_info:
                        type: object
                        properties:
                          user_agent:
                            type: string
                            example: Chrome
                          accept_header:
                            type: string
                            example: 'true'
                          accept_content:
                            type: string
                            example: 'true'
                          accept_browser:
                            type: string
                            example: 'true'
                          color_depth:
                            type: string
                            example: red
                          screen_height:
                            type: string
                            example: '500'
                          screen_width:
                            type: string
                            example: '100'
                          javascript_enabled:
                            type: boolean
                            example: true
                            default: true
                          java_enabled:
                            type: boolean
                            example: true
                            default: true
                          browser_time_difference:
                            type: string
                            example: '-3:00'
                          language:
                            type: string
                            example: es
                          platform: {}
                      document:
                        type: object
                        properties:
                          document_type:
                            type: string
                            example: DNI
                          document_number:
                            type: string
                            example: '82183204'
                      phone:
                        type: object
                        properties:
                          number:
                            type: string
                            example: '91112345678'
                          country_code:
                            type: string
                            example: '54'
                      billing_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: Avenida Putumayo 1780
                          address_line_2:
                            type: string
                            example: Diagonal 181G 6572
                          country:
                            type: string
                            example: AR
                          state:
                            type: string
                            example: Álava
                          city:
                            type: string
                            example: Suárez
                          zip_code:
                            type: string
                            example: '25207'
                          neighborhood:
                            type: string
                            example: Barrio Núñez
                      shipping_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: Diagonal 61 2487
                          address_line_2:
                            type: string
                            example: Av. carrera 54 7627
                          country:
                            type: string
                            example: AR
                          state:
                            type: string
                            example: Guipúzcoa
                          city:
                            type: string
                            example: San Benito
                          zip_code:
                            type: string
                            example: '31718'
                          neighborhood:
                            type: string
                            example: Villa La Esperanza
                      merchant_customer_created_at:
                        type: string
                        example: '2025-11-26T20:34:06.941Z'
                      geolocation:
                        type: object
                        properties:
                          latitude:
                            type: string
                            example: '80.00'
                          longitude:
                            type: string
                            example: '103.00'
                  additional_data:
                    type: object
                    properties:
                      airline:
                        type: object
                        properties:
                          pnr:
                            type: string
                            example: ABC123
                          legs:
                            type: array
                            items:
                              type: object
                              properties:
                                order: {}
                                route_order: {}
                                passenger_id: {}
                                departure_airport:
                                  type: string
                                  example: JFK
                                departure_datetime:
                                  type: string
                                  example: '2024-07-03T05:00:00'
                                departure_airport_timezone:
                                  type: string
                                  example: GMT-05
                                arrival_airport:
                                  type: string
                                  example: LAX
                                arrival_airport_timezone:
                                  type: string
                                  example: '+00:00'
                                arrival_datetime:
                                  type: string
                                  example: '2030-07-03T22:59:00'
                                carrier_code:
                                  type: string
                                  example: AA
                                carrier_name:
                                  type: string
                                  example: American Airlines
                                flight_number:
                                  type: string
                                  example: '123'
                                fare_basis_code:
                                  type: string
                                  example: 'Y'
                                fare_class_code:
                                  type: string
                                  example: S
                                base_fare:
                                  type: integer
                                  example: 1800
                                  default: 0
                                base_fare_currency:
                                  type: string
                                  example: USD
                                stopover_code:
                                  type: string
                                  example: O
                                departure_airport_country:
                                  type: string
                                  example: NL
                                departure_airport_city:
                                  type: string
                                  example: Amsterdam
                                arrival_airport_country:
                                  type: string
                                  example: AR
                                arrival_airport_city:
                                  type: string
                                  example: Buenos aires
                                expedited_boarding: {}
                                extra_baggage: {}
                                purchased_meals: {}
                                selected_seat: {}
                          passengers:
                            type: array
                            items:
                              type: object
                              properties:
                                id: {}
                                first_name:
                                  type: string
                                  example: Antonio
                                last_name:
                                  type: string
                                  example: Vargas
                                middle_name:
                                  type: string
                                  example: Piedad
                                type:
                                  type: string
                                  example: A
                                date_of_birth:
                                  type: string
                                  example: '1999-12-17'
                                nationality:
                                  type: string
                                  example: US
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: DNI
                                    document_number:
                                      type: string
                                      example: '82183204'
                                country:
                                  type: string
                                  example: CO
                                loyalty_number:
                                  type: string
                                  example: '79250001'
                                loyalty_tier:
                                  type: string
                                  example: DIAMOND
                                email:
                                  type: string
                                  example: anaarias@example.com
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '91112345678'
                                    country_code:
                                      type: string
                                      example: '54'
                                address: {}
                                evidence_document_source: {}
                          type: {}
                          ticket:
                            type: object
                            properties:
                              ticket_number:
                                type: string
                                example: BRB0001
                              passenger_id: {}
                              e_ticket:
                                type: boolean
                                example: true
                                default: true
                              restricted:
                                type: boolean
                                example: false
                                default: true
                              total_fare_amount:
                                type: integer
                                example: 2000
                                default: 0
                              total_tax_amount:
                                type: integer
                                example: 180
                                default: 0
                              total_fee_amount:
                                type: integer
                                example: 20
                                default: 0
                              issue:
                                type: object
                                properties:
                                  carrier_prefix_code:
                                    type: string
                                    example: AA
                                  travel_agent_code:
                                    type: string
                                    example: A12345
                                  travel_agent_name:
                                    type: string
                                    example: TRAVEL AGENCY
                                  date:
                                    type: string
                                    example: '2023-10-31'
                                  address:
                                    type: string
                                    example: 123 Main St
                                  city:
                                    type: string
                                    example: New York
                                  country:
                                    type: string
                                    example: US
                                  zip_code:
                                    type: string
                                    example: '10001'
                                  booking_system_code:
                                    type: string
                                    example: 1G
                                  booking_system_name:
                                    type: string
                                    example: Galileo
                          tickets:
                            type: array
                            items:
                              type: object
                              properties:
                                ticket_number:
                                  type: string
                                  example: BRB0001
                                passenger_id: {}
                                e_ticket:
                                  type: boolean
                                  example: true
                                  default: true
                                restricted:
                                  type: boolean
                                  example: false
                                  default: true
                                total_fare_amount:
                                  type: integer
                                  example: 2000
                                  default: 0
                                total_tax_amount:
                                  type: integer
                                  example: 180
                                  default: 0
                                total_fee_amount:
                                  type: integer
                                  example: 20
                                  default: 0
                                issue:
                                  type: object
                                  properties:
                                    carrier_prefix_code:
                                      type: string
                                      example: AA
                                    travel_agent_code:
                                      type: string
                                      example: A12345
                                    travel_agent_name:
                                      type: string
                                      example: TRAVEL AGENCY
                                    date:
                                      type: string
                                      example: '2023-10-31'
                                    address:
                                      type: string
                                      example: 123 Main St
                                    city:
                                      type: string
                                      example: New York
                                    country:
                                      type: string
                                      example: US
                                    zip_code:
                                      type: string
                                      example: '10001'
                                    booking_system_code:
                                      type: string
                                      example: 1G
                                    booking_system_name:
                                      type: string
                                      example: Galileo
                      transportations: {}
                      order:
                        type: object
                        properties:
                          fee_amount:
                            type: integer
                            example: 1
                            default: 0
                          shipping_amount:
                            type: integer
                            example: 3
                            default: 0
                          tip_amount:
                            type: integer
                            example: 2
                            default: 0
                          items:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: '97029'
                                name:
                                  type: string
                                  example: SKIRT
                                quantity:
                                  type: integer
                                  example: 3
                                  default: 0
                                unit_amount:
                                  type: integer
                                  example: 2000
                                  default: 0
                                category:
                                  type: string
                                  example: OTHERS
                                brand:
                                  type: string
                                  example: Barrera Group
                                sku_code:
                                  type: string
                                  example: SC-01905
                                manufacture_part_number:
                                  type: string
                                  example: MPN-70919
                          taxes:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                  example: VAT
                                tax_base:
                                  type: integer
                                  example: 100
                                  default: 0
                                value:
                                  type: integer
                                  example: 10
                                  default: 0
                                percentage:
                                  type: integer
                                  example: 10
                                  default: 0
                          shipping:
                            type: object
                            properties:
                              type:
                                type: string
                                example: ELECTRONIC
                              description:
                                type: string
                                example: q4O6W8x8ONwpbgHjlxlz
                              carrier:
                                type: string
                                example: AR_OCA
                              deliver_at:
                                type: string
                                example: '2025-11-26T20:34:07.500866Z'
                              recipients:
                                type: array
                                items:
                                  type: object
                                  properties: {}
                          account_funding:
                            type: object
                            properties:
                              sender:
                                type: object
                                properties:
                                  national_entity: {}
                                  first_name:
                                    type: string
                                    example: Reinaldo
                                  last_name:
                                    type: string
                                    example: Rojas
                                  legal_name: {}
                                  email: {}
                                  country: {}
                                  date_of_birth: {}
                                  document: {}
                                  phone: {}
                                  address: {}
                              beneficiary:
                                type: object
                                properties:
                                  national_entity: {}
                                  first_name:
                                    type: string
                                    example: Leidy
                                  last_name:
                                    type: string
                                    example: González
                                  legal_name: {}
                                  email: {}
                                  country:
                                    type: string
                                    example: AR
                                  date_of_birth:
                                    type: string
                                    example: '1983-12-07'
                                  document: {}
                                  phone:
                                    type: object
                                    properties:
                                      number:
                                        type: string
                                        example: '91112345678'
                                      country_code:
                                        type: string
                                        example: '54'
                                  address:
                                    type: object
                                    properties:
                                      address_line_1:
                                        type: string
                                        example: Calle 4ª 3050
                                      address_line_2:
                                        type: string
                                        example: Carrera 98 6425
                                      country:
                                        type: string
                                        example: AR
                                      city:
                                        type: string
                                        example: ''
                                      zip_code:
                                        type: string
                                        example: ''
                                      neighborhood:
                                        type: string
                                        example: Barrio Colegiales
                          tickets:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 57bfc6e7-c270-4fcc-a578-a76e6eaa4576
                                name:
                                  type: string
                                  example: Ticket vitae
                                description:
                                  type: string
                                  example: Description 4I%n
                                type:
                                  type: string
                                  example: VIRTUAL
                                amount:
                                  type: object
                                  properties:
                                    value:
                                      type: integer
                                      example: 2000
                                      default: 0
                                    currency:
                                      type: string
                                      example: ARS
                                event:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: 3e9d0621-e8ca-4415-9025-95d568cac569
                                    name:
                                      type: string
                                      example: Event doloremque
                                    description:
                                      type: string
                                      example: Description ipsam
                                    type:
                                      type: string
                                      example: CIRCUS
                                    date:
                                      type: string
                                      example: '2025-11-26'
                                    address:
                                      type: object
                                      properties:
                                        address_line_1:
                                          type: string
                                          example: Diagonal 33 2395
                                        address_line_2:
                                          type: string
                                          example: Cl. 112E 6497
                                        city:
                                          type: string
                                          example: Paz de Ariporo
                                        country:
                                          type: string
                                          example: AR
                                        state:
                                          type: string
                                          example: Lleida
                                        zip_code:
                                          type: string
                                          example: '18124'
                                        neighborhood:
                                          type: string
                                          example: Conjunto Los Laureles
                          fulfillment: {}
                          discounts:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - MERCHANT
                                    - YUNO_PROMOTION
                                  description: The type of the discount line. Present when the payment carries a Yuno promotion.
                                quote_id:
                                  type: string
                                  description: The promotion quote id. `YUNO_PROMOTION` lines only.
                                id:
                                  type: string
                                  example: 10FF
                                name:
                                  type: string
                                  example: 10% Discount
                                unit_amount:
                                  type: number
                                  example: 10
                                  default: 0
                                  format: float
                                discount_indicator:
                                  type:
                                    - string
                                    - 'null'
                                  description: Whether a discount was applied to the line (`Y` or `N`).
                                discount_rate:
                                  type:
                                    - number
                                    - 'null'
                                  description: The discount rate applied to the line.
                            description: >-
                              The order's discounts. When the payment carries a Yuno promotion, the `YUNO_PROMOTION`
                              line comes first and Yuno fills it; your own lines follow with `type: MERCHANT`.
                          sales_channel:
                            type: string
                            example: marketplace
                      seller_details:
                        type: object
                        properties:
                          name:
                            type: string
                            example: Mendoza-Cerón
                          website:
                            type: string
                            example: http://navarro.info/category/postsregister.html
                          email:
                            type: string
                            example: iospina@example.net
                          address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: Av. calle 5ª 3906
                              address_line_2:
                                type: string
                                example: Dg. 8ª 8965
                              country:
                                type: string
                                example: AR
                              state:
                                type: string
                                example: ARGENTINA
                              city:
                                type: string
                                example: Curití
                              zip_code:
                                type: string
                                example: '15484'
                          reference:
                            type: string
                            example: '39245884'
                          country:
                            type: string
                            example: AR
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '6844503463'
                              country_code:
                                type: string
                                example: '23'
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: DNI
                              document_number:
                                type: string
                                example: '82183204'
                          industry:
                            type: string
                            example: ELECTRONICS
                          merchant_category_code:
                            type: string
                            example: '6628'
                  transactions:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 4a963490-70c2-4669-975a-a6901b4b5abf
                      type:
                        type: string
                        example: CHARGEBACK
                      status:
                        type: string
                        example: CREATED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: integer
                        example: 2000
                        default: 0
                      provider_id:
                        type: string
                        example: BAMBOO
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          parent_payment_method_type: {}
                          detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type: {}
                                  installment_amount: {}
                                  installments_total_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '393119'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: Pepito Perez
                                      iin:
                                        type: string
                                        example: '45130761'
                                      lfd:
                                        type: string
                                        example: '5348'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: BANCOLOMBIA
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: CO
                                      category:
                                        type: string
                                        example: CLASSIC
                                      type:
                                        type: string
                                        example: CREDIT
                                      fingerprint:
                                        type: string
                                        example: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                                      expiration_month:
                                        type: integer
                                        example: 6
                                        default: 0
                                      expiration_year:
                                        type: integer
                                        example: 26
                                        default: 0
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason: {}
                                      usage: {}
                                      subscription_agreement_id: {}
                                      network_transaction_id: {}
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: CHARGEBACK_CREATED
                      reason:
                        type: string
                        example: REQUESTED_BY_CUSTOMER
                      description:
                        type: string
                        example: webhook transaction
                      merchant_reference:
                        type: string
                        example: Reference-ac04c8a6-78c7-4588-b915-5498455369ef
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: BAMBOO
                          transaction_id:
                            type: string
                            example: '121030201030210312'
                          account_id:
                            type: string
                            example: ''
                          status:
                            type: string
                            example: APPROVED
                          sub_status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: ''
                          response_message: {}
                          response_code: {}
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                          iso8583_response_code: {}
                          iso8583_response_message: {}
                          merchant_advice_code: {}
                          merchant_advice_code_message: {}
                          reason_code: {}
                          reason_description: {}
                      connection_data:
                        type: object
                        properties:
                          id: {}
                          name: {}
                      created_at:
                        type: string
                        example: '2025-11-26T20:34:12.529203Z'
                      updated_at:
                        type: string
                        example: '2025-11-26T20:34:12.559289Z'
                      merchant_advice_code: {}
                      merchant_advice_code_message: {}
                  transactions_history: {}
                  split_marketplace:
                    type: array
                    items:
                      type: object
                      properties: {}
                  callback_url:
                    type: string
                    example: https://example.com/callback
                  workflow:
                    type: string
                    example: DIRECT
                  metadata:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: explicabo
                        value:
                          type: string
                          example: nihil
                  fraud_screening: {}
                  payment_link_id:
                    type: string
                    example: ''
                  subscription_code: {}
                  routing_rules:
                    type: object
                    properties:
                      smart_routing:
                        type: boolean
                        example: false
                        default: true
                      monitors:
                        type: boolean
                        example: false
                        default: true
                      condition:
                        type: object
                        properties:
                          id:
                            type: integer
                            example: 64972
                            default: 0
                          name: {}
                          description: {}
                  simplified_mode:
                    type: boolean
                    example: false
                    default: true
      deprecated: false
      tags:
        - Payments
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
    patch:
      summary: Copy of Dispute a chargeback
      description: >-
        Adds evidence to an existing chargeback dispute. The payment must already have a transaction of type CHARGEBACK
        in status CREATED or ADDITIONAL_INFORMATION_REQUIRED; otherwise the API answers 400 INVALID_TRANSACTION. The
        `content` of each file must be valid base64 (maximum 1 MB).
      operationId: post_-payment_id-transactions-transaction_id-dispute
      parameters:
        - name: payment_id
          in: path
          description: The unique identifier of the payment (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: transaction_id
          in: path
          description: The unique identifier of the transaction (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: X-Idempotency-Key
          in: header
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts.
          required: true
          schema:
            type: string
            example: f47ac10b-58cc-4372-a567-0e02b2c3d479
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - evidence
              properties:
                evidence:
                  type: array
                  description: The evidence files object
                  items:
                    type: object
                    properties:
                      file_name:
                        type: string
                        description: The name of the documentation sent (MAX 255; MIN 3).
                      content_type:
                        type: string
                        description: The type of the documentation sent by the merchant
                        enum:
                          - application/pdf
                      content_category:
                        type: string
                        description: The category of the documentation sent by the merchant
                        enum:
                          - CANCEL_POLICY
                          - CUSTOMER_INTERACTION
                          - OTHERS
                          - PAYMENT_DETAIL
                          - PROOF_OF_AUTHENTICITY
                          - PROOF_OF_DELIVERY
                          - PROOF_OF_SERVICE
                          - RECEIPT
                          - REFUND_POLICY
                          - SERVICE_AGREEMENT
                          - TERMS_AND_CONDITIONS
                      content:
                        type: string
                        description: 'The content of the documentation sent by the merchant  encoded in base64. Max size: 1MB.'
                    required:
                      - file_name
                      - content_type
                      - content_category
                      - content
            examples:
              Request Example:
                value:
                  evidence:
                    - content_type: application/pdf
                      file_name: Receipt_AA002
                      content_category: RECEIPT
                      content: JVBERi0xLjQKMSAwIG9iajw8L1R5cGUvQ2F0YWxvZy9QYWdlcyAyIDAgUj4+ZW5kb2JqCjIgMCBvYmo8PC9UeXBlL1BhZ2VzL0tpZHNbXS9Db3VudCAwPj5lbmRvYmoKdHJhaWxlcjw8L1Jvb3QgMSAwIFI+PgolJUVPRgo=
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Success:
                  value:
                    id: b001d824-3f3f-48fc-98ef-a3114b918c1e
                    account_id: 210a524f-7ad3-437a-be7e-9e99bdf4d742
                    description: Test Purchase
                    country: AR
                    status: IN_DISPUTE
                    sub_status: PENDING_REVIEW
                    merchant_order_id: '65742358'
                    created_at: '2025-11-26T20:34:08.330622Z'
                    updated_at: '2025-11-26T20:34:12.580560Z'
                    amount:
                      captured: 0
                      currency: ARS
                      currency_conversion: null
                      refunded: 0
                      value: 2000
                    checkout: null
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: null
                          installment_amount: null
                          installments_total_amount: null
                          soft_descriptor: ''
                          authorization_code: '393119'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Diaz
                            iin: '45130761'
                            lfd: '5348'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: BANCOLOMBIA
                            issuer_code: null
                            country_code: CO
                            category: CLASSIC
                            type: CREDIT
                            fingerprint: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                            expiration_month: 6
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: 1b9ef2f7-b69e-4dd0-b0a1-3605dfc2ad2f
                      merchant_customer_id: 6a1b6e7e0e104f28929015fd6182e9f9
                      first_name: Margarita
                      last_name: Parra
                      gender: NB
                      date_of_birth: '1952-02-27'
                      email: qpacheco@example.com
                      nationality: AR
                      ip_address: 205.52.88.44
                      device_fingerprint: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                      device_fingerprints:
                        - provider_id: DEFAULT
                          id: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                        - provider_id: CLEAR_SALE
                          id: c1c4907c-3339-4217-a4bd-1e9be74b3819
                        - provider_id: CYBERSOURCE
                          id: d5c56387-4d06-479b-b55b-eab81e5211bc
                        - provider_id: OPENPAY
                          id: '89451345904503181146447710703990'
                        - provider_id: MERCADO_PAGO
                          id: armor.cofxzlvhsrpuslf5ychwxvszwaicsanbuub2on7rfuzmyfijppqm8vcziky3h3emxkz3b2aopl04ublu0jufbtwk8sm232fin19btcnd3q1jdpku6cp9ybn8exc2vcuoalosq51bpfefzhsqx4tuythte5jaruh4keo2fcm9r9wwy96s8djk0e5nmsi8z6pfi7e94tsoe7h09s227umko9kyf4p0xanqn
                      browser_info:
                        user_agent: Chrome
                        accept_header: 'true'
                        accept_content: 'true'
                        accept_browser: 'true'
                        color_depth: red
                        screen_height: '500'
                        screen_width: '100'
                        javascript_enabled: true
                        java_enabled: true
                        browser_time_difference: '-3:00'
                        language: es
                        platform: null
                      document:
                        document_type: DNI
                        document_number: '82183204'
                      phone:
                        number: '91112345678'
                        country_code: '54'
                      billing_address:
                        address_line_1: Avenida Putumayo 1780
                        address_line_2: Diagonal 181G 6572
                        country: AR
                        state: Álava
                        city: Suárez
                        zip_code: '25207'
                        neighborhood: Barrio Núñez
                      shipping_address:
                        address_line_1: Diagonal 61 2487
                        address_line_2: Av. carrera 54 7627
                        country: AR
                        state: Guipúzcoa
                        city: San Benito
                        zip_code: '31718'
                        neighborhood: Villa La Esperanza
                      merchant_customer_created_at: '2025-11-26T20:34:06.941Z'
                      geolocation:
                        latitude: '80.00'
                        longitude: '103.00'
                    additional_data:
                      airline:
                        pnr: ABC123
                        legs:
                          - order: null
                            route_order: null
                            passenger_id: null
                            departure_airport: JFK
                            departure_datetime: '2024-07-03T05:00:00'
                            departure_airport_timezone: GMT-05
                            arrival_airport: LAX
                            arrival_airport_timezone: '+00:00'
                            arrival_datetime: '2030-07-03T22:59:00'
                            carrier_code: AA
                            carrier_name: American Airlines
                            flight_number: '123'
                            fare_basis_code: 'Y'
                            fare_class_code: S
                            base_fare: 1800
                            base_fare_currency: USD
                            stopover_code: O
                            departure_airport_country: NL
                            departure_airport_city: Amsterdam
                            arrival_airport_country: AR
                            arrival_airport_city: Buenos aires
                            expedited_boarding: null
                            extra_baggage: null
                            purchased_meals: null
                            selected_seat: null
                        passengers:
                          - id: null
                            first_name: Antonio
                            last_name: Vargas
                            middle_name: Piedad
                            type: A
                            date_of_birth: '1999-12-17'
                            nationality: US
                            document:
                              document_type: DNI
                              document_number: '82183204'
                            country: CO
                            loyalty_number: '79250001'
                            loyalty_tier: DIAMOND
                            email: anaarias@example.com
                            phone:
                              number: '91112345678'
                              country_code: '54'
                            address: null
                            evidence_document_source: null
                          - id: null
                            first_name: Álvaro
                            last_name: Bravo
                            middle_name: Edwin
                            type: C
                            date_of_birth: '1973-07-25'
                            nationality: CO
                            document:
                              document_type: DNI
                              document_number: '82183204'
                            country: CO
                            loyalty_number: '79250002'
                            loyalty_tier: SILVER
                            email: leidysanchez@example.com
                            phone:
                              number: '91112345678'
                              country_code: '54'
                            address: null
                            evidence_document_source: null
                        type: null
                        ticket:
                          ticket_number: BRB0001
                          passenger_id: null
                          e_ticket: true
                          restricted: false
                          total_fare_amount: 2000
                          total_tax_amount: 180
                          total_fee_amount: 20
                          issue:
                            carrier_prefix_code: AA
                            travel_agent_code: A12345
                            travel_agent_name: TRAVEL AGENCY
                            date: '2023-10-31'
                            address: 123 Main St
                            city: New York
                            country: US
                            zip_code: '10001'
                            booking_system_code: 1G
                            booking_system_name: Galileo
                        tickets:
                          - ticket_number: BRB0001
                            passenger_id: null
                            e_ticket: true
                            restricted: false
                            total_fare_amount: 2000
                            total_tax_amount: 180
                            total_fee_amount: 20
                            issue:
                              carrier_prefix_code: AA
                              travel_agent_code: A12345
                              travel_agent_name: TRAVEL AGENCY
                              date: '2023-10-31'
                              address: 123 Main St
                              city: New York
                              country: US
                              zip_code: '10001'
                              booking_system_code: 1G
                              booking_system_name: Galileo
                      transportations: null
                      order:
                        fee_amount: 1
                        shipping_amount: 3
                        tip_amount: 2
                        items:
                          - id: '97029'
                            name: SKIRT
                            quantity: 3
                            unit_amount: 2000
                            category: OTHERS
                            brand: Barrera Group
                            sku_code: SC-01905
                            manufacture_part_number: MPN-70919
                          - id: '61906'
                            name: SKIRT
                            quantity: 1
                            unit_amount: 2000
                            category: OTHERS
                            brand: Suárez-Castellanos
                            sku_code: SC-14444
                            manufacture_part_number: MPN-43825
                        taxes:
                          - type: VAT
                            tax_base: 100
                            value: 10
                            percentage: 10
                        shipping:
                          type: ELECTRONIC
                          description: q4O6W8x8ONwpbgHjlxlz
                          carrier: AR_OCA
                          deliver_at: '2025-11-26T20:34:07.500866Z'
                          recipients: []
                        account_funding:
                          sender:
                            national_entity: null
                            first_name: Reinaldo
                            last_name: Rojas
                            legal_name: null
                            email: null
                            country: null
                            date_of_birth: null
                            document: null
                            phone: null
                            address: null
                          beneficiary:
                            national_entity: null
                            first_name: Leidy
                            last_name: González
                            legal_name: null
                            email: null
                            country: AR
                            date_of_birth: '1983-12-07'
                            document: null
                            phone:
                              number: '91112345678'
                              country_code: '54'
                            address:
                              address_line_1: Calle 4ª 3050
                              address_line_2: Carrera 98 6425
                              country: AR
                              city: ''
                              zip_code: ''
                              neighborhood: Barrio Colegiales
                        tickets:
                          - id: 57bfc6e7-c270-4fcc-a578-a76e6eaa4576
                            name: Ticket vitae
                            description: Description 4I%n
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: 3e9d0621-e8ca-4415-9025-95d568cac569
                              name: Event doloremque
                              description: Description ipsam
                              type: CIRCUS
                              date: '2025-11-26'
                              address:
                                address_line_1: Diagonal 33 2395
                                address_line_2: Cl. 112E 6497
                                city: Paz de Ariporo
                                country: AR
                                state: Lleida
                                zip_code: '18124'
                                neighborhood: Conjunto Los Laureles
                          - id: f842ae67-2f7d-4415-9d9e-9a51d2712c13
                            name: Ticket aspernatur
                            description: Description jS3*
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: af726450-abf5-49d1-b43a-9e65f88d606e
                              name: Event officia
                              description: Description quo
                              type: CIRCUS
                              date: '2025-11-26'
                              address:
                                address_line_1: Tr. 194B 459
                                address_line_2: Cl. 102L Sur 2950
                                city: Moniquirá
                                country: AR
                                state: Segovia
                                zip_code: '31278'
                                neighborhood: Barrio Los Olivos
                          - id: 51100a8e-04ec-45c1-8fea-2fa70a7966d3
                            name: Ticket hic
                            description: Description mR;2
                            type: PHYSICAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: 2164fb39-7be3-46aa-adc9-310eb33b4f05
                              name: Event hic
                              description: Description beatae
                              type: SPORTS
                              date: '2025-11-26'
                              address:
                                address_line_1: Av. Pérez 8882
                                address_line_2: Carrera 23 5900
                                city: Vijes
                                country: AR
                                state: Zamora
                                zip_code: '24300'
                                neighborhood: Barrio El Paraíso
                          - id: 6f465375-0ded-4ac7-848c-39450bff069d
                            name: Ticket totam
                            description: Description t0}E
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: e564bf42-0385-4ad8-a38a-eb481a434cbf
                              name: Event neque
                              description: Description facilis
                              type: OTHERS
                              date: '2025-11-26'
                              address:
                                address_line_1: Avenida carrera 153 3115
                                address_line_2: Cr. 121G Bis 4048
                                city: La Ceja
                                country: AR
                                state: Castellón
                                zip_code: '39464'
                                neighborhood: Conjunto Belgrano
                          - id: b40b5fb7-3a1b-4315-bf01-4ba9b7ef99aa
                            name: Ticket esse
                            description: Description wI2;
                            type: VIRTUAL
                            amount:
                              value: 2000
                              currency: ARS
                            event:
                              id: a4f1f47f-8853-4ac2-b574-6b05d4a611fd
                              name: Event eos
                              description: Description natus
                              type: CINEMA
                              date: '2025-11-26'
                              address:
                                address_line_1: Cr. 6E Bis 3665
                                address_line_2: Carrera 9 Este 1918
                                city: Teorama
                                country: AR
                                state: Madrid
                                zip_code: '32993'
                                neighborhood: Villa Las Flores
                        fulfillment: null
                        discounts:
                          - id: 10FF
                            name: 10% Discount
                            unit_amount: 10
                        sales_channel: marketplace
                      seller_details:
                        name: Mendoza-Cerón
                        website: http://navarro.info/category/postsregister.html
                        email: iospina@example.net
                        address:
                          address_line_1: Av. calle 5ª 3906
                          address_line_2: Dg. 8ª 8965
                          country: AR
                          state: ARGENTINA
                          city: Curití
                          zip_code: '15484'
                        reference: '39245884'
                        country: AR
                        phone:
                          number: '6844503463'
                          country_code: '23'
                        document:
                          document_type: DNI
                          document_number: '82183204'
                        industry: ELECTRONICS
                        merchant_category_code: '6628'
                    transactions:
                      id: 4a963490-70c2-4669-975a-a6901b4b5abf
                      type: CHARGEBACK
                      status: CREATED
                      category: CARD
                      amount: 2000
                      provider_id: BAMBOO
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: null
                            installment_amount: null
                            installments_total_amount: null
                            soft_descriptor: ''
                            authorization_code: '393119'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: Pepito Perez
                              iin: '45130761'
                              lfd: '5348'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: BANCOLOMBIA
                              issuer_code: null
                              country_code: CO
                              category: CLASSIC
                              type: CREDIT
                              fingerprint: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                              expiration_month: 6
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: CHARGEBACK_CREATED
                      reason: REQUESTED_BY_CUSTOMER
                      description: webhook transaction
                      merchant_reference: Reference-ac04c8a6-78c7-4588-b915-5498455369ef
                      provider_data:
                        id: BAMBOO
                        transaction_id: '121030201030210312'
                        account_id: ''
                        status: APPROVED
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: null
                        raw_response: null
                        third_party_transaction_id: null
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                        reason_code: null
                        reason_description: null
                      connection_data:
                        id: null
                        name: null
                      created_at: '2025-11-26T20:34:12.529203Z'
                      updated_at: '2025-11-26T20:34:12.559289Z'
                      merchant_advice_code: null
                      merchant_advice_code_message: null
                    transactions_history: null
                    split_marketplace: []
                    callback_url: https://example.com/callback
                    workflow: DIRECT
                    metadata:
                      - key: explicabo
                        value: nihil
                      - key: quas
                        value: veritatis
                      - key: numquam
                        value: placeat
                      - key: eos
                        value: quo
                      - key: corrupti
                        value: eveniet
                      - key: occaecati
                        value: consectetur
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 64972
                        name: null
                        description: null
                    simplified_mode: false
                  summary: Success
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: b001d824-3f3f-48fc-98ef-a3114b918c1e
                  account_id:
                    type: string
                    example: 210a524f-7ad3-437a-be7e-9e99bdf4d742
                  description:
                    type: string
                    example: Test Purchase
                  country:
                    type: string
                    example: AR
                  status:
                    type: string
                    example: IN_DISPUTE
                  sub_status:
                    type: string
                    example: PENDING_REVIEW
                  merchant_order_id:
                    type: string
                    example: '65742358'
                  created_at:
                    type: string
                    example: '2025-11-26T20:34:08.330622Z'
                  updated_at:
                    type: string
                    example: '2025-11-26T20:34:12.580560Z'
                  amount:
                    type: object
                    properties:
                      captured:
                        type: integer
                        example: 0
                        default: 0
                      currency:
                        type: string
                        example: ARS
                      currency_conversion: {}
                      refunded:
                        type: integer
                        example: 0
                        default: 0
                      value:
                        type: integer
                        example: 2000
                        default: 0
                  discount_amount:
                    type: object
                    description: >-
                      The total discount of the Yuno promotion applied to the payment: the sum of the `YUNO_PROMOTION`
                      lines of `additional_data.order.discounts`. Absent when no promotion applied. The amount charged
                      is `amount.value` minus this value, and it is on `transactions.amount`. See
                      [Promotions](/docs/payment-features/promotions).
                    properties:
                      currency:
                        type: string
                        description: The currency of the discount, the same as `amount.currency`.
                      value:
                        type: number
                        description: The discount.
                  checkout: {}
                  payment_method:
                    type: object
                    properties:
                      vaulted_token:
                        type: string
                        example: ''
                      type:
                        type: string
                        example: CARD
                      vault_on_success:
                        type: boolean
                        example: false
                        default: true
                      token:
                        type: string
                        example: ''
                      parent_payment_method_type: {}
                      payment_method_detail:
                        type: object
                        properties:
                          card:
                            type: object
                            properties:
                              verify:
                                type: boolean
                                example: false
                                default: true
                              capture:
                                type: boolean
                                example: false
                                default: true
                              installments:
                                type: integer
                                example: 1
                                default: 0
                              installments_plan_id: {}
                              first_installment_deferral:
                                type: integer
                                example: 0
                                default: 0
                              installments_type: {}
                              installment_amount: {}
                              installments_total_amount: {}
                              soft_descriptor:
                                type: string
                                example: ''
                              authorization_code:
                                type: string
                                example: '393119'
                              retrieval_reference_number:
                                type: string
                                example: ''
                              acquirer_reference_number:
                                type: string
                                example: ''
                              voucher: {}
                              card_data:
                                type: object
                                properties:
                                  holder_name:
                                    type: string
                                    example: John Diaz
                                  iin:
                                    type: string
                                    example: '45130761'
                                  lfd:
                                    type: string
                                    example: '5348'
                                  number_length:
                                    type: integer
                                    example: 16
                                    default: 0
                                  security_code_length:
                                    type: integer
                                    example: 3
                                    default: 0
                                  brand:
                                    type: string
                                    example: VISA
                                  issuer_name:
                                    type: string
                                    example: BANCOLOMBIA
                                  issuer_code: {}
                                  country_code:
                                    type: string
                                    example: CO
                                  category:
                                    type: string
                                    example: CLASSIC
                                  type:
                                    type: string
                                    example: CREDIT
                                  fingerprint:
                                    type: string
                                    example: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                                  expiration_month:
                                    type: integer
                                    example: 6
                                    default: 0
                                  expiration_year:
                                    type: integer
                                    example: 26
                                    default: 0
                              stored_credentials:
                                type: object
                                properties:
                                  reason: {}
                                  usage: {}
                                  subscription_agreement_id: {}
                                  network_transaction_id: {}
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 1b9ef2f7-b69e-4dd0-b0a1-3605dfc2ad2f
                      merchant_customer_id:
                        type: string
                        example: 6a1b6e7e0e104f28929015fd6182e9f9
                      first_name:
                        type: string
                        example: Margarita
                      last_name:
                        type: string
                        example: Parra
                      gender:
                        type: string
                        example: NB
                      date_of_birth:
                        type: string
                        example: '1952-02-27'
                      email:
                        type: string
                        example: qpacheco@example.com
                      nationality:
                        type: string
                        example: AR
                      ip_address:
                        type: string
                        example: 205.52.88.44
                      device_fingerprint:
                        type: string
                        example: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                      device_fingerprints:
                        type: array
                        items:
                          type: object
                          properties:
                            provider_id:
                              type: string
                              example: DEFAULT
                            id:
                              type: string
                              example: 90ede54c-d2d4-4e2e-8189-6b81091231b0
                      browser_info:
                        type: object
                        properties:
                          user_agent:
                            type: string
                            example: Chrome
                          accept_header:
                            type: string
                            example: 'true'
                          accept_content:
                            type: string
                            example: 'true'
                          accept_browser:
                            type: string
                            example: 'true'
                          color_depth:
                            type: string
                            example: red
                          screen_height:
                            type: string
                            example: '500'
                          screen_width:
                            type: string
                            example: '100'
                          javascript_enabled:
                            type: boolean
                            example: true
                            default: true
                          java_enabled:
                            type: boolean
                            example: true
                            default: true
                          browser_time_difference:
                            type: string
                            example: '-3:00'
                          language:
                            type: string
                            example: es
                          platform: {}
                      document:
                        type: object
                        properties:
                          document_type:
                            type: string
                            example: DNI
                          document_number:
                            type: string
                            example: '82183204'
                      phone:
                        type: object
                        properties:
                          number:
                            type: string
                            example: '91112345678'
                          country_code:
                            type: string
                            example: '54'
                      billing_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: Avenida Putumayo 1780
                          address_line_2:
                            type: string
                            example: Diagonal 181G 6572
                          country:
                            type: string
                            example: AR
                          state:
                            type: string
                            example: Álava
                          city:
                            type: string
                            example: Suárez
                          zip_code:
                            type: string
                            example: '25207'
                          neighborhood:
                            type: string
                            example: Barrio Núñez
                      shipping_address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: Diagonal 61 2487
                          address_line_2:
                            type: string
                            example: Av. carrera 54 7627
                          country:
                            type: string
                            example: AR
                          state:
                            type: string
                            example: Guipúzcoa
                          city:
                            type: string
                            example: San Benito
                          zip_code:
                            type: string
                            example: '31718'
                          neighborhood:
                            type: string
                            example: Villa La Esperanza
                      merchant_customer_created_at:
                        type: string
                        example: '2025-11-26T20:34:06.941Z'
                      geolocation:
                        type: object
                        properties:
                          latitude:
                            type: string
                            example: '80.00'
                          longitude:
                            type: string
                            example: '103.00'
                  additional_data:
                    type: object
                    properties:
                      airline:
                        type: object
                        properties:
                          pnr:
                            type: string
                            example: ABC123
                          legs:
                            type: array
                            items:
                              type: object
                              properties:
                                order: {}
                                route_order: {}
                                passenger_id: {}
                                departure_airport:
                                  type: string
                                  example: JFK
                                departure_datetime:
                                  type: string
                                  example: '2024-07-03T05:00:00'
                                departure_airport_timezone:
                                  type: string
                                  example: GMT-05
                                arrival_airport:
                                  type: string
                                  example: LAX
                                arrival_airport_timezone:
                                  type: string
                                  example: '+00:00'
                                arrival_datetime:
                                  type: string
                                  example: '2030-07-03T22:59:00'
                                carrier_code:
                                  type: string
                                  example: AA
                                carrier_name:
                                  type: string
                                  example: American Airlines
                                flight_number:
                                  type: string
                                  example: '123'
                                fare_basis_code:
                                  type: string
                                  example: 'Y'
                                fare_class_code:
                                  type: string
                                  example: S
                                base_fare:
                                  type: integer
                                  example: 1800
                                  default: 0
                                base_fare_currency:
                                  type: string
                                  example: USD
                                stopover_code:
                                  type: string
                                  example: O
                                departure_airport_country:
                                  type: string
                                  example: NL
                                departure_airport_city:
                                  type: string
                                  example: Amsterdam
                                arrival_airport_country:
                                  type: string
                                  example: AR
                                arrival_airport_city:
                                  type: string
                                  example: Buenos aires
                                expedited_boarding: {}
                                extra_baggage: {}
                                purchased_meals: {}
                                selected_seat: {}
                          passengers:
                            type: array
                            items:
                              type: object
                              properties:
                                id: {}
                                first_name:
                                  type: string
                                  example: Antonio
                                last_name:
                                  type: string
                                  example: Vargas
                                middle_name:
                                  type: string
                                  example: Piedad
                                type:
                                  type: string
                                  example: A
                                date_of_birth:
                                  type: string
                                  example: '1999-12-17'
                                nationality:
                                  type: string
                                  example: US
                                document:
                                  type: object
                                  properties:
                                    document_type:
                                      type: string
                                      example: DNI
                                    document_number:
                                      type: string
                                      example: '82183204'
                                country:
                                  type: string
                                  example: CO
                                loyalty_number:
                                  type: string
                                  example: '79250001'
                                loyalty_tier:
                                  type: string
                                  example: DIAMOND
                                email:
                                  type: string
                                  example: anaarias@example.com
                                phone:
                                  type: object
                                  properties:
                                    number:
                                      type: string
                                      example: '91112345678'
                                    country_code:
                                      type: string
                                      example: '54'
                                address: {}
                                evidence_document_source: {}
                          type: {}
                          ticket:
                            type: object
                            properties:
                              ticket_number:
                                type: string
                                example: BRB0001
                              passenger_id: {}
                              e_ticket:
                                type: boolean
                                example: true
                                default: true
                              restricted:
                                type: boolean
                                example: false
                                default: true
                              total_fare_amount:
                                type: integer
                                example: 2000
                                default: 0
                              total_tax_amount:
                                type: integer
                                example: 180
                                default: 0
                              total_fee_amount:
                                type: integer
                                example: 20
                                default: 0
                              issue:
                                type: object
                                properties:
                                  carrier_prefix_code:
                                    type: string
                                    example: AA
                                  travel_agent_code:
                                    type: string
                                    example: A12345
                                  travel_agent_name:
                                    type: string
                                    example: TRAVEL AGENCY
                                  date:
                                    type: string
                                    example: '2023-10-31'
                                  address:
                                    type: string
                                    example: 123 Main St
                                  city:
                                    type: string
                                    example: New York
                                  country:
                                    type: string
                                    example: US
                                  zip_code:
                                    type: string
                                    example: '10001'
                                  booking_system_code:
                                    type: string
                                    example: 1G
                                  booking_system_name:
                                    type: string
                                    example: Galileo
                          tickets:
                            type: array
                            items:
                              type: object
                              properties:
                                ticket_number:
                                  type: string
                                  example: BRB0001
                                passenger_id: {}
                                e_ticket:
                                  type: boolean
                                  example: true
                                  default: true
                                restricted:
                                  type: boolean
                                  example: false
                                  default: true
                                total_fare_amount:
                                  type: integer
                                  example: 2000
                                  default: 0
                                total_tax_amount:
                                  type: integer
                                  example: 180
                                  default: 0
                                total_fee_amount:
                                  type: integer
                                  example: 20
                                  default: 0
                                issue:
                                  type: object
                                  properties:
                                    carrier_prefix_code:
                                      type: string
                                      example: AA
                                    travel_agent_code:
                                      type: string
                                      example: A12345
                                    travel_agent_name:
                                      type: string
                                      example: TRAVEL AGENCY
                                    date:
                                      type: string
                                      example: '2023-10-31'
                                    address:
                                      type: string
                                      example: 123 Main St
                                    city:
                                      type: string
                                      example: New York
                                    country:
                                      type: string
                                      example: US
                                    zip_code:
                                      type: string
                                      example: '10001'
                                    booking_system_code:
                                      type: string
                                      example: 1G
                                    booking_system_name:
                                      type: string
                                      example: Galileo
                      transportations: {}
                      order:
                        type: object
                        properties:
                          fee_amount:
                            type: integer
                            example: 1
                            default: 0
                          shipping_amount:
                            type: integer
                            example: 3
                            default: 0
                          tip_amount:
                            type: integer
                            example: 2
                            default: 0
                          items:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: '97029'
                                name:
                                  type: string
                                  example: SKIRT
                                quantity:
                                  type: integer
                                  example: 3
                                  default: 0
                                unit_amount:
                                  type: integer
                                  example: 2000
                                  default: 0
                                category:
                                  type: string
                                  example: OTHERS
                                brand:
                                  type: string
                                  example: Barrera Group
                                sku_code:
                                  type: string
                                  example: SC-01905
                                manufacture_part_number:
                                  type: string
                                  example: MPN-70919
                          taxes:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                  example: VAT
                                tax_base:
                                  type: integer
                                  example: 100
                                  default: 0
                                value:
                                  type: integer
                                  example: 10
                                  default: 0
                                percentage:
                                  type: integer
                                  example: 10
                                  default: 0
                          shipping:
                            type: object
                            properties:
                              type:
                                type: string
                                example: ELECTRONIC
                              description:
                                type: string
                                example: q4O6W8x8ONwpbgHjlxlz
                              carrier:
                                type: string
                                example: AR_OCA
                              deliver_at:
                                type: string
                                example: '2025-11-26T20:34:07.500866Z'
                              recipients:
                                type: array
                                items:
                                  type: object
                                  properties: {}
                          account_funding:
                            type: object
                            properties:
                              sender:
                                type: object
                                properties:
                                  national_entity: {}
                                  first_name:
                                    type: string
                                    example: Reinaldo
                                  last_name:
                                    type: string
                                    example: Rojas
                                  legal_name: {}
                                  email: {}
                                  country: {}
                                  date_of_birth: {}
                                  document: {}
                                  phone: {}
                                  address: {}
                              beneficiary:
                                type: object
                                properties:
                                  national_entity: {}
                                  first_name:
                                    type: string
                                    example: Leidy
                                  last_name:
                                    type: string
                                    example: González
                                  legal_name: {}
                                  email: {}
                                  country:
                                    type: string
                                    example: AR
                                  date_of_birth:
                                    type: string
                                    example: '1983-12-07'
                                  document: {}
                                  phone:
                                    type: object
                                    properties:
                                      number:
                                        type: string
                                        example: '91112345678'
                                      country_code:
                                        type: string
                                        example: '54'
                                  address:
                                    type: object
                                    properties:
                                      address_line_1:
                                        type: string
                                        example: Calle 4ª 3050
                                      address_line_2:
                                        type: string
                                        example: Carrera 98 6425
                                      country:
                                        type: string
                                        example: AR
                                      city:
                                        type: string
                                        example: ''
                                      zip_code:
                                        type: string
                                        example: ''
                                      neighborhood:
                                        type: string
                                        example: Barrio Colegiales
                          tickets:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: 57bfc6e7-c270-4fcc-a578-a76e6eaa4576
                                name:
                                  type: string
                                  example: Ticket vitae
                                description:
                                  type: string
                                  example: Description 4I%n
                                type:
                                  type: string
                                  example: VIRTUAL
                                amount:
                                  type: object
                                  properties:
                                    value:
                                      type: integer
                                      example: 2000
                                      default: 0
                                    currency:
                                      type: string
                                      example: ARS
                                event:
                                  type: object
                                  properties:
                                    id:
                                      type: string
                                      example: 3e9d0621-e8ca-4415-9025-95d568cac569
                                    name:
                                      type: string
                                      example: Event doloremque
                                    description:
                                      type: string
                                      example: Description ipsam
                                    type:
                                      type: string
                                      example: CIRCUS
                                    date:
                                      type: string
                                      example: '2025-11-26'
                                    address:
                                      type: object
                                      properties:
                                        address_line_1:
                                          type: string
                                          example: Diagonal 33 2395
                                        address_line_2:
                                          type: string
                                          example: Cl. 112E 6497
                                        city:
                                          type: string
                                          example: Paz de Ariporo
                                        country:
                                          type: string
                                          example: AR
                                        state:
                                          type: string
                                          example: Lleida
                                        zip_code:
                                          type: string
                                          example: '18124'
                                        neighborhood:
                                          type: string
                                          example: Conjunto Los Laureles
                          fulfillment: {}
                          discounts:
                            type: array
                            items:
                              type: object
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - MERCHANT
                                    - YUNO_PROMOTION
                                  description: The type of the discount line. Present when the payment carries a Yuno promotion.
                                quote_id:
                                  type: string
                                  description: The promotion quote id. `YUNO_PROMOTION` lines only.
                                id:
                                  type: string
                                  example: 10FF
                                name:
                                  type: string
                                  example: 10% Discount
                                unit_amount:
                                  type: number
                                  example: 10
                                  default: 0
                                  format: float
                                discount_indicator:
                                  type:
                                    - string
                                    - 'null'
                                  description: Whether a discount was applied to the line (`Y` or `N`).
                                discount_rate:
                                  type:
                                    - number
                                    - 'null'
                                  description: The discount rate applied to the line.
                            description: >-
                              The order's discounts. When the payment carries a Yuno promotion, the `YUNO_PROMOTION`
                              line comes first and Yuno fills it; your own lines follow with `type: MERCHANT`.
                          sales_channel:
                            type: string
                            example: marketplace
                      seller_details:
                        type: object
                        properties:
                          name:
                            type: string
                            example: Mendoza-Cerón
                          website:
                            type: string
                            example: http://navarro.info/category/postsregister.html
                          email:
                            type: string
                            example: iospina@example.net
                          address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: Av. calle 5ª 3906
                              address_line_2:
                                type: string
                                example: Dg. 8ª 8965
                              country:
                                type: string
                                example: AR
                              state:
                                type: string
                                example: ARGENTINA
                              city:
                                type: string
                                example: Curití
                              zip_code:
                                type: string
                                example: '15484'
                          reference:
                            type: string
                            example: '39245884'
                          country:
                            type: string
                            example: AR
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '6844503463'
                              country_code:
                                type: string
                                example: '23'
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: DNI
                              document_number:
                                type: string
                                example: '82183204'
                          industry:
                            type: string
                            example: ELECTRONICS
                          merchant_category_code:
                            type: string
                            example: '6628'
                  transactions:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 4a963490-70c2-4669-975a-a6901b4b5abf
                      type:
                        type: string
                        example: CHARGEBACK
                      status:
                        type: string
                        example: CREATED
                      category:
                        type: string
                        example: CARD
                      amount:
                        type: integer
                        example: 2000
                        default: 0
                      provider_id:
                        type: string
                        example: BAMBOO
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          parent_payment_method_type: {}
                          detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type: {}
                                  installment_amount: {}
                                  installments_total_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '393119'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: Pepito Perez
                                      iin:
                                        type: string
                                        example: '45130761'
                                      lfd:
                                        type: string
                                        example: '5348'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: BANCOLOMBIA
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: CO
                                      category:
                                        type: string
                                        example: CLASSIC
                                      type:
                                        type: string
                                        example: CREDIT
                                      fingerprint:
                                        type: string
                                        example: 2213e58a-33d7-4bdc-8cbe-4785f683c410
                                      expiration_month:
                                        type: integer
                                        example: 6
                                        default: 0
                                      expiration_year:
                                        type: integer
                                        example: 26
                                        default: 0
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason: {}
                                      usage: {}
                                      subscription_agreement_id: {}
                                      network_transaction_id: {}
                      response_code:
                        type: string
                        example: SUCCEEDED
                      response_message:
                        type: string
                        example: CHARGEBACK_CREATED
                      reason:
                        type: string
                        example: REQUESTED_BY_CUSTOMER
                      description:
                        type: string
                        example: webhook transaction
                      merchant_reference:
                        type: string
                        example: Reference-ac04c8a6-78c7-4588-b915-5498455369ef
                      provider_data:
                        type: object
                        properties:
                          id:
                            type: string
                            example: BAMBOO
                          transaction_id:
                            type: string
                            example: '121030201030210312'
                          account_id:
                            type: string
                            example: ''
                          status:
                            type: string
                            example: APPROVED
                          sub_status:
                            type: string
                            example: ''
                          status_detail:
                            type: string
                            example: ''
                          response_message: {}
                          response_code: {}
                          raw_request:
                            type: object
                            description: >-
                              Obfuscated copy of the request Yuno sent to the provider. Only returned for allowlisted
                              organizations.
                          raw_response: {}
                          third_party_transaction_id: {}
                          third_party_account_id: {}
                          iso8583_response_code: {}
                          iso8583_response_message: {}
                          merchant_advice_code: {}
                          merchant_advice_code_message: {}
                          reason_code: {}
                          reason_description: {}
                      connection_data:
                        type: object
                        properties:
                          id: {}
                          name: {}
                      created_at:
                        type: string
                        example: '2025-11-26T20:34:12.529203Z'
                      updated_at:
                        type: string
                        example: '2025-11-26T20:34:12.559289Z'
                      merchant_advice_code: {}
                      merchant_advice_code_message: {}
                  transactions_history: {}
                  split_marketplace:
                    type: array
                    items:
                      type: object
                      properties: {}
                  callback_url:
                    type: string
                    example: https://example.com/callback
                  workflow:
                    type: string
                    example: DIRECT
                  metadata:
                    type: array
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: explicabo
                        value:
                          type: string
                          example: nihil
                  fraud_screening: {}
                  payment_link_id:
                    type: string
                    example: ''
                  subscription_code: {}
                  routing_rules:
                    type: object
                    properties:
                      smart_routing:
                        type: boolean
                        example: false
                        default: true
                      monitors:
                        type: boolean
                        example: false
                        default: true
                      condition:
                        type: object
                        properties:
                          id:
                            type: integer
                            example: 64972
                            default: 0
                          name: {}
                          description: {}
                  simplified_mode:
                    type: boolean
                    example: false
                    default: true
      deprecated: false
      tags:
        - Payments
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /payments/{id}/transactions/{transaction_id}/refund:
    post:
      summary: Refund Payment
      description: ''
      operationId: refund-payment
      parameters:
        - name: id
          in: path
          description: The unique identifier of the payment (UUID, 36 chars).
          schema:
            type: string
          required: true
        - name: transaction_id
          in: path
          description: The unique identifier of the transaction (UUID, 36 chars).
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
              properties:
                description:
                  type: string
                  description: Description of the refund. (MAX 255; MIN 3).
                reason:
                  type: string
                  description: >-
                    Indicating the reason for the refund. If set, possible values are `DUPLICATE`, `FRAUDULENT`,
                    `REQUESTED_BY_CUSTOMER`, and `REVERSE`. Use `REVERSE` to request an automatic reverse of the
                    recipient funds when a recipient is involved in the transaction.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                    - REVERSE
                merchant_reference:
                  type: string
                  description: Identification of the payment transaction defined by the merchant (MAX 255; MIN 3).
                amount:
                  type: object
                  description: Specifies the amount object for refund. **Only required for partial refunds**.
                  properties:
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payment. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                    value:
                      type: number
                      format: float
                      description: >-
                        The refund amount (multiple of 0.0001). For a zero-decimal currency (for example KRW, JPY, or
                        CLP) the value must be a whole number: see [Amounts and
                        currencies](/docs/basic-concepts/amounts-and-currencies).
                split_marketplace:
                  type: array
                  description: Split marketplace array of objects
                  items:
                    properties:
                      recipient_id:
                        type: string
                        description: >-
                          The unique identifier of the recipient in the Yuno system. <br/> You must provide the
                          [`recipient_id`](/reference/create-recipient-1) (Yuno-generated) or the
                          `provider_recipient_id` (external provider's ID) when creating a payment.
                      provider_recipient_id:
                        type: string
                        description: >-
                          The recipient ID provided by the external payment provider, if applicable. <br/> You must
                          provide the `provider_recipient_id` or the [`recipient_id`](/reference/create-recipients)
                          (Yuno-generated) when creating a payment.
                      description:
                        type: string
                        description: Description for the split. (MAX 255; MIN 3).
                      type:
                        type: string
                        description: The type of split. `recipient_id` is mandatory for `PURCHASE` and `MARKETPLACE`.
                        enum:
                          - PURCHASE
                          - PAYMENTFEE
                          - VAT
                          - COMMISSION
                          - MARKETPLACE
                          - SHIPPING
                      merchant_reference:
                        type: string
                        description: Optional unique identifier for the split transaction (MAX 255; MIN 3).
                      recipient_type:
                        type: string
                        description: The type of recipient for the provider.
                        enum:
                          - MEAL
                          - FOOD
                          - MULTI_BENEFITS
                          - FLEET
                        example: MEAL
                      amount:
                        type: object
                        description: Defines the amount of the split.
                        required:
                          - value
                          - currency
                        properties:
                          value:
                            type: number
                            description: The split amount (multiple of 0.0001).
                            format: float
                          currency:
                            type: string
                            description: >-
                              The currency used to make the payment. For a full list of currency codes, see [Country
                              reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                      liability:
                        type: object
                        description: Optional information regarding the recipient's liability for fees and chargebacks.
                        properties:
                          processing_fee:
                            type: string
                            description: Indicates who will be charged the transaction fee.
                            enum:
                              - MERCHANT
                              - RECIPIENT
                              - SHARED
                          chargebacks:
                            type: boolean
                            description: The recipient is responsible in case of a chargeback.
                    required:
                      - type
                    type: object
                simplified_mode:
                  type: boolean
                  description: >-
                    Determines whether Yuno should automatically attempt to refund a payment after an initial error or
                    decline. When set to `true`, Yuno will retry the process if the first attempt fails. By default,
                    this is set to `false`. Access [Transaction Retries](https://docs.y.uno/docs/transaction-retries)
                    for more details.
                response_additional_data:
                  type: object
                  description: Specifies additional data for required the transaction response
                  properties:
                    receipt:
                      type: boolean
                      description: Indicates if a receipt is necessary for the transaction response
                    receipt_language:
                      type: string
                      description: Indicates the language of the receipt to be generated
                      enum:
                        - ES
                        - EN
                        - PT
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 3).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 3).
                    gender:
                      type: string
                      description: >-
                        The customer's gender (MAX 2; MIN 1). <br/>- M=Male <br/>- F=Female <br/>- NB=Non Binary <br/>-
                        NA=Not applicable <br/>- NK=Not Known <br/>- U=Undefined.
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the `YYYY-MM-DD` format (Length: 10).'
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      required:
                        - document_number
                        - document_type
                      properties:
                        document_number:
                          type: string
                          description: Document number for customer (MAX 40; MIN 3)
                        document_type:
                          type: string
                          description: >-
                            The customer's document type (MAX 6, MIN 2). Access [Document Type
                            List](/reference/country-reference) for more details.
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Specifies the customer's phone object.
                      properties:
                        country_code:
                          type: string
                          description: The country code of the customer's phone (MAX 3; MIN 1).
                        number:
                          type: string
                          description: The customer's phone number, without the country code (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary billing address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary billing address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the billing address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the billing address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the billing address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary shipping address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the shipping address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the shipping address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the shipping address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                payment_method:
                  type: object
                  description: Specifies payment method object for payments.
                  properties:
                    detail:
                      type: object
                      description: Specifies the payment method detail object.
                      properties:
                        bank_transfer:
                          type: object
                          description: Specifies bank transfer payment method details.
                          properties:
                            account_type:
                              type: string
                              description: Type of bank account (MAX 255; MIN 3)
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_name:
                              type: string
                              description: Name of the bank (MAX 255; MIN 3)
                            bank_id:
                              type: string
                              description: ID of the bank (MAX 255; MIN 3)
                            beneficiary_name:
                              type: string
                              description: Name of the account holder (MAX 255; MIN 3)
                            bank_account:
                              type: string
                              description: Bank account number (MAX 255; MIN 3)
                            beneficiary_document_type:
                              type: string
                              description: Document type of the account holder (MAX 255; MIN 3)
                            beneficiary_document:
                              type: string
                              description: Document number of the account holder (MAX 255; MIN 3)
                            reference:
                              type: string
                              description: Reference code for the user (MAX 255; MIN 1)
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
            examples:
              Full Refund:
                value:
                  description: Duplicate
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: AAB01-432245
              Partial Refund:
                value:
                  amount:
                    currency: USD
                    value: 30
                  description: Duplicate transaction
                  reason: REQUESTED_BY_CUSTOMER
                  merchant_reference: US-INV-432245
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Full Refund:
                  value:
                    id: f2d6884a-f737-4565-ae32-ff60b19089e3
                    account_id: ''
                    description: Duplicate
                    country: US
                    status: REFUNDED
                    sub_status: REFUNDED
                    merchant_order_id: AAB01-432245
                    created_at: '2025-04-14T17:51:45.179645Z'
                    updated_at: '2025-04-14T17:52:07.908698Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 30000
                      value: 30000
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: MERCHANT
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '216303'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CHASE BANK USA
                            issuer_code: null
                            country_code: US
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                            expiration_month: 3
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1744653105'
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: john.doe@example.com
                      nationality: US
                      ip_address: 192.168.1.1
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 1234 Elm Street
                        address_line_2: Apt 5B
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 1234 Elm Street
                        address_line_2: Apt 5B
                        country: US
                        state: California
                        city: Los Angeles
                        zip_code: '90001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 5414f862-51e6-433f-a54c-b46b176e87a0
                      type: REFUND
                      status: SUCCEEDED
                      category: CARD
                      amount: 30000
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: MERCHANT
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '216303'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CHASE BANK USA
                              issuer_code: null
                              country_code: US
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                              expiration_month: 3
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: REQUESTED_BY_CUSTOMER
                      description: Test refund
                      merchant_reference: REFUND_001
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 2e5c04d5-4cf7-4d2a-b57a-dd5eb9a687bc
                        account_id: ''
                        status: ''
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: SUCCEEDED
                        raw_request:
                          amount:
                            currency: BRL
                            value: 2100
                          reference: '34343434'
                        raw_response:
                          message: provider response
                        third_party_transaction_id: null
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: 58cc35f4-faef-4107-8e09-d18d60121d38
                        name: Connection name
                      created_at: '2025-04-14T17:52:07.768528Z'
                      updated_at: '2025-04-14T17:52:07.862912Z'
                    transactions_history: null
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules: null
                    simplified_mode: false
                Partial Refund:
                  value:
                    id: b908fd70-9af7-41a6-8e1c-3a5ec78ea88b
                    account_id: ''
                    description: Duplicate transaction
                    country: US
                    status: SUCCEEDED
                    sub_status: PARTIALLY_REFUNDED
                    merchant_order_id: '0000023'
                    created_at: '2025-04-14T17:50:55.936358Z'
                    updated_at: '2025-04-14T17:51:23.347308Z'
                    amount:
                      captured: 0
                      currency: USD
                      currency_conversion: null
                      refunded: 30
                      value: 300
                    checkout:
                      session: ''
                      sdk_action_required: false
                    payment_method:
                      vaulted_token: ''
                      type: CARD
                      vault_on_success: false
                      token: ''
                      parent_payment_method_type: null
                      payment_method_detail:
                        card:
                          verify: false
                          capture: false
                          installments: 1
                          installments_plan_id: null
                          first_installment_deferral: 0
                          installments_type: MERCHANT
                          installment_amount: null
                          soft_descriptor: ''
                          authorization_code: '344836'
                          retrieval_reference_number: ''
                          acquirer_reference_number: ''
                          voucher: null
                          card_data:
                            holder_name: John Doe
                            iin: '41111111'
                            lfd: '1111'
                            number_length: 16
                            security_code_length: 3
                            brand: VISA
                            issuer_name: CHASE BANK USA
                            issuer_code: null
                            country_code: US
                            category: CLASSIC
                            type: DEBIT
                            three_d_secure:
                              version: null
                              electronic_commerce_indicator: null
                              cryptogram: null
                              transaction_id: null
                              directory_server_transaction_id: null
                              pares_status: null
                              acs_id: null
                            fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                            expiration_month: 3
                            expiration_year: 26
                          stored_credentials:
                            reason: null
                            usage: null
                            subscription_agreement_id: null
                            network_transaction_id: null
                    customer_payer:
                      id: null
                      merchant_customer_id: '1744653056'
                      first_name: John
                      last_name: Doe
                      gender: M
                      date_of_birth: '1990-02-28'
                      email: john.doe@example.com
                      nationality: US
                      ip_address: 192.0.2.1
                      device_fingerprint: null
                      device_fingerprints: []
                      browser_info: null
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        number: '5551234567'
                        country_code: '1'
                      billing_address:
                        address_line_1: 456 Maple Ave
                        address_line_2: Apt 12C
                        country: US
                        state: New York
                        city: New York
                        zip_code: '10001'
                        neighborhood: null
                      shipping_address:
                        address_line_1: 456 Maple Ave
                        address_line_2: Apt 12C
                        country: US
                        state: New York
                        city: New York
                        zip_code: '10001'
                        neighborhood: null
                      merchant_customer_created_at: null
                    additional_data: null
                    transactions:
                      id: 3f47548e-a1c9-418e-b899-40d30da9c699
                      type: REFUND
                      status: SUCCEEDED
                      category: CARD
                      amount: 30
                      provider_id: YUNO_TEST_PAYMENT_GW
                      payment_method:
                        vaulted_token: ''
                        type: CARD
                        vault_on_success: false
                        token: ''
                        parent_payment_method_type: null
                        detail:
                          card:
                            verify: false
                            capture: false
                            installments: 1
                            installments_plan_id: null
                            first_installment_deferral: 0
                            installments_type: MERCHANT
                            installment_amount: null
                            soft_descriptor: ''
                            authorization_code: '344836'
                            retrieval_reference_number: ''
                            acquirer_reference_number: ''
                            voucher: null
                            card_data:
                              holder_name: John Doe
                              iin: '41111111'
                              lfd: '1111'
                              number_length: 16
                              security_code_length: 3
                              brand: VISA
                              issuer_name: CHASE BANK USA
                              issuer_code: null
                              country_code: US
                              category: CLASSIC
                              type: DEBIT
                              three_d_secure:
                                version: null
                                electronic_commerce_indicator: null
                                cryptogram: null
                                transaction_id: null
                                directory_server_transaction_id: null
                                pares_status: null
                                acs_id: null
                              fingerprint: d244e20d-43a1-43f7-9b48-0a76423be35e
                              expiration_month: 3
                              expiration_year: 26
                            stored_credentials:
                              reason: null
                              usage: null
                              subscription_agreement_id: null
                              network_transaction_id: null
                      response_code: SUCCEEDED
                      response_message: Transaction successful
                      reason: REQUESTED_BY_CUSTOMER
                      description: Test refund
                      merchant_reference: US-INV-432245
                      provider_data:
                        id: YUNO_TEST_PAYMENT_GW
                        transaction_id: 831017b2-928f-4f19-8f0b-0e0ae14013bd
                        account_id: ''
                        status: ''
                        sub_status: ''
                        status_detail: ''
                        response_message: null
                        response_code: SUCCEEDED
                        raw_response:
                          message: provider response
                        third_party_transaction_id: null
                        third_party_account_id: null
                        iso8583_response_code: null
                        iso8583_response_message: null
                      connection_data:
                        id: 58cc35f4-faef-4107-8e09-d18d60121d38
                        name: Connection name
                      created_at: '2025-04-14T17:51:23.232152Z'
                      updated_at: '2025-04-14T17:51:23.322335Z'
                    transactions_history: null
                    metadata: []
                    fraud_screening: null
                    payment_link_id: ''
                    subscription_code: null
                    routing_rules: null
                    simplified_mode: false
              schema:
                oneOf:
                  - title: Full Refund
                    type: object
                    properties:
                      id:
                        type: string
                        example: f2d6884a-f737-4565-ae32-ff60b19089e3
                      account_id:
                        type: string
                        example: ''
                      description:
                        type: string
                        example: Duplicate
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: REFUNDED
                      sub_status:
                        type: string
                        example: REFUNDED
                      merchant_order_id:
                        type: string
                        example: AAB01-432245
                      created_at:
                        type: string
                        example: '2025-04-14T17:51:45.179645Z'
                      updated_at:
                        type: string
                        example: '2025-04-14T17:52:07.908698Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          currency_conversion: {}
                          refunded:
                            type: integer
                            example: 30000
                            default: 0
                          value:
                            type: integer
                            example: 30000
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          parent_payment_method_type: {}
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '216303'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '41111111'
                                      lfd:
                                        type: string
                                        example: '1111'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: CHASE BANK USA
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: US
                                      category:
                                        type: string
                                        example: CLASSIC
                                      type:
                                        type: string
                                        example: DEBIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                      fingerprint:
                                        type: string
                                        example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                      expiration_month:
                                        type: integer
                                        example: 3
                                        default: 0
                                      expiration_year:
                                        type: integer
                                        example: 26
                                        default: 0
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason: {}
                                      usage: {}
                                      subscription_agreement_id: {}
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1744653105'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.168.1.1
                          device_fingerprint: {}
                          device_fingerprints:
                            type: array
                          browser_info: {}
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1234 Elm Street
                              address_line_2:
                                type: string
                                example: Apt 5B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 1234 Elm Street
                              address_line_2:
                                type: string
                                example: Apt 5B
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: California
                              city:
                                type: string
                                example: Los Angeles
                              zip_code:
                                type: string
                                example: '90001'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 5414f862-51e6-433f-a54c-b46b176e87a0
                          type:
                            type: string
                            example: REFUND
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: integer
                            example: 30000
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              parent_payment_method_type: {}
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '216303'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: CHASE BANK USA
                                          issuer_code: {}
                                          country_code:
                                            type: string
                                            example: US
                                          category:
                                            type: string
                                            example: CLASSIC
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                          fingerprint:
                                            type: string
                                            example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                          expiration_month:
                                            type: integer
                                            example: 3
                                            default: 0
                                          expiration_year:
                                            type: integer
                                            example: 26
                                            default: 0
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason: {}
                                          usage: {}
                                          subscription_agreement_id: {}
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason:
                            type: string
                            example: REQUESTED_BY_CUSTOMER
                          description:
                            type: string
                            example: Test refund
                          merchant_reference:
                            type: string
                            example: REFUND_001
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 2e5c04d5-4cf7-4d2a-b57a-dd5eb9a687bc
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: ''
                              sub_status:
                                type: string
                                example: ''
                              status_detail:
                                type: string
                                example: ''
                              response_message: {}
                              response_code:
                                type: string
                                example: SUCCEEDED
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  message:
                                    type: string
                                    example: provider response
                              third_party_transaction_id: {}
                              third_party_account_id: {}
                              iso8583_response_code: {}
                              iso8583_response_message: {}
                          connection_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 58cc35f4-faef-4107-8e09-d18d60121d38
                              name:
                                type: string
                                example: Connection name
                          created_at:
                            type: string
                            example: '2025-04-14T17:52:07.768528Z'
                          updated_at:
                            type: string
                            example: '2025-04-14T17:52:07.862912Z'
                      transactions_history: {}
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code: {}
                      routing_rules: {}
                      simplified_mode:
                        type: boolean
                        example: false
                        default: true
                  - title: Partial Refund
                    type: object
                    properties:
                      id:
                        type: string
                        example: b908fd70-9af7-41a6-8e1c-3a5ec78ea88b
                      account_id:
                        type: string
                        example: ''
                      description:
                        type: string
                        example: Duplicate transaction
                      country:
                        type: string
                        example: US
                      status:
                        type: string
                        example: SUCCEEDED
                      sub_status:
                        type: string
                        example: PARTIALLY_REFUNDED
                      merchant_order_id:
                        type: string
                        example: '0000023'
                      created_at:
                        type: string
                        example: '2025-04-14T17:50:55.936358Z'
                      updated_at:
                        type: string
                        example: '2025-04-14T17:51:23.347308Z'
                      amount:
                        type: object
                        properties:
                          captured:
                            type: integer
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                          currency_conversion: {}
                          refunded:
                            type: integer
                            example: 30
                            default: 0
                          value:
                            type: integer
                            example: 300
                            default: 0
                      discount_amount:
                        type: object
                        description: >-
                          The total discount of the Yuno promotion applied to the payment: the sum of the
                          `YUNO_PROMOTION` lines of `additional_data.order.discounts`. Absent when no promotion applied.
                          The amount charged is `amount.value` minus this value, and it is on `transactions.amount`. See
                          [Promotions](/docs/payment-features/promotions).
                        properties:
                          currency:
                            type: string
                            description: The currency of the discount, the same as `amount.currency`.
                          value:
                            type: number
                            description: The discount.
                      checkout:
                        type: object
                        properties:
                          session:
                            type: string
                            example: ''
                          sdk_action_required:
                            type: boolean
                            example: false
                            default: true
                      payment_method:
                        type: object
                        properties:
                          vaulted_token:
                            type: string
                            example: ''
                          type:
                            type: string
                            example: CARD
                          vault_on_success:
                            type: boolean
                            example: false
                            default: true
                          token:
                            type: string
                            example: ''
                          parent_payment_method_type: {}
                          payment_method_detail:
                            type: object
                            properties:
                              card:
                                type: object
                                properties:
                                  verify:
                                    type: boolean
                                    example: false
                                    default: true
                                  capture:
                                    type: boolean
                                    example: false
                                    default: true
                                  installments:
                                    type: integer
                                    example: 1
                                    default: 0
                                  installments_plan_id: {}
                                  first_installment_deferral:
                                    type: integer
                                    example: 0
                                    default: 0
                                  installments_type:
                                    type: string
                                    example: ''
                                  installment_amount: {}
                                  soft_descriptor:
                                    type: string
                                    example: ''
                                  authorization_code:
                                    type: string
                                    example: '344836'
                                  retrieval_reference_number:
                                    type: string
                                    example: ''
                                  acquirer_reference_number:
                                    type: string
                                    example: ''
                                  voucher: {}
                                  card_data:
                                    type: object
                                    properties:
                                      holder_name:
                                        type: string
                                        example: John Doe
                                      iin:
                                        type: string
                                        example: '41111111'
                                      lfd:
                                        type: string
                                        example: '1111'
                                      number_length:
                                        type: integer
                                        example: 16
                                        default: 0
                                      security_code_length:
                                        type: integer
                                        example: 3
                                        default: 0
                                      brand:
                                        type: string
                                        example: VISA
                                      issuer_name:
                                        type: string
                                        example: CHASE BANK USA
                                      issuer_code: {}
                                      country_code:
                                        type: string
                                        example: US
                                      category:
                                        type: string
                                        example: CLASSIC
                                      type:
                                        type: string
                                        example: DEBIT
                                      three_d_secure:
                                        type: object
                                        properties:
                                          version: {}
                                          electronic_commerce_indicator: {}
                                          cryptogram: {}
                                          transaction_id: {}
                                          directory_server_transaction_id: {}
                                          pares_status: {}
                                          acs_id: {}
                                      fingerprint:
                                        type: string
                                        example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                      expiration_month:
                                        type: integer
                                        example: 3
                                        default: 0
                                      expiration_year:
                                        type: integer
                                        example: 26
                                        default: 0
                                  stored_credentials:
                                    type: object
                                    properties:
                                      reason: {}
                                      usage: {}
                                      subscription_agreement_id: {}
                                      network_transaction_id: {}
                      customer_payer:
                        type: object
                        properties:
                          id: {}
                          merchant_customer_id:
                            type: string
                            example: '1744653056'
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          gender:
                            type: string
                            example: M
                          date_of_birth:
                            type: string
                            example: '1990-02-28'
                          email:
                            type: string
                            example: john.doe@example.com
                          nationality:
                            type: string
                            example: US
                          ip_address:
                            type: string
                            example: 192.0.2.1
                          device_fingerprint: {}
                          device_fingerprints:
                            type: array
                          browser_info: {}
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: SSN
                              document_number:
                                type: string
                                example: 123-45-6789
                          phone:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '5551234567'
                              country_code:
                                type: string
                                example: '1'
                          billing_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 456 Maple Ave
                              address_line_2:
                                type: string
                                example: Apt 12C
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: New York
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood: {}
                          shipping_address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 456 Maple Ave
                              address_line_2:
                                type: string
                                example: Apt 12C
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: New York
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                              neighborhood: {}
                          merchant_customer_created_at: {}
                      additional_data: {}
                      transactions:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 3f47548e-a1c9-418e-b899-40d30da9c699
                          type:
                            type: string
                            example: REFUND
                          status:
                            type: string
                            example: SUCCEEDED
                          category:
                            type: string
                            example: CARD
                          amount:
                            type: integer
                            example: 30
                            default: 0
                          provider_id:
                            type: string
                            example: YUNO_TEST_PAYMENT_GW
                          payment_method:
                            type: object
                            properties:
                              vaulted_token:
                                type: string
                                example: ''
                              type:
                                type: string
                                example: CARD
                              vault_on_success:
                                type: boolean
                                example: false
                                default: true
                              token:
                                type: string
                                example: ''
                              parent_payment_method_type: {}
                              detail:
                                type: object
                                properties:
                                  card:
                                    type: object
                                    properties:
                                      verify:
                                        type: boolean
                                        example: false
                                        default: true
                                      capture:
                                        type: boolean
                                        example: false
                                        default: true
                                      installments:
                                        type: integer
                                        example: 1
                                        default: 0
                                      installments_plan_id: {}
                                      first_installment_deferral:
                                        type: integer
                                        example: 0
                                        default: 0
                                      installments_type:
                                        type: string
                                        example: ''
                                      installment_amount: {}
                                      soft_descriptor:
                                        type: string
                                        example: ''
                                      authorization_code:
                                        type: string
                                        example: '344836'
                                      retrieval_reference_number:
                                        type: string
                                        example: ''
                                      acquirer_reference_number:
                                        type: string
                                        example: ''
                                      voucher: {}
                                      card_data:
                                        type: object
                                        properties:
                                          holder_name:
                                            type: string
                                            example: John Doe
                                          iin:
                                            type: string
                                            example: '41111111'
                                          lfd:
                                            type: string
                                            example: '1111'
                                          number_length:
                                            type: integer
                                            example: 16
                                            default: 0
                                          security_code_length:
                                            type: integer
                                            example: 3
                                            default: 0
                                          brand:
                                            type: string
                                            example: VISA
                                          issuer_name:
                                            type: string
                                            example: CHASE BANK USA
                                          issuer_code: {}
                                          country_code:
                                            type: string
                                            example: US
                                          category:
                                            type: string
                                            example: CLASSIC
                                          type:
                                            type: string
                                            example: DEBIT
                                          three_d_secure:
                                            type: object
                                            properties:
                                              version: {}
                                              electronic_commerce_indicator: {}
                                              cryptogram: {}
                                              transaction_id: {}
                                              directory_server_transaction_id: {}
                                              pares_status: {}
                                              acs_id: {}
                                          fingerprint:
                                            type: string
                                            example: d244e20d-43a1-43f7-9b48-0a76423be35e
                                          expiration_month:
                                            type: integer
                                            example: 3
                                            default: 0
                                          expiration_year:
                                            type: integer
                                            example: 26
                                            default: 0
                                      stored_credentials:
                                        type: object
                                        properties:
                                          reason: {}
                                          usage: {}
                                          subscription_agreement_id: {}
                                          network_transaction_id: {}
                          response_code:
                            type: string
                            example: SUCCEEDED
                          response_message:
                            type: string
                            example: Transaction successful
                          reason:
                            type: string
                            example: REQUESTED_BY_CUSTOMER
                          description:
                            type: string
                            example: Test refund
                          merchant_reference:
                            type: string
                            example: US-INV-432245
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: YUNO_TEST_PAYMENT_GW
                              transaction_id:
                                type: string
                                example: 831017b2-928f-4f19-8f0b-0e0ae14013bd
                              account_id:
                                type: string
                                example: ''
                              status:
                                type: string
                                example: ''
                              sub_status:
                                type: string
                                example: ''
                              status_detail:
                                type: string
                                example: ''
                              response_message: {}
                              response_code:
                                type: string
                                example: SUCCEEDED
                              raw_request:
                                type: object
                                description: >-
                                  Obfuscated copy of the request Yuno sent to the provider. Only returned for
                                  allowlisted organizations.
                              raw_response:
                                type: object
                                properties:
                                  message:
                                    type: string
                                    example: provider response
                              third_party_transaction_id: {}
                              third_party_account_id: {}
                              iso8583_response_code: {}
                              iso8583_response_message: {}
                          connection_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: 58cc35f4-faef-4107-8e09-d18d60121d38
                              name:
                                type: string
                                example: Connection name
                          created_at:
                            type: string
                            example: '2025-04-14T17:51:23.232152Z'
                          updated_at:
                            type: string
                            example: '2025-04-14T17:51:23.322335Z'
                      transactions_history: {}
                      metadata:
                        type: array
                      fraud_screening: {}
                      payment_link_id:
                        type: string
                        example: ''
                      subscription_code: {}
                      routing_rules: {}
                      simplified_mode:
                        type: boolean
                        example: false
                        default: true
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Payments
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /payments/{payment_id}/transactions/{transaction_id}/split-marketplace:
    put:
      summary: Update the split of a paid transaction
      description: >-
        Replaces the whole `split_marketplace` of a succeeded purchase transaction at the provider and in Yuno. The legs
        sent become the split; legs that are not sent are removed. The payment and the transaction keep their status; no
        new transaction is created.


        The update is accepted only while the provider still allows it: before settlement, and while the payment has no
        refund (including one waiting to be retried), chargeback or transfer reversal. While an update is in progress or
        under review, refunds of the payment are refused with `400` `OPERATION_IN_PROCESS`. Availability depends on the
        provider; contact Yuno to enable it for your connection.
      operationId: update-split-marketplace
      parameters:
        - in: path
          name: payment_id
          schema:
            type: string
          required: true
          description: The unique identifier of the payment (MAX 64; MIN 36).
        - in: path
          name: transaction_id
          schema:
            type: string
          required: true
          description: The unique identifier of the purchase transaction whose split is replaced (MAX 64; MIN 36).
        - in: header
          name: X-Idempotency-Key
          schema:
            type: string
          required: true
          description: >-
            Required. Unique identifier of this update (MAX 64). A request that times out is not a failure: repeat it
            with the same key and you get the outcome of the first attempt. The same key with a different body is
            refused with `SPLIT_UPDATE_IDEMPOTENCY_CONFLICT`. A repeat sent while the first attempt is still running is
            answered `400` `OPERATION_IN_PROCESS` and changes nothing: wait a few seconds and repeat it again with the
            same key.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - split_marketplace
              properties:
                split_marketplace:
                  type: array
                  minItems: 1
                  description: 'The new split: every leg the transaction must have after the update.'
                  items:
                    properties:
                      recipient_id:
                        type: string
                        description: >-
                          The unique identifier of the recipient in the Yuno system. Every leg must name its recipient
                          with the [`recipient_id`](/reference/create-recipient-1) (Yuno-generated) or the
                          `provider_recipient_id` (external provider's ID), never both.
                      provider_recipient_id:
                        type: string
                        description: >-
                          The recipient ID provided by the external payment provider. Every leg must name its recipient
                          with the `provider_recipient_id` or the [`recipient_id`](/reference/create-recipient-1)
                          (Yuno-generated), never both.
                      description:
                        type: string
                        description: Description for the split. (MAX 255; MIN 3).
                      type:
                        type: string
                        description: The type of split. `recipient_id` is mandatory for `PURCHASE` and `MARKETPLACE`.
                        enum:
                          - PURCHASE
                          - PAYMENTFEE
                          - VAT
                          - COMMISSION
                          - MARKETPLACE
                          - SHIPPING
                      merchant_reference:
                        type: string
                        description: Optional unique identifier for the split transaction (MAX 255; MIN 3).
                      recipient_type:
                        type: string
                        description: The type of recipient for the provider.
                        enum:
                          - MEAL
                          - FOOD
                          - MULTI_BENEFITS
                          - FLEET
                        example: MEAL
                      amount:
                        type: object
                        description: >-
                          The amount of the leg. Required on an update: the amount of the original transaction is not
                          part of this request, so nothing is calculated from a `split_configuration`.
                        required:
                          - value
                          - currency
                        properties:
                          value:
                            type: number
                            description: The split amount (multiple of 0.0001).
                            format: float
                          currency:
                            type: string
                            description: >-
                              The currency of the payment (MAX 3; MIN 3; ISO 4217). Optional; when omitted the payment
                              currency is used. Another currency is refused.
                      liability:
                        type: object
                        description: Optional information regarding the recipient's liability for fees and chargebacks.
                        properties:
                          processing_fee:
                            type: string
                            description: Indicates who will be charged the transaction fee.
                            enum:
                              - MERCHANT
                              - RECIPIENT
                              - SHARED
                          chargebacks:
                            type: boolean
                            description: The recipient is responsible in case of a chargeback.
                    required:
                      - type
                      - amount
                    type: object
                description:
                  type: string
                  description: Description of the update (MAX 255; MIN 3).
                metadata:
                  type: array
                  description: Custom key-value pairs stored with the update.
                  items:
                    type: object
                    properties:
                      key:
                        type: string
                      value:
                        type: string
            examples:
              Replace the split with one recipient:
                value:
                  split_marketplace:
                    - provider_recipient_id: 4c036fbdd2a44786815c331e9c011367
                      type: MARKETPLACE
                      amount:
                        value: 6
                        currency: BRL
                  description: Same-day split replacement
                  metadata:
                    - key: reason
                      value: same-day redistribution
      responses:
        '200':
          description: >-
            The split was replaced. The answer is the payment, in the same shape as [Retrieve payment by
            ID](/reference/retrieve-payment-by-id); read the new split on `transactions.split_marketplace`.
          content:
            application/json:
              schema:
                type: object
                description: The payment object. See [The payment object](/reference/the-payment-object).
              examples:
                Split replaced:
                  value:
                    id: d49f0691-55de-4045-a668-c17f338cd1a3
                    idempotency_key: 496E09AE-D453-491C-9179-9FC1EDEDAD02
                    origin: YUNO
                    account_code: 4be68036-738e-4841-8eb5-7a5927591a1b
                    account_id: 4be68036-738e-4841-8eb5-7a5927591a1b
                    description: pay-test purchase
                    country: BR
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: pt-1789681395403
                    created_at: '2026-09-17T21:43:16.119879Z'
                    updated_at: '2026-09-17T21:43:18.860706Z'
                    amount:
                      captured: 0
                      currency: BRL
                      currency_conversion: null
                      refunded: 0
                      value: 10
                    checkout:
                      session: ''
                      sdk_action_required: false
                    customer_payer: null
                    additional_data:
                      airline: null
                      transportations: null
                      lodgings: null
                      order: null
                      seller_details: null
                      device: null
                      payer_risk_data: null
                    taxes: null
                    transactions:
                      - id: 77b11fef-5c38-4ecf-9607-015594ee0bc4
                        type: PURCHASE
                        status: SUCCEEDED
                        category: CARD
                        amount: 10
                        provider_id: ZOOP
                        payment_method:
                          vaulted_token: ''
                          type: CARD
                          vault_on_success: false
                          vault_on_decline: false
                          token: ''
                          parent_payment_method_type: null
                          otp:
                            length: 0
                            retries: {}
                          detail:
                            card:
                              verify: false
                              capture: true
                              installments: 1
                              installments_plan_id: null
                              first_installment_deferral: 0
                              installments_type: ''
                              installment_amount: null
                              installments_total_amount: null
                              soft_descriptor: ''
                              authorization_code: '133937'
                              retrieval_reference_number: '20180510122911535'
                              voucher: null
                              card_data:
                                holder_name: YUNO TESTER
                                iin: '42424242'
                                lfd: '4242'
                                number_length: 16
                                security_code_length: 3
                                brand: VISA
                                scheme: VISA
                                issuer_name: STRIPE PAYMENTS UK
                                issuer_code: null
                                country_code: GB
                                category: CLASSIC
                                type: CREDIT
                                three_d_secure:
                                  version: null
                                  electronic_commerce_indicator: null
                                  cryptogram: null
                                  transaction_id: null
                                  directory_server_transaction_id: null
                                  pares_status: null
                                  acs_id: null
                                fingerprint: 4a4c0ff4-6e9e-455d-a104-3e771579a536
                                expiration_month: 3
                                expiration_year: 30
                              stored_credentials: null
                              verification_services:
                                address_line_1_check: UNCHECKED
                                zip_code_check: UNCHECKED
                                card_holder_name_check: UNCHECKED
                                card_security_code_check: UNCHECKED
                        response_code: SUCCEEDED
                        response_message: Transaction successful
                        reason: null
                        description: pay-test purchase
                        merchant_reference: pt-1789681395403
                        provider_data:
                          id: ZOOP
                          transaction_id: af8fd4e75b614591a03b2125b53907a4
                          account_id: ''
                          status: succeeded
                          sub_status: ''
                          status_detail: ''
                          response_message: null
                          response_code: '00'
                          raw_request: >-
                            "{\"payment_type\":\"credit\",\"source\":{\"card\":{\"card_number\":\"a198286a-f433-4603-842b-e7dfc2ec0801\",\"security_code\":\"e2056811-39fc-444a-a355-41aa514c277f\",\"holder_name\":\"YUNO
                            TESTER\",\"expiration_month\":\"3\",\"expiration_year\":\"2030\"},\"usage\":\"single_use\",\"amount\":1000,\"currency\":\"BRL\",\"type\":\"card\"},\"on_behalf_of\":\"4a8418ddc83f4b4fbd6f442902a4e3b3\",\"capture\":true,\"description\":\"pay-test
                            purchase\",\"reference_id\":\"77b11fef-5c38-4ecf-9607-015594ee0bc4\",\"split_rules\":[{\"recipient\":\"3258673725454c5cafaec0210674eb8d\",\"liable\":false,\"charge_processing_fee\":false,\"amount\":600}]}"
                          raw_request_details:
                            headers:
                              Authorization:
                                - '[REDACTED]'
                              X-Account-Integration-Code:
                                - '[REDACTED]'
                              X-Dynamic-Mtls:
                                - '[REDACTED]'
                              x-api-key:
                                - '[REDACTED]'
                            method: POST
                            url: /v1/marketplaces/7fcca632f35f4efa8143238d28a89cd9/transactions
                          raw_response_details:
                            http_status_code: 201
                          third_party_transaction_id: ''
                          third_party_account_id: ''
                          iso8583_response_code: null
                          iso8583_response_message: null
                          retrieval_reference_number: null
                          merchant_advice_code: null
                          merchant_advice_code_message: null
                          reason_code: null
                          reason_description: null
                        connection_data:
                          id: 99d88722-2c77-4281-ad92-f74df11bc8b9
                          name: zoop
                        created_at: '2026-09-17T21:43:16.232391Z'
                        updated_at: '2026-09-17T21:43:18.778608Z'
                        split_marketplace:
                          - recipient_id: null
                            recipient_type: null
                            provider_recipient_id: 4c036fbdd2a44786815c331e9c011367
                            type: MARKETPLACE
                            merchant_reference: null
                            amount:
                              value: 6
                              currency: BRL
                            liability: null
                            description: null
                        merchant_advice_code: null
                        merchant_advice_code_message: null
                    split_marketplace: []
                    workflow: DIRECT
                    fraud_screening: null
                    metadata: []
                    shipping: null
                    payment_link_code: ''
                    routing_rules:
                      smart_routing: false
                      monitors: false
                      condition:
                        id: 279053
                        name: null
                        description: null
        '400':
          description: >-
            The request is invalid, the payment or transaction is not found for your account, or another operation of
            the payment is still running (`OPERATION_IN_PROCESS`, retry in a few seconds with the same key).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Legs above the transaction amount:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        Invalid parameters: list - [The split_marketplace amounts add up to more than the transaction
                        amount.]
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
                Transaction not found:
                  value:
                    code: TRANSACTION_NOT_FOUND
                    messages:
                      - Transaction of a payment not found.
                Payment not found:
                  value:
                    code: PAYMENT_NOT_FOUND
                    messages:
                      - Payment not found.
                Operation in process:
                  value:
                    code: OPERATION_IN_PROCESS
                    messages:
                      - Operation over the same payment is already in process. Try again in a few seconds.
        '404':
          description: A `recipient_id` of the request is unknown, or not onboarded with the provider of the transaction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Recipient not found:
                  value:
                    code: RECIPIENT_NOT_FOUND
                    messages:
                      - >-
                        Recipient not found or not ready for the provider of the transaction: Recipient IDs not found:
                        '11111111-2222-4333-8444-555555555555'
        '409':
          description: The update is not possible for this transaction, or it conflicts with another update.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Not allowed:
                  value:
                    code: SPLIT_UPDATE_NOT_ALLOWED
                    messages:
                      - 'The split of this transaction cannot be updated: the payment has a refund'
                Window closed:
                  value:
                    code: SPLIT_UPDATE_WINDOW_CLOSED
                    messages:
                      - The provider no longer accepts split changes for this transaction. The split was not changed.
                Limit reached:
                  value:
                    code: SPLIT_UPDATE_LIMIT_REACHED
                    messages:
                      - The provider limit of split changes for this transaction was reached. The split was not changed.
                Update in progress:
                  value:
                    code: SPLIT_UPDATE_IN_PROGRESS
                    messages:
                      - Another split update of this transaction is in progress. Try again in a few seconds.
                Idempotency conflict:
                  value:
                    code: SPLIT_UPDATE_IDEMPOTENCY_CONFLICT
                    messages:
                      - The idempotency key was already used with a different split update request.
                Under review:
                  value:
                    code: SPLIT_UPDATE_NOT_ALLOWED
                    messages:
                      - >-
                        The split of this transaction cannot be updated: a previous split update of this transaction is
                        under review
        '502':
          description: >-
            The provider did not confirm the outcome. The split is under review by Yuno; do not retry with a new key. A
            retry with the same key returns this same answer until the review is complete.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Provider error:
                  value:
                    code: PROVIDER_ERROR
                    messages:
                      - 'The split update failed at the provider: the split could not be confirmed and is under review'
      tags:
        - Recipients For Marketplace
  /payments/{payment_id}/transactions/{transaction_id}/split-marketplace/transfer-reversal:
    post:
      description: ''
      parameters:
        - in: path
          name: payment_id
          schema:
            type: string
          required: true
          description: The unique identifier of the payment (MAX 64; MIN 36).
        - in: path
          name: transaction_id
          schema:
            type: string
          required: true
          description: The unique identifier of the transaction (MAX 64; MIN 36).
        - in: header
          name: X-Idempotency-Key
          schema:
            type: string
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts.
      operationId: post_payments-payment-id-transactions-transaction-id-split-marketplace-transfer-reversal
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                amount:
                  type: object
                  properties:
                    currency:
                      type: string
                      description: >-
                        Currency of the transaction. Visit the [country reference](/reference/country-reference) for the
                        full list of supported currencies.
                    value:
                      type: number
                      description: The value amount of the transaction.
                  description: The payment amount (multiple of 0.0001).
                  required:
                    - currency
                    - value
                description:
                  type: string
                  description: The unique identifier of the transaction (MAX 256; MIN 3).
              required:
                - amount
            examples:
              Request a transfer:
                value:
                  amount:
                    currency: USD
                    value: 100
                  description: test transfer
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The unique identifier of the transfer.
                  recipient_id:
                    type: string
                    description: The unique identifier of the recipient.
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                      value:
                        type: number
                  status:
                    type: string
                    description: The status of the transfer.
                  description:
                    type: string
                  merchant_reference:
                    type: string
                  metadata:
                    type: array
                    items: {}
                  provider:
                    type:
                      - object
                      - 'null'
                  transactions:
                    type: array
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                        type:
                          type: string
                        status:
                          type: string
                        provider_transfer_id:
                          type: string
                        raw_response:
                          type: string
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type: string
                          format: date-time
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
                  completed_at:
                    type: string
                    format: date-time
              examples:
                Success:
                  value:
                    id: 94036ceb-5cca-4384-b144-e2a5a908af77
                    recipient_id: e56c3329-f3d9-48e5-a677-284b147abf95
                    amount:
                      currency: USD
                      value: 100
                    status: SUCCEEDED
                    description: test transfer
                    merchant_reference: c19e858a-ffd6-4635-8a31-4f60c5becf4d
                    metadata: []
                    provider: null
                    transactions:
                      - code: 7ac2c5f3-7c79-4e99-b45e-aa5952620188
                        type: SPLIT_TRANSFER
                        status: SUCCEEDED
                        provider_transfer_id: tr_1T9eKVIiMnPsFcbbRTb8ObsZ
                        raw_response: |-
                          {
                            "id": "tr_1T9eKVIiMnPsFcbbRTb8ObsZ",
                            "object": "transfer",
                            "amount": 10000,
                            "amount_reversed": 0,
                            "balance_transaction": "txn_1T9eKVIiMnPsFcbbOPnvz3xM",
                            "created": 1773203107,
                            "currency": "usd",
                            "description": "test transfer",
                            "destination": "acct_1T9PSQIZEg1WWTvj",
                            "destination_payment": "py_1T9eKVIZEg1WWTvjbVjmnzFK",
                            "livemode": false,
                            "metadata": {},
                            "reversals": {
                              "object": "list",
                              "data": [],
                              "has_more": false,
                              "total_count": 0,
                              "url": "/v1/transfers/tr_1T9eKVIiMnPsFcbbRTb8ObsZ/reversals"
                            },
                            "reversed": false,
                            "source_transaction": null,
                            "source_type": "card",
                            "transfer_group": null
                          }
                        created_at: '2026-03-11T04:25:06.229027Z'
                        updated_at: '2026-03-11T04:25:07.917364Z'
                    created_at: '2026-03-11T04:25:06.208761Z'
                    updated_at: '2026-03-11T04:25:07.928000342Z'
                    completed_at: '2026-03-11T04:25:07.927971142Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Transfer Error:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - 'Invalid parameters: list - [Payment has no recipient]'
      tags:
        - Recipients For Marketplace
  /payouts:
    get:
      summary: Retrieve Payout by Merchant Reference
      description: ''
      operationId: retrieve-payout-by-merchant-reference
      parameters:
        - name: merchant_reference
          in: query
          description: Identification of the payout defined by the merchant.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    - id: 565c9733-000d-4066-a4bf-b084908dc74c
                      account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      status: SUCCEEDED
                      merchant_reference: MR-Test-12345
                      purpose: ''
                      country: US
                      description: Test
                      amount:
                        currency: USD
                        value: 100
                      beneficiary:
                        merchant_beneficiary_id: test_merchant_deposit_id
                        national_entity: INDIVIDUAL
                        first_name: John
                        last_name: Doe
                        legal_name: John Doe
                        email: john.doe@email.com
                        country: US
                        date_of_birth: '1980-01-01'
                        document:
                          document_type: SSN
                          document_number: 123-45-6789
                        phone:
                          country_code: '1'
                          number: '1234567890'
                        address:
                          address_line_1: 123 Main St
                          address_line_2: Apt 1
                          country: US
                          state: NY
                          city: New York
                          zip_code: '10001'
                      metadata: []
                      created_at: '2024-05-27T15:17:30.952178Z'
                      updated_at: '2024-05-27T15:17:32.901454Z'
                      transactions:
                        - id: bd594d5c-d7b7-48b1-9678-0b5052a69863
                          status: SUCCEEDED
                          type: ASTROPAY_PAYOUT
                          response_code: SUCCEEDED
                          merchant_reference: MR-Test-12345
                          purpose: ''
                          description: Test
                          amount:
                            currency: USD
                            value: 100
                          withdrawal_method:
                            type: ASTROPAY_PAYOUT
                            detail:
                              bank_transfer: null
                              wallet:
                                code: h15sg84U6rCl
                                email: null
                                country: null
                                document: null
                                phone: null
                          provider_data:
                            id: ASTROPAY
                            transaction_id: '32376'
                            account_id: ''
                            beneficiary_id: test_merchant_deposit_id
                            status: APPROVED
                            status_detail: APPROVED
                            raw_response: >-
                              "{\n  \"cashout_id\" : 32376,\n  \"merchant_cashout_id\" :
                              \"bd594d5c-d7b7-48b1-9678-0b5052a69863\",\n  \"status\" : \"APPROVED\",\n  \"user_id\" :
                              \"h15sg84U6rCl\"\n}"
                          created_at: '2024-05-27T15:17:31.265607Z'
                          updated_at: '2024-05-27T15:17:32.901448Z'
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: 565c9733-000d-4066-a4bf-b084908dc74c
                    account_id:
                      type: string
                      example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    status:
                      type: string
                      example: SUCCEEDED
                    merchant_reference:
                      type: string
                      example: MR-Test-12345
                    purpose:
                      type: string
                      example: ''
                    country:
                      type: string
                      example: US
                    description:
                      type: string
                      example: Test
                    amount:
                      type: object
                      properties:
                        currency:
                          type: string
                          example: USD
                        value:
                          type: integer
                          example: 100
                          default: 0
                    beneficiary:
                      type: object
                      properties:
                        merchant_beneficiary_id:
                          type: string
                          example: test_merchant_deposit_id
                        national_entity:
                          type: string
                          example: INDIVIDUAL
                        first_name:
                          type: string
                          example: John
                        last_name:
                          type: string
                          example: Doe
                        legal_name:
                          type: string
                          example: John Doe
                        email:
                          type: string
                          example: john.doe@email.com
                        country:
                          type: string
                          example: US
                        date_of_birth:
                          type: string
                          example: '1980-01-01'
                        document:
                          type: object
                          properties:
                            document_type:
                              type: string
                              example: SSN
                            document_number:
                              type: string
                              example: 123-45-6789
                        phone:
                          type: object
                          properties:
                            country_code:
                              type: string
                              example: '1'
                            number:
                              type: string
                              example: '1234567890'
                        address:
                          type: object
                          properties:
                            address_line_1:
                              type: string
                              example: 123 Main St
                            address_line_2:
                              type: string
                              example: Apt 1
                            country:
                              type: string
                              example: US
                            state:
                              type: string
                              example: NY
                            city:
                              type: string
                              example: New York
                            zip_code:
                              type: string
                              example: '10001'
                    metadata:
                      type: array
                    created_at:
                      type: string
                      example: '2024-05-27T15:17:30.952178Z'
                    updated_at:
                      type: string
                      example: '2024-05-27T15:17:32.901454Z'
                    transactions:
                      type: array
                      items:
                        type: object
                        properties:
                          id:
                            type: string
                            example: bd594d5c-d7b7-48b1-9678-0b5052a69863
                          status:
                            type: string
                            example: SUCCEEDED
                          type:
                            type: string
                            example: ASTROPAY_PAYOUT
                          response_code:
                            type: string
                            example: SUCCEEDED
                          merchant_reference:
                            type: string
                            example: MR-Test-12345
                          purpose:
                            type: string
                            example: ''
                          description:
                            type: string
                            example: Test
                          amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: integer
                                example: 100
                                default: 0
                          withdrawal_method:
                            type: object
                            properties:
                              type:
                                type: string
                                example: ASTROPAY_PAYOUT
                              detail:
                                type: object
                                properties:
                                  bank_transfer: {}
                                  wallet:
                                    type: object
                                    properties:
                                      code:
                                        type: string
                                        example: h15sg84U6rCl
                                      email: {}
                                      country: {}
                                      document: {}
                                      phone: {}
                          provider_data:
                            type: object
                            properties:
                              id:
                                type: string
                                example: ASTROPAY
                              transaction_id:
                                type: string
                                example: '32376'
                              account_id:
                                type: string
                                example: ''
                              beneficiary_id:
                                type: string
                                example: test_merchant_deposit_id
                              status:
                                type: string
                                example: APPROVED
                              status_detail:
                                type: string
                                example: APPROVED
                              raw_response:
                                type: string
                                example: >-
                                  "{\n  \"cashout_id\" : 32376,\n  \"merchant_cashout_id\" :
                                  \"bd594d5c-d7b7-48b1-9678-0b5052a69863\",\n  \"status\" : \"APPROVED\",\n  \"user_id\"
                                  : \"h15sg84U6rCl\"\n}"
                          created_at:
                            type: string
                            example: '2024-05-27T15:17:31.265607Z'
                          updated_at:
                            type: string
                            example: '2024-05-27T15:17:32.901448Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Bad Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payouts
    post:
      summary: Create Payout
      description: ''
      operationId: create-payout
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - merchant_reference
                - country
                - purpose
                - amount
                - beneficiary
                - withdrawal_method
              properties:
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account. You find this information on [the Yuno
                    dashboard](https://dashboard.y.uno/) (UUID, 36 chars.).
                  default: '{{account_id}}'
                merchant_reference:
                  type: string
                  description: The unique identifier of the merchant's payout (MAX 255; MIN 3).
                  default: test-reference
                description:
                  type: string
                  description: The description of the payout (MAX 255; MIN 3).
                country:
                  type: string
                  description: >-
                    Country where the transaction must be processed (MAX 2; MIN 2; [ISO
                    3166-1](/reference/country-reference)).
                  enum:
                    - AR
                    - BO
                    - BR
                    - CL
                    - CO
                    - CR
                    - EC
                    - SV
                    - GT
                    - HN
                    - MX
                    - NI
                    - PA
                    - PY
                    - PE
                    - US
                    - UY
                purpose:
                  type: string
                  description: >-
                    Indicates the purpose for the payout. Possible enum values: Check the <a
                    href='https://docs.y.uno/reference/purposes-list'>Purpose list</a>.
                  enum:
                    - FAMILY_AND_FRIENDS
                    - PERSONAL_TRANSFER
                    - REMITTANCES
                    - PROVIDER_SERVICES
                    - ADVERTISING_SERVICES
                    - REPRESENTATION_SERVICES
                    - ADVISORY_SERVICES
                    - FREELANCER_SERVICES
                    - SUPPLIER
                    - BUSINESS_TO_BUSINESS
                    - MARKETPLACE
                    - PAYROLL
                    - GIFTS_AND_BENEFITS
                    - EXPENSES
                    - CORPORATE_PAYMENT
                    - PURCHASE_OF _PHYSICAL_GOODS
                    - PURCHASE_OF _DIGITAL_GOODS
                    - PURCHASE_OF_SERVICES
                    - INVESTMENTS
                    - CAPITAL_CONTRIBUTION
                    - INVESTMENTS_SHARES
                    - TAXES
                    - LOGISTICS_AND_TRANSPORTATION
                    - DELIVERY
                    - AFFILIATION_PROGRAM
                    - LOANS
                    - REAL_STATE
                    - RENT
                    - TRAVEL_FLIGHTS
                    - TRAVEL_ACCOMMODATIONS
                    - EDUCATION
                    - TUITION_COSTS
                    - TRAININGS
                    - CHARITY
                    - MEDICAL_SERVICES
                    - SAVINGS
                    - RETIREMENT
                    - PENSION
                    - INSURANCE
                    - REWARDS
                    - TRADEMARKS_AND_COPYRIGHT
                    - ENTERTAINMENT
                    - GOVERNMENT
                    - OTHERS
                amount:
                  type: object
                  description: Specifies the payout amount object, with the value and currency.
                  required:
                    - value
                    - currency
                  properties:
                    value:
                      type: number
                      description: The payout amount (multiple of 0.0001).
                      default: '100'
                    currency:
                      type: string
                      description: >-
                        The currency used to make the payout. For a full list of currency codes, see [Country
                        reference](/reference/country-reference) (MAX 3; MIN 3; ISO 4217).
                      default: USD
                beneficiary:
                  type: object
                  description: Specifies the beneficiary object with their identification.
                  required:
                    - merchant_beneficiary_id
                    - country
                  properties:
                    merchant_beneficiary_id:
                      type: string
                      description: Unique identifier of the recipient defined by the merchant (MAX 255; MIN 1).
                      default: test-beneficiary
                    national_entity:
                      type: string
                      description: Beneficiary's national entity type. Individual by default
                      enum:
                        - INDIVIDUAL
                        - ENTITY
                    first_name:
                      type: string
                      description: Beneficiary's name (MAX 80).
                    last_name:
                      type: string
                      description: Beneficiary's last name (MAX 80).
                    legal_name:
                      type: string
                      description: Beneficiary's name (MAX 80). Only necessary when national entity is ENTITY.
                    email:
                      type: string
                      description: The beneficiary's email (MAX 255; MIN 3).
                    country:
                      type: string
                      description: The beneficiary's country (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                      enum:
                        - AR
                        - BO
                        - BR
                        - CL
                        - CO
                        - CR
                        - EC
                        - SV
                        - GT
                        - HN
                        - MX
                        - NI
                        - PA
                        - PY
                        - PE
                        - US
                        - UY
                    date_of_birth:
                      type: string
                      description: The beneficiary's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
                    document:
                      type: object
                      description: Beneficiary's national document
                      required:
                        - document_number
                      properties:
                        document_number:
                          type: string
                          description: The document number (MAX 40; MIN 3).
                        document_type:
                          type: string
                          description: Document type (MAX 6, MIN 1; [Country reference](/reference/country-reference)).
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Beneficiary's cell phone
                      properties:
                        country_code:
                          type: string
                          description: >-
                            The country calling code of the phone (MAX 3; MIN 1).  Check the [Country
                            reference](/reference/country-reference) to see the phone codes.
                        number:
                          type: string
                          description: The phone number, without the country code (MAX 32; MIN 1).
                    address:
                      type: object
                      description: Beneficiary's address
                      properties:
                        address_line_1:
                          type: string
                          description: The primary address line (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary address line (MAX 255; MIN 1).
                        city:
                          type: string
                          description: The city considered for the address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: The country (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state/province from the address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode for the address (MAX 11; MIN 4).
                withdrawal_method:
                  type: object
                  description: The withdrawal method to make the payout.
                  required:
                    - type
                    - provider_id
                  properties:
                    type:
                      type: string
                      description: Withdrawal method type.
                      enum:
                        - ASTROPAY_PAYOUT
                        - CARD
                        - NEQUI_PAYOUT
                        - PAYPAL_PAYOUT
                        - PIX_PAYOUT
                        - AFIRME_PAYOUT
                        - ECOMMPAY_PAYOUT
                        - QI_PAYOUT
                        - STP_PAYOUT
                        - TRANSFIYA_PAYOUT
                        - UNLIMINT_PAYOUT
                    provider_id:
                      type: string
                      description: The provider to process the payouts with
                      enum:
                        - ASTROPAY
                        - NEQUI
                        - PAYPAL
                        - UNLIMINT
                    vaulted_token:
                      type: string
                      description: >-
                        The vaulted token for a previously stored payment_method. If a payment is created using a
                        vaulted_token (MAX: 64; MIN: 36).
                    original_transaction_id:
                      type: string
                      description: Id of the referenced payment transaction. Only for payouts to CARD. (MAX 64; MIN 36)
                    original_payment_id:
                      type: string
                      description: The id of the referenced payment (UUID; 36 chars.).
                    on_hold:
                      type: boolean
                      description: >-
                        Defines if the merchant wants to hold the payout and sets it to be processed later using the
                        Release payout endpoint.
                    detail:
                      type: object
                      description: >-
                        Withdrawal method details. Only the object corresponding to the withdrawal method type is
                        necessary.
                      properties:
                        bank_transfer:
                          type: object
                          description: Bank transfer details to make the payout.
                          required:
                            - code
                          properties:
                            code:
                              type: string
                              description: The beneficiary's specific financial institution code (MAX 8).
                            branch:
                              type: string
                              description: The beneficiary's specific financial institution branch (MAX 8).
                            branch_digit:
                              type: string
                              description: The beneficiary's specific financial institution branch digit (MAX 2).
                            account:
                              type: object
                              description: >-
                                Beneficiary's financial institution account number or financial institution account
                                alias, such as Clabe for MX (MAX 255; MIN 3).
                              required:
                                - number
                              properties:
                                number:
                                  type: string
                                  description: >-
                                    Beneficiary's bank account number or bank account alias, such as Clabe for MX (MAX
                                    250; MIN 3)
                                digit:
                                  type: string
                                  description: Beneficiary's bank account digit (MAX 250; MIN 3)
                                type:
                                  type: string
                                  description: Beneficiary's bank account type.
                                  enum:
                                    - CHECKINGS
                                    - SAVINGS
                                    - VISTA
                                    - PIX_EMAIL
                                    - PIX_PHONE
                                    - PIX_DOCUMENT_ID
                                    - PIX_BANK_ACCOUNT
                            address:
                              type: object
                              description: Bank transfer address details
                              properties:
                                address_line_1:
                                  type: string
                                  description: The primary address line (MAX 255; MIN 3).
                                address_line_2:
                                  type: string
                                  description: The secondary address line (MAX 255; MIN 1).
                                city:
                                  type: string
                                  description: The city considered for the address (MAX 255; MIN 3).
                                country:
                                  type: string
                                  description: The country (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                                  enum:
                                    - AR
                                    - BO
                                    - BR
                                    - CL
                                    - CO
                                    - CR
                                    - EC
                                    - SV
                                    - GT
                                    - HN
                                    - MX
                                    - NI
                                    - PA
                                    - PY
                                    - PE
                                    - US
                                    - UY
                                    - ''
                                state:
                                  type: string
                                  description: The state/province from the address (MAX 255; MIN 3).
                                zip_code:
                                  type: string
                                  description: The zipcode for the address (MAX 11; MIN 4).
                        wallet:
                          type: object
                          description: Wallet details to make the withdrawal.
                          properties:
                            code:
                              type: string
                              description: Beneficiary's wallet account identification code (MAX 3; MIN 250)
                            email:
                              type: string
                              description: The Beneficiary's email (MAX 255; MIN 3)
                            country:
                              type: string
                              description: The Beneficiary's country  (ISO 3166-1 MAX 2; MIN 2)
                            document:
                              type: object
                              description: Wallet's owner national document associated to the withdrawal account.
                              required:
                                - document_number
                              properties:
                                document_number:
                                  type: string
                                  description: The document number (MAX 40; MIN 3).
                                document_type:
                                  type: string
                                  description: Document type (MAX 6, MIN 1; [Country reference](/reference/country-reference)).
                                  enum:
                                    - DNI
                                    - CI
                                    - LC
                                    - LE
                                    - CUIT
                                    - CUIL
                                    - PAS
                                    - CPF
                                    - RG
                                    - CNH
                                    - CNPJ
                                    - RUT
                                    - RUN
                                    - CC
                                    - CE
                                    - NIT
                                    - DUI
                                    - PIC
                                    - DPI
                                    - IFR
                                    - INE
                                    - CP
                                    - RFC
                                    - CURP
                                    - CIP
                                    - CIC
                                    - CUI
                                    - RUC
                            phone:
                              type: object
                              description: Wallet's owner phone associated to the withdrawal account.
                              properties:
                                country_code:
                                  type: string
                                  description: >-
                                    The country calling code of the phone (MAX 3; MIN 1).  Check the [Country
                                    reference](/reference/country-reference) to see the phone codes.
                                number:
                                  type: string
                                  description: The phone number, without the country code (MAX 32; MIN 1).
                metadata:
                  type: array
                  description: Specifies a list of metadata objects. You can add up to 50 metadata objects.
                  items:
                    properties:
                      key:
                        type: string
                        description: The metadata key (MAX 48; MIN 1).
                      value:
                        type: string
                        description: The metadata key value (MAX 512; MIN 1).
                    type: object
            examples:
              Wallet Payout:
                value:
                  account_id: '{{account_id}}'
                  merchant_reference: MR-Test-123
                  description: Test
                  country: CO
                  purpose: EXPENSES
                  amount:
                    currency: COP
                    value: 50000
                  beneficiary:
                    merchant_beneficiary_id: test_merchant_deposit_id
                    country: CO
                    national_entity: INDIVIDUAL
                    first_name: John
                    last_name: Doe
                    legal_name: John Doe
                    email: john.doe@email.com
                    date_of_birth: '1980-01-01'
                    document:
                      document_type: CC
                      document_number: '1234567890'
                    phone:
                      country_code: '57'
                      number: '1234567890'
                    address:
                      address_line_1: 123 Main St
                      address_line_2: Apt 1
                      city: Bogota
                      state: DC
                      zip_code: '110111'
                      country: CO
                  withdrawal_method:
                    type: NEQUI_PAYOUT
                    provider_id: NEQUI
                    detail:
                      wallet:
                        code: h15sg84U6rCl
                  metadata:
                    - key: key1
                      value: value1
                    - key: key2
                      value: value2
              Wallet - AstroPay - Phone:
                value:
                  account_id: '{{account_id}}'
                  merchant_reference: MR-12345
                  country: BR
                  purpose: EXPENSES
                  amount:
                    currency: BRL
                    value: 10.01
                  beneficiary:
                    merchant_beneficiary_id: test_merchant_deposit_id_10
                    country: BR
                  withdrawal_method:
                    type: ASTROPAY_PAYOUT
                    provider_id: ASTROPAY
                    detail:
                      wallet:
                        phone:
                          number: '987654321'
                          country_code: '55'
              Wallet - AstroPay - Account:
                value:
                  account_id: '{{account_id}}'
                  merchant_reference: MR-12345
                  country: BR
                  purpose: EXPENSES
                  amount:
                    currency: BRL
                    value: 10.01
                  beneficiary:
                    merchant_beneficiary_id: test_merchant_deposit_id_10
                    country: BR
                  withdrawal_method:
                    type: ASTROPAY_PAYOUT
                    provider_id: ASTROPAY
                    detail:
                      wallet:
                        code: '{{beneficiary-provider-account-code}}'
              Wallet - PayPal - Account:
                value:
                  account_id: '{{account_id}}'
                  merchant_reference: MR-Test-12345
                  description: Test
                  country: BR
                  purpose: EXPENSES
                  amount:
                    currency: USD
                    value: 10
                  beneficiary:
                    merchant_beneficiary_id: AA01
                    country: BR
                  withdrawal_method:
                    type: PAYPAL_PAYOUT
                    provider_id: PAYPAL
                    detail:
                      wallet:
                        code: XMBXXFEMM22ML
                  metadata:
                    - key: key1
                      value: value1
                summary: Wallet - PayPal - Account
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 5223d101-0019-43d3-92cb-5c23391a7410
                    account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    status: SUCCEEDED
                    merchant_reference: MR-Test-123
                    purpose: EXPENSES
                    country: BR
                    description: Test
                    amount:
                      currency: BRL
                      value: 100
                    beneficiary:
                      merchant_beneficiary_id: test_merchant_deposit_id
                      national_entity: INDIVIDUAL
                      first_name: John
                      last_name: Doe
                      legal_name: John Doe
                      email: john.doe@email.com
                      country: BR
                      date_of_birth: '1980-01-01'
                      document:
                        document_type: CPF
                        document_number: '123456789'
                      phone:
                        country_code: '55'
                        number: '1234567890'
                      address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 1
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                    metadata: []
                    created_at: '2024-05-27T15:12:22.712914616Z'
                    updated_at: '2024-05-27T15:12:22.712916116Z'
                    transactions:
                      - id: f0642eb0-31cb-44bc-9dc6-03d55ff4d664
                        status: SUCCEEDED
                        type: PAYOUT
                        response_code: SUCCEEDED
                        merchant_reference: ''
                        purpose: ''
                        description: Test
                        amount:
                          currency: BRL
                          value: 100
                        withdrawal_method:
                          type: ASTROPAY_PAYOUT
                          detail:
                            bank_transfer: null
                            wallet:
                              code: h15sg84U6rCl
                              email: null
                              country: null
                              document: null
                              phone: null
                        provider_data:
                          id: ASTROPAY
                          transaction_id: '32373'
                          account_id: ''
                          beneficiary_id: test_merchant_deposit_id
                          status: APPROVED
                          status_detail: APPROVED
                          raw_response: |-
                            {
                              "cashout_id" : 32373,
                              "merchant_cashout_id" : "f0642eb0-31cb-44bc-9dc6-03d55ff4d664",
                              "status" : "APPROVED",
                              "user_id" : "h15sg84U6rCl"
                            }
                        created_at: '2024-05-27T15:12:23.022588031Z'
                        updated_at: '2024-05-27T15:12:23.022588361Z'
                Payout - Pending:
                  value:
                    id: 64bc81c3-928f-45bf-af97-f3772238627b
                    account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    status: PENDING
                    merchant_reference: MR-12345
                    purpose: EXPENSES
                    country: BR
                    description: null
                    amount:
                      currency: BRL
                      value: 10.01
                    beneficiary:
                      merchant_beneficiary_id: test_merchant_deposit_id_10
                      national_entity: null
                      first_name: null
                      last_name: null
                      legal_name: null
                      email: null
                      country: BR
                      date_of_birth: null
                      document: null
                      phone: null
                      address: null
                    metadata: []
                    created_at: '2024-05-27T14:49:10.215801437Z'
                    updated_at: '2024-05-27T14:49:10.215801717Z'
                    transactions:
                      - id: abff6234-7617-44fb-9958-98b2105274b1
                        status: PENDING
                        type: PAYOUT
                        response_code: PENDING_PROVIDER_CONFIRMATION
                        merchant_reference: ''
                        purpose: ''
                        description: null
                        amount:
                          currency: BRL
                          value: 10.01
                        withdrawal_method:
                          type: ASTROPAY_PAYOUT
                          detail:
                            bank_transfer: null
                            wallet:
                              code: null
                              email: null
                              country: null
                              document: null
                              phone:
                                country_code: '55'
                                number: '987654321'
                        provider_data:
                          id: ASTROPAY
                          transaction_id: '32368'
                          account_id: ''
                          beneficiary_id: test_merchant_deposit_id_10
                          status: PENDING
                          status_detail: PENDING
                          raw_response: |-
                            {
                              "cashout_id" : 32368,
                              "merchant_cashout_id" : "abff6234-7617-44fb-9958-98b2105274b1",
                              "status" : "PENDING"
                            }
                        created_at: '2024-05-27T14:49:10.916986279Z'
                        updated_at: '2024-05-27T14:49:10.916987669Z'
                Payout - Succeeded:
                  value:
                    id: 72ec87c6-8124-4638-9333-6537d057fef5
                    account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    status: SUCCEEDED
                    merchant_reference: MR-12345
                    purpose: EXPENSES
                    country: BR
                    description: null
                    amount:
                      currency: BRL
                      value: 100
                    beneficiary:
                      merchant_beneficiary_id: test_merchant_deposit_id
                      national_entity: null
                      first_name: null
                      last_name: null
                      legal_name: null
                      email: null
                      country: BR
                      date_of_birth: null
                      document: null
                      phone: null
                      address: null
                    metadata: []
                    created_at: '2024-05-27T15:03:35.353595038Z'
                    updated_at: '2024-05-27T15:03:35.353596398Z'
                    transactions:
                      - id: 7f0e69dd-cc0d-437a-b99a-05a0bfbfd9ca
                        status: SUCCEEDED
                        type: PAYOUT
                        response_code: SUCCEEDED
                        merchant_reference: ''
                        purpose: ''
                        description: null
                        amount:
                          currency: BRL
                          value: 100
                        withdrawal_method:
                          type: ASTROPAY_PAYOUT
                          detail:
                            bank_transfer: null
                            wallet:
                              code: h15sg84U6rCl
                              email: null
                              country: null
                              document: null
                              phone: null
                        provider_data:
                          id: ASTROPAY
                          transaction_id: '32371'
                          account_id: ''
                          beneficiary_id: test_merchant_deposit_id
                          status: APPROVED
                          status_detail: APPROVED
                          raw_response: |-
                            {
                              "cashout_id" : 32371,
                              "merchant_cashout_id" : "7f0e69dd-cc0d-437a-b99a-05a0bfbfd9ca",
                              "status" : "APPROVED",
                              "user_id" : "h15sg84U6rCl"
                            }
                        created_at: '2024-05-27T15:03:35.768162244Z'
                        updated_at: '2024-05-27T15:03:35.768162864Z'
                Payout - Declined:
                  value:
                    id: 57b0f7b9-1885-48d4-bb75-6a4fd645a64f
                    account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    status: DECLINED
                    merchant_reference: MR-12345
                    purpose: EXPENSES
                    country: BR
                    description: null
                    amount:
                      currency: BRL
                      value: 0
                    beneficiary:
                      merchant_beneficiary_id: test_merchant_deposit_id
                      national_entity: null
                      first_name: null
                      last_name: null
                      legal_name: null
                      email: null
                      country: US
                      date_of_birth: null
                      document: null
                      phone: null
                      address: null
                    metadata: []
                    created_at: '2024-05-27T15:05:10.957146047Z'
                    updated_at: '2024-05-27T15:05:10.957147867Z'
                    transactions:
                      - id: 54afddd3-4af4-458c-b57c-4909e1cfbcfd
                        status: DECLINED
                        type: PAYOUT
                        response_code: INVALID_REQUEST
                        merchant_reference: ''
                        purpose: ''
                        description: null
                        amount:
                          currency: BRL
                          value: 0
                        withdrawal_method:
                          type: ASTROPAY_PAYOUT
                          detail:
                            bank_transfer: null
                            wallet:
                              code: h15sg84U6rCl
                              email: null
                              country: null
                              document: null
                              phone: null
                        provider_data:
                          id: ASTROPAY
                          transaction_id: ''
                          account_id: ''
                          beneficiary_id: test_merchant_deposit_id
                          status: commons_invalid_request
                          status_detail: 'Errors. amount :: must be greater than 0'
                          raw_response: |-
                            {
                              "error" : "commons_invalid_request",
                              "description" : "Errors. amount :: must be greater than 0"
                            }
                        created_at: '2024-05-27T15:05:11.559306917Z'
                        updated_at: '2024-05-27T15:05:11.559307247Z'
                Payout - Pending - Paypal:
                  value:
                    id: 6509a7bb-e3ff-4def-b056-c4f4407d73c0
                    account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    status: PENDING
                    merchant_reference: MR-Test-12345
                    purpose: EXPENSES
                    country: BR
                    description: Test
                    amount:
                      currency: USD
                      value: 10
                    beneficiary:
                      merchant_beneficiary_id: AA01
                      national_entity: null
                      first_name: null
                      last_name: null
                      legal_name: null
                      email: null
                      country: BR
                      date_of_birth: null
                      document: null
                      phone: null
                      address: null
                    metadata:
                      - key: key1
                        value: value1
                    transactions:
                      - id: 7ac96c45-1242-426b-9d08-61c9e29750a2
                        status: PENDING
                        type: PAYOUT
                        response_code: PENDING_PROVIDER_CONFIRMATION
                        merchant_reference: MR-Test-12345
                        purpose: EXPENSES
                        description: Test
                        amount:
                          currency: USD
                          value: 10
                        withdrawal_method:
                          type: PAYPAL_PAYOUT
                          provider_id: PAYPAL
                          original_transaction_id: null
                          detail:
                            bank_transfer: null
                            wallet:
                              code: XMBXXFEMM22ML
                              email: null
                              country: null
                              document: null
                              phone: null
                        provider_data:
                          id: PAYPAL
                          transaction_id: 8SM8JP8UCM6E2
                          account_id: ''
                          beneficiary_id: AA01
                          status: PENDING
                          status_detail: 'Batch Status: PENDING, Item Status: PENDING'
                          raw_response: >-
                            {"batch_header":{"payout_batch_id":"8SM8JP8UCM6E2","batch_status":"PENDING","time_created":"2024-11-22T12:29:56Z","sender_batch_header":{"sender_batch_id":"7ac96c45-1242-426b-9d08-61c9e29750a2","email_subject":"Payout
                            from
                            nicolas_mana_20230104123227380452","email_message":"Test"},"funding_source":"BALANCE","amount":{"currency":"USD","value":"10.00"},"fees":{"currency":"USD","value":"0.25"}},"items":[{"payout_item_id":"999RNFY7XEKMY","transaction_status":"PENDING","payout_item_fee":{"currency":"USD","value":"0.25"},"payout_batch_id":"8SM8JP8UCM6E2","payout_item":{"recipient_type":"PAYPAL_ID","amount":{"currency":"USD","value":"10.00"},"note":"Test","receiver":"XMBXXFEMM22ML","sender_item_id":"MR-Test-12345","recipient_wallet":"PAYPAL","purpose":"GOODS"},"links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payouts-item/999RNFY7XEKMY","rel":"item","method":"GET","encType":"application/json"}]}],"links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payouts/8SM8JP8UCM6E2?page_size=1000&page=1","rel":"self","method":"GET","encType":"application/json"}]}
                        created_at: '2024-11-22T12:29:54.640135912Z'
                        updated_at: '2024-11-22T12:29:54.640137783Z'
                    created_at: '2024-11-22T12:29:51.436108161Z'
                    updated_at: '2024-11-22T12:29:51.436110603Z'
              schema:
                oneOf:
                  - type: object
                    properties:
                      id:
                        type: string
                        example: 5223d101-0019-43d3-92cb-5c23391a7410
                      account_id:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      status:
                        type: string
                        example: SUCCEEDED
                      merchant_reference:
                        type: string
                        example: MR-Test-123
                      purpose:
                        type: string
                        example: EXPENSES
                      country:
                        type: string
                        example: BR
                      description:
                        type: string
                        example: Test
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: BRL
                          value:
                            type: integer
                            example: 100
                            default: 0
                      beneficiary:
                        type: object
                        properties:
                          merchant_beneficiary_id:
                            type: string
                            example: test_merchant_deposit_id
                          national_entity:
                            type: string
                            example: INDIVIDUAL
                          first_name:
                            type: string
                            example: John
                          last_name:
                            type: string
                            example: Doe
                          legal_name:
                            type: string
                            example: John Doe
                          email:
                            type: string
                            example: john.doe@email.com
                          country:
                            type: string
                            example: BR
                          date_of_birth:
                            type: string
                            example: '1980-01-01'
                          document:
                            type: object
                            properties:
                              document_type:
                                type: string
                                example: CPF
                              document_number:
                                type: string
                                example: '123456789'
                          phone:
                            type: object
                            properties:
                              country_code:
                                type: string
                                example: '55'
                              number:
                                type: string
                                example: '1234567890'
                          address:
                            type: object
                            properties:
                              address_line_1:
                                type: string
                                example: 123 Main St
                              address_line_2:
                                type: string
                                example: Apt 1
                              country:
                                type: string
                                example: US
                              state:
                                type: string
                                example: NY
                              city:
                                type: string
                                example: New York
                              zip_code:
                                type: string
                                example: '10001'
                      metadata:
                        type: array
                      created_at:
                        type: string
                        example: '2024-05-27T15:12:22.712914616Z'
                      updated_at:
                        type: string
                        example: '2024-05-27T15:12:22.712916116Z'
                      transactions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: f0642eb0-31cb-44bc-9dc6-03d55ff4d664
                            status:
                              type: string
                              example: SUCCEEDED
                            type:
                              type: string
                              example: PAYOUT
                            response_code:
                              type: string
                              example: SUCCEEDED
                            merchant_reference:
                              type: string
                              example: ''
                            purpose:
                              type: string
                              example: ''
                            description:
                              type: string
                              example: Test
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: BRL
                                value:
                                  type: integer
                                  example: 100
                                  default: 0
                            withdrawal_method:
                              type: object
                              properties:
                                type:
                                  type: string
                                  example: ASTROPAY_PAYOUT
                                detail:
                                  type: object
                                  properties:
                                    bank_transfer: {}
                                    wallet:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          example: h15sg84U6rCl
                                        email: {}
                                        country: {}
                                        document: {}
                                        phone: {}
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: ASTROPAY
                                transaction_id:
                                  type: string
                                  example: '32373'
                                account_id:
                                  type: string
                                  example: ''
                                beneficiary_id:
                                  type: string
                                  example: test_merchant_deposit_id
                                status:
                                  type: string
                                  example: APPROVED
                                status_detail:
                                  type: string
                                  example: APPROVED
                                raw_response:
                                  type: string
                                  example: |-
                                    {
                                      "cashout_id" : 32373,
                                      "merchant_cashout_id" : "f0642eb0-31cb-44bc-9dc6-03d55ff4d664",
                                      "status" : "APPROVED",
                                      "user_id" : "h15sg84U6rCl"
                                    }
                            created_at:
                              type: string
                              example: '2024-05-27T15:12:23.022588031Z'
                            updated_at:
                              type: string
                              example: '2024-05-27T15:12:23.022588361Z'
                  - title: Payout - Pending
                    type: object
                    properties:
                      id:
                        type: string
                        example: 64bc81c3-928f-45bf-af97-f3772238627b
                      account_id:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      status:
                        type: string
                        example: PENDING
                      merchant_reference:
                        type: string
                        example: MR-12345
                      purpose:
                        type: string
                        example: EXPENSES
                      country:
                        type: string
                        example: BR
                      description: {}
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: BRL
                          value:
                            type: number
                            example: 10.01
                            default: 0
                      beneficiary:
                        type: object
                        properties:
                          merchant_beneficiary_id:
                            type: string
                            example: test_merchant_deposit_id_10
                          national_entity: {}
                          first_name: {}
                          last_name: {}
                          legal_name: {}
                          email: {}
                          country:
                            type: string
                            example: BR
                          date_of_birth: {}
                          document: {}
                          phone: {}
                          address: {}
                      metadata:
                        type: array
                      created_at:
                        type: string
                        example: '2024-05-27T14:49:10.215801437Z'
                      updated_at:
                        type: string
                        example: '2024-05-27T14:49:10.215801717Z'
                      transactions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: abff6234-7617-44fb-9958-98b2105274b1
                            status:
                              type: string
                              example: PENDING
                            type:
                              type: string
                              example: PAYOUT
                            response_code:
                              type: string
                              example: PENDING_PROVIDER_CONFIRMATION
                            merchant_reference:
                              type: string
                              example: ''
                            purpose:
                              type: string
                              example: ''
                            description: {}
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: BRL
                                value:
                                  type: number
                                  example: 10.01
                                  default: 0
                            withdrawal_method:
                              type: object
                              properties:
                                type:
                                  type: string
                                  example: ASTROPAY_PAYOUT
                                detail:
                                  type: object
                                  properties:
                                    bank_transfer: {}
                                    wallet:
                                      type: object
                                      properties:
                                        code: {}
                                        email: {}
                                        country: {}
                                        document: {}
                                        phone:
                                          type: object
                                          properties:
                                            country_code:
                                              type: string
                                              example: '55'
                                            number:
                                              type: string
                                              example: '987654321'
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: ASTROPAY
                                transaction_id:
                                  type: string
                                  example: '32368'
                                account_id:
                                  type: string
                                  example: ''
                                beneficiary_id:
                                  type: string
                                  example: test_merchant_deposit_id_10
                                status:
                                  type: string
                                  example: PENDING
                                status_detail:
                                  type: string
                                  example: PENDING
                                raw_response:
                                  type: string
                                  example: |-
                                    {
                                      "cashout_id" : 32368,
                                      "merchant_cashout_id" : "abff6234-7617-44fb-9958-98b2105274b1",
                                      "status" : "PENDING"
                                    }
                            created_at:
                              type: string
                              example: '2024-05-27T14:49:10.916986279Z'
                            updated_at:
                              type: string
                              example: '2024-05-27T14:49:10.916987669Z'
                  - title: Payout - Succeeded
                    type: object
                    properties:
                      id:
                        type: string
                        example: 72ec87c6-8124-4638-9333-6537d057fef5
                      account_id:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      status:
                        type: string
                        example: SUCCEEDED
                      merchant_reference:
                        type: string
                        example: MR-12345
                      purpose:
                        type: string
                        example: EXPENSES
                      country:
                        type: string
                        example: BR
                      description: {}
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: BRL
                          value:
                            type: integer
                            example: 100
                            default: 0
                      beneficiary:
                        type: object
                        properties:
                          merchant_beneficiary_id:
                            type: string
                            example: test_merchant_deposit_id
                          national_entity: {}
                          first_name: {}
                          last_name: {}
                          legal_name: {}
                          email: {}
                          country:
                            type: string
                            example: BR
                          date_of_birth: {}
                          document: {}
                          phone: {}
                          address: {}
                      metadata:
                        type: array
                      created_at:
                        type: string
                        example: '2024-05-27T15:03:35.353595038Z'
                      updated_at:
                        type: string
                        example: '2024-05-27T15:03:35.353596398Z'
                      transactions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 7f0e69dd-cc0d-437a-b99a-05a0bfbfd9ca
                            status:
                              type: string
                              example: SUCCEEDED
                            type:
                              type: string
                              example: PAYOUT
                            response_code:
                              type: string
                              example: SUCCEEDED
                            merchant_reference:
                              type: string
                              example: ''
                            purpose:
                              type: string
                              example: ''
                            description: {}
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: BRL
                                value:
                                  type: integer
                                  example: 100
                                  default: 0
                            withdrawal_method:
                              type: object
                              properties:
                                type:
                                  type: string
                                  example: ASTROPAY_PAYOUT
                                detail:
                                  type: object
                                  properties:
                                    bank_transfer: {}
                                    wallet:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          example: h15sg84U6rCl
                                        email: {}
                                        country: {}
                                        document: {}
                                        phone: {}
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: ASTROPAY
                                transaction_id:
                                  type: string
                                  example: '32371'
                                account_id:
                                  type: string
                                  example: ''
                                beneficiary_id:
                                  type: string
                                  example: test_merchant_deposit_id
                                status:
                                  type: string
                                  example: APPROVED
                                status_detail:
                                  type: string
                                  example: APPROVED
                                raw_response:
                                  type: string
                                  example: |-
                                    {
                                      "cashout_id" : 32371,
                                      "merchant_cashout_id" : "7f0e69dd-cc0d-437a-b99a-05a0bfbfd9ca",
                                      "status" : "APPROVED",
                                      "user_id" : "h15sg84U6rCl"
                                    }
                            created_at:
                              type: string
                              example: '2024-05-27T15:03:35.768162244Z'
                            updated_at:
                              type: string
                              example: '2024-05-27T15:03:35.768162864Z'
                  - title: Payout - Declined
                    type: object
                    properties:
                      id:
                        type: string
                        example: 57b0f7b9-1885-48d4-bb75-6a4fd645a64f
                      account_id:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      status:
                        type: string
                        example: DECLINED
                      merchant_reference:
                        type: string
                        example: MR-12345
                      purpose:
                        type: string
                        example: EXPENSES
                      country:
                        type: string
                        example: BR
                      description: {}
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: BRL
                          value:
                            type: integer
                            example: 0
                            default: 0
                      beneficiary:
                        type: object
                        properties:
                          merchant_beneficiary_id:
                            type: string
                            example: test_merchant_deposit_id
                          national_entity: {}
                          first_name: {}
                          last_name: {}
                          legal_name: {}
                          email: {}
                          country:
                            type: string
                            example: US
                          date_of_birth: {}
                          document: {}
                          phone: {}
                          address: {}
                      metadata:
                        type: array
                      created_at:
                        type: string
                        example: '2024-05-27T15:05:10.957146047Z'
                      updated_at:
                        type: string
                        example: '2024-05-27T15:05:10.957147867Z'
                      transactions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 54afddd3-4af4-458c-b57c-4909e1cfbcfd
                            status:
                              type: string
                              example: DECLINED
                            type:
                              type: string
                              example: PAYOUT
                            response_code:
                              type: string
                              example: INVALID_REQUEST
                            merchant_reference:
                              type: string
                              example: ''
                            purpose:
                              type: string
                              example: ''
                            description: {}
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: BRL
                                value:
                                  type: integer
                                  example: 0
                                  default: 0
                            withdrawal_method:
                              type: object
                              properties:
                                type:
                                  type: string
                                  example: ASTROPAY_PAYOUT
                                detail:
                                  type: object
                                  properties:
                                    bank_transfer: {}
                                    wallet:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          example: h15sg84U6rCl
                                        email: {}
                                        country: {}
                                        document: {}
                                        phone: {}
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: ASTROPAY
                                transaction_id:
                                  type: string
                                  example: ''
                                account_id:
                                  type: string
                                  example: ''
                                beneficiary_id:
                                  type: string
                                  example: test_merchant_deposit_id
                                status:
                                  type: string
                                  example: commons_invalid_request
                                status_detail:
                                  type: string
                                  example: 'Errors. amount :: must be greater than 0'
                                raw_response:
                                  type: string
                                  example: |-
                                    {
                                      "error" : "commons_invalid_request",
                                      "description" : "Errors. amount :: must be greater than 0"
                                    }
                            created_at:
                              type: string
                              example: '2024-05-27T15:05:11.559306917Z'
                            updated_at:
                              type: string
                              example: '2024-05-27T15:05:11.559307247Z'
                  - title: Payout - Pending - Paypal
                    type: object
                    properties:
                      id:
                        type: string
                        example: 6509a7bb-e3ff-4def-b056-c4f4407d73c0
                      account_id:
                        type: string
                        example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                      status:
                        type: string
                        example: PENDING
                      merchant_reference:
                        type: string
                        example: MR-Test-12345
                      purpose:
                        type: string
                        example: EXPENSES
                      country:
                        type: string
                        example: BR
                      description:
                        type: string
                        example: Test
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: integer
                            example: 10
                            default: 0
                      beneficiary:
                        type: object
                        properties:
                          merchant_beneficiary_id:
                            type: string
                            example: AA01
                          national_entity: {}
                          first_name: {}
                          last_name: {}
                          legal_name: {}
                          email: {}
                          country:
                            type: string
                            example: BR
                          date_of_birth: {}
                          document: {}
                          phone: {}
                          address: {}
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: key1
                            value:
                              type: string
                              example: value1
                      transactions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              example: 7ac96c45-1242-426b-9d08-61c9e29750a2
                            status:
                              type: string
                              example: PENDING
                            type:
                              type: string
                              example: PAYOUT
                            response_code:
                              type: string
                              example: PENDING_PROVIDER_CONFIRMATION
                            merchant_reference:
                              type: string
                              example: MR-Test-12345
                            purpose:
                              type: string
                              example: EXPENSES
                            description:
                              type: string
                              example: Test
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: USD
                                value:
                                  type: integer
                                  example: 10
                                  default: 0
                            withdrawal_method:
                              type: object
                              properties:
                                type:
                                  type: string
                                  example: PAYPAL_PAYOUT
                                provider_id:
                                  type: string
                                  example: PAYPAL
                                original_transaction_id: {}
                                detail:
                                  type: object
                                  properties:
                                    bank_transfer: {}
                                    wallet:
                                      type: object
                                      properties:
                                        code:
                                          type: string
                                          example: XMBXXFEMM22ML
                                        email: {}
                                        country: {}
                                        document: {}
                                        phone: {}
                            provider_data:
                              type: object
                              properties:
                                id:
                                  type: string
                                  example: PAYPAL
                                transaction_id:
                                  type: string
                                  example: 8SM8JP8UCM6E2
                                account_id:
                                  type: string
                                  example: ''
                                beneficiary_id:
                                  type: string
                                  example: AA01
                                status:
                                  type: string
                                  example: PENDING
                                status_detail:
                                  type: string
                                  example: 'Batch Status: PENDING, Item Status: PENDING'
                                raw_response:
                                  type: string
                                  example: >-
                                    {"batch_header":{"payout_batch_id":"8SM8JP8UCM6E2","batch_status":"PENDING","time_created":"2024-11-22T12:29:56Z","sender_batch_header":{"sender_batch_id":"7ac96c45-1242-426b-9d08-61c9e29750a2","email_subject":"Payout
                                    from
                                    nicolas_mana_20230104123227380452","email_message":"Test"},"funding_source":"BALANCE","amount":{"currency":"USD","value":"10.00"},"fees":{"currency":"USD","value":"0.25"}},"items":[{"payout_item_id":"999RNFY7XEKMY","transaction_status":"PENDING","payout_item_fee":{"currency":"USD","value":"0.25"},"payout_batch_id":"8SM8JP8UCM6E2","payout_item":{"recipient_type":"PAYPAL_ID","amount":{"currency":"USD","value":"10.00"},"note":"Test","receiver":"XMBXXFEMM22ML","sender_item_id":"MR-Test-12345","recipient_wallet":"PAYPAL","purpose":"GOODS"},"links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payouts-item/999RNFY7XEKMY","rel":"item","method":"GET","encType":"application/json"}]}],"links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payouts/8SM8JP8UCM6E2?page_size=1000&page=1","rel":"self","method":"GET","encType":"application/json"}]}
                            created_at:
                              type: string
                              example: '2024-11-22T12:29:54.640135912Z'
                            updated_at:
                              type: string
                              example: '2024-11-22T12:29:54.640137783Z'
                      created_at:
                        type: string
                        example: '2024-11-22T12:29:51.436108161Z'
                      updated_at:
                        type: string
                        example: '2024-11-22T12:29:51.436110603Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Bad Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payouts
  /payouts/{payout_id}:
    get:
      summary: Retrieve Payout by ID
      description: ''
      operationId: retrieve-payout-by-id
      parameters:
        - in: path
          name: payout_id
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 1c58426d-2c1b-4476-b3c0-447a8c683466
                    account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    status: SUCCEEDED
                    merchant_reference: MR-Test-123
                    purpose: ''
                    country: US
                    description: Test
                    amount:
                      currency: USD
                      value: 100
                    beneficiary:
                      merchant_beneficiary_id: test_merchant_deposit_id
                      national_entity: INDIVIDUAL
                      first_name: John
                      last_name: Doe
                      legal_name: John Doe
                      email: john.doe@email.com
                      country: US
                      date_of_birth: '1980-01-01'
                      document:
                        document_type: SSN
                        document_number: 123-45-6789
                      phone:
                        country_code: '1'
                        number: '1234567890'
                      address:
                        address_line_1: 123 Main St
                        address_line_2: Apt 1
                        country: US
                        state: NY
                        city: New York
                        zip_code: '10001'
                    metadata: []
                    created_at: '2024-05-27T15:14:19.012803Z'
                    updated_at: '2024-05-27T15:14:20.577061Z'
                    transactions:
                      - id: 30c91532-5777-410a-887f-ccfdcc7c7b1b
                        status: SUCCEEDED
                        type: ASTROPAY_PAYOUT
                        response_code: SUCCEEDED
                        merchant_reference: MR-Test-123
                        purpose: ''
                        description: Test
                        amount:
                          currency: USD
                          value: 100
                        withdrawal_method:
                          type: ASTROPAY_PAYOUT
                          detail:
                            bank_transfer: null
                            wallet:
                              code: h15sg84U6rCl
                              email: null
                              country: null
                              document: null
                              phone: null
                        provider_data:
                          id: ASTROPAY
                          transaction_id: '32375'
                          account_id: ''
                          beneficiary_id: test_merchant_deposit_id
                          status: APPROVED
                          status_detail: APPROVED
                          raw_response: >-
                            "{\n  \"cashout_id\" : 32375,\n  \"merchant_cashout_id\" :
                            \"30c91532-5777-410a-887f-ccfdcc7c7b1b\",\n  \"status\" : \"APPROVED\",\n  \"user_id\" :
                            \"h15sg84U6rCl\"\n}"
                        created_at: '2024-05-27T15:14:19.574485Z'
                        updated_at: '2024-05-27T15:14:20.577057Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 1c58426d-2c1b-4476-b3c0-447a8c683466
                  account_id:
                    type: string
                    example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                  status:
                    type: string
                    example: SUCCEEDED
                  merchant_reference:
                    type: string
                    example: MR-Test-123
                  purpose:
                    type: string
                    example: ''
                  country:
                    type: string
                    example: US
                  description:
                    type: string
                    example: Test
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: integer
                        example: 100
                        default: 0
                  beneficiary:
                    type: object
                    properties:
                      merchant_beneficiary_id:
                        type: string
                        example: test_merchant_deposit_id
                      national_entity:
                        type: string
                        example: INDIVIDUAL
                      first_name:
                        type: string
                        example: John
                      last_name:
                        type: string
                        example: Doe
                      legal_name:
                        type: string
                        example: John Doe
                      email:
                        type: string
                        example: john.doe@email.com
                      country:
                        type: string
                        example: US
                      date_of_birth:
                        type: string
                        example: '1980-01-01'
                      document:
                        type: object
                        properties:
                          document_type:
                            type: string
                            example: SSN
                          document_number:
                            type: string
                            example: 123-45-6789
                      phone:
                        type: object
                        properties:
                          country_code:
                            type: string
                            example: '1'
                          number:
                            type: string
                            example: '1234567890'
                      address:
                        type: object
                        properties:
                          address_line_1:
                            type: string
                            example: 123 Main St
                          address_line_2:
                            type: string
                            example: Apt 1
                          country:
                            type: string
                            example: US
                          state:
                            type: string
                            example: NY
                          city:
                            type: string
                            example: New York
                          zip_code:
                            type: string
                            example: '10001'
                  metadata:
                    type: array
                  created_at:
                    type: string
                    example: '2024-05-27T15:14:19.012803Z'
                  updated_at:
                    type: string
                    example: '2024-05-27T15:14:20.577061Z'
                  transactions:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          example: 30c91532-5777-410a-887f-ccfdcc7c7b1b
                        status:
                          type: string
                          example: SUCCEEDED
                        type:
                          type: string
                          example: ASTROPAY_PAYOUT
                        response_code:
                          type: string
                          example: SUCCEEDED
                        merchant_reference:
                          type: string
                          example: MR-Test-123
                        purpose:
                          type: string
                          example: ''
                        description:
                          type: string
                          example: Test
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                              example: USD
                            value:
                              type: integer
                              example: 100
                              default: 0
                        withdrawal_method:
                          type: object
                          properties:
                            type:
                              type: string
                              example: ASTROPAY_PAYOUT
                            detail:
                              type: object
                              properties:
                                bank_transfer: {}
                                wallet:
                                  type: object
                                  properties:
                                    code:
                                      type: string
                                      example: h15sg84U6rCl
                                    email: {}
                                    country: {}
                                    document: {}
                                    phone: {}
                        provider_data:
                          type: object
                          properties:
                            id:
                              type: string
                              example: ASTROPAY
                            transaction_id:
                              type: string
                              example: '32375'
                            account_id:
                              type: string
                              example: ''
                            beneficiary_id:
                              type: string
                              example: test_merchant_deposit_id
                            status:
                              type: string
                              example: APPROVED
                            status_detail:
                              type: string
                              example: APPROVED
                            raw_response:
                              type: string
                              example: >-
                                "{\n  \"cashout_id\" : 32375,\n  \"merchant_cashout_id\" :
                                \"30c91532-5777-410a-887f-ccfdcc7c7b1b\",\n  \"status\" : \"APPROVED\",\n  \"user_id\" :
                                \"h15sg84U6rCl\"\n}"
                        created_at:
                          type: string
                          example: '2024-05-27T15:14:19.574485Z'
                        updated_at:
                          type: string
                          example: '2024-05-27T15:14:20.577057Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Bad Request
              schema:
                type: object
                properties: {}
      deprecated: false
      tags:
        - Payouts
  /pci-proxy/destinations:
    get:
      summary: List Destinations
      description: >-
        Returns the destinations registered on your account's allowlist. Only hosts on this list can be reached by the
        [forward proxy](/reference/pci-proxy/invoke-forward-proxy); a request to any other host is rejected with `403
        DESTINATION_NOT_ALLOWED`.
      operationId: listPciProxyDestinations
      parameters:
        - in: header
          name: X-Account-Code
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            The `account_id` a destination was registered with. Pass it to see the destinations scoped to that account,
            plus your org-wide destinations (`account_id: null`). Omitting the header returns only the org-wide
            destinations; account-scoped ones are not included.
      responses:
        '200':
          description: The destinations registered for your account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  destinations:
                    type: array
                    items:
                      $ref: '#/components/schemas/Destination'
              example:
                destinations:
                  - id: d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4
                    hostname: api.example-processor.com
                    status: ENABLED
                    purpose: Direct acquiring — Processor X
                    created_at: '2026-07-09T13:05:36Z'
                    updated_at: '2026-07-09T13:05:36Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
      tags:
        - Pci Proxy
    post:
      summary: Register Destination
      description: >-
        Adds a host to your account's allowlist so the forward proxy can send card data to it. Matching is on the exact
        hostname, case-insensitive; subdomains and wildcards are not implied. A newly registered host is usable within
        minutes.
      operationId: registerPciProxyDestination
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DestinationInput'
            example:
              hostname: api.example-processor.com
              purpose: Direct acquiring — Processor X
      responses:
        '201':
          description: The destination was registered.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
              example:
                id: d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4
                account_id: null
                hostname: api.example-processor.com
                status: ENABLED
                purpose: Direct acquiring — Processor X
                created_at: '2026-07-09T13:05:36Z'
                updated_at: '2026-07-09T13:05:36Z'
        '400':
          description: The request body could not be parsed, or the `account_id` is not a valid account for your organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
              examples:
                Invalid request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - invalid body
                Invalid account id:
                  value:
                    code: INVALID_ACCOUNT_ID
                    messages:
                      - account_id is not a valid account
        '401':
          $ref: '#/components/responses/Unauthorized'
        '409':
          description: The hostname is already registered on your allowlist (for this account scope).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
              examples:
                Destination exists:
                  value:
                    code: DESTINATION_EXISTS
                    messages:
                      - destination already registered
        '422':
          description: >-
            The hostname is not a bare public hostname (a URL, a host with a scheme, port, or path, an IP address, or a
            wildcard).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
              examples:
                Invalid hostname:
                  value:
                    code: INVALID_HOSTNAME
                    messages:
                      - hostname must be a bare public FQDN with no scheme, port, path, or wildcard
      tags:
        - Pci Proxy
  /pci-proxy/destinations/{id}:
    delete:
      summary: Remove Destination
      description: >-
        Removes a host from your account's allowlist. This takes effect immediately: the next proxy request to that host
        is rejected with `403 DESTINATION_NOT_ALLOWED`.
      operationId: removePciProxyDestination
      parameters:
        - name: id
          in: path
          required: true
          description: >-
            The `id` (UUID) of the destination to remove, as returned by [List
            Destinations](/reference/pci-proxy/list-destinations).
          schema:
            type: string
            format: uuid
            example: d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4
        - in: header
          name: X-Account-Code
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            Required if the destination was registered with an `account_id`: pass that same `account_id`. Without it, an
            account-scoped destination is treated as not found.
      responses:
        '204':
          description: The destination was removed. No response body.
        '400':
          description: The `id` path parameter is not a valid UUID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
              examples:
                Invalid id:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - invalid id
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          description: No destination with that `id` is registered for your account.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DestinationError'
              examples:
                Not found:
                  value:
                    code: NOT_FOUND
                    messages:
                      - destination not found
      tags:
        - Pci Proxy
  /pci-proxy/destinations/{id}/disable:
    post:
      summary: Disable Destination
      description: >-
        Turns a destination off without removing it — the record and its audit history are kept, but the forward path
        rejects it with `403 DESTINATION_NOT_ALLOWED` until it is enabled again.
      operationId: disablePciProxyDestination
      parameters:
        - name: id
          in: path
          required: true
          description: The `id` (UUID) of the destination to disable.
          schema:
            type: string
            format: uuid
            example: d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4
        - in: header
          name: X-Account-Code
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            Required if the destination was registered with an `account_id`: pass that same `account_id`. Without it, an
            account-scoped destination is treated as not found.
      responses:
        '200':
          description: The destination was disabled; the updated object is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
        '400':
          $ref: '#/components/responses/InvalidId'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/DestinationNotFound'
      tags:
        - Pci Proxy
  /pci-proxy/destinations/{id}/enable:
    post:
      summary: Enable Destination
      description: Re-enables a disabled destination. Only `ENABLED` destinations are used by the forward path.
      operationId: enablePciProxyDestination
      parameters:
        - name: id
          in: path
          required: true
          description: The `id` (UUID) of the destination to enable.
          schema:
            type: string
            format: uuid
            example: d7e8f9a0-1234-4b5c-8d6e-7f8091a2b3c4
        - in: header
          name: X-Account-Code
          required: false
          schema:
            type: string
            format: uuid
          description: >-
            Required if the destination was registered with an `account_id`: pass that same `account_id`. Without it, an
            account-scoped destination is treated as not found.
      responses:
        '200':
          description: The destination was enabled; the updated object is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Destination'
        '400':
          $ref: '#/components/responses/InvalidId'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/DestinationNotFound'
      tags:
        - Pci Proxy
  /pci-proxy/forward:
    get:
      summary: Invoke Forward Proxy (GET)
      description: >-
        Same as `POST /pci-proxy/forward`, sent with the `GET` method. The proxy forwards the request to the destination
        with the same method, and resolves `{{vaulted_token.<TOKEN>.<field>}}` expressions in the body and header
        values.
      operationId: invokeForwardProxyGet
      parameters:
        - $ref: '#/components/parameters/ForwardProxyProxyDestinationUrl'
        - $ref: '#/components/parameters/ForwardProxyProxyTimeout'
        - $ref: '#/components/parameters/ForwardProxyAccountId'
        - $ref: '#/components/parameters/ForwardProxyProxyAuth'
        - $ref: '#/components/parameters/ForwardProxyProxyAuthSecretKey'
      responses:
        '200':
          description: >-
            The destination's response, passed through unchanged: status, content type and body. The body can be JSON,
            XML, text or empty, so no schema is enforced.
          content:
            '*/*':
              schema:
                description: Whatever the destination returned.
      tags:
        - Pci Proxy
    post:
      summary: Invoke Forward Proxy
      description: >-
        Forwards your request to the destination indicated in the `yuno-proxy-destination-url` header, replacing
        `{{vaulted_token.<TOKEN>.<field>}}` expressions in the body and header values with real card data inside Yuno's
        PCI DSS Level 1 environment. The destination's status code, headers, and body are returned unchanged. `GET`,
        `PUT`, `PATCH`, and `DELETE` are also supported and forwarded verbatim. The full destination (including its path
        and query string) is specified in `yuno-proxy-destination-url`; a query string on the `/pci-proxy/forward`
        request itself is rejected. Every proxy response carries a `yuno-proxy-request-id` header; a `401` returned
        before the request reaches the proxy is the only exception.
      operationId: invokeForwardProxy
      parameters:
        - name: yuno-proxy-destination-url
          in: header
          required: true
          description: >-
            The complete destination URL, including its path and any query string (for example
            `https://api.example-processor.com/charges/ch_123/capture?expand=true`). Must be a public HTTPS hostname on
            port 443, and the host must be registered on your destination allowlist; IP addresses and internal networks
            are rejected. It must not contain `{{vaulted_token...}}` expressions (card data must never appear in a URL).
          schema:
            type: string
            example: https://api.example-processor.com/charges
        - name: yuno-proxy-timeout
          in: header
          required: false
          description: Destination timeout in seconds. Default 30, maximum 120.
          schema:
            type: integer
            minimum: 1
            maximum: 120
            example: 30
        - name: yuno-account-id
          in: header
          required: false
          description: >-
            Optional account scope. Narrows which allowlisted destinations are permitted for this request; it does not
            affect token resolution (vaulted tokens are always scoped to your organization). Like all `yuno-*` headers
            it is removed before forwarding and never reaches the destination.
          schema:
            type: string
            example: acc_123
        - name: yuno-proxy-auth
          in: header
          required: false
          description: >-
            Signing scheme for destinations that require HMAC request signing over the body. The proxy computes the
            signature over the resolved body (after expression substitution) and injects the destination's auth headers;
            your signing secret is used in memory and discarded — nothing is stored. Supported: `DLOCAL_HMAC` (the proxy
            generates `X-Date` and computes `Authorization: V2-HMAC-SHA256, Signature: <hex>` over `X-Login + X-Date +
            resolved body`; you send `X-Login`, `X-Trans-Key`, and `X-Version` as normal destination headers). An
            unknown value — or a `DLOCAL_HMAC` request missing the `X-Login` or `X-Trans-Key` headers — is rejected with
            `400 INVALID_REQUEST` before the destination is contacted.
          schema:
            type: string
            enum:
              - DLOCAL_HMAC
            example: DLOCAL_HMAC
        - name: yuno-proxy-auth-secret-key
          in: header
          required: false
          description: >-
            Your signing secret for this request (required when `yuno-proxy-auth` is present). Like every `yuno-*`
            header it is stripped before forwarding and excluded from logs.
          schema:
            type: string
      requestBody:
        description: >-
          The body the destination API expects, with vaulted token expressions where card data belongs. The proxy is
          content-transparent: it forwards your body and `Content-Type` unchanged and resolves
          `{{vaulted_token.<TOKEN>.<field>}}` expressions anywhere in the raw body, so any content type is supported
          (JSON, form-encoded, XML). The JSON object below is illustrative. Supported fields: `number`,
          `expiration_month`, `expiration_year`, `holder_name`, `security_code`; when the card has a network token,
          `network_token_number` (DPAN), `network_token_expiration_month`, `network_token_expiration_year`; and
          `network_transaction_id` (NTID: the scheme's reference for the card's original transaction, for
          merchant-initiated transactions). `security_code` resolves only if the card was enrolled with a security code,
          and only for a limited window after enrollment (see the [Forward Proxy
          guide](/docs/security-and-compliance/pci-proxy/forward-proxy)); when it is unavailable the request fails with
          `EXPRESSION_RESOLUTION_FAILED`. Cryptograms are per-transaction and are not resolved — include the value
          directly in the body if your destination requires one. At most 20 distinct tokens per request; maximum body
          size 1 MB. Expressions are also resolved in header values. All non-expression content is forwarded untouched.
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              example:
                amount: 2500
                currency: USD
                card:
                  number: '{{vaulted_token.1a2b3c4d-5678-90ab-cdef-111213141516.number}}'
                  expiration_month: '{{vaulted_token.1a2b3c4d-5678-90ab-cdef-111213141516.expiration_month}}'
                  expiration_year: '{{vaulted_token.1a2b3c4d-5678-90ab-cdef-111213141516.expiration_year}}'
                  holder_name: '{{vaulted_token.1a2b3c4d-5678-90ab-cdef-111213141516.holder_name}}'
          '*/*':
            schema:
              description: >-
                Any other content type (form-encoded, XML, plain text) is forwarded as-is with expressions resolved in
                the raw body.
      responses:
        '200':
          description: >-
            The destination's response, passed through unchanged: status, content type and body. The body can be JSON,
            XML, text or empty, so no schema is enforced.
          headers:
            yuno-proxy-request-id:
              description: Unique identifier of this proxy invocation.
              schema:
                type: string
            yuno-proxy-destination-status:
              description: HTTP status code returned by the destination. Present only when the destination was reached.
              schema:
                type: integer
            yuno-proxy-replacements:
              description: Number of expressions replaced before forwarding.
              schema:
                type: integer
            yuno-proxy-response-redactions:
              description: >-
                Number of card numbers redacted from the destination response (a non-zero value means the destination
                returned card data).
              schema:
                type: integer
          content:
            '*/*':
              schema:
                description: Whatever the destination returned.
        '400':
          description: >-
            Proxy-originated request error (invalid destination URL, expression problems, invalid timeout, too many
            tokens, or an invalid signing setup — unknown `yuno-proxy-auth`, missing `yuno-proxy-auth-secret-key`, or
            `DLOCAL_HMAC` without the `X-Login` or `X-Trans-Key` headers). The `yuno-proxy-destination-status` header is
            absent because the destination was not called.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Invalid request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - yuno-proxy-destination-url header is required
                Expression resolution failed:
                  value:
                    code: EXPRESSION_RESOLUTION_FAILED
                    messages:
                      - 'a vaulted_token expression could not be resolved: network_transaction_id'
                Invalid account id:
                  value:
                    code: INVALID_ACCOUNT_ID
                    messages:
                      - account_id is not a valid account
        '401':
          description: >-
            Authentication failed. Returned before the request reaches the proxy, so it carries no `yuno-proxy-*`
            headers.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Not authenticated:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - not authenticated
                Authorization unavailable:
                  value:
                    code: AuthenticationFail
                    messages:
                      - authorization unavailable
        '403':
          description: The destination is not allowed, or the PCI Proxy is not activated for your organization (production only).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Destination not allowed:
                  value:
                    code: DESTINATION_NOT_ALLOWED
                    messages:
                      - destination host is not registered on your allowlist
                Product not enabled:
                  value:
                    code: PRODUCT_NOT_ENABLED
                    messages:
                      - >-
                        The PCI Proxy is enabled per organization. Contact your Key Account Manager (KAM) to activate
                        it.
        '413':
          description: Request body over 1 MB.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Request too large:
                  value:
                    code: REQUEST_TOO_LARGE
                    messages:
                      - request body exceeds 1 MB
        '429':
          description: Rate limit exceeded for the account (enforced at the Yuno edge).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Too many requests:
                  value:
                    code: TOO_MANY_REQUESTS
                    messages:
                      - rate limit exceeded
        '500':
          description: Unexpected proxy-side error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Proxy error:
                  value:
                    code: PROXY_ERROR
                    messages:
                      - internal error
        '502':
          description: >-
            The destination could not be reached, or (when Yuno is configured service-wide to block rather than redact)
            its response contained card data.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Destination unreachable:
                  value:
                    code: DESTINATION_UNREACHABLE
                    messages:
                      - connection to destination failed
                Response blocked:
                  value:
                    code: RESPONSE_BLOCKED
                    messages:
                      - destination returned card data
        '504':
          description: The destination did not respond within the timeout.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProxyError'
              examples:
                Destination timeout:
                  value:
                    code: DESTINATION_TIMEOUT
                    messages:
                      - destination did not respond within the configured timeout
      tags:
        - Pci Proxy
    put:
      summary: Invoke Forward Proxy (PUT)
      description: >-
        Same as `POST /pci-proxy/forward`, sent with the `PUT` method. The proxy forwards the request to the destination
        with the same method, and resolves `{{vaulted_token.<TOKEN>.<field>}}` expressions in the body and header
        values.
      operationId: invokeForwardProxyPut
      parameters:
        - $ref: '#/components/parameters/ForwardProxyProxyDestinationUrl'
        - $ref: '#/components/parameters/ForwardProxyProxyTimeout'
        - $ref: '#/components/parameters/ForwardProxyAccountId'
        - $ref: '#/components/parameters/ForwardProxyProxyAuth'
        - $ref: '#/components/parameters/ForwardProxyProxyAuthSecretKey'
      requestBody:
        required: false
        description: Optional. Same format and expression rules as the `POST` request body.
        content:
          application/json:
            schema: {}
          '*/*':
            schema: {}
      responses:
        '200':
          description: >-
            The destination's response, passed through unchanged: status, content type and body. The body can be JSON,
            XML, text or empty, so no schema is enforced.
          content:
            '*/*':
              schema:
                description: Whatever the destination returned.
      tags:
        - Pci Proxy
    patch:
      summary: Invoke Forward Proxy (PATCH)
      description: >-
        Same as `POST /pci-proxy/forward`, sent with the `PATCH` method. The proxy forwards the request to the
        destination with the same method, and resolves `{{vaulted_token.<TOKEN>.<field>}}` expressions in the body and
        header values.
      operationId: invokeForwardProxyPatch
      parameters:
        - $ref: '#/components/parameters/ForwardProxyProxyDestinationUrl'
        - $ref: '#/components/parameters/ForwardProxyProxyTimeout'
        - $ref: '#/components/parameters/ForwardProxyAccountId'
        - $ref: '#/components/parameters/ForwardProxyProxyAuth'
        - $ref: '#/components/parameters/ForwardProxyProxyAuthSecretKey'
      requestBody:
        required: false
        description: Optional. Same format and expression rules as the `POST` request body.
        content:
          application/json:
            schema: {}
          '*/*':
            schema: {}
      responses:
        '200':
          description: >-
            The destination's response, passed through unchanged: status, content type and body. The body can be JSON,
            XML, text or empty, so no schema is enforced.
          content:
            '*/*':
              schema:
                description: Whatever the destination returned.
      tags:
        - Pci Proxy
    delete:
      summary: Invoke Forward Proxy (DELETE)
      description: >-
        Same as `POST /pci-proxy/forward`, sent with the `DELETE` method. The proxy forwards the request to the
        destination with the same method, and resolves `{{vaulted_token.<TOKEN>.<field>}}` expressions in the body and
        header values.
      operationId: invokeForwardProxyDelete
      parameters:
        - $ref: '#/components/parameters/ForwardProxyProxyDestinationUrl'
        - $ref: '#/components/parameters/ForwardProxyProxyTimeout'
        - $ref: '#/components/parameters/ForwardProxyAccountId'
        - $ref: '#/components/parameters/ForwardProxyProxyAuth'
        - $ref: '#/components/parameters/ForwardProxyProxyAuthSecretKey'
      requestBody:
        required: false
        description: Optional. Same format and expression rules as the `POST` request body.
        content:
          application/json:
            schema: {}
          '*/*':
            schema: {}
      responses:
        '200':
          description: >-
            The destination's response, passed through unchanged: status, content type and body. The body can be JSON,
            XML, text or empty, so no schema is enforced.
          content:
            '*/*':
              schema:
                description: Whatever the destination returned.
      tags:
        - Pci Proxy
  /predebit-notify:
    get:
      summary: Retrieve Pre-Debit Notification by Merchant Reference
      description: Retrieves a pre-debit notification by the merchant reference used to create it.
      operationId: retrieve-pre-debit-notification-by-merchant-reference
      parameters:
        - name: X-Account-Code
          in: header
          required: true
          description: UUID of the account the notification belongs to.
          schema:
            type: string
            format: uuid
        - name: merchant_reference
          in: query
          required: true
          description: The merchant_reference used on creation.
          schema:
            type: string
      responses:
        '200':
          description: The pre-debit notification.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: >-
                      Unique identifier of the pre-debit notification. Reference it on the recurring debit as
                      payment_method.detail.bank_transfer.pre_debit_notification_id.
                  account_id:
                    type: string
                    format: uuid
                    description: Your Yuno account ID.
                  status:
                    type: string
                    enum:
                      - SENT
                      - REJECTED
                      - ERROR
                    description: >-
                      SENT: the provider accepted and delivered the notification. REJECTED: the provider refused it.
                      ERROR: the notification could not be relayed.
                  merchant_reference:
                    type: string
                    description: Your unique reference for this notification (idempotent per account).
                  description:
                    type: string
                    description: Text shown to the customer in the notification.
                  amount:
                    type: object
                    required:
                      - currency
                      - value
                    properties:
                      currency:
                        type: string
                        description: ISO 4217 currency code of the upcoming debit (for UPI Autopay, INR).
                        example: INR
                      value:
                        type: string
                        description: Amount of the upcoming debit.
                        example: '499.00'
                  billing_date:
                    type: string
                    format: date
                    description: Date of the upcoming debit (YYYY-MM-DD).
                  origin_payment_id:
                    type: string
                    format: uuid
                    description: The mandate-creation payment used to derive provider and connection, when provided.
                  provider_data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Provider that handled the notification (for example, EBANX).
                      connection_id:
                        type: string
                        format: uuid
                        description: Connection used to send the notification.
                      provider_transaction_id:
                        type: string
                        description: Provider transaction reference, when available.
                      provider_notification_id:
                        type: string
                        description: >-
                          Provider reference of the delivered notification. Yuno resolves and forwards it to the
                          provider automatically when the recurring debit references this notification.
                      raw_request:
                        type: object
                        description: Obfuscated provider request. Only returned for allowlisted organizations.
                      raw_response:
                        type: object
                        description: Obfuscated provider response. Only returned for allowlisted organizations.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '404':
          description: No notification with this merchant reference exists for your account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: PRE_DEBIT_NOTIFICATION_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Pre-debit notification not found.
              example:
                code: PRE_DEBIT_NOTIFICATION_NOT_FOUND
                messages:
                  - Pre-debit notification not found.
      tags:
        - Pre Debit Notifications
    post:
      summary: Create Pre-Debit Notification
      description: >-
        Sends the NPCI-required pre-debit notification to the customer before a UPI Autopay recurring debit. The
        provider delivers the notice and returns a reference; keep the returned id and send it on the recurring debit as
        payment_method.detail.bank_transfer.pre_debit_notification_id.
      operationId: create-pre-debit-notification
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts.
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - merchant_reference
                - amount
                - billing_date
              properties:
                account_id:
                  type: string
                  format: uuid
                  description: Your Yuno account ID.
                merchant_reference:
                  type: string
                  description: >-
                    Your unique reference for this notification. Reusing a reference returns the existing notification
                    (idempotent per account).
                description:
                  type: string
                  description: >-
                    Text shown to the customer in the notification (for example, the subscription name and renewal
                    notice).
                amount:
                  type: object
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 currency code of the upcoming debit (for UPI Autopay, INR).
                      example: INR
                    value:
                      type: string
                      description: Amount of the upcoming debit.
                      example: '499.00'
                billing_date:
                  type: string
                  format: date
                  description: >-
                    Date of the upcoming debit (YYYY-MM-DD). Per NPCI, notify the customer at least 24 hours before the
                    debit.
                billing_sequence_number:
                  type: string
                  description: Sequence number of the debit within the mandate (for example, 2 for the second charge).
                origin_payment_id:
                  type: string
                  format: uuid
                  description: >-
                    ID of the mandate-creation payment. When provided, Yuno derives the provider and connection from its
                    successful charge. Either origin_payment_id or provider_data is required.
                customer_payer:
                  type: object
                  properties:
                    id:
                      type: string
                      format: uuid
                      description: Yuno customer ID.
                    merchant_customer_id:
                      type: string
                      description: Your identifier for the customer.
                payment_method:
                  type: object
                  properties:
                    type:
                      type: string
                      description: Payment method type of the mandate.
                      example: UPI_AUTOPAY
                    vaulted_token:
                      type: string
                      format: uuid
                      description: Vaulted token of the enrolled mandate. Yuno resolves the provider mandate credential from it.
                provider_data:
                  type: object
                  description: >-
                    Explicit provider routing. Either origin_payment_id or provider_data (id + connection_id) is
                    required.
                  properties:
                    id:
                      type: string
                      description: Provider ID (for example, EBANX).
                      example: EBANX
                    connection_id:
                      type: string
                      format: uuid
                      description: Connection to send the notification through.
            examples:
              UPI Autopay:
                value:
                  account_id: 00000000-0000-0000-0000-000000000000
                  merchant_reference: subscription-2026-08-INV-00187
                  description: Your subscription renews soon
                  amount:
                    currency: INR
                    value: '499.00'
                  billing_date: '2026-08-01'
                  billing_sequence_number: '2'
                  customer_payer:
                    id: 9a8b7c6d-5e4f-4a3b-8c1d-0e9f8a7b6c5d
                  payment_method:
                    type: UPI_AUTOPAY
                    vaulted_token: 7c9e6679-7425-40de-944b-e07fc1f90ae7
                  provider_data:
                    id: EBANX
                    connection_id: 6c1f6bfb-736b-439e-b568-32f671f65256
      responses:
        '201':
          description: 'Notification created. Check status: SENT means the provider delivered it.'
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: >-
                      Unique identifier of the pre-debit notification. Reference it on the recurring debit as
                      payment_method.detail.bank_transfer.pre_debit_notification_id.
                  account_id:
                    type: string
                    format: uuid
                    description: Your Yuno account ID.
                  status:
                    type: string
                    enum:
                      - SENT
                      - REJECTED
                      - ERROR
                    description: >-
                      SENT: the provider accepted and delivered the notification. REJECTED: the provider refused it.
                      ERROR: the notification could not be relayed.
                  merchant_reference:
                    type: string
                    description: Your unique reference for this notification (idempotent per account).
                  description:
                    type: string
                    description: Text shown to the customer in the notification.
                  amount:
                    type: object
                    required:
                      - currency
                      - value
                    properties:
                      currency:
                        type: string
                        description: ISO 4217 currency code of the upcoming debit (for UPI Autopay, INR).
                        example: INR
                      value:
                        type: string
                        description: Amount of the upcoming debit.
                        example: '499.00'
                  billing_date:
                    type: string
                    format: date
                    description: Date of the upcoming debit (YYYY-MM-DD).
                  origin_payment_id:
                    type: string
                    format: uuid
                    description: The mandate-creation payment used to derive provider and connection, when provided.
                  provider_data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Provider that handled the notification (for example, EBANX).
                      connection_id:
                        type: string
                        format: uuid
                        description: Connection used to send the notification.
                      provider_transaction_id:
                        type: string
                        description: Provider transaction reference, when available.
                      provider_notification_id:
                        type: string
                        description: >-
                          Provider reference of the delivered notification. Yuno resolves and forwards it to the
                          provider automatically when the recurring debit references this notification.
                      raw_request:
                        type: object
                        description: Obfuscated provider request. Only returned for allowlisted organizations.
                      raw_response:
                        type: object
                        description: Obfuscated provider response. Only returned for allowlisted organizations.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '400':
          description: Invalid parameters (for example, missing provider routing or malformed billing_date).
        '422':
          description: >-
            The vaulted_token has no stored credential for the resolved provider (STORED_CREDENTIAL_NOT_FOUND), or the
            origin payment has no usable connection (PROVIDER_CONNECTION_REQUIRED).
      tags:
        - Pre Debit Notifications
  /predebit-notify/{pre_debit_notification_id}:
    get:
      summary: Retrieve Pre-Debit Notification by ID
      description: Retrieves a pre-debit notification by its Yuno ID.
      operationId: retrieve-pre-debit-notification-by-id
      parameters:
        - name: X-Account-Code
          in: header
          required: true
          description: UUID of the account the notification belongs to.
          schema:
            type: string
            format: uuid
        - name: pre_debit_notification_id
          in: path
          required: true
          description: ID returned by the Create pre-debit notification endpoint.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The pre-debit notification.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: >-
                      Unique identifier of the pre-debit notification. Reference it on the recurring debit as
                      payment_method.detail.bank_transfer.pre_debit_notification_id.
                  account_id:
                    type: string
                    format: uuid
                    description: Your Yuno account ID.
                  status:
                    type: string
                    enum:
                      - SENT
                      - REJECTED
                      - ERROR
                    description: >-
                      SENT: the provider accepted and delivered the notification. REJECTED: the provider refused it.
                      ERROR: the notification could not be relayed.
                  merchant_reference:
                    type: string
                    description: Your unique reference for this notification (idempotent per account).
                  description:
                    type: string
                    description: Text shown to the customer in the notification.
                  amount:
                    type: object
                    required:
                      - currency
                      - value
                    properties:
                      currency:
                        type: string
                        description: ISO 4217 currency code of the upcoming debit (for UPI Autopay, INR).
                        example: INR
                      value:
                        type: string
                        description: Amount of the upcoming debit.
                        example: '499.00'
                  billing_date:
                    type: string
                    format: date
                    description: Date of the upcoming debit (YYYY-MM-DD).
                  origin_payment_id:
                    type: string
                    format: uuid
                    description: The mandate-creation payment used to derive provider and connection, when provided.
                  provider_data:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Provider that handled the notification (for example, EBANX).
                      connection_id:
                        type: string
                        format: uuid
                        description: Connection used to send the notification.
                      provider_transaction_id:
                        type: string
                        description: Provider transaction reference, when available.
                      provider_notification_id:
                        type: string
                        description: >-
                          Provider reference of the delivered notification. Yuno resolves and forwards it to the
                          provider automatically when the recurring debit references this notification.
                      raw_request:
                        type: object
                        description: Obfuscated provider request. Only returned for allowlisted organizations.
                      raw_response:
                        type: object
                        description: Obfuscated provider response. Only returned for allowlisted organizations.
                  created_at:
                    type: string
                    format: date-time
                  updated_at:
                    type: string
                    format: date-time
        '404':
          description: No notification with this ID exists for your account.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: PRE_DEBIT_NOTIFICATION_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Pre-debit notification not found.
              example:
                code: PRE_DEBIT_NOTIFICATION_NOT_FOUND
                messages:
                  - Pre-debit notification not found.
      tags:
        - Pre Debit Notifications
  /recipients:
    get:
      summary: Get Recipient by Merchant ID
      operationId: get-recipient-by-merchant-id
      responses:
        '200':
          description: Success Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_3'
              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
                    legal_name: Arcos dorados S.A.
                    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: HOSTED_BY_PROVIDER
                        callback_url: https://www.google.com
                        provider:
                          id: PAGARME
                    split_configuration:
                      - calculation_type: PERCENTAGE
                        percentage: 10.5
                        rounding_mode: STANDARD
                        currency: USD
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T10:30:00Z'
        '400':
          description: Missing merchant_recipient_id or no matching recipient (RECIPIENT_NOT_FOUND).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Recipient Not Found:
                  value:
                    code: RECIPIENT_NOT_FOUND
                    messages:
                      - Recipient not found.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  summary: Unauthorized
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  summary: Forbidden
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
      description: >-
        Retrieves a single recipient by merchant_recipient_id within your organization. No account_id is required.
        Returns a top-level recipient object, or 400 RECIPIENT_NOT_FOUND when no recipient matches. For a paginated
        collection, use GET /recipients/list.
      parameters:
        - name: merchant_recipient_id
          in: query
          required: true
          description: The recipient identifier assigned by the merchant.
          schema:
            type: string
            minLength: 1
      tags:
        - Recipients For Marketplace
    post:
      summary: Create Recipient
      operationId: create-recipient
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Recipient_2'
            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: Recipient created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_3'
              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: Bad Request
          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: 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.
      tags:
        - Recipients For Marketplace
  /recipients/list:
    get:
      summary: List Recipients
      operationId: list-recipients
      parameters:
        - name: limit
          in: query
          description: Maximum number of recipients to return
          required: false
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
        - name: offset
          in: query
          description: Number of recipients to skip for pagination
          required: false
          schema:
            type: integer
            default: 0
            minimum: 0
        - name: national_entity
          in: query
          description: Filter recipients by national entity type
          required: false
          schema:
            type: string
            enum:
              - INDIVIDUAL
              - ENTITY
        - name: country
          in: query
          description: Filter recipients by country
          required: false
          schema:
            type: string
        - name: merchant_recipient_id
          in: query
          description: >-
            Exact merchant recipient ID filter. Returns the same data array and pagination envelope; no match returns an
            empty array with total 0.
          required: false
          schema:
            type: string
            minLength: 1
        - name: account_id
          in: query
          description: Authorized account UUID. Required unless X-Account-Code is supplied in the request header.
          required: false
          schema:
            type: string
            format: uuid
        - name: X-Account-Code
          in: header
          description: Authorized account UUID when account_id is omitted. If both are present, account_id takes precedence.
          required: false
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: List of recipients retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/RecipientResponse_4'
                  pagination:
                    type: object
                    properties:
                      total:
                        type: integer
                        description: Total number of recipients
                      limit:
                        type: integer
                        description: Number of recipients per page
                      offset:
                        type: integer
                        description: Current offset
                      has_more:
                        type: boolean
                        description: Whether there are more recipients to fetch
              examples:
                Success Response:
                  value:
                    data:
                      - 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: john.doe@email.com
                        country: CO
                        created_at: '2024-01-15T10:30:00Z'
                        updated_at: '2024-01-15T10:30:00Z'
                    pagination:
                      total: 1
                      limit: 20
                      offset: 0
                      has_more: false
        '400':
          description: Invalid query parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '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.
        '503':
          description: Recipient listing is unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      description: >-
        Returns a paginated list scoped to the authorized account and organization. merchant_recipient_id is an
        exact-match filter; the response remains an envelope even for zero or one match. Reads are eventually
        consistent.
      tags:
        - Recipients For Marketplace
  /recipients/onboardings/reverse-transfer/{transfer_id}:
    post:
      description: ''
      operationId: post_recipients-id-onboardings-onboarding-reverse-transfer
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: ed206787-6203-45a6-b896-71249fff7ddb
                  origin_onboarding:
                    type: object
                    properties:
                      id:
                        type: string
                        example: c2f96b59-ae5a-470d-a94a-16bf142b11df
                      type:
                        type: string
                        example: ONE_STEP_ONBOARDING
                      workflow:
                        type: string
                        example: DIRECT
                      description:
                        type: string
                        example: Onboarding Description
                      status:
                        type: string
                        example: INACTIVE
                      response_message: {}
                      callback_url:
                        type: string
                        example: https://merchant.example.com/webhook/onboarding
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: STRIPE
                          connection_id:
                            type: string
                            example: b90fa936-92b6-4529-9c69-0ca474291af1
                          recipient_id:
                            type: string
                            example: acct_1SpfTBRFM5RUW372
                          redirect_url: {}
                          onboarding_url:
                            type: string
                            example: ''
                          legal_entity: {}
                          recipient_additional_id: {}
                          balance_account_id:
                            type: string
                            example: ''
                          recipient_type: {}
                          raw_notification: {}
                          raw_response: {}
                          response_code: {}
                          response_message: {}
                      documentation:
                        type: array
                        items:
                          type: object
                          properties:
                            file_name:
                              type: string
                              example: onboarding10.png
                            content_type:
                              type: string
                              example: image/png
                            content_category:
                              type: string
                              example: VAT_DOCUMENT
                            content:
                              type: string
                              example: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        type: array
                        items:
                          type: object
                          properties:
                            merchant_reference:
                              type: string
                              example: ONB_010
                            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: US
                            nationality:
                              type: string
                              example: US
                            title:
                              type: string
                              example: CEO
                            publicly_exposed_person:
                              type: boolean
                              example: false
                              default: true
                            ultimate_beneficial_owner:
                              type: boolean
                              example: true
                              default: true
                            document:
                              type: object
                              properties:
                                document_type:
                                  type: string
                                  example: CC
                                document_number:
                                  type: string
                                  example: '0987654321'
                            phone:
                              type: object
                              properties:
                                number:
                                  type: string
                                  example: '3109876543'
                                country_code:
                                  type: string
                                  example: '+57'
                            address:
                              type: object
                              properties:
                                address_line_1:
                                  type: string
                                  example: 'Calle 26 # 13-19'
                                address_line_2:
                                  type: string
                                  example: test calle
                                country:
                                  type: string
                                  example: US
                                state:
                                  type: string
                                  example: Cundinamarca
                                city:
                                  type: string
                                  example: Bogota
                                zip_code:
                                  type: string
                                  example: '03804'
                                neighborhood:
                                  type: string
                                  example: Centro
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: test
                            value:
                              type: string
                              example: '123'
                      withdrawal_methods:
                        type: object
                        properties:
                          bank:
                            type: object
                            properties:
                              code:
                                type: string
                                example: '004'
                              branch:
                                type: string
                                example: '006'
                              branch_digit:
                                type: string
                                example: '125'
                              account:
                                type: string
                                example: '000123456789'
                              account_digit:
                                type: string
                                example: '124'
                              account_type:
                                type: string
                                example: SAVINGS
                              routing:
                                type: string
                                example: '110000000'
                              country:
                                type: string
                                example: US
                              currency:
                                type: string
                                example: USD
                              payout_schedule:
                                type: string
                                example: HOLD
                      terms_of_service:
                        type: object
                        properties:
                          acceptance:
                            type: boolean
                            example: true
                            default: true
                          date:
                            type: string
                            example: '2025-07-21T20:43:54.786342Z'
                          ip:
                            type: string
                            example: 129.21.111.11
                      created_at:
                        type: string
                        example: '2026-01-15T21:33:17.374975Z'
                      updated_at:
                        type: string
                        example: '2026-01-15T21:33:44.650123Z'
                  destination_onboarding:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 97254599-4f94-4aff-9777-733a8e0e95e1
                      type:
                        type: string
                        example: ONE_STEP_ONBOARDING
                      workflow:
                        type: string
                        example: DIRECT
                      description:
                        type: string
                        example: Onboarding Description
                      status:
                        type: string
                        example: SUCCEEDED
                      response_message: {}
                      callback_url:
                        type: string
                        example: https://merchant.example.com/webhook/onboarding
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: STRIPE
                          connection_id:
                            type: string
                            example: b90fa936-92b6-4529-9c69-0ca474291af1
                          recipient_id:
                            type: string
                            example: acct_1SpfStIPQ4THTT53
                          redirect_url: {}
                          onboarding_url:
                            type: string
                            example: ''
                          legal_entity: {}
                          recipient_additional_id: {}
                          balance_account_id:
                            type: string
                            example: ''
                          recipient_type: {}
                          raw_notification: {}
                          raw_response: {}
                          response_code: {}
                          response_message: {}
                      documentation:
                        type: array
                        items:
                          type: object
                          properties:
                            file_name:
                              type: string
                              example: onboarding10.png
                            content_type:
                              type: string
                              example: image/png
                            content_category:
                              type: string
                              example: VAT_DOCUMENT
                            content:
                              type: string
                              example: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        type: array
                        items:
                          type: object
                          properties:
                            merchant_reference:
                              type: string
                              example: ONB_010
                            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: US
                            nationality:
                              type: string
                              example: US
                            title:
                              type: string
                              example: CEO
                            publicly_exposed_person:
                              type: boolean
                              example: false
                              default: true
                            ultimate_beneficial_owner:
                              type: boolean
                              example: true
                              default: true
                            document:
                              type: object
                              properties:
                                document_type:
                                  type: string
                                  example: CC
                                document_number:
                                  type: string
                                  example: '0987654321'
                            phone:
                              type: object
                              properties:
                                number:
                                  type: string
                                  example: '3109876543'
                                country_code:
                                  type: string
                                  example: '+57'
                            address:
                              type: object
                              properties:
                                address_line_1:
                                  type: string
                                  example: 'Calle 26 # 13-19'
                                address_line_2:
                                  type: string
                                  example: test calle
                                country:
                                  type: string
                                  example: US
                                state:
                                  type: string
                                  example: Cundinamarca
                                city:
                                  type: string
                                  example: Bogota
                                zip_code:
                                  type: string
                                  example: '03804'
                                neighborhood:
                                  type: string
                                  example: Centro
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: test
                            value:
                              type: string
                              example: '123'
                      withdrawal_methods:
                        type: object
                        properties:
                          bank:
                            type: object
                            properties:
                              code:
                                type: string
                                example: '004'
                              branch:
                                type: string
                                example: '006'
                              branch_digit:
                                type: string
                                example: '125'
                              account:
                                type: string
                                example: '000123456789'
                              account_digit:
                                type: string
                                example: '124'
                              account_type:
                                type: string
                                example: SAVINGS
                              routing:
                                type: string
                                example: '110000000'
                              country:
                                type: string
                                example: US
                              currency:
                                type: string
                                example: USD
                              payout_schedule:
                                type: string
                                example: HOLD
                      terms_of_service:
                        type: object
                        properties:
                          acceptance:
                            type: boolean
                            example: true
                            default: true
                          date:
                            type: string
                            example: '2025-07-21T20:43:54.786342Z'
                          ip:
                            type: string
                            example: 129.21.111.11
                      created_at:
                        type: string
                        example: '2026-01-15T01:35:10.646218Z'
                      updated_at:
                        type: string
                        example: '2026-01-15T21:33:46.245564Z'
                  created_at:
                    type: string
                    example: '2026-01-15T21:33:46.456587Z'
                  updated_at:
                    type: string
                    example: '2026-01-15T21:33:46.456624Z'
              examples:
                Success:
                  value:
                    id: ed206787-6203-45a6-b896-71249fff7ddb
                    origin_onboarding:
                      id: c2f96b59-ae5a-470d-a94a-16bf142b11df
                      type: ONE_STEP_ONBOARDING
                      workflow: DIRECT
                      description: Onboarding Description
                      status: INACTIVE
                      response_message: null
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: STRIPE
                        connection_id: b90fa936-92b6-4529-9c69-0ca474291af1
                        recipient_id: acct_1SpfTBRFM5RUW372
                        redirect_url: null
                        onboarding_url: ''
                        legal_entity: null
                        recipient_additional_id: null
                        balance_account_id: ''
                        recipient_type: null
                        raw_notification: null
                        raw_response: null
                        response_code: null
                        response_message: null
                      documentation:
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                      metadata:
                        - key: test
                          value: '123'
                      withdrawal_methods:
                        bank:
                          code: '004'
                          branch: '006'
                          branch_digit: '125'
                          account: '000123456789'
                          account_digit: '124'
                          account_type: SAVINGS
                          routing: '110000000'
                          country: US
                          currency: USD
                          payout_schedule: HOLD
                      terms_of_service:
                        acceptance: true
                        date: '2025-07-21T20:43:54.786342Z'
                        ip: 129.21.111.11
                      created_at: '2026-01-15T21:33:17.374975Z'
                      updated_at: '2026-01-15T21:33:44.650123Z'
                    destination_onboarding:
                      id: 97254599-4f94-4aff-9777-733a8e0e95e1
                      type: ONE_STEP_ONBOARDING
                      workflow: DIRECT
                      description: Onboarding Description
                      status: SUCCEEDED
                      response_message: null
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: STRIPE
                        connection_id: b90fa936-92b6-4529-9c69-0ca474291af1
                        recipient_id: acct_1SpfStIPQ4THTT53
                        redirect_url: null
                        onboarding_url: ''
                        legal_entity: null
                        recipient_additional_id: null
                        balance_account_id: ''
                        recipient_type: null
                        raw_notification: null
                        raw_response: null
                        response_code: null
                        response_message: null
                      documentation:
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                      metadata:
                        - key: test
                          value: '123'
                      withdrawal_methods:
                        bank:
                          code: '004'
                          branch: '006'
                          branch_digit: '125'
                          account: '000123456789'
                          account_digit: '124'
                          account_type: SAVINGS
                          routing: '110000000'
                          country: US
                          currency: USD
                          payout_schedule: HOLD
                      terms_of_service:
                        acceptance: true
                        date: '2025-07-21T20:43:54.786342Z'
                        ip: 129.21.111.11
                      created_at: '2026-01-15T01:35:10.646218Z'
                      updated_at: '2026-01-15T21:33:46.245564Z'
                    created_at: '2026-01-15T21:33:46.456587Z'
                    updated_at: '2026-01-15T21:33:46.456624Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request format
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
      parameters:
        - in: header
          name: X-organization-code
          schema:
            type: string
          required: true
          description: Organization code associated to the request.
        - in: header
          name: X-Idempotency-Key
          schema:
            type: string
          required: true
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts.
        - in: path
          name: transfer_id
          schema:
            type: string
          required: true
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}:
    get:
      summary: Get Recipient
      operationId: get-recipient
      responses:
        '200':
          description: Success Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_3'
              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
                    legal_name: Arcos dorados S.A.
                    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: HOSTED_BY_PROVIDER
                        callback_url: https://www.google.com
                        provider:
                          id: PAGARME
                    split_configuration:
                      - calculation_type: PERCENTAGE
                        percentage: 10.5
                        rounding_mode: STANDARD
                        currency: USD
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T10:30:00Z'
        '400':
          description: Invalid Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: string
              examples:
                Invalid Request:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The query parameter 'account_id' is required.
                  summary: Invalid Request
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Unauthorized:
                  summary: Unauthorized
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Forbidden:
                  summary: Forbidden
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
      parameters:
        - name: recipient_id
          in: path
          required: true
          description: The unique identifier of the recipient
          schema:
            type: string
      tags:
        - Recipients For Marketplace
    patch:
      summary: Update Recipient
      operationId: update-recipient
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                onboarding_id:
                  type: string
                  format: uuid
                  description: >-
                    ID of an existing onboarding belonging to the recipient. When set, the identity fields sent in this
                    request (e.g. first_name, email, phone, address) are stored as a per-onboarding override for that
                    onboarding only, without modifying the shared recipient; when omitted, the update applies to the
                    shared recipient and propagates to all non-terminal onboardings. Request-only, not returned in
                    responses or webhooks.
                  example: 1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed
                merchant_recipient_id:
                  type: string
                  description: Unique identifier of the recipient defined by the merchant (MAX 255; MIN 1).
                first_name:
                  type: string
                  description: Beneficiary's name. (MAX 80; MIN 1).
                last_name:
                  type: string
                  description: Beneficiary's last name. (MAX 80; MIN 1).
                date_of_birth:
                  type: string
                  description: The Beneficiary's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
                entity_type:
                  type: string
                  enum:
                    - GOVERNMENTAL
                    - PUBLIC
                    - NON_PROFIT
                    - PRIVATE
                  description: The Beneficiary's type of organization. GOVERNMENTAL, PUBLIC, NON_PROFIT, PRIVATE
                website:
                  type: string
                  description: The seller's website URL (MAX 255; MIN 3).
                industry:
                  type: string
                  description: >-
                    The seller's industry (MAX 235; MIN 1). For more information access the Industry category reference
                    page.
                merchant_category_code:
                  type: string
                  description: MCC - The merchant category code (MAX 235; MIN 1).
                email:
                  type: string
                  description: The Beneficiary's email (MAX 255; MIN 3).
                phone:
                  type: object
                  properties:
                    country_code:
                      type: string
                      description: Beneficiary's cell phone area code. (MAX 3; MIN 2).
                    number:
                      type: string
                      description: Beneficiary's cell phone number. (MAX 32; MIN 1).
                address:
                  type: object
                  properties:
                    address_line_1:
                      type: string
                      description: The primary billing address line of the customer (MAX 255; MIN 3).
                    address_line_2:
                      type: string
                      description: The secondary billing address line of the customer (MAX 255; MIN 3).
                    city:
                      type: string
                      description: The city considered for the billing address (MAX 255; MIN 3).
                    state:
                      type: string
                      description: The state / province considered for the billing address (MAX 255; MIN 3).
                    zip_code:
                      type: string
                      description: The zipcode considered for the billing address (MAX 11; MIN 4).
                withdrawal_methods:
                  type: array
                  items:
                    type: object
                    properties:
                      bank:
                        type: object
                        properties:
                          code:
                            type: string
                            description: Bank's code (MAX 3; MIN 3).
                          branch:
                            type: string
                            description: Bank's branch (MAX 3; MIN 3).
                          branch_digit:
                            type: string
                            description: Bank's branch digit (MAX 3; MIN 3).
                          account:
                            type: string
                            description: Beneficiary's bank account number (MAX 250; MIN 3).
                          account_digit:
                            type: string
                            description: Beneficiary's bank account digit (MAX 250; MIN 3).
                          account_type:
                            type: string
                            enum:
                              - CHECKINGS
                              - SAVINGS
                            description: Beneficiary's bank account type (MAX 3; MIN 1).
                          routing:
                            type: string
                            description: Beneficiary's bank account routing number.
                          country:
                            type: string
                            description: The bank account's country (ISO 3166-1 MAX 2; MIN 2).
                          currency:
                            type: string
                            description: The bank account's currency (ISO 4217 MAX 3; MIN 3).
                documentation:
                  type: array
                  description: Array of documentation objects
                  items:
                    type: object
                    properties:
                      file_name:
                        type: string
                        description: The name of the documentation sent (MAX 255; MIN 3).
                      content_type:
                        type: string
                        description: The type of the documentation sent by the merchant.
                      content_category:
                        type: string
                        description: The category of the documentation sent by the merchant.
                      content:
                        type: string
                        description: 'The content of the documentation sent by the merchant encoded in base64. Max size: 1MB.'
                onboardings:
                  type: array
                  description: Array of onboarding objects for different payment providers
                  items:
                    type: object
                    properties:
                      type:
                        type: string
                        enum:
                          - PREVIOUSLY_ONBOARDED
                          - ONBOARD_ONTO_THE_PROVIDER
                        description: Type of onboarding. If its done by Yuno.
                      workflow:
                        type: string
                        enum:
                          - HOSTED_BY_PROVIDER
                          - DIRECT
                        description: Workflow of the onboarding.
                      callback_url:
                        type: string
                        description: >-
                          URL in case to redirect your customer after the onboarding process with the provider, if
                          needed.
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            enum:
                              - PAGARME
                              - ALELO
                              - EDENRED
                              - PLUXEE
                              - VR
                              - STRIPE
                              - ADYEN
                            description: Provider id.
                            example: PAGARME
                          recipient_id:
                            type: string
                            description: The unique identifier of the provider's recipient.
                      documentation:
                        type: array
                        description: Array of documentation objects for this onboarding
                        items:
                          type: object
                          properties:
                            file_name:
                              type: string
                              description: The name of the documentation sent (MAX 255; MIN 3).
                            content_type:
                              type: string
                              description: The type of the documentation sent by the merchant.
                            content_category:
                              type: string
                              description: The category of the documentation sent by the merchant.
                            content:
                              type: string
                              description: 'The content of the documentation sent by the merchant encoded in base64. Max size: 1MB.'
                      withdrawal_methods:
                        type: array
                        description: Withdrawal methods for this onboarding
                        items:
                          type: object
                          properties:
                            bank:
                              type: object
                              properties:
                                code:
                                  type: string
                                  description: Bank's code (MAX 3; MIN 3).
                                branch:
                                  type: string
                                  description: Bank's branch (MAX 3; MIN 3).
                                branch_digit:
                                  type: string
                                  description: Bank's branch digit (MAX 3; MIN 3).
                                account:
                                  type: string
                                  description: Beneficiary's bank account number (MAX 250; MIN 3).
                                account_digit:
                                  type: string
                                  description: Beneficiary's bank account digit (MAX 250; MIN 3).
                                account_type:
                                  type: string
                                  enum:
                                    - CHECKINGS
                                    - SAVINGS
                                  description: Beneficiary's bank account type (MAX 3; MIN 1).
                                routing:
                                  type: string
                                  description: Beneficiary's bank account routing number.
                                country:
                                  type: string
                                  description: The bank account's country (ISO 3166-1 MAX 2; MIN 2).
                                currency:
                                  type: string
                                  description: The bank account's currency (ISO 4217 MAX 3; MIN 3).
                split_configuration:
                  type: object
                  description: Rules for automatic split calculation at the recipient level.
                  required:
                    - calculation_type
                    - currency
                  properties:
                    calculation_type:
                      type: string
                      description: The method used to calculate the split amount.
                      enum:
                        - PERCENTAGE
                        - FIXED
                        - MIXED
                      example: PERCENTAGE
                    percentage:
                      type: number
                      description: >-
                        Percentage of the total payment amount to be split (0.01-100.00). Required if calculation_type
                        is PERCENTAGE or MIXED.
                      minimum: 0.01
                      maximum: 100
                      example: 10.5
                    fixed_amount:
                      type: number
                      description: Fixed amount to be split. Required if calculation_type is FIXED or MIXED.
                      minimum: 0.0001
                      example: 5
                    currency:
                      type: string
                      description: ISO 4217 currency code. Required for all calculation types.
                      example: USD
                    rounding_mode:
                      type: string
                      description: The rounding strategy for calculated amounts. Required for PERCENTAGE and 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: Recipient updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_5'
              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: >-
            Invalid request or definite bank refusal. For a request affecting multiple providers, another provider may
            already have applied the bank change; read the outcome messages. A 400 can also follow a confirmed bank
            change when a later non-bank update fails (REQUEST_CANNOT_BE_PROCESSED), or mean that the targeted
            onboarding status does not accept bank updates (INVALID_STATE).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              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_2'
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
        '409':
          description: >-
            Bank outcome unconfirmed, or an onboarding operation prevents this request. Inspect code and messages; a
            confirmed provider change may already have occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              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.
      description: >-
        For Zoop and Pagar.me provider-bound onboardings, explicit bank updates wait for provider confirmation. Unknown
        results return 409; confirmed changes are not rolled back. See the endpoint guide for targeting, partial
        outcomes and retry guidance.
      parameters:
        - name: recipient_id
          in: path
          required: true
          description: The unique identifier of the recipient
          schema:
            type: string
      tags:
        - Recipients For Marketplace
    delete:
      summary: Delete Recipient
      operationId: delete-recipient
      responses:
        '200':
          description: Recipient deleted. The response body is the deleted recipient.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_3'
              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
                    legal_name: Arcos dorados S.A.
                    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: HOSTED_BY_PROVIDER
                        callback_url: https://www.google.com
                        provider:
                          id: PAGARME
                    split_configuration:
                      - calculation_type: PERCENTAGE
                        percentage: 10.5
                        rounding_mode: STANDARD
                        currency: USD
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T10:30:00Z'
        '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: Conflict - Recipient cannot be deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Conflict:
                  value:
                    code: RECIPIENT_IN_USE
                    messages:
                      - Recipient cannot be deleted as it is currently being used in active payments
      parameters:
        - name: recipient_id
          in: path
          required: true
          description: The unique identifier of the recipient
          schema:
            type: string
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/onboardings:
    post:
      summary: Create Onboarding
      operationId: post_-id-onboardings
      parameters:
        - in: path
          name: recipient_id
          description: ID of the new recipient to whom the onboarding will be transferred
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - type
                - workflow
                - provider
              properties:
                account_id:
                  type: string
                  description: Unique id of the account in Yuno
                  example: 9104911d-5df9-429e-8488-ad41abea1a4b
                type:
                  type: string
                  enum:
                    - PREVIOUSLY_ONBOARDED
                    - ONE_STEP_ONBOARDING
                    - TWO_STEP_ONBOARDING
                  description: >-
                    Type of onboarding flow. PREVIOUSLY_ONBOARDED for pre-existing accounts, ONE_STEP_ONBOARDING for
                    account creation + KYC in one step, TWO_STEP_ONBOARDING for account creation first then KYC later
                  example: PREVIOUSLY_ONBOARDED
                workflow:
                  type: string
                  enum:
                    - HOSTED_BY_PROVIDER
                    - DIRECT
                  description: Workflow of the onboarding
                  example: HOSTED_BY_PROVIDER
                description:
                  type: string
                  minLength: 3
                  maxLength: 255
                  description: Optional description of the onboarding (MAX 255; MIN 3).
                callback_url:
                  type: string
                  format: uri
                  description: URL in case to redirect your customer after the onboarding process with the provider, if needed.
                  example: https://www.google.com
                provider:
                  type: object
                  required:
                    - id
                    - connection_id
                  properties:
                    id:
                      type: string
                      description: Provider id
                      example: PAGARME
                    connection_id:
                      type: string
                      description: >-
                        Id of the connection in Yuno. The connection must belong to the calling account and its provider
                        must match `provider.id`. Otherwise the API returns 400 INVALID_PARAMETERS with the message
                        "Provider X with connection ID Y is invalid."
                      example: 8fee3cc6-f3cb-455d-b139-973866111a03
                    recipient_id:
                      type: string
                      description: >-
                        The unique identifier of the provider's recipient. Required when `type` is PREVIOUSLY_ONBOARDED,
                        otherwise the API returns 400 with "Provider recipient ID must be provided for previously
                        onboarded type."
                      example: AAAAA01
                    recipient_type:
                      type: string
                      description: The type of recipient for the provider.
                      enum:
                        - MEAL
                        - FOOD
                        - MULTI_BENEFITS
                        - FLEET
                      example: MEAL
                documentation:
                  type: array
                  description: Specifies the documentation object.
                  items:
                    type: object
                    required:
                      - file_name
                      - content_type
                      - content_category
                      - content
                    properties:
                      file_name:
                        type: string
                        minLength: 3
                        maxLength: 255
                        description: The name of the documentation sent (MAX 255; MIN 3).
                        example: PDF
                      content_type:
                        type: string
                        enum:
                          - application/pdf
                          - image/jpeg
                          - image/png
                        description: The type of the documentation sent by the merchant
                        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: The category of the documentation sent by the merchant
                      content:
                        type: string
                        format: byte
                        description: 'The content of the documentation sent by the merchant encoded in base64. Max size: 2MB.'
                        example: JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg==
                withdrawal_methods:
                  type: object
                  description: Specifies the withdrawal methods object.
                  properties:
                    bank:
                      type: object
                      description: struct
                      properties:
                        code:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s code (MAX 3; MIN 3)
                          example: '246'
                        branch:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s branch (MAX 3; MIN 3)
                          example: XXXX
                        branch_digit:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s branch digit (MAX 3; MIN 3)
                        account:
                          type: string
                          minLength: 3
                          maxLength: 250
                          description: Beneficiary's bank account number (MAX 3; MIN 250)
                          example: '1093333333'
                        account_digit:
                          type: string
                          minLength: 3
                          maxLength: 250
                          description: Beneficiary's bank account digit (MAX 3; MIN 250)
                        account_type:
                          type: string
                          enum:
                            - CHECKINGS
                            - SAVINGS
                          description: 'Beneficiary''s bank account type. Allowed values: CHECKINGS, SAVINGS.'
                          example: SAVINGS
                        routing:
                          type: string
                          description: Beneficiary's bank account routing number
                          example: XXXXYYYYC
                        country:
                          type: string
                          minLength: 2
                          maxLength: 2
                          description: The bank account's country (ISO 3166-1 MAX 2; MIN 2)
                          example: CO
                        currency:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: The bank account's currency (ISO 3166-1 MAX 3; MIN 3)
                          example: COP
                legal_representatives:
                  type: array
                  description: >-
                    Object to indicate the owners of the organization. Adyen, Stripe and dlocal have fields related to
                    that.
                  items:
                    type: object
                    properties:
                      merchant_reference:
                        type: string
                        minLength: 3
                        maxLength: 255
                        description: Legal representative's identification id (MAX 255; MIN 3).
                      first_name:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: Legal representative's name. (MAX 255; MIN 1).
                        example: John
                      last_name:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: Legal representative's last name. (MAX 255; MIN 1).
                        example: Doe
                      email:
                        type: string
                        format: email
                        minLength: 1
                        maxLength: 255
                        description: The Legal representative's email (MAX 255; MIN 1).
                        example: john.doe@email.com
                      date_of_birth:
                        type: string
                        format: date
                        minLength: 10
                        maxLength: 10
                        description: The Legal representative's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
                        example: '1990-02-28'
                      country:
                        type: string
                        minLength: 2
                        maxLength: 2
                        description: The Legal representative's country (ISO 3166-1 MAX 2; MIN 2)
                        example: CO
                      nationality:
                        type: string
                        minLength: 2
                        maxLength: 2
                        description: The Legal representative's nationality (MAX 2; MIN 2; ISO 3166-1).
                        example: CO
                      title:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: The title of the legal representative (MAX 255; MIN 1).
                        example: CTO
                      publicly_exposed_person:
                        type: boolean
                        description: Indicates if the legal representative is a publicly exposed person
                        example: false
                      ultimate_beneficial_owner:
                        type: boolean
                        description: Indicates if the legal representative is an ultimate beneficiary owner of the company
                        example: false
                terms_of_service:
                  type: object
                  description: Object describing terms of service.
                  required:
                    - acceptance
                    - date
                  properties:
                    acceptance:
                      type: boolean
                      description: If the terms of service were accepted by the recipient
                      example: true
                    date:
                      type: string
                      format: date-time
                      description: Date of the terms of service acceptance
                      example: '2025-07-21T20:43:54.786342Z'
                    ip:
                      type: string
                      format: ipv4
                      description: IP of the terms of service acceptance
                      example: 192.168.1.100
            examples:
              Create Onboarding:
                value:
                  account_id: '{{account-code}}'
                  type: PREVIOUSLY_ONBOARDED
                  workflow: DIRECT
                  callback_url: https://merchant.example.com/webhook/onboarding
                  provider:
                    id: VR
                    connection_id: '{{connection_id}}'
                    recipient_id: test01
                    recipient_type: MULTI_BENEFITS
                  documentation:
                    - file_name: onboarding.pdf
                      content_type: application/pdf
                      content_category: IDENTIFICATION_DOCUMENT
                      content: VGV4dG8gZGUgZWplbXBsbyBwYXJhIEJhc2U2NA==
                  withdrawal_methods:
                    bank:
                      code: '002'
                      branch: '002'
                      account: '9876543210'
                      account_type: CHECKINGS
                      country: US
                      currency: USD
                      routing: '021000022'
                  terms_of_service:
                    acceptance: true
                    date: '2025-07-21T20:43:54.786342Z'
                    ip: 129.21.111.11
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_2'
              examples:
                Successful:
                  value:
                    id: 61df26d9-3750-4206-baab-f2e20683f35b
                    type: PREVIOUSLY_ONBOARDED
                    workflow: DIRECT
                    status: SUCCEEDED
                    callback_url: https://merchant.example.com/webhook/onboarding
                    provider:
                      id: STRIPE
                      connection_id: 8fee3cc6-f3cb-455d-b139-973866111a03
                      recipient_id: acct_1RvpogA4Jk50vKRE
                      redirect_url: null
                      onboarding_url: null
                      legal_entity: null
                    documentation:
                      - file_name: recipient.pdf
                        content_type: application/pdf
                        content_category: IDENTIFICATION_DOCUMENT
                        content: recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7
                    legal_representatives:
                      - merchant_reference: ONB_001
                        first_name: Tatiana
                        last_name: González
                        email: tatiana.gonzalez@example.com
                        date_of_birth: '1985-05-20'
                        country: BR
                        nationality: BR
                        title: CEO
                        publicly_exposed_person: false
                        ultimate_beneficial_owner: true
                        document:
                          document_type: CC
                          document_number: '0987654321'
                        phone:
                          number: '3109876543'
                          country_code: '+57'
                        address:
                          address_line_1: 'Calle 26 # 13-19'
                          address_line_2: null
                          country: CO
                          state: Cundinamarca
                          city: Bogotá
                          zip_code: '110311'
                    requirements: []
                    withdrawal_methods:
                      bank:
                        code: '003'
                        branch: '003'
                        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:54.786342Z'
                      ip: 129.21.111.11
                    recipient:
                      id: 5a37f0c0-7689-4065-8348-4b5ff5bf9cc7
                      account_id: c24d6c92-99a7-40bb-bc7b-efc40337f9f4
                      merchant_recipient_id: MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591
                      national_entity: INDIVIDUAL
                      entity_type: PRIVATE
                      first_name: Stebann
                      last_name: Castro
                      legal_name: Steban Castro
                      email: juan.perez@example.com
                      date_of_birth: '1992-01-21'
                      country: CO
                      website: https://juanperez.com
                      industry: Technology
                      merchant_category_code: '5740'
                      document:
                        document_number: '09082160000100'
                        document_type: CNPJ
                      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:
                            number: '3109876543'
                            country_code: '+57'
                          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: recipient.pdf
                          content_type: application/pdf
                          content_category: IDENTIFICATION_DOCUMENT
                          content: recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45
                      created_at: '2025-08-22T17:54:05.711545Z'
                      updated_at: '2025-08-22T17:54:05.711561Z'
                    history:
                      id: 61df26d9-3750-4206-baab-f2e20683f35b
                      type: PREVIOUSLY_ONBOARDED
                      workflow: DIRECT
                      status: SUCCEEDED
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: STRIPE
                        connection_id: 8fee3cc6-f3cb-455d-b139-973866111a03
                        recipient_id: acct_1RvpogA4Jk50vKRE
                        redirect_url: null
                      documentation:
                        - file_name: recipient.pdf
                          content_type: application/pdf
                          content_category: IDENTIFICATION_DOCUMENT
                          content: recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7
                      legal_representatives:
                        - merchant_reference: ONB_001
                          first_name: Tatiana
                          last_name: González
                          email: tatiana.gonzalez@example.com
                          date_of_birth: '1985-05-20'
                          country: BR
                          nationality: BR
                          title: CEO
                          publicly_exposed_person: false
                          ultimate_beneficial_owner: true
                          document:
                            document_type: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: null
                            country: CO
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '110311'
                      requirements: []
                      withdrawal_methods:
                        bank:
                          code: '003'
                          branch: '003'
                          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:54.786342Z'
                        ip: 129.21.111.11
                      recipient:
                        id: 5a37f0c0-7689-4065-8348-4b5ff5bf9cc7
                        account_id: c24d6c92-99a7-40bb-bc7b-efc40337f9f4
                        merchant_recipient_id: MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591
                        national_entity: INDIVIDUAL
                        entity_type: PRIVATE
                        first_name: Stebann
                        last_name: Castro
                        legal_name: Steban Castro
                        email: juan.perez@example.com
                        date_of_birth: '1992-01-21'
                        country: CO
                        website: https://juanperez.com
                        industry: Technology
                        merchant_category_code: '5740'
                        document:
                          document_number: '09082160000100'
                          document_type: CNPJ
                        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:
                              number: '3109876543'
                              country_code: '+57'
                            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: recipient.pdf
                            content_type: application/pdf
                            content_category: IDENTIFICATION_DOCUMENT
                            content: recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45
                        created_at: '2025-08-22T17:54:05.711545Z'
                        updated_at: '2025-08-22T17:54:05.711561Z'
                      created_at: '2025-08-22T17:57:58.460711Z'
                      updated_at: '2025-08-22T17:57:58.460724Z'
                    created_at: '2025-08-22T17:57:58.460711Z'
                    updated_at: '2025-08-22T17:57:58.460724Z'
                  summary: Successful
        '400':
          description: Bad Request
          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: 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.
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/onboardings/{onboarding_id}:
    get:
      summary: Get Onboarding
      operationId: get-onboarding
      parameters:
        - in: path
          name: recipient_id
          description: ID of the recipient
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
        - in: path
          name: onboarding_id
          description: ID of the onboarding to retrieve
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
      responses:
        '200':
          description: Onboarding details retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: The unique identifier of the onboarding
                    example: 9104911d-5df9-429e-8488-ad41abea1a4b
                  account_id:
                    type: string
                    description: Unique id of the account in Yuno
                    example: 9104911d-5df9-429e-8488-ad41abea1a4b
                  recipient_id:
                    type: string
                    description: The unique identifier of the recipient
                    example: 9104911d-5df9-429e-8488-ad41abea1a4b
                  type:
                    type: string
                    enum:
                      - PREVIOUSLY_ONBOARDED
                      - ONE_STEP_ONBOARDING
                      - TWO_STEP_ONBOARDING
                    description: Type of onboarding flow
                    example: PREVIOUSLY_ONBOARDED
                  workflow:
                    type: string
                    enum:
                      - HOSTED_BY_PROVIDER
                      - HOSTED_BY_YUNO
                      - DIRECT
                    description: Workflow of the onboarding
                    example: HOSTED_BY_PROVIDER
                  status:
                    type: string
                    description: Current status of the onboarding
                    example: ACTIVE
                  callback_url:
                    type: string
                    format: uri
                    description: URL to redirect after the onboarding process
                    example: https://www.google.com
                  provider:
                    type: object
                    properties:
                      id:
                        type: string
                        description: Provider id
                        example: PAGARME
                      connection_id:
                        type: string
                        description: Id of the connection in Yuno
                        example: 9104911d-5df9-429e-8488-ad41abea1a4b
                      recipient_id:
                        type: string
                        description: The unique identifier of the provider's recipient
                        example: AAAAA01
                  created_at:
                    type: string
                    format: date-time
                    description: Onboarding creation date
                    example: '2024-01-15T10:30:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    description: Onboarding last update date
                    example: '2024-01-15T10:30:00Z'
              examples:
                Success Response:
                  value:
                    id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    account_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    recipient_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                    type: PREVIOUSLY_ONBOARDED
                    workflow: HOSTED_BY_PROVIDER
                    status: SUCCEEDED
                    callback_url: https://www.google.com
                    provider:
                      id: PAGARME
                      connection_id: 9104911d-5df9-429e-8488-ad41abea1a4b
                      recipient_id: AAAAA01
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T10:30:00Z'
        '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.
      tags:
        - Recipients For Marketplace
    patch:
      summary: Update onboarding
      operationId: update-onboarding
      parameters:
        - in: path
          name: recipient_id
          description: ID of the recipient whose onboarding will be updated
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
        - in: path
          name: onboarding_id
          description: ID of the onboarding to be updated
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                account_id:
                  type: string
                  description: Unique id of the account in Yuno
                  example: 9104911d-5df9-429e-8488-ad41abea1a4b
                type:
                  type: string
                  enum:
                    - PREVIOUSLY_ONBOARDED
                    - ONE_STEP_ONBOARDING
                    - TWO_STEP_ONBOARDING
                  description: >-
                    Type of onboarding flow. PREVIOUSLY_ONBOARDED for pre-existing accounts, ONE_STEP_ONBOARDING for
                    account creation + KYC in one step, TWO_STEP_ONBOARDING for account creation first then KYC later
                  example: PREVIOUSLY_ONBOARDED
                workflow:
                  type: string
                  enum:
                    - HOSTED_BY_PROVIDER
                    - HOSTED_BY_YUNO
                    - DIRECT
                  description: Workflow of the onboarding
                  example: HOSTED_BY_PROVIDER
                callback_url:
                  type: string
                  format: uri
                  description: URL in case to redirect your customer after the onboarding process with the provider, if needed.
                  example: https://www.google.com
                provider:
                  type: object
                  properties:
                    id:
                      type: string
                      description: Provider id
                      example: PAGARME
                    connection_id:
                      type: string
                      description: Id of the connection in Yuno
                      example: 104911d-5df9-429e-8488-ad41abea1a4b
                    recipient_id:
                      type: string
                      description: The unique identifier of the provider's recipient.
                      example: AAAAA01
                    recipient_type:
                      type: string
                      description: The type of recipient for the provider.
                      enum:
                        - MEAL
                        - FOOD
                        - MULTI_BENEFITS
                        - FLEET
                      example: MEAL
                documentation:
                  type: array
                  description: Specifies the documentation object.
                  items:
                    type: object
                    required:
                      - file_name
                      - content_type
                      - content_category
                      - content
                    properties:
                      file_name:
                        type: string
                        minLength: 3
                        maxLength: 255
                        description: The name of the documentation sent (MAX 255; MIN 3).
                        example: PDF
                      content_type:
                        type: string
                        enum:
                          - application/pdf
                          - image/jpeg
                          - image/png
                        description: The type of the documentation sent by the merchant
                        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: The category of the documentation sent by the merchant
                      content:
                        type: string
                        format: byte
                        description: 'The content of the documentation sent by the merchant encoded in base64. Max size: 1MB.'
                        example: JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg==
                withdrawal_methods:
                  type: object
                  description: Specifies the withdrawal methods object.
                  properties:
                    bank:
                      type: object
                      description: struct
                      properties:
                        code:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s code (MAX 3; MIN 3)
                          example: '246'
                        branch:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s branch (MAX 3; MIN 3)
                          example: XXXX
                        branch_digit:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s branch digit (MAX 3; MIN 3)
                        account:
                          type: string
                          minLength: 3
                          maxLength: 250
                          description: Beneficiary's bank account number (MAX 3; MIN 250)
                          example: '1093333333'
                        account_digit:
                          type: string
                          minLength: 3
                          maxLength: 250
                          description: Beneficiary's bank account digit (MAX 3; MIN 250)
                        account_type:
                          type: string
                          enum:
                            - CHECKINGS
                            - SAVINGS
                            - VISTA
                            - PIX_EMAIL
                            - PIX_PHONE
                            - PIX_DOCUMENT_ID
                            - PIX_BANK_ACCOUNT
                          description: >-
                            Beneficiary's bank account type (MAX 1; MIN 3). Could be: CHECKINGS, SAVINGS, VISTA,
                            PIX_EMAIL, PIX_PHONE, PIX_DOCUMENT_ID, PIX_BANK_ACCOUNT
                          example: SAVINGS
                        routing:
                          type: string
                          description: Beneficiary's bank account routing number
                          example: XXXXYYYYC
                        country:
                          type: string
                          minLength: 2
                          maxLength: 2
                          description: The bank account's country (ISO 3166-1 MAX 2; MIN 2)
                          example: CO
                        currency:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: The bank account's currency (ISO 3166-1 MAX 3; MIN 3)
                          example: COP
                legal_representatives:
                  type: array
                  description: >-
                    Object to indicate the owners of the organization. Adyen, Stripe and dlocal have fields related to
                    that.
                  items:
                    type: object
                    properties:
                      merchant_reference:
                        type: string
                        minLength: 3
                        maxLength: 255
                        description: Legal representative's identification id (MAX 255; MIN 3).
                      first_name:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: Legal representative's name. (MAX 255; MIN 1).
                        example: John
                      last_name:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: Legal representative's last name. (MAX 255; MIN 1).
                        example: Doe
                      email:
                        type: string
                        format: email
                        minLength: 1
                        maxLength: 255
                        description: The Legal representative's email (MAX 255; MIN 1).
                        example: john.doe@email.com
                      date_of_birth:
                        type: string
                        format: date
                        minLength: 10
                        maxLength: 10
                        description: The Legal representative's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
                        example: '1990-02-28'
                      country:
                        type: string
                        minLength: 2
                        maxLength: 2
                        description: The Legal representative's country (ISO 3166-1 MAX 2; MIN 2)
                        example: CO
                      nationality:
                        type: string
                        minLength: 2
                        maxLength: 2
                        description: The Legal representative's nationality (MAX 2; MIN 2; ISO 3166-1).
                        example: CO
                      title:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: The title of the legal representative (MAX 255; MIN 1).
                        example: CTO
                      publicly_exposed_person:
                        type: boolean
                        description: Indicates if the legal representative is a publicly exposed person
                        example: false
                      ultimate_beneficial_owner:
                        type: boolean
                        description: Indicates if the legal representative is an ultimate beneficiary owner of the company
                        example: false
                terms_of_service:
                  type: object
                  description: Object describing terms of service.
                  required:
                    - acceptance
                    - date
                  properties:
                    acceptance:
                      type: boolean
                      description: If the terms of service were accepted by the recipient
                      example: true
                    date:
                      type: string
                      format: date-time
                      description: Date of the terms of service acceptance
                      example: '2022-07-09T20:43:54.786342Z'
                    ip:
                      type: string
                      format: ipv4
                      description: IP of the terms of service acceptance
                      example: 192.168.1.100
            examples:
              Update Onboarding:
                value:
                  account_id: '{{account_id}}'
                  provider:
                    id: YUNO_TEST_PAYMENT_GW
                    connection_id: '{{connection_id}}'
                    recipient_type: MULTI_BENEFITS
      responses:
        '200':
          description: Updated
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_2'
        '400':
          description: >-
            Invalid request, definite bank refusal for the selected onboarding, or an onboarding status that does not
            accept bank updates (INVALID_STATE). A 400 can also follow a confirmed bank change when a later non-bank
            step fails (REQUEST_CANNOT_BE_PROCESSED); read the outcome messages. Documentation that the provider
            rejects, or whose delivery cannot be confirmed, returns PROVIDER_OPERATION_FAILED; the documents are saved
            and the onboarding keeps its status.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              examples:
                Invalid Parameters:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - 'Provider rejected or requires attention to field: withdrawal_methods.bank.'
                Documents not delivered:
                  value:
                    code: PROVIDER_OPERATION_FAILED
                    messages:
                      - Documents saved, but not delivered to the provider. Resend only documentation.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
        '409':
          description: >-
            Bank outcome unconfirmed, or an onboarding operation prevents this request. Inspect code and messages; a
            confirmed provider change may already have occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              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.
      description: >-
        For Zoop and Pagar.me provider-bound onboardings, explicit bank updates wait for provider confirmation. Unknown
        results return 409; confirmed changes are not rolled back. See the endpoint guide for targeting, partial
        outcomes and retry guidance.
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/onboardings/{onboarding_id}/block:
    post:
      summary: Block Recipient
      operationId: block-recipient
      responses:
        '200':
          description: Recipient blocked successfully
          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: john.doe@email.com
                    country: CO
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T12:00:00Z'
        '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: Conflict - Recipient cannot be blocked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Conflict:
                  value:
                    code: RECIPIENT_ALREADY_BLOCKED
                    messages:
                      - Recipient is already blocked
      parameters:
        - name: recipient_id
          in: path
          required: true
          description: The unique identifier of the recipient
          schema:
            type: string
        - name: onboarding_id
          in: path
          required: true
          description: The unique identifier of the onboarding associated with this action.
          schema:
            type: string
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/onboardings/{onboarding_id}/cancel:
    post:
      summary: Cancel Onboarding
      operationId: cancel-recipient
      responses:
        '200':
          description: Onboarding cancelled successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OnboardingResponse'
              examples:
                Success Response:
                  value:
                    id: 61df26d9-3750-4206-baab-f2e20683f35b
                    type: ONE_STEP_ONBOARDING
                    workflow: DIRECT
                    status: CANCELLED
                    callback_url: https://merchant.example.com/webhook/onboarding
                    provider:
                      id: STRIPE
                      connection_id: 8fee3cc6-f3cb-455d-b139-973866111a03
                      recipient_id: null
                      redirect_url: null
                      onboarding_url: null
                      legal_entity: null
                    documentation:
                      - file_name: recipient.pdf
                        content_type: application/pdf
                        content_category: IDENTIFICATION_DOCUMENT
                        content: recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7
                    legal_representatives:
                      - merchant_reference: ONB_001
                        first_name: Tatiana
                        last_name: González
                        email: tatiana.gonzalez@example.com
                        date_of_birth: '1985-05-20'
                        country: BR
                        nationality: BR
                        title: CEO
                        publicly_exposed_person: false
                        ultimate_beneficial_owner: true
                        document:
                          document_type: CC
                          document_number: '0987654321'
                        phone:
                          number: '3109876543'
                          country_code: '+57'
                        address:
                          address_line_1: 'Calle 26 # 13-19'
                          address_line_2: null
                          country: CO
                          state: Cundinamarca
                          city: Bogotá
                          zip_code: '110311'
                    requirements: []
                    withdrawal_methods:
                      bank:
                        code: '003'
                        branch: '003'
                        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:54.786342Z'
                      ip: 129.21.111.11
                    recipient:
                      id: 5a37f0c0-7689-4065-8348-4b5ff5bf9cc7
                      account_id: c24d6c92-99a7-40bb-bc7b-efc40337f9f4
                      merchant_recipient_id: MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591
                      national_entity: INDIVIDUAL
                      entity_type: PRIVATE
                      first_name: Stebann
                      last_name: Castro
                      legal_name: Steban Castro
                      email: juan.perez@example.com
                      date_of_birth: '1992-01-21'
                      country: CO
                      website: https://juanperez.com
                      industry: Technology
                      merchant_category_code: '5740'
                      document:
                        document_number: '09082160000100'
                        document_type: CNPJ
                      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:
                            number: '3109876543'
                            country_code: '+57'
                          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: recipient.pdf
                          content_type: application/pdf
                          content_category: IDENTIFICATION_DOCUMENT
                          content: recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45
                      created_at: '2025-08-22T17:54:05.711545Z'
                      updated_at: '2025-08-22T17:54:05.711561Z'
                    history:
                      id: 61df26d9-3750-4206-baab-f2e20683f35b
                      type: ONE_STEP_ONBOARDING
                      workflow: DIRECT
                      status: CANCELLED
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: STRIPE
                        connection_id: 8fee3cc6-f3cb-455d-b139-973866111a03
                        recipient_id: null
                        redirect_url: null
                      documentation:
                        - file_name: recipient.pdf
                          content_type: application/pdf
                          content_category: IDENTIFICATION_DOCUMENT
                          content: recipient.pdf-20ac42c2-ef01-4a0c-80dd-0f9f71c9cde7
                      legal_representatives:
                        - merchant_reference: ONB_001
                          first_name: Tatiana
                          last_name: González
                          email: tatiana.gonzalez@example.com
                          date_of_birth: '1985-05-20'
                          country: BR
                          nationality: BR
                          title: CEO
                          publicly_exposed_person: false
                          ultimate_beneficial_owner: true
                          document:
                            document_type: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: null
                            country: CO
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '110311'
                      requirements: []
                      withdrawal_methods:
                        bank:
                          code: '003'
                          branch: '003'
                          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:54.786342Z'
                        ip: 129.21.111.11
                      recipient:
                        id: 5a37f0c0-7689-4065-8348-4b5ff5bf9cc7
                        account_id: c24d6c92-99a7-40bb-bc7b-efc40337f9f4
                        merchant_recipient_id: MERCHANT_85ac5f5d-a169-46b3-bd87-80c0df2e6591
                        national_entity: INDIVIDUAL
                        entity_type: PRIVATE
                        first_name: Stebann
                        last_name: Castro
                        legal_name: Steban Castro
                        email: juan.perez@example.com
                        date_of_birth: '1992-01-21'
                        country: CO
                        website: https://juanperez.com
                        industry: Technology
                        merchant_category_code: '5740'
                        document:
                          document_number: '09082160000100'
                          document_type: CNPJ
                        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:
                              number: '3109876543'
                              country_code: '+57'
                            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: recipient.pdf
                            content_type: application/pdf
                            content_category: IDENTIFICATION_DOCUMENT
                            content: recipient.pdf-2bf73b44-33e3-49c7-b777-34a5178cfb45
                        created_at: '2025-08-22T17:54:05.711545Z'
                        updated_at: '2025-08-22T17:54:05.711561Z'
                      created_at: '2025-08-22T17:57:58.460711Z'
                      updated_at: '2025-08-22T17:57:58.460724Z'
                    created_at: '2025-08-22T17:57:58.460711Z'
                    updated_at: '2025-08-22T17:57:58.460724Z'
        '400':
          description: Bad request. The onboarding is in a status that cannot be cancelled.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Invalid state:
                  value:
                    code: INVALID_STATE
                    messages:
                      - The onboarding state does not support the action requested.
        '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.
      parameters:
        - name: recipient_id
          in: path
          required: true
          description: The unique identifier of the recipient
          schema:
            type: string
        - name: onboarding_id
          in: path
          required: true
          description: The unique identifier of the onboarding associated with this action.
          schema:
            type: string
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/onboardings/{onboarding_id}/continue:
    post:
      summary: Continue Onboarding
      operationId: continue-onboarding
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - type
                - workflow
              properties:
                account_id:
                  type: string
                  description: Unique id of the account in Yuno
                  example: 9104911d-5df9-429e-8488-ad41abea1a4b
                type:
                  type: string
                  enum:
                    - TWO_STEP_ONBOARDING
                  description: Type of onboarding flow. Only TWO_STEP_ONBOARDING can be continued.
                  example: TWO_STEP_ONBOARDING
                workflow:
                  type: string
                  enum:
                    - HOSTED_BY_PROVIDER
                    - DIRECT
                  description: >-
                    Workflow of the KYC process. HOSTED_BY_PROVIDER calls create KYC service and returns Yuno URL that
                    redirects to provider. DIRECT calls create KYC service and processes KYC directly.
                  example: HOSTED_BY_PROVIDER
                callback_url:
                  type: string
                  format: uri
                  description: URL in case to redirect your customer after the onboarding process with the provider, if needed.
                  example: https://www.google.com
                provider:
                  type: object
                  properties:
                    id:
                      type: string
                      description: Provider id
                      example: PAGARME
                    connection_id:
                      type: string
                      description: Id of the connection in Yuno
                      example: 104911d-5df9-429e-8488-ad41abea1a4b
                    recipient_id:
                      type: string
                      description: The unique identifier of the provider's recipient.
                      example: AAAAA01
                documentation:
                  type: array
                  description: Specifies the documentation object.
                  items:
                    type: object
                    required:
                      - file_name
                      - content_type
                      - content_category
                      - content
                    properties:
                      file_name:
                        type: string
                        minLength: 3
                        maxLength: 255
                        description: The name of the documentation sent (MAX 255; MIN 3).
                        example: PDF
                      content_type:
                        type: string
                        enum:
                          - application/pdf
                          - image/jpeg
                          - image/png
                        description: The type of the documentation sent by the merchant
                        example: application/pdf
                      content_category:
                        type: string
                        enum:
                          - ACCOUNT_REQUIREMENT
                          - BANK_STATEMENT
                          - BUSINESS_ICON
                          - BUSINESS_LOGO
                          - CANCEL_POLICY
                          - CUSTOMER_INTERACTION
                          - DRIVERS_LICENCE
                          - DRIVERS_LICENCE_BACK
                          - 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: The category of the documentation sent by the merchant
                      content:
                        type: string
                        format: byte
                        description: 'The content of the documentation sent by the merchant encoded in base64. Max size: 1MB.'
                        example: JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PAovVHlwZSAvQ2F0YWxvZwovUGFnZXMgMiAwIFIKPj4KZW5kb2JqCg==
                withdrawal_methods:
                  type: object
                  description: Specifies the withdrawal methods object.
                  properties:
                    bank:
                      type: object
                      description: struct
                      properties:
                        code:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s code (MAX 3; MIN 3)
                          example: '246'
                        branch:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s branch (MAX 3; MIN 3)
                          example: XXXX
                        branch_digit:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: Bank´s branch digit (MAX 3; MIN 3)
                        account:
                          type: string
                          minLength: 3
                          maxLength: 250
                          description: Beneficiary's bank account number (MAX 3; MIN 250)
                          example: '1093333333'
                        account_digit:
                          type: string
                          minLength: 3
                          maxLength: 250
                          description: Beneficiary's bank account digit (MAX 3; MIN 250)
                        account_type:
                          type: string
                          enum:
                            - CHECKINGS
                            - SAVINGS
                            - VISTA
                            - PIX_EMAIL
                            - PIX_PHONE
                            - PIX_DOCUMENT_ID
                            - PIX_BANK_ACCOUNT
                          description: >-
                            Beneficiary's bank account type (MAX 1; MIN 3). Could be: CHECKINGS, SAVINGS, VISTA,
                            PIX_EMAIL, PIX_PHONE, PIX_DOCUMENT_ID, PIX_BANK_ACCOUNT
                          example: SAVINGS
                        routing:
                          type: string
                          description: Beneficiary's bank account routing number
                          example: XXXXYYYYC
                        country:
                          type: string
                          minLength: 2
                          maxLength: 2
                          description: The bank account's country (ISO 3166-1 MAX 2; MIN 2)
                          example: CO
                        currency:
                          type: string
                          minLength: 3
                          maxLength: 3
                          description: The bank account's currency (ISO 3166-1 MAX 3; MIN 3)
                          example: COP
                legal_representatives:
                  type: array
                  description: >-
                    Object to indicate the owners of the organization. Adyen, Stripe and dlocal have fields related to
                    that.
                  items:
                    type: object
                    required:
                      - merchant_reference
                    properties:
                      merchant_reference:
                        type: string
                        minLength: 3
                        maxLength: 255
                        description: >-
                          Legal representative's identification id (MAX 255; MIN 3). Required: the API returns 400
                          INVALID_PARAMETERS ("The field 'legal_representatives[0].merchant_reference' is required.")
                          when it is missing.
                      first_name:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: Legal representative's name. (MAX 255; MIN 1).
                        example: John
                      last_name:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: Legal representative's last name. (MAX 255; MIN 1).
                        example: Doe
                      email:
                        type: string
                        format: email
                        minLength: 1
                        maxLength: 255
                        description: The Legal representative's email (MAX 255; MIN 1).
                        example: john.doe@email.com
                      date_of_birth:
                        type: string
                        format: date
                        minLength: 10
                        maxLength: 10
                        description: The Legal representative's date of birth in the YYYY-MM-DD format (MAX 10; MIN 10).
                        example: '1990-02-28'
                      country:
                        type: string
                        minLength: 2
                        maxLength: 2
                        description: The Legal representative's country (ISO 3166-1 MAX 2; MIN 2)
                        example: CO
                      nationality:
                        type: string
                        minLength: 2
                        maxLength: 2
                        description: The Legal representative's nationality (MAX 2; MIN 2; ISO 3166-1).
                        example: CO
                      title:
                        type: string
                        minLength: 1
                        maxLength: 255
                        description: The title of the legal representative (MAX 255; MIN 1).
                        example: CTO
                      publicly_exposed_person:
                        type: boolean
                        description: Indicates if the legal representative is a publicly exposed person
                        example: false
                      ultimate_beneficial_owner:
                        type: boolean
                        description: Indicates if the legal representative is an ultimate beneficiary owner of the company
                        example: false
                terms_of_service:
                  type: object
                  description: Object describing terms of service.
                  required:
                    - acceptance
                    - date
                  properties:
                    acceptance:
                      type: boolean
                      description: If the terms of service were accepted by the recipient
                      example: true
                    date:
                      type: string
                      format: date-time
                      description: Date of the terms of service acceptance
                      example: '2022-07-09T20:43:54.786342Z'
                    ip:
                      type: string
                      format: ipv4
                      description: IP of the terms of service acceptance
                      example: 192.168.1.100
            examples:
              Continue Two-Step Onboarding:
                value:
                  account_id: '{{account-code}}'
                  type: TWO_STEP_ONBOARDING
                  workflow: DIRECT
                  callback_url: https://merchant.example.com/webhook/onboarding
                  provider:
                    id: STRIPE
                    connection_id: '{{connection_id}}'
                  legal_representatives:
                    - merchant_reference: LR-0001
                      first_name: John
                      last_name: Doe
                      email: john.doe@email.com
                      date_of_birth: '1990-02-28'
                      country: CO
                      nationality: CO
                      title: CTO
                      publicly_exposed_person: false
                      ultimate_beneficial_owner: false
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_2'
              examples:
                Successful:
                  value:
                    id: 61df26d9-3750-4206-baab-f2e20683f35b
                    type: TWO_STEP_ONBOARDING
                    workflow: HOSTED_BY_PROVIDER
                    status: PENDING
                    provider:
                      id: STRIPE
                      connection_id: 8fee3cc6-f3cb-455d-b139-973866111a03
                      recipient_id: acct_1RvpogA4Jk50vKRE
                      redirect_url: https://api.y.uno/redirect/kyc/stripe/session_12345
                    created_at: '2025-08-22T17:57:58.460711Z'
                    updated_at: '2025-08-22T18:15:22.123456Z'
                  summary: Successful
        '400':
          description: >-
            Invalid request, definite bank refusal for the selected onboarding, or an onboarding status that does not
            accept bank updates (INVALID_STATE). KYC continuation is not started when the bank is refused. A 400 can
            also follow a confirmed bank change when a later step fails (REQUEST_CANNOT_BE_PROCESSED); read the outcome
            messages.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              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_2'
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
        '409':
          description: >-
            Bank outcome unconfirmed, or an onboarding operation prevents this request. Inspect code and messages; a
            confirmed provider change may already have occurred.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse_2'
              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.
      description: >-
        For Zoop and Pagar.me provider-bound onboardings, explicit bank updates wait for provider confirmation. Unknown
        results return 409; confirmed changes are not rolled back. See the endpoint guide for targeting, partial
        outcomes and retry guidance.
      parameters:
        - in: path
          name: recipient_id
          description: ID of the recipient
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
        - in: path
          name: onboarding_id
          description: ID of the onboarding to continue
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/onboardings/{onboarding_id}/transfer:
    post:
      description: ''
      operationId: post_recipients-id-onboardings-id-transfer
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: ed206787-6203-45a6-b896-71249fff7ddb
                  origin_onboarding:
                    type: object
                    properties:
                      id:
                        type: string
                        example: c2f96b59-ae5a-470d-a94a-16bf142b11df
                      type:
                        type: string
                        example: ONE_STEP_ONBOARDING
                      workflow:
                        type: string
                        example: DIRECT
                      description:
                        type: string
                        example: Onboarding Description
                      status:
                        type: string
                        example: INACTIVE
                      response_message: {}
                      callback_url:
                        type: string
                        example: https://merchant.example.com/webhook/onboarding
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: STRIPE
                          connection_id:
                            type: string
                            example: b90fa936-92b6-4529-9c69-0ca474291af1
                          recipient_id:
                            type: string
                            example: acct_1SpfTBRFM5RUW372
                          redirect_url: {}
                          onboarding_url:
                            type: string
                            example: ''
                          legal_entity: {}
                          recipient_additional_id: {}
                          balance_account_id:
                            type: string
                            example: ''
                          recipient_type: {}
                          raw_notification: {}
                          raw_response: {}
                          response_code: {}
                          response_message: {}
                      documentation:
                        type: array
                        items:
                          type: object
                          properties:
                            file_name:
                              type: string
                              example: onboarding10.png
                            content_type:
                              type: string
                              example: image/png
                            content_category:
                              type: string
                              example: VAT_DOCUMENT
                            content:
                              type: string
                              example: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        type: array
                        items:
                          type: object
                          properties:
                            merchant_reference:
                              type: string
                              example: ONB_010
                            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: US
                            nationality:
                              type: string
                              example: US
                            title:
                              type: string
                              example: CEO
                            publicly_exposed_person:
                              type: boolean
                              example: false
                              default: true
                            ultimate_beneficial_owner:
                              type: boolean
                              example: true
                              default: true
                            document:
                              type: object
                              properties:
                                document_type:
                                  type: string
                                  example: CC
                                document_number:
                                  type: string
                                  example: '0987654321'
                            phone:
                              type: object
                              properties:
                                number:
                                  type: string
                                  example: '3109876543'
                                country_code:
                                  type: string
                                  example: '+57'
                            address:
                              type: object
                              properties:
                                address_line_1:
                                  type: string
                                  example: 'Calle 26 # 13-19'
                                address_line_2:
                                  type: string
                                  example: test calle
                                country:
                                  type: string
                                  example: US
                                state:
                                  type: string
                                  example: Cundinamarca
                                city:
                                  type: string
                                  example: Bogota
                                zip_code:
                                  type: string
                                  example: '03804'
                                neighborhood:
                                  type: string
                                  example: Centro
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: test
                            value:
                              type: string
                              example: '123'
                      withdrawal_methods:
                        type: object
                        properties:
                          bank:
                            type: object
                            properties:
                              code:
                                type: string
                                example: '004'
                              branch:
                                type: string
                                example: '006'
                              branch_digit:
                                type: string
                                example: '125'
                              account:
                                type: string
                                example: '000123456789'
                              account_digit:
                                type: string
                                example: '124'
                              account_type:
                                type: string
                                example: SAVINGS
                              routing:
                                type: string
                                example: '110000000'
                              country:
                                type: string
                                example: US
                              currency:
                                type: string
                                example: USD
                              payout_schedule:
                                type: string
                                example: HOLD
                      terms_of_service:
                        type: object
                        properties:
                          acceptance:
                            type: boolean
                            example: true
                            default: true
                          date:
                            type: string
                            example: '2025-07-21T20:43:54.786342Z'
                          ip:
                            type: string
                            example: 129.21.111.11
                      created_at:
                        type: string
                        example: '2026-01-15T21:33:17.374975Z'
                      updated_at:
                        type: string
                        example: '2026-01-15T21:33:44.650123Z'
                  destination_onboarding:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 97254599-4f94-4aff-9777-733a8e0e95e1
                      type:
                        type: string
                        example: ONE_STEP_ONBOARDING
                      workflow:
                        type: string
                        example: DIRECT
                      description:
                        type: string
                        example: Onboarding Description
                      status:
                        type: string
                        example: SUCCEEDED
                      response_message: {}
                      callback_url:
                        type: string
                        example: https://merchant.example.com/webhook/onboarding
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: STRIPE
                          connection_id:
                            type: string
                            example: b90fa936-92b6-4529-9c69-0ca474291af1
                          recipient_id:
                            type: string
                            example: acct_1SpfStIPQ4THTT53
                          redirect_url: {}
                          onboarding_url:
                            type: string
                            example: ''
                          legal_entity: {}
                          recipient_additional_id: {}
                          balance_account_id:
                            type: string
                            example: ''
                          recipient_type: {}
                          raw_notification: {}
                          raw_response: {}
                          response_code: {}
                          response_message: {}
                      documentation:
                        type: array
                        items:
                          type: object
                          properties:
                            file_name:
                              type: string
                              example: onboarding10.png
                            content_type:
                              type: string
                              example: image/png
                            content_category:
                              type: string
                              example: VAT_DOCUMENT
                            content:
                              type: string
                              example: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        type: array
                        items:
                          type: object
                          properties:
                            merchant_reference:
                              type: string
                              example: ONB_010
                            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: US
                            nationality:
                              type: string
                              example: US
                            title:
                              type: string
                              example: CEO
                            publicly_exposed_person:
                              type: boolean
                              example: false
                              default: true
                            ultimate_beneficial_owner:
                              type: boolean
                              example: true
                              default: true
                            document:
                              type: object
                              properties:
                                document_type:
                                  type: string
                                  example: CC
                                document_number:
                                  type: string
                                  example: '0987654321'
                            phone:
                              type: object
                              properties:
                                number:
                                  type: string
                                  example: '3109876543'
                                country_code:
                                  type: string
                                  example: '+57'
                            address:
                              type: object
                              properties:
                                address_line_1:
                                  type: string
                                  example: 'Calle 26 # 13-19'
                                address_line_2:
                                  type: string
                                  example: test calle
                                country:
                                  type: string
                                  example: US
                                state:
                                  type: string
                                  example: Cundinamarca
                                city:
                                  type: string
                                  example: Bogota
                                zip_code:
                                  type: string
                                  example: '03804'
                                neighborhood:
                                  type: string
                                  example: Centro
                      metadata:
                        type: array
                        items:
                          type: object
                          properties:
                            key:
                              type: string
                              example: test
                            value:
                              type: string
                              example: '123'
                      withdrawal_methods:
                        type: object
                        properties:
                          bank:
                            type: object
                            properties:
                              code:
                                type: string
                                example: '004'
                              branch:
                                type: string
                                example: '006'
                              branch_digit:
                                type: string
                                example: '125'
                              account:
                                type: string
                                example: '000123456789'
                              account_digit:
                                type: string
                                example: '124'
                              account_type:
                                type: string
                                example: SAVINGS
                              routing:
                                type: string
                                example: '110000000'
                              country:
                                type: string
                                example: US
                              currency:
                                type: string
                                example: USD
                              payout_schedule:
                                type: string
                                example: HOLD
                      terms_of_service:
                        type: object
                        properties:
                          acceptance:
                            type: boolean
                            example: true
                            default: true
                          date:
                            type: string
                            example: '2025-07-21T20:43:54.786342Z'
                          ip:
                            type: string
                            example: 129.21.111.11
                      created_at:
                        type: string
                        example: '2026-01-15T01:35:10.646218Z'
                      updated_at:
                        type: string
                        example: '2026-01-15T21:33:46.245564Z'
                  created_at:
                    type: string
                    example: '2026-01-15T21:33:46.456587Z'
                  updated_at:
                    type: string
                    example: '2026-01-15T21:33:46.456624Z'
              examples:
                Success:
                  value:
                    id: ed206787-6203-45a6-b896-71249fff7ddb
                    origin_onboarding:
                      id: c2f96b59-ae5a-470d-a94a-16bf142b11df
                      type: ONE_STEP_ONBOARDING
                      workflow: DIRECT
                      description: Onboarding Description
                      status: INACTIVE
                      response_message: null
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: STRIPE
                        connection_id: b90fa936-92b6-4529-9c69-0ca474291af1
                        recipient_id: acct_1SpfTBRFM5RUW372
                        redirect_url: null
                        onboarding_url: ''
                        legal_entity: null
                        recipient_additional_id: null
                        balance_account_id: ''
                        recipient_type: null
                        raw_notification: null
                        raw_response: null
                        response_code: null
                        response_message: null
                      documentation:
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                      metadata:
                        - key: test
                          value: '123'
                      withdrawal_methods:
                        bank:
                          code: '004'
                          branch: '006'
                          branch_digit: '125'
                          account: '000123456789'
                          account_digit: '124'
                          account_type: SAVINGS
                          routing: '110000000'
                          country: US
                          currency: USD
                          payout_schedule: HOLD
                      terms_of_service:
                        acceptance: true
                        date: '2025-07-21T20:43:54.786342Z'
                        ip: 129.21.111.11
                      created_at: '2026-01-15T21:33:17.374975Z'
                      updated_at: '2026-01-15T21:33:44.650123Z'
                    destination_onboarding:
                      id: 97254599-4f94-4aff-9777-733a8e0e95e1
                      type: ONE_STEP_ONBOARDING
                      workflow: DIRECT
                      description: Onboarding Description
                      status: SUCCEEDED
                      response_message: null
                      callback_url: https://merchant.example.com/webhook/onboarding
                      provider:
                        id: STRIPE
                        connection_id: b90fa936-92b6-4529-9c69-0ca474291af1
                        recipient_id: acct_1SpfStIPQ4THTT53
                        redirect_url: null
                        onboarding_url: ''
                        legal_entity: null
                        recipient_additional_id: null
                        balance_account_id: ''
                        recipient_type: null
                        raw_notification: null
                        raw_response: null
                        response_code: null
                        response_message: null
                      documentation:
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                        - file_name: onboarding10.png
                          content_type: image/png
                          content_category: VAT_DOCUMENT
                          content: onboarding10.png-c86969b6-6ddc-4bc2-9bce-f190a05679bf
                      legal_representatives:
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                        - merchant_reference: ONB_010
                          first_name: María
                          last_name: González
                          email: maria.gonzalez@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: CC
                            document_number: '0987654321'
                          phone:
                            number: '3109876543'
                            country_code: '+57'
                          address:
                            address_line_1: 'Calle 26 # 13-19'
                            address_line_2: test calle
                            country: US
                            state: Cundinamarca
                            city: Bogotá
                            zip_code: '03804'
                            neighborhood: Centro
                      metadata:
                        - key: test
                          value: '123'
                      withdrawal_methods:
                        bank:
                          code: '004'
                          branch: '006'
                          branch_digit: '125'
                          account: '000123456789'
                          account_digit: '124'
                          account_type: SAVINGS
                          routing: '110000000'
                          country: US
                          currency: USD
                          payout_schedule: HOLD
                      terms_of_service:
                        acceptance: true
                        date: '2025-07-21T20:43:54.786342Z'
                        ip: 129.21.111.11
                      created_at: '2026-01-15T01:35:10.646218Z'
                      updated_at: '2026-01-15T21:33:46.245564Z'
                    created_at: '2026-01-15T21:33:46.456587Z'
                    updated_at: '2026-01-15T21:33:46.456624Z'
                  summary: Success
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request format
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
      parameters:
        - in: path
          name: recipient_id
          description: ID of the new recipient to whom the onboarding will be transferred
          schema:
            type: string
          required: true
          example: 9104911d-5df9-429e-8488-ad41abea1a4b
        - in: path
          name: onboarding_id
          description: ID of the new onboarding to whom the onboarding will be transferred
          schema:
            type: string
          required: true
          example: 104911d-5df9-429e-8488-ad41abea1a4b
        - in: header
          name: X-organization-code
          schema:
            type: string
          required: true
          description: Organization code associated to the request.
        - in: header
          name: X-Idempotency-Key
          schema:
            type: string
          required: true
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts.
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/onboardings/{onboarding_id}/unblock:
    post:
      summary: Unblock Recipient
      operationId: unblock-recipient
      responses:
        '200':
          description: Recipient unblocked successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecipientResponse_2'
              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: john.doe@email.com
                    country: CO
                    created_at: '2024-01-15T10:30:00Z'
                    updated_at: '2024-01-15T12:00:00Z'
        '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: Conflict - Recipient cannot be unblocked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                Conflict:
                  value:
                    code: RECIPIENT_NOT_BLOCKED
                    messages:
                      - Recipient is not blocked
      parameters:
        - name: recipient_id
          in: path
          required: true
          description: The unique identifier of the recipient
          schema:
            type: string
        - name: onboarding_id
          in: path
          required: true
          description: The unique identifier of the onboarding associated with this action.
          schema:
            type: string
      tags:
        - Recipients For Marketplace
  /recipients/{recipient_id}/transfers:
    get:
      description: ''
      responses:
        '200':
          description: OK
          content:
            application/json:
              examples:
                'OK: Array of transfers (by most recent)':
                  summary: 'OK: Array of transfers (by most recent)'
                  value:
                    - id: 550e8400-e29b-41d4-a716-446655440000
                      origin_onboarding:
                        id: 660e8400-e29b-41d4-a716-446655440001
                        status: TRANSFERRED
                        type: ONE_STEP_ONBOARDING
                        workflow: DIRECT
                        provider:
                          id: STRIPE
                          recipient_id: acct_1234567890
                          connection_id: 880e8400-e29b-41d4-a716-446655440003
                        recipient:
                          id: 770e8400-e29b-41d4-a716-446655440002
                          merchant_recipient_id: seller-123
                          email: seller@example.com
                        created_at: '2026-01-15T10:00:00Z'
                        updated_at: '2026-01-15T16:59:22Z'
                      destination_onboarding:
                        id: 990e8400-e29b-41d4-a716-446655440004
                        status: SUCCEEDED
                        type: ONE_STEP_ONBOARDING
                        provider:
                          id: STRIPE
                          recipient_id: acct_0987654321
                          connection_id: 880e8400-e29b-41d4-a716-446655440003
                        recipient:
                          id: aa0e8400-e29b-41d4-a716-446655440005
                          merchant_recipient_id: seller-456
                          email: newseller@example.com
                        created_at: '2026-01-15T16:59:22Z'
                        updated_at: '2026-01-15T16:59:23Z'
                      created_at: '2026-01-15T16:59:22.996009Z'
                      updated_at: '2026-01-15T16:59:23.734739Z'
                    - id: bb0e8400-e29b-41d4-a716-446655440006
                      origin_onboarding:
                        id: cc0e8400-e29b-41d4-a716-446655440007
                        status: TRANSFERRED
                        recipient:
                          id: 770e8400-e29b-41d4-a716-446655440002
                          merchant_recipient_id: seller-123
                      destination_onboarding:
                        id: dd0e8400-e29b-41d4-a716-446655440008
                        status: SUCCEEDED
                        recipient:
                          id: ee0e8400-e29b-41d4-a716-446655440009
                          merchant_recipient_id: seller-789
                      created_at: '2026-01-10T08:30:00.000000Z'
                      updated_at: '2026-01-10T08:30:15.000000Z'
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: FORBIDDEN
                  messages:
                    type: array
                    items:
                      type: string
                      example: You do not have permission to access this resource.
              examples:
                'Forbidden: Recipient belongs to different organization':
                  summary: 'Forbidden: Recipient belongs to different organization'
                  value:
                    code: FORBIDDEN
                    messages:
                      - You do not have permission to access this resource.
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: RECIPIENT_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Recipient not found.
              examples:
                'Not Found: Recipient does not exist':
                  summary: 'Not Found: Recipient does not exist'
                  value:
                    code: RECIPIENT_NOT_FOUND
                    messages:
                      - Recipient not found.
          description: Not Found
      parameters:
        - in: path
          name: recipient_id
          schema:
            type: string
            default: '{{recipient_id}}'
          required: true
          description: The recipient `id` returned from the [create recipient](/reference/create-recipient-1) endpoint (UUID).
        - in: header
          name: x-account-code
          schema:
            type: string
          description: The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID).
      operationId: get_recipients-recipient-id-transfers
      tags:
        - Recipients For Marketplace
  /reporting/transactions:
    post:
      summary: Report Off-Yuno Transactions
      description: >-
        Reports transactions processed directly with a provider (outside Yuno). Each accepted event is persisted as a
        regular Yuno payment with `origin: REPORTED` — visible in the dashboard, listings and analytics, but never
        routed, retried or charged by Yuno.
      operationId: report-transactions
      parameters:
        - in: header
          name: PUBLIC-API-KEY
          schema:
            type: string
          description: Your public API key.
        - in: header
          name: PRIVATE-SECRET-KEY
          schema:
            type: string
          description: Your private secret key. Never expose it client-side.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - events
              properties:
                account_id:
                  type: string
                  format: uuid
                  description: UUID of the Yuno account the reported payments belong to.
                events:
                  type: array
                  minItems: 1
                  maxItems: 500
                  description: >-
                    One event or a batch of up to 500. Events are processed per item: one invalid event never rejects
                    the batch.
                  items:
                    type: object
                    additionalProperties: false
                    required:
                      - report_id
                      - merchant_order_id
                      - country
                      - payment_method_type
                      - result
                      - amount
                      - provider_id
                    properties:
                      report_id:
                        type: string
                        maxLength: 255
                        description: >-
                          Your unique identifier for this event — the deduplication key. An event with a `report_id`
                          already ingested is counted as a duplicate and never ingested twice, which makes retries safe.
                        examples:
                          - merchant-rpt-000123
                      merchant_order_id:
                        type: string
                        maxLength: 255
                        description: Your order reference — how you find the payment in the dashboard.
                        examples:
                          - order_45678
                      country:
                        type: string
                        minLength: 2
                        maxLength: 2
                        description: >-
                          Uppercase ISO 3166-1 alpha-2 country code of the transaction (e.g. `US`); lowercase or unknown
                          codes are rejected.
                        examples:
                          - US
                      payment_method_type:
                        type: string
                        description: >-
                          Payment method type used at the provider — must be one of Yuno's payment-method types (e.g.
                          `CARD`, `PIX`); unknown types are rejected.
                        examples:
                          - CARD
                      result:
                        type: string
                        enum:
                          - SUCCEEDED
                          - DECLINED
                          - ERROR
                        description: >-
                          The outcome the provider gave you. Maps to the payment status together with the event type:
                          `PURCHASE`+`SUCCEEDED` → payment `SUCCEEDED`; `AUTHORIZE`+`SUCCEEDED` → `PENDING`/`AUTHORIZED`
                          (an approved authorization is not captured money); `DECLINED` → `DECLINED`; `ERROR` → `ERROR`.
                      amount:
                        type: object
                        required:
                          - value
                          - currency
                        description: Transaction amount. Decimal value — a payment of $99 is `99.00`, not `9900`.
                        properties:
                          value:
                            type: number
                            minimum: 0
                            description: >-
                              Decimal amount, greater than or equal to zero. A `0` amount is typical of `VERIFY` events
                              (zero-dollar verification).
                            examples:
                              - 99
                          currency:
                            type: string
                            minLength: 3
                            maxLength: 3
                            description: Uppercase ISO 4217 currency code (e.g. `USD`); lowercase or unknown codes are rejected.
                            examples:
                              - USD
                      provider_id:
                        type: string
                        description: >-
                          The provider you processed the transaction with — must be one of Yuno's catalog provider ids
                          (e.g. `ADYEN`); unknown providers are rejected. Shown on the payment, enabling provider-level
                          segmentation in the dashboard and analytics.
                        examples:
                          - ADYEN
                      latency_ms:
                        type: integer
                        minimum: 0
                        description: >-
                          Optional. The provider's response time as observed by you, in milliseconds (round-trip of the
                          authorization call). Feeds latency analytics per provider and the LATENCY and BALANCED
                          objectives of Routing Recommendations: events without it carry no latency to rank on.
                        examples:
                          - 180
                      token_type_used:
                        type: string
                        enum:
                          - FPAN
                          - DPAN
                          - PROVIDER_TOKEN
                        description: >-
                          Optional. The credential you sent to the provider for this transaction: `FPAN` — the real card
                          number (funding PAN); `DPAN` — the card's network token; `PROVIDER_TOKEN` — a token issued by
                          that provider for the stored card (e.g. a saved-card or stored-payment-method token on the
                          provider's own vault). Powers approval-rate analysis per token type.
                        examples:
                          - DPAN
                      initiation:
                        type: string
                        enum:
                          - CIT
                          - MIT
                        description: >-
                          Optional. How the transaction was initiated at the provider: `CIT` — cardholder-initiated (the
                          customer was present at checkout); `MIT` — merchant-initiated (e.g. a subscription renewal).
                          Any other value rejects the event with `INVALID_EVENT` and the message "The field 'initiation'
                          must be CIT or MIT." Powers approval-rate statistics split by initiation in Routing
                          Recommendations. Omit it to keep the event exactly as before.
                        examples:
                          - MIT
                      recommendation_id:
                        type: string
                        format: uuid
                        description: >-
                          Optional. The `recommendation_id` returned by `POST /v1/routing/recommendations` for this
                          payment, so Yuno can attribute the reported outcome to that recommendation. Must be the value
                          exactly as returned: a lowercase UUID v4. It is not validated against existing
                          recommendations. Any other value rejects the event with `INVALID_EVENT` and the message "The
                          field 'recommendation_id' must be a UUID." Omit it (or send `null`) to keep the event exactly
                          as before.
                        examples:
                          - 3f9c2a7e-1b7d-4c2a-9a1e-6e1f0c2b9d11
                      payment_method_details:
                        type: object
                        additionalProperties: false
                        description: >-
                          Optional. Details of the payment method used at the provider, keyed by the payment method type
                          — today only `card`, and only on events whose `payment_method_type` is `CARD`. A `card.bin` on
                          an event of another type, or a container with any other key, rejects the event. An empty
                          container (`{}` or `{"card": {}}`) is treated as absent.
                        properties:
                          card:
                            type: object
                            additionalProperties: false
                            properties:
                              bin:
                                type: string
                                pattern: ^([0-9]{6}|[0-9]{8})$
                                description: >-
                                  The card's BIN — the first 6 or 8 digits of the card number, exactly; any other length
                                  or a non-digit rejects the event with `INVALID_EVENT`. Not cardholder data. Stored on
                                  the reported payment's transaction as `payment_method.detail.card.card_data.iin` and
                                  used to build BIN-level statistics for Routing Recommendations. Omit it to keep the
                                  event exactly as before.
                                examples:
                                  - '45717360'
                      event_type:
                        type: string
                        enum:
                          - PURCHASE
                          - AUTHORIZE
                          - VERIFY
                        default: PURCHASE
                        description: >-
                          Optional. The operation you performed at the provider: `PURCHASE` — a direct charge
                          (authorization and capture in one step; the default when omitted); `AUTHORIZE` — an
                          authorization to be captured later (the payment lands `PENDING` with sub-status `AUTHORIZED`);
                          `VERIFY` — a card verification / zero-dollar authorization (the payment lands `SUCCEEDED` with
                          sub-status `VERIFIED`).
                      occurred_at:
                        type: string
                        format: date-time
                        description: >-
                          Optional. When the transaction happened at the provider (RFC 3339, UTC). Defaults to the time
                          Yuno receives the event.
                        examples:
                          - '2026-08-14T10:41:07Z'
                      raw_provider_response:
                        type: object
                        description: >-
                          Optional. The provider's response payload, verbatim (JSON, up to 64 KB). Stored with defensive
                          card-data redaction applied; never returned by any API. Archiving it lets Yuno enrich the
                          payment later without asking you for anything new.
            examples:
              minimal:
                summary: Minimal event (required fields only)
                value:
                  account_id: 3f2a1b6c-8d4e-4f5a-9b0c-1d2e3f4a5b6c
                  events:
                    - report_id: merchant-rpt-000123
                      merchant_order_id: order_45678
                      country: US
                      payment_method_type: CARD
                      result: SUCCEEDED
                      amount:
                        currency: USD
                        value: 99
                      provider_id: ADYEN
              full:
                summary: Full event (all v1 fields)
                value:
                  account_id: 3f2a1b6c-8d4e-4f5a-9b0c-1d2e3f4a5b6c
                  events:
                    - report_id: merchant-rpt-000125
                      merchant_order_id: order_45679
                      country: US
                      payment_method_type: CARD
                      result: SUCCEEDED
                      amount:
                        currency: USD
                        value: 99
                      provider_id: ADYEN
                      latency_ms: 180
                      token_type_used: DPAN
                      initiation: MIT
                      recommendation_id: 3f9c2a7e-1b7d-4c2a-9a1e-6e1f0c2b9d11
                      payment_method_details:
                        card:
                          bin: '45717360'
                      event_type: PURCHASE
                      occurred_at: '2026-08-14T10:41:07Z'
                      raw_provider_response:
                        pspReference: '8815992887'
                        resultCode: Authorised
      responses:
        '202':
          description: Batch accepted and processed per event.
          content:
            application/json:
              schema:
                type: object
                properties:
                  accepted:
                    type: integer
                    description: Events ingested as payments.
                  duplicates:
                    type: integer
                    description: Events skipped because their `report_id` was already ingested.
                  rejected:
                    type: array
                    description: Events that failed validation, each with its reason. The rest of the batch is unaffected.
                    items:
                      type: object
                      properties:
                        report_id:
                          type: string
                        code:
                          type: string
                          examples:
                            - INVALID_EVENT
                        messages:
                          type: array
                          items:
                            type: string
              examples:
                mixed:
                  value:
                    accepted: 2
                    duplicates: 1
                    rejected:
                      - report_id: merchant-rpt-000124
                        code: INVALID_EVENT
                        messages:
                          - 'The field ''event_type'' must be one of: PURCHASE, AUTHORIZE, VERIFY.'
        '400':
          description: >-
            Request-level validation failure — malformed body, missing required field, or a batch over 500 events. An
            `account_id` that does not exist or does not belong to your organization answers `INVALID_ACCOUNT_ID`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                invalid_request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - The field 'events' must contain between 1 and 500 events.
        '401':
          description: >-
            Unauthorized — `NOT_AUTHENTICATED` / `INVALID_CREDENTIALS` (missing or invalid `PUBLIC-API-KEY` /
            `PRIVATE-SECRET-KEY` headers).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                not_authenticated:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Missing or invalid PUBLIC-API-KEY / PRIVATE-SECRET-KEY headers.
        '403':
          description: Forbidden — `PRODUCT_NOT_ENABLED` (the product is not enabled for your organization).
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                product_not_enabled:
                  value:
                    code: PRODUCT_NOT_ENABLED
                    messages:
                      - >-
                        The Transaction Reporting API is enabled per organization. Contact your Key Account Manager
                        (KAM) to activate it.
      tags:
        - Reporting
  /reports:
    post:
      summary: Create a Report
      description: ''
      operationId: create-a-report
      parameters:
        - name: X-Organization-Code
          in: header
          required: true
          schema:
            type: string
          description: Organization code associated to the request.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - type
                - start_date
                - end_date
              properties:
                type:
                  type: string
                  description: >-
                    The type of the report to run (MAX 255; MIN 3). SETTLEMENT_PAYOUTS is available for merchants on
                    Yuno's new reconciliation engine.
                  enum:
                    - PAYOUTS
                    - PAYMENTS
                    - TRANSACTIONS
                    - SETTLEMENTS_FEES
                    - RECONCILIATION_OVERVIEW
                    - COMMUNICATIONS
                    - SETTLEMENT_PAYOUTS
                user_code:
                  type: string
                  description: The user identifier to associate with the report request.
                start_date:
                  type: string
                  description: >-
                    Starting timestamp of data to be included in the report run (MAX 24; MIN 24; [ISO
                    8601](https://en.wikipedia.org/wiki/ISO_8601)). Must be before `end_date`; otherwise the API answers
                    400 REPORT_RANGE_ERROR. Must also be before the current time, except for AGENDA and CASHFLOW
                    reports, which accept future dates. For report types other than TRANSACTIONS, PAYMENTS,
                    FRAUD_TRANSACTIONS, PAYOUTS, AGENDA and CASHFLOW, the range between `start_date` and `end_date` is
                    at most 62 days; a longer range is rejected with 400.
                  format: date-time
                end_date:
                  type: string
                  description: >-
                    Ending timestamp of data to be included in the report run (MAX 24; MIN 24; [ISO
                    8601](https://en.wikipedia.org/wiki/ISO_8601)). Must be after `start_date`; otherwise the API
                    answers 400 REPORT_RANGE_ERROR.
                  format: date-time
                merchant_reference_id:
                  type: string
                  description: The unique identifier of the report at the merchant side (MAX 255; MIN 3).
                account_id:
                  type: string
                  description: >-
                    Account identifier(s). Omit to include all accounts. For multiple accounts, send a comma-separated
                    list. For the Settlement Payouts report, this is matched against the provider account name and, for
                    merchants on Yuno's new reconciliation engine, also against the Yuno account through the settlement
                    batch. Providers whose payouts arrive through a separate endpoint (for example Pagar.me) return no
                    rows when filtered this way. <br> Example: `19d28762-c714-4fb0-9ef6-4e1953ed334b,
                    91d82267-c714-4fb0-9ef6-4e1953ed334b`
                acquirer:
                  type: string
                  description: >-
                    Filters the Settlements report by acquirer. Accepts a single value (case-insensitive; conventionally
                    uppercase). For the Settlement Payouts report, this filter accepts a comma-separated list of values,
                    in uppercase. <br> Example: `BAC_CREDOMATIC`
                provider_id:
                  type: string
                  description: >-
                    For the Settlement Payouts report, filters the rows by provider. Comma-separated list, values in
                    uppercase. <br> Example: `ADYEN,CIELO`
                payment_status:
                  type: string
                  description: >-
                    The status of the payment (MAX 255; MIN 3; [Payment status](/reference/payment#payments-status)).
                    Don't send this parameter to request the creation of a report for all payment status. Otherwise,
                    indicate all the status you want to include. <br> Example: `CREATED,READY_TO_PAY,DECLINED`
                payment_sub_status:
                  type: string
                  description: >-
                    The substatus of the payment (MAX 255; MIN 3; [Payment
                    substatus](/reference/payment#payments-status)). Don't send this parameter to request the creation
                    of a report for all payment sub status. Otherwise, indicate all the sub status you want to include.
                    <br> Example: `READY_TO_PAY,PENDING_FRAUD_REVIEW,EXPIRED`
                payment_method:
                  type: string
                  description: >-
                    The type of payment method selected by the customer (MAX 255; MIN 3; [Payment
                    methods](/reference/payment-type-list)). Don't send this parameter to request the creation of a
                    report for all payment methods. Otherwise, indicate all the methods you want to include. <br>
                    Example: `ADDI,ACUOTAZ,PIX`
                currency:
                  type: string
                  description: >-
                    The currency used to make the payment (MAX 3; MIN 3; [ISO 4217](/reference/country-reference)).
                    Don't send this parameter to request the creation of a report for all currencies. Otherwise,
                    indicate all currencies you want to include. For the Settlement Payouts report, filters by
                    settlement currency (comma-separated list). <br> Example: `ARS,BRL,COP`
                country:
                  type: string
                  description: >-
                    The country where the transaction must be processed (MAX 2; MIN 2; [ISO
                    3166-1](/reference/country-reference)). Don't send this parameter to request the creation of a
                    report for all countries. Otherwise, indicate all countries you want to include. <br> Example:
                    `AR,BR,CO`
                transaction_type:
                  type: string
                  description: >-
                    The transaction type (MAX 255; MIN 3; [Transaction
                    types](/reference/transaction#types-of-transactions)). Don't send this parameter to request the
                    creation of a report for all transaction types. Otherwise, indicate all transaction types you want
                    to include. <br> Example: `PURCHASE,REFUND,VERIFY`
                transaction_status:
                  type: string
                  description: >-
                    The status of the transaction (MAX 255; MIN 3; [Transaction
                    status](/reference/payment#payments-status)). Don't send this parameter to request the creation of a
                    report for all transaction status. Otherwise, indicate all transaction status you want to include.
                    <br> Example: `SUCCEEDED,CREATED,EXPIRED`
                updated_at_start:
                  type: string
                  description: >-
                    Starting timestamp of data to be included in the report run by updated date of operation (MAX 27;
                    MIN 27; [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)).
                  format: date-time
                updated_at_end:
                  type: string
                  description: >-
                    Ending timestamp of data to be included in the report run by updated date of operation (MAX 27; MIN
                    27; [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)).
                  format: date-time
                columns:
                  type: string
                  description: >-
                    Columns to include (only for Payment, Transaction, or Settlement Payouts reports). See available
                    fields in [Report Fields](/reference/reports-fields). For the Settlement Payouts report, this
                    parameter replaces the default column selection instead of extending it: to add an optional column
                    you must also list every default column you want to keep. <br> Example:
                    `account_id,amount_value,card_category`. A name that is not a column of the chosen report type
                    returns 400 INVALID_COLUMNS.
                metadata_fields:
                  type: string
                  description: >-
                    Columns to include (only if the merchant is exporting metadata fields). This option is exclusive to
                    Transaction and Settlement reports.
            examples:
              Create a report:
                value:
                  type: PAYMENTS
                  start_date: '2023-07-28T21:09:03.327Z'
                  end_date: '2023-07-29T21:09:03.327Z'
                  merchant_reference_id: test_id
                  account_id: 19d28762-c714-4fb0-9ef6-4e1953ed334b, 91d82267-c714-4fb0-9ef6-4e1953ed334b
                  payment_status: CREATED,READY_TO_PAY,DECLINED
                  payment_sub_status: READY_TO_PAY,PENDING_FRAUD_REVIEW,EXPIRED
                  payment_method: ADDI,ACUOTAZ,PIX
                  currency: ARS,BRL,COP
                  country: AR,BR,CO
                  transaction_type: PURCHASE,REFUND,VERIFY
                  transaction_status: SUCCEEDED,CREATED,EXPIRED
                  updated_at_start: '2023-07-28T21:09:03.327Z'
                  updated_at_end: '2023-07-28T21:09:03.327Z'
                  columns: account_id,amount_value,card_category
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 6d905149-b388-4522-8c0a-759fed1f39da
                    type: PAYMENTS
                    start_date: '2023-07-01T00:00:00.000000Z'
                    end_date: '2023-07-12T00:00:00.000000Z'
                    merchant_reference_id: payments_1
                    created_at: '2023-07-12T20:10:30.311048Z'
                    updated_at: '2023-07-12T20:10:30.311048Z'
                    expires_at: ''
                    status: IN_PROCESS
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 6d905149-b388-4522-8c0a-759fed1f39da
                  type:
                    type: string
                    example: PAYMENTS
                  start_date:
                    type: string
                    example: 2023-07-01 00:00:00 +0000 UTC
                  end_date:
                    type: string
                    example: 2023-07-12 00:00:00 +0000 UTC
                  merchant_reference_id:
                    type: string
                    example: payments_1
                  created_at:
                    type: string
                    example: 2023-07-12 20:10:30.311048496 +0000 UTC
                  updated_at:
                    type: string
                    example: 2023-07-12 20:10:30.311048496 +0000 UTC
                  expires_at:
                    type: string
                    example: ''
                  status:
                    type: string
                    example: IN_PROCESS
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Reports
  /reports/list:
    get:
      summary: List All Reports
      description: ''
      operationId: list-all-reports
      parameters:
        - name: X-Organization-Code
          in: header
          required: true
          schema:
            type: string
          description: Organization code associated to the request.
        - name: account_id
          in: query
          description: >-
            The unique identifier of the account. To request the creation of a report for all accounts, don't send this
            parameter. Otherwise indicate all the account_id you want to include (MAX 64; MIN 36).
          schema:
            type: string
        - name: page_size
          in: query
          description: Limit of reports to retrieve. Default 1 and maximum 99 (MAX 2; MIN 1).
          schema:
            type: integer
            format: int32
        - name: page_number
          in: query
          required: false
          description: Reports start page. Default 1 and maximum 10  (MAX 2; MIN 1).
          schema:
            type: integer
            format: int32
            default: 1
        - name: start_date
          in: query
          description: Reports created after and equal this date (ISO 8601 MAX 27; MIN 27).
          schema:
            type: string
            format: date-time
        - name: end_date
          in: query
          description: Reports created before and equal this date (ISO 8601 MAX 27; MIN 27).
          schema:
            type: string
            format: date-time
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    - id: 5104911d-5df9-229e-8468-bd41abea1
                      type: TRANSACTIONS
                      start_date: '2022-05-09T20:46:54.786342Z'
                      end_date: '2022-05-09T20:46:54.786342Z'
                      merchant_reference_id: Merchant_report_1234
                      created_at: '2022-05-16T20:46:54.786342Z'
                      updated_at: '2022-05-16T20:46:54.786342Z'
                      expires_at: '2022-05-16T20:46:54.786342Z'
                      status: SUCCEEDED
                    - id: 5104911d-5df9-229e-8468-bd41abea1
                      type: SETTLEMENTS
                      start_date: '2022-05-09T20:46:54.786342Z'
                      end_date: '2022-05-09T20:46:54.786342Z'
                      merchant_reference_id: Merchant_report_1234
                      created_at: '2022-05-16T20:46:54.786342Z'
                      updated_at: '2022-05-16T20:46:54.786342Z'
                      expires_at: '2022-05-16T20:46:54.786342Z'
                      status: DOWNLOADED
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1
                    type:
                      type: string
                      example: TRANSACTIONS
                    start_date:
                      type: string
                      example: '2022-05-09T20:46:54.786342Z'
                    end_date:
                      type: string
                      example: '2022-05-09T20:46:54.786342Z'
                    merchant_reference_id:
                      type: string
                      example: Merchant_report_1234
                    created_at:
                      type: string
                      example: '2022-05-16T20:46:54.786342Z'
                    updated_at:
                      type: string
                      example: '2022-05-16T20:46:54.786342Z'
                    expires_at:
                      type: string
                      example: '2022-05-16T20:46:54.786342Z'
                    status:
                      type: string
                      example: SUCCEEDED
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Reports
  /reports/{report_id}:
    get:
      summary: Retrieve a Report
      description: ''
      operationId: retrieve-a-report
      parameters:
        - name: X-Organization-Code
          in: header
          required: true
          schema:
            type: string
          description: Organization code associated to the request.
        - name: report_id
          in: path
          description: The unique identifier of the report.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 5104911d-5df9-229e-8468-bd41abea1
                    type: TRANSACTIONS
                    start_date: '2022-05-09T20:46:54.786342Z'
                    end_date: '2022-05-09T20:46:54.786342Z'
                    merchant_reference_id: Merchant_report_1234
                    created_at: '2022-05-16T20:46:54.786342Z'
                    updated_at: '2022-05-16T20:46:54.786342Z'
                    expires_at: '2022-05-16T20:46:54.786342Z'
                    status: SUCCEEDED
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 5104911d-5df9-229e-8468-bd41abea1
                  type:
                    type: string
                    example: TRANSACTIONS
                  start_date:
                    type: string
                    example: '2022-05-09T20:46:54.786342Z'
                  end_date:
                    type: string
                    example: '2022-05-09T20:46:54.786342Z'
                  merchant_reference_id:
                    type: string
                    example: Merchant_report_1234
                  created_at:
                    type: string
                    example: '2022-05-16T20:46:54.786342Z'
                  updated_at:
                    type: string
                    example: '2022-05-16T20:46:54.786342Z'
                  expires_at:
                    type: string
                    example: '2022-05-16T20:46:54.786342Z'
                  status:
                    type: string
                    example: SUCCEEDED
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - The request is not authenticated.
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Reports
  /routing:
    get:
      summary: List Routings
      operationId: list-routings
      description: >-
        Lists all routings of an account, optionally filtered by payment method. Each item has the same shape as
        Retrieve a Routing.
      parameters:
        - name: account_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
          description: Account to list routings for. Must belong to the organization of your API credentials.
        - name: payment_method
          in: query
          required: false
          schema:
            type: string
            example: CARD
          description: Filter by payment method (e.g., CARD, PIX).
      responses:
        '200':
          description: The routings configured on the account, or an empty array if it has none.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      example: 8f2c1d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f
                    account_id:
                      type: string
                      example: acc-uuid
                    payment_method:
                      type: string
                      example: CARD
                    name:
                      type: string
                      example: Card routing — Stripe primary, Adyen fallback
                    default_route:
                      type: object
                      properties:
                        start_split:
                          type: array
                          description: >-
                            Splits the entry of the route across several steps by percentage. Omit to start every
                            payment on step 1. Entries must sum to 100; returned only when the route has a split entry.
                          items:
                            type: object
                            required:
                              - index
                              - percentage
                            properties:
                              index:
                                type: integer
                                example: 1
                              percentage:
                                type: integer
                                example: 45
                        steps:
                          type: array
                          items:
                            type: object
                            properties:
                              index:
                                type: integer
                                example: 1
                              provider_id:
                                type: string
                                example: STRIPE
                                description: >-
                                  Required on provider steps; absent on action steps. Must match the provider of the
                                  connection.
                              connection_id:
                                type: string
                                example: f1a3c4d5-...
                                description: >-
                                  Required on provider steps; absent on action and smart routing steps. Must be ACTIVE
                                  and support the payment_method.
                              provider_type:
                                type: string
                                enum:
                                  - PAYMENT
                                  - FRAUD
                                  - THREE_D_SECURE
                                  - AUTHENTICATION
                                description: The kind the provider resolves to. Response only.
                              timeout:
                                type: integer
                                example: 60
                                description: >-
                                  Provider steps. Timeout in seconds of the provider, from the provider catalog.
                                  Response only.
                              network_token_enable:
                                type: boolean
                                description: >-
                                  Payment steps. Whether network_token_on can be true on this step: the organization is
                                  onboarded to network tokens and the provider supports them. Response only.
                              network_token_on:
                                type: boolean
                                description: >-
                                  Payment steps. Whether the step pays with the network token of the card when one is
                                  available.
                              three_d_secure_exemptions:
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - LOW_VALUE
                                    - TRANSACTION_RISK_ANALYSIS
                                    - SECURE_CORPORATE
                                    - TRUSTED_BENEFICIARY
                                    - RECURRING_PAYMENT
                                    - STRONG_CUSTOMER_AUTHENTICATION
                                    - OUT_OF_SCOPE
                                description: 3DS steps. The SCA exemptions the step may apply; an empty array when none.
                              action:
                                type: string
                                enum:
                                  - CANCEL
                                  - CAPTURE
                                  - HOLD_FOR_REVIEW
                                  - REVERT
                                description: >-
                                  Makes the step an action step that ends the route: CANCEL rejects the payment, CAPTURE
                                  captures the authorization after action_delay, HOLD_FOR_REVIEW leaves it pending
                                  manual review, REVERT reverts it after a post-payment fraud screening. CAPTURE and
                                  HOLD_FOR_REVIEW follow an APPROVED or SUCCEEDED_GROUP output of a payment or smart
                                  routing step, REVERT the outputs of a fraud step that runs after the payment, CANCEL
                                  never an approval. An action step has no provider_id, connection_id or output.
                              action_delay:
                                type: string
                                example: PT5M
                                description: >-
                                  Only with action = CAPTURE. ISO-8601 duration between the approval and the capture, at
                                  least PT1M and at most P7D. Omit to capture as soon as the approval is processed.
                              output:
                                type: array
                                items:
                                  type: object
                                  required:
                                    - status
                                  properties:
                                    status:
                                      type: string
                                      example: DECLINED
                                      description: >-
                                        APPROVED, DECLINED, DECLINE_GROUP, MAC_CODE_GROUP, SUCCEEDED_GROUP, PENDING
                                        (fraud, 3DS and authentication steps only) or INTERNAL_ERROR.
                                    decline_types:
                                      type: array
                                      items:
                                        type: string
                                      description: >-
                                        Members of the group on DECLINE_GROUP (decline sub-statuses) and MAC_CODE_GROUP
                                        (Merchant Advice Codes) outputs.
                                    group_id:
                                      type: integer
                                      example: 1044
                                      description: >-
                                        Id of the group behind a DECLINE_GROUP, MAC_CODE_GROUP or SUCCEEDED_GROUP
                                        output.
                                    group_name:
                                      type: string
                                      example: Soft declines
                                      description: Name of the group behind group_id. Ignored on write.
                                    retry:
                                      type: boolean
                                      example: false
                                      description: >-
                                        Whether this output retries the same provider once before following next. Always
                                        returned.
                                    next:
                                      type: integer
                                      example: 2
                                    next_split:
                                      type: array
                                      description: >-
                                        Splits the fallback across several steps by percentage: at least 2 entries whose
                                        percentages sum to 100. Returned alongside next = first entry.
                                      items:
                                        type: object
                                        required:
                                          - index
                                          - percentage
                                        properties:
                                          index:
                                            type: integer
                                            example: 2
                                          percentage:
                                            type: integer
                                            example: 70
                                description: Per-outcome handlers. Returned as an empty array on action steps.
                              fraud:
                                type: object
                                description: Configuration of a fraud provider step, returned on FRAUD steps.
                                properties:
                                  rules:
                                    type: string
                                    example: rule-a,rule-b
                                  blocklists:
                                    type: string
                                  allowlists:
                                    type: string
                                  reviewlists:
                                    type: string
                                  preset:
                                    type: string
                                  report_only:
                                    type: boolean
                                    description: >-
                                      Score without acting on the result. Only on a fraud step reached from declined
                                      outputs of a payment step.
                              smart_routing:
                                type: object
                                description: Returned on smart routing steps.
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - COSTS
                                      - LATENCY
                                    example: LATENCY
                                  providers:
                                    type: array
                                    minItems: 2
                                    maxItems: 4
                                    items:
                                      type: object
                                      required:
                                        - provider_id
                                        - connection_id
                                      properties:
                                        provider_id:
                                          type: string
                                          example: ADYEN
                                        connection_id:
                                          type: string
                                          format: uuid
                                        network_token_on:
                                          type: boolean
                                  no_retry_decline_types:
                                    type: array
                                    items:
                                      type: string
                                    description: Decline sub-statuses after which the next provider of the set is not tried.
                                  no_retry_failure_causes:
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      Failure causes (for example PROVIDER_TIMEOUT) after which the next provider of the
                                      set is not tried.
                    condition_sets:
                      type: array
                      items:
                        type: object
                        properties:
                          sort_number:
                            type: integer
                            example: 1
                          name:
                            type: string
                            example: High Value US
                          description:
                            type: string
                          conditions:
                            type: array
                            items:
                              type: object
                              properties:
                                condition_type:
                                  type: string
                                  example: COUNTRY
                                  description: >-
                                    See Routing Conditions for the catalog: COUNTRY, CARD_ISSUER_COUNTRY, AMOUNT,
                                    CURRENCY, CARD_TYPE, CARD_BRAND, CARD_BIN, TRANSACTION_TYPE, METADATA,
                                    ADDITIONAL_FIELD, TIME_PERIOD, VOLUME_PAYMENTS_LIMIT, SUBSCRIPTION_RETRY,
                                    SUBSCRIPTION_RETRY_COUNT.
                                conditional:
                                  type: string
                                  example: ONE_OF
                                values:
                                  type: array
                                  items:
                                    type: string
                                  example:
                                    - US
                                    - CA
                                  description: >-
                                    On CURRENCY, uppercase ISO 4217 codes (not XXX, no repeats): exactly 1 with EQUAL or
                                    NOT_EQUAL, 1 or more with ONE_OF or NOT_ONE_OF. Empty only on an AMOUNT condition
                                    with currency, which then matches any amount in that currency.
                                key:
                                  type: string
                                  description: 'METADATA: the metadata key. ADDITIONAL_FIELD: the supported field name.'
                                currency:
                                  type: string
                                  example: USD
                                  description: >-
                                    ISO 4217. Required on AMOUNT and on VOLUME_PAYMENTS_LIMIT with limit_by = VOLUME.
                                    Not sent on CURRENCY, whose currencies go in values.
                                time_period_repeat_amount:
                                  type: integer
                                  example: 1
                                  description: >-
                                    TIME_PERIOD and VOLUME_PAYMENTS_LIMIT: every how many units of
                                    time_period_repeat_frequency (schedule), or the length of a DAILY window in days, 1
                                    to 90 (limit).
                                time_period_repeat_frequency:
                                  type: string
                                  enum:
                                    - DAILY
                                    - WEEKLY
                                    - MONTHLY
                                    - QUARTERLY
                                    - YEARLY
                                  description: >-
                                    TIME_PERIOD: recurrence unit. VOLUME_PAYMENTS_LIMIT: period of the limit, DAILY,
                                    MONTHLY or QUARTERLY.
                                time_period_repetition_days:
                                  type: array
                                  items:
                                    type: string
                                    enum:
                                      - MONDAY
                                      - TUESDAY
                                      - WEDNESDAY
                                      - THURSDAY
                                      - FRIDAY
                                      - SATURDAY
                                      - SUNDAY
                                  description: TIME_PERIOD only. Days of the week the schedule applies to; needs a frequency.
                                time_period_start_time:
                                  type: string
                                  example: '09:00:00'
                                  description: >-
                                    TIME_PERIOD only. Start of the daily time window (HH:mm:ss), together with
                                    time_period_end_time.
                                time_period_end_time:
                                  type: string
                                  example: '18:00:00'
                                  description: TIME_PERIOD only. End of the daily time window (HH:mm:ss), inclusive.
                                timezone:
                                  type: string
                                  example: '-03:00'
                                  description: >-
                                    UTC offset. TIME_PERIOD: offset the schedule is read in (defaults to the offset of
                                    values[0]). VOLUME_PAYMENTS_LIMIT: whole-hour offset where periods start (defaults
                                    to +00:00).
                                limit_by:
                                  type: string
                                  enum:
                                    - PAYMENTS
                                    - VOLUME
                                  description: VOLUME_PAYMENTS_LIMIT only. Count payments (default) or sum amounts in currency.
                                payments_count:
                                  type: string
                                  enum:
                                    - ALL
                                    - SUCCEEDED
                                  description: VOLUME_PAYMENTS_LIMIT only. Which payments count toward the limit. Default ALL.
                            description: Conditions combined with logical AND. See Routing Conditions.
                          route:
                            type: object
                            description: Same shape as default_route, including start_split, output[].next_split and action steps.
                    created_at:
                      type: string
                      format: date-time
                      example: '2026-05-12T14:30:00Z'
                    updated_at:
                      type: string
                      format: date-time
                      example: '2026-05-12T14:30:00Z'
        '400':
          description: >-
            Bad Request. `ROUTING_VALIDATION_FAILED` when `account_id` is missing, `INVALID_ACCOUNT_ID` when it belongs
            to a different organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_VALIDATION_FAILED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - account_id is required.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
      tags:
        - Organizations
    post:
      summary: Create a Routing
      operationId: create-routing
      description: Creates a routing for one (account_id, payment_method) pair.
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - payment_method
                - name
                - default_route
              properties:
                account_id:
                  type: string
                  format: uuid
                  example: 7825fc5e-e50a-4248-9ae8-5d3786afb0be
                payment_method:
                  type: string
                  example: CARD
                name:
                  type: string
                  example: Card routing
                default_route:
                  type: object
                  required:
                    - steps
                  properties:
                    start_split:
                      type: array
                      description: >-
                        Splits the entry of the route across several steps by percentage. Omit to start every payment on
                        step 1. Entries must sum to 100; returned only when the route has a split entry.
                      items:
                        type: object
                        required:
                          - index
                          - percentage
                        properties:
                          index:
                            type: integer
                            example: 1
                          percentage:
                            type: integer
                            example: 45
                    steps:
                      type: array
                      items:
                        type: object
                        required:
                          - index
                        properties:
                          index:
                            type: integer
                            example: 1
                          provider_id:
                            type: string
                            example: STRIPE
                            description: >-
                              Required on provider steps (SMART_ROUTING on a smart routing step); absent on action
                              steps. Must match the provider of the connection.
                          connection_id:
                            type: string
                            format: uuid
                            example: f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e
                            description: >-
                              Required on provider steps; absent on action and smart routing steps. Must be ACTIVE and
                              support the payment_method.
                          action:
                            type: string
                            enum:
                              - CANCEL
                              - CAPTURE
                              - HOLD_FOR_REVIEW
                              - REVERT
                            description: >-
                              Makes the step an action step that ends the route: CANCEL rejects the payment, CAPTURE
                              captures the authorization after action_delay, HOLD_FOR_REVIEW leaves it pending manual
                              review, REVERT reverts it after a post-payment fraud screening. CAPTURE and
                              HOLD_FOR_REVIEW follow an APPROVED or SUCCEEDED_GROUP output of a payment or smart routing
                              step, REVERT the outputs of a fraud step that runs after the payment, CANCEL never an
                              approval. An action step has no provider_id, connection_id or output.
                          action_delay:
                            type: string
                            example: PT5M
                            description: >-
                              Only with action = CAPTURE. ISO-8601 duration between the approval and the capture, at
                              least PT1M and at most P7D. Omit to capture as soon as the approval is processed.
                          output:
                            type: array
                            items:
                              type: object
                              required:
                                - status
                              properties:
                                status:
                                  type: string
                                  example: DECLINED
                                  description: >-
                                    APPROVED, DECLINED, DECLINE_GROUP, MAC_CODE_GROUP, SUCCEEDED_GROUP, PENDING (fraud,
                                    3DS and authentication steps only) or INTERNAL_ERROR.
                                decline_types:
                                  type: array
                                  items:
                                    type: string
                                  description: >-
                                    Decline sub-statuses. On DECLINE_GROUP, required unless group_id is sent; with
                                    group_id it must equal the group's members. Not allowed on SUCCEEDED_GROUP.
                                group_id:
                                  type: integer
                                  example: 1044
                                  description: >-
                                    Id of a decline, Merchant Advice Code or succeeded group of the account (see List
                                    Decline Groups and List Succeeded Groups). Required on MAC_CODE_GROUP and
                                    SUCCEEDED_GROUP, optional on DECLINE_GROUP, not allowed otherwise. Must be of the
                                    kind the status expects.
                                retry:
                                  type: boolean
                                  example: false
                                  description: >-
                                    true attempts the same provider once more when this outcome happens, before
                                    following next. Only on DECLINED, INTERNAL_ERROR and DECLINE_GROUP. On update, an
                                    omitted retry keeps the stored value.
                                next:
                                  type: integer
                                  example: 2
                                next_split:
                                  type: array
                                  description: >-
                                    Splits the fallback across several steps by percentage: at least 2 entries whose
                                    percentages sum to 100. next is optional next to it and, when sent, must equal the
                                    first entry; responses return next = first entry alongside next_split.
                                  items:
                                    type: object
                                    required:
                                      - index
                                      - percentage
                                    properties:
                                      index:
                                        type: integer
                                        example: 2
                                      percentage:
                                        type: integer
                                        example: 70
                            description: Per-outcome handlers of a provider step. Not allowed on an action step.
                          network_token_on:
                            type: boolean
                            description: >-
                              Only on payment provider steps of a CARD routing. true pays with the network token of the
                              card when one is available; requires the organization onboarded to network tokens and a
                              provider that supports them (network_token_enable on the response), otherwise 400
                              NETWORK_TOKEN_NOT_ONBOARDED or NETWORK_TOKEN_NOT_SUPPORTED. Omitted on update keeps the
                              stored value; false turns it off.
                          three_d_secure_exemptions:
                            type: array
                            items:
                              type: string
                              enum:
                                - LOW_VALUE
                                - TRANSACTION_RISK_ANALYSIS
                                - SECURE_CORPORATE
                                - TRUSTED_BENEFICIARY
                                - RECURRING_PAYMENT
                                - STRONG_CUSTOMER_AUTHENTICATION
                                - OUT_OF_SCOPE
                            description: >-
                              Only on 3DS provider steps. The SCA exemptions this step may apply. Omitted on update
                              keeps the stored list; [] clears it.
                          fraud:
                            type: object
                            description: >-
                              Configuration of a fraud provider step. Only on FRAUD providers; omitted on update keeps
                              the stored configuration.
                            properties:
                              rules:
                                type: string
                                example: rule-a,rule-b
                              blocklists:
                                type: string
                              allowlists:
                                type: string
                              reviewlists:
                                type: string
                              preset:
                                type: string
                              report_only:
                                type: boolean
                                description: >-
                                  Score without acting on the result. Only on a fraud step reached from declined outputs
                                  of a payment step.
                          smart_routing:
                            type: object
                            description: >-
                              Makes the step a smart routing step (provider_id SMART_ROUTING, no connection_id). Card
                              routings only, one per route.
                            required:
                              - type
                              - providers
                            properties:
                              type:
                                type: string
                                enum:
                                  - COSTS
                                  - LATENCY
                                example: LATENCY
                              providers:
                                type: array
                                minItems: 2
                                maxItems: 4
                                items:
                                  type: object
                                  required:
                                    - provider_id
                                    - connection_id
                                  properties:
                                    provider_id:
                                      type: string
                                      example: ADYEN
                                    connection_id:
                                      type: string
                                      format: uuid
                                    network_token_on:
                                      type: boolean
                              no_retry_decline_types:
                                type: array
                                items:
                                  type: string
                                description: Decline sub-statuses after which the next provider of the set is not tried.
                              no_retry_failure_causes:
                                type: array
                                items:
                                  type: string
                                description: >-
                                  Failure causes (for example PROVIDER_TIMEOUT) after which the next provider of the set
                                  is not tried.
                        description: >-
                          A provider attempt (provider_id + connection_id) or an action step (action). index values are
                          contiguous starting at 1.
                condition_sets:
                  type: array
                  description: Optional. Ordered by sort_number, first matching set wins.
                  items:
                    type: object
                    required:
                      - sort_number
                      - name
                      - conditions
                      - route
                    properties:
                      sort_number:
                        type: integer
                        example: 1
                      name:
                        type: string
                        example: US & Canada — high value
                      description:
                        type: string
                      conditions:
                        type: array
                        items:
                          type: object
                          required:
                            - condition_type
                            - conditional
                            - values
                          properties:
                            condition_type:
                              type: string
                              example: COUNTRY
                              description: >-
                                See Routing Conditions for the catalog: COUNTRY, CARD_ISSUER_COUNTRY, AMOUNT, CURRENCY,
                                CARD_TYPE, CARD_BRAND, CARD_BIN, TRANSACTION_TYPE, METADATA, ADDITIONAL_FIELD,
                                TIME_PERIOD, VOLUME_PAYMENTS_LIMIT, SUBSCRIPTION_RETRY, SUBSCRIPTION_RETRY_COUNT.
                            conditional:
                              type: string
                              example: ONE_OF
                            values:
                              type: array
                              items:
                                type: string
                              example:
                                - US
                                - CA
                              description: >-
                                On CURRENCY, uppercase ISO 4217 codes (not XXX, no repeats): exactly 1 with EQUAL or
                                NOT_EQUAL, 1 or more with ONE_OF or NOT_ONE_OF. Empty only on an AMOUNT condition with
                                currency, which then matches any amount in that currency.
                            key:
                              type: string
                              description: 'METADATA: the metadata key. ADDITIONAL_FIELD: the supported field name.'
                            currency:
                              type: string
                              example: USD
                              description: >-
                                ISO 4217. Required on AMOUNT and on VOLUME_PAYMENTS_LIMIT with limit_by = VOLUME. Not
                                sent on CURRENCY, whose currencies go in values.
                            time_period_repeat_amount:
                              type: integer
                              example: 1
                              description: >-
                                TIME_PERIOD and VOLUME_PAYMENTS_LIMIT: every how many units of
                                time_period_repeat_frequency (schedule), or the length of a DAILY window in days, 1 to
                                90 (limit).
                            time_period_repeat_frequency:
                              type: string
                              enum:
                                - DAILY
                                - WEEKLY
                                - MONTHLY
                                - QUARTERLY
                                - YEARLY
                              description: >-
                                TIME_PERIOD: recurrence unit. VOLUME_PAYMENTS_LIMIT: period of the limit, DAILY, MONTHLY
                                or QUARTERLY.
                            time_period_repetition_days:
                              type: array
                              items:
                                type: string
                                enum:
                                  - MONDAY
                                  - TUESDAY
                                  - WEDNESDAY
                                  - THURSDAY
                                  - FRIDAY
                                  - SATURDAY
                                  - SUNDAY
                              description: TIME_PERIOD only. Days of the week the schedule applies to; needs a frequency.
                            time_period_start_time:
                              type: string
                              example: '09:00:00'
                              description: >-
                                TIME_PERIOD only. Start of the daily time window (HH:mm:ss), together with
                                time_period_end_time.
                            time_period_end_time:
                              type: string
                              example: '18:00:00'
                              description: TIME_PERIOD only. End of the daily time window (HH:mm:ss), inclusive.
                            timezone:
                              type: string
                              example: '-03:00'
                              description: >-
                                UTC offset. TIME_PERIOD: offset the schedule is read in (defaults to the offset of
                                values[0]). VOLUME_PAYMENTS_LIMIT: whole-hour offset where periods start (defaults to
                                +00:00).
                            limit_by:
                              type: string
                              enum:
                                - PAYMENTS
                                - VOLUME
                              description: VOLUME_PAYMENTS_LIMIT only. Count payments (default) or sum amounts in currency.
                            payments_count:
                              type: string
                              enum:
                                - ALL
                                - SUCCEEDED
                              description: VOLUME_PAYMENTS_LIMIT only. Which payments count toward the limit. Default ALL.
                        description: Conditions combined with logical AND. See Routing Conditions.
                      route:
                        type: object
                        description: Same shape as default_route, including start_split, output[].next_split and action steps.
            example:
              account_id: 7825fc5e-e50a-4248-9ae8-5d3786afb0be
              payment_method: GOOGLE_PAY
              name: Google Pay routing
              default_route:
                steps:
                  - index: 1
                    provider_id: ADYEN
                    connection_id: b2c4d5e6-1a2b-4c3d-8e4f-5a6b7c8d9e0f
                    output:
                      - status: APPROVED
                        next: 3
                      - status: DECLINED
                        retry: false
                        next_split:
                          - index: 2
                            percentage: 70
                          - index: 4
                            percentage: 30
                  - index: 2
                    provider_id: ADYEN
                    connection_id: b2c4d5e6-1a2b-4c3d-8e4f-5a6b7c8d9e0f
                    output:
                      - status: APPROVED
                        next: 3
                  - index: 3
                    action: CAPTURE
                    action_delay: PT5M
                  - index: 4
                    action: CANCEL
              condition_sets:
                - sort_number: 1
                  name: US & Canada
                  conditions:
                    - condition_type: COUNTRY
                      conditional: ONE_OF
                      values:
                        - US
                        - CA
                  route:
                    steps:
                      - index: 1
                        provider_id: ADYEN
                        connection_id: b2c4d5e6-1a2b-4c3d-8e4f-5a6b7c8d9e0f
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 8f2c1d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f
                  account_id:
                    type: string
                    example: acc-uuid
                  payment_method:
                    type: string
                    example: CARD
                  name:
                    type: string
                    example: Card routing
                  default_route:
                    type: object
                    properties:
                      start_split:
                        type: array
                        description: >-
                          Splits the entry of the route across several steps by percentage. Omit to start every payment
                          on step 1. Entries must sum to 100; returned only when the route has a split entry.
                        items:
                          type: object
                          required:
                            - index
                            - percentage
                          properties:
                            index:
                              type: integer
                              example: 1
                            percentage:
                              type: integer
                              example: 45
                      steps:
                        type: array
                        items:
                          type: object
                          properties:
                            index:
                              type: integer
                              example: 1
                            provider_id:
                              type: string
                              example: STRIPE
                              description: >-
                                Required on provider steps; absent on action steps. Must match the provider of the
                                connection.
                            connection_id:
                              type: string
                              example: f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e
                              description: >-
                                Required on provider steps; absent on action and smart routing steps. Must be ACTIVE and
                                support the payment_method.
                            provider_type:
                              type: string
                              enum:
                                - PAYMENT
                                - FRAUD
                                - THREE_D_SECURE
                                - AUTHENTICATION
                              description: The kind the provider resolves to. Response only.
                            timeout:
                              type: integer
                              example: 60
                              description: >-
                                Provider steps. Timeout in seconds of the provider, from the provider catalog. Response
                                only.
                            network_token_enable:
                              type: boolean
                              description: >-
                                Payment steps. Whether network_token_on can be true on this step: the organization is
                                onboarded to network tokens and the provider supports them. Response only.
                            network_token_on:
                              type: boolean
                              description: >-
                                Payment steps. Whether the step pays with the network token of the card when one is
                                available.
                            three_d_secure_exemptions:
                              type: array
                              items:
                                type: string
                                enum:
                                  - LOW_VALUE
                                  - TRANSACTION_RISK_ANALYSIS
                                  - SECURE_CORPORATE
                                  - TRUSTED_BENEFICIARY
                                  - RECURRING_PAYMENT
                                  - STRONG_CUSTOMER_AUTHENTICATION
                                  - OUT_OF_SCOPE
                              description: 3DS steps. The SCA exemptions the step may apply; an empty array when none.
                            action:
                              type: string
                              enum:
                                - CANCEL
                                - CAPTURE
                                - HOLD_FOR_REVIEW
                                - REVERT
                              description: >-
                                Makes the step an action step that ends the route: CANCEL rejects the payment, CAPTURE
                                captures the authorization after action_delay, HOLD_FOR_REVIEW leaves it pending manual
                                review, REVERT reverts it after a post-payment fraud screening. CAPTURE and
                                HOLD_FOR_REVIEW follow an APPROVED or SUCCEEDED_GROUP output of a payment or smart
                                routing step, REVERT the outputs of a fraud step that runs after the payment, CANCEL
                                never an approval. An action step has no provider_id, connection_id or output.
                            action_delay:
                              type: string
                              example: PT5M
                              description: >-
                                Only with action = CAPTURE. ISO-8601 duration between the approval and the capture, at
                                least PT1M and at most P7D. Omit to capture as soon as the approval is processed.
                            output:
                              type: array
                              items:
                                type: object
                                required:
                                  - status
                                properties:
                                  status:
                                    type: string
                                    example: DECLINED
                                    description: >-
                                      APPROVED, DECLINED, DECLINE_GROUP, MAC_CODE_GROUP, SUCCEEDED_GROUP, PENDING
                                      (fraud, 3DS and authentication steps only) or INTERNAL_ERROR.
                                  decline_types:
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      Members of the group on DECLINE_GROUP (decline sub-statuses) and MAC_CODE_GROUP
                                      (Merchant Advice Codes) outputs.
                                  group_id:
                                    type: integer
                                    example: 1044
                                    description: Id of the group behind a DECLINE_GROUP, MAC_CODE_GROUP or SUCCEEDED_GROUP output.
                                  group_name:
                                    type: string
                                    example: Soft declines
                                    description: Name of the group behind group_id. Ignored on write.
                                  retry:
                                    type: boolean
                                    example: false
                                    description: >-
                                      Whether this output retries the same provider once before following next. Always
                                      returned.
                                  next:
                                    type: integer
                                    example: 2
                                  next_split:
                                    type: array
                                    description: >-
                                      Splits the fallback across several steps by percentage: at least 2 entries whose
                                      percentages sum to 100. next is optional next to it and, when sent, must equal the
                                      first entry; responses return next = first entry alongside next_split.
                                    items:
                                      type: object
                                      required:
                                        - index
                                        - percentage
                                      properties:
                                        index:
                                          type: integer
                                          example: 2
                                        percentage:
                                          type: integer
                                          example: 70
                              description: Per-outcome handlers. Returned as an empty array on action steps.
                            fraud:
                              type: object
                              description: Configuration of a fraud provider step, returned on FRAUD steps.
                              properties:
                                rules:
                                  type: string
                                  example: rule-a,rule-b
                                blocklists:
                                  type: string
                                allowlists:
                                  type: string
                                reviewlists:
                                  type: string
                                preset:
                                  type: string
                                report_only:
                                  type: boolean
                                  description: >-
                                    Score without acting on the result. Only on a fraud step reached from declined
                                    outputs of a payment step.
                            smart_routing:
                              type: object
                              description: Returned on smart routing steps.
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - COSTS
                                    - LATENCY
                                  example: LATENCY
                                providers:
                                  type: array
                                  minItems: 2
                                  maxItems: 4
                                  items:
                                    type: object
                                    required:
                                      - provider_id
                                      - connection_id
                                    properties:
                                      provider_id:
                                        type: string
                                        example: ADYEN
                                      connection_id:
                                        type: string
                                        format: uuid
                                      network_token_on:
                                        type: boolean
                                no_retry_decline_types:
                                  type: array
                                  items:
                                    type: string
                                  description: Decline sub-statuses after which the next provider of the set is not tried.
                                no_retry_failure_causes:
                                  type: array
                                  items:
                                    type: string
                                  description: >-
                                    Failure causes (for example PROVIDER_TIMEOUT) after which the next provider of the
                                    set is not tried.
                  condition_sets:
                    type: array
                    items:
                      type: object
                      properties:
                        sort_number:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: High Value US
                        description:
                          type: string
                        conditions:
                          type: array
                          items:
                            type: object
                            properties:
                              condition_type:
                                type: string
                                example: COUNTRY
                                description: >-
                                  See Routing Conditions for the catalog: COUNTRY, CARD_ISSUER_COUNTRY, AMOUNT,
                                  CURRENCY, CARD_TYPE, CARD_BRAND, CARD_BIN, TRANSACTION_TYPE, METADATA,
                                  ADDITIONAL_FIELD, TIME_PERIOD, VOLUME_PAYMENTS_LIMIT, SUBSCRIPTION_RETRY,
                                  SUBSCRIPTION_RETRY_COUNT.
                              conditional:
                                type: string
                                example: ONE_OF
                              values:
                                type: array
                                items:
                                  type: string
                                example:
                                  - US
                                  - CA
                                description: >-
                                  On CURRENCY, uppercase ISO 4217 codes (not XXX, no repeats): exactly 1 with EQUAL or
                                  NOT_EQUAL, 1 or more with ONE_OF or NOT_ONE_OF. Empty only on an AMOUNT condition with
                                  currency, which then matches any amount in that currency.
                              key:
                                type: string
                                description: 'METADATA: the metadata key. ADDITIONAL_FIELD: the supported field name.'
                              currency:
                                type: string
                                example: USD
                                description: >-
                                  ISO 4217. Required on AMOUNT and on VOLUME_PAYMENTS_LIMIT with limit_by = VOLUME. Not
                                  sent on CURRENCY, whose currencies go in values.
                              time_period_repeat_amount:
                                type: integer
                                example: 1
                                description: >-
                                  TIME_PERIOD and VOLUME_PAYMENTS_LIMIT: every how many units of
                                  time_period_repeat_frequency (schedule), or the length of a DAILY window in days, 1 to
                                  90 (limit).
                              time_period_repeat_frequency:
                                type: string
                                enum:
                                  - DAILY
                                  - WEEKLY
                                  - MONTHLY
                                  - QUARTERLY
                                  - YEARLY
                                description: >-
                                  TIME_PERIOD: recurrence unit. VOLUME_PAYMENTS_LIMIT: period of the limit, DAILY,
                                  MONTHLY or QUARTERLY.
                              time_period_repetition_days:
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - MONDAY
                                    - TUESDAY
                                    - WEDNESDAY
                                    - THURSDAY
                                    - FRIDAY
                                    - SATURDAY
                                    - SUNDAY
                                description: TIME_PERIOD only. Days of the week the schedule applies to; needs a frequency.
                              time_period_start_time:
                                type: string
                                example: '09:00:00'
                                description: >-
                                  TIME_PERIOD only. Start of the daily time window (HH:mm:ss), together with
                                  time_period_end_time.
                              time_period_end_time:
                                type: string
                                example: '18:00:00'
                                description: TIME_PERIOD only. End of the daily time window (HH:mm:ss), inclusive.
                              timezone:
                                type: string
                                example: '-03:00'
                                description: >-
                                  UTC offset. TIME_PERIOD: offset the schedule is read in (defaults to the offset of
                                  values[0]). VOLUME_PAYMENTS_LIMIT: whole-hour offset where periods start (defaults to
                                  +00:00).
                              limit_by:
                                type: string
                                enum:
                                  - PAYMENTS
                                  - VOLUME
                                description: VOLUME_PAYMENTS_LIMIT only. Count payments (default) or sum amounts in currency.
                              payments_count:
                                type: string
                                enum:
                                  - ALL
                                  - SUCCEEDED
                                description: VOLUME_PAYMENTS_LIMIT only. Which payments count toward the limit. Default ALL.
                          description: Conditions combined with logical AND. See Routing Conditions.
                        route:
                          type: object
                          description: Same shape as default_route, including start_split, output[].next_split and action steps.
                  created_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T14:30:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T14:30:00Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_ROUTE_CONFIGURATION
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - step index=2 with action=CAPTURE must be reached only from an APPROVED output of a provider step
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_ALREADY_EXISTS
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - A routing already exists for this payment method
      tags:
        - Organizations
  /routing/decline-groups:
    get:
      summary: List Decline Groups
      operationId: list-decline-groups
      description: >-
        Lists the decline groups (DECLINE_GROUP) and Merchant Advice Code groups (MAC_CODE_GROUP) of an account, to
        reference by group_id from routing outputs. Read only.
      parameters:
        - name: account_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
          description: Account to list groups for. Must belong to the organization of your API credentials.
      responses:
        '200':
          description: The groups of the account, or an empty array if it has none.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      example: 1044
                      description: The value to send as group_id in a routing output.
                    name:
                      type: string
                      example: Soft declines
                    type:
                      type: string
                      enum:
                        - DECLINE_GROUP
                        - MAC_CODE_GROUP
                      description: The output status the group is used with.
                    decline_types:
                      type: array
                      items:
                        type: string
                      example:
                        - DECLINED_BY_BANK
                        - RESTRICTED_BY_BANK
                      description: >-
                        Members of the group: decline sub-statuses for DECLINE_GROUP, normalized Merchant Advice Codes
                        for MAC_CODE_GROUP.
        '400':
          description: >-
            Bad Request. `ROUTING_VALIDATION_FAILED` when `account_id` is missing, `INVALID_ACCOUNT_ID` when it belongs
            to a different organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_VALIDATION_FAILED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - account_id is required.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_UPSTREAM_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - routing service unavailable.
      tags:
        - Organizations
  /routing/recommendations:
    post:
      summary: Get a Routing Recommendation
      operationId: get-routing-recommendations
      description: >-
        Ranks the candidate providers using the account's own reported off-Yuno payment history and returns the
        recommended candidate plus the full ranking. Enabled per organization.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - payment
                - candidates
              properties:
                account_id:
                  type: string
                  format: uuid
                  example: 7825fc5e-e50a-4248-9ae8-5d3786afb0be
                merchant_order_id:
                  type: string
                  maxLength: 255
                  example: order_45678
                payment:
                  type: object
                  required:
                    - amount
                    - country
                    - payment_method
                  properties:
                    amount:
                      type: object
                      required:
                        - currency
                        - value
                      properties:
                        currency:
                          type: string
                          example: USD
                          description: ISO 4217 currency code.
                        value:
                          type: number
                          minimum: 0
                          example: 99
                    country:
                      type: string
                      example: US
                      description: ISO 3166-1 alpha-2 country code.
                    payment_method:
                      type: object
                      required:
                        - type
                      properties:
                        type:
                          type: string
                          example: CARD
                        details:
                          type: object
                          description: Optional. Payment-method details that refine the statistics segment.
                          properties:
                            card:
                              type: object
                              properties:
                                bin:
                                  type: string
                                  description: >-
                                    The card's BIN — exactly 6 or 8 digits. Selects the BIN statistics segment when it
                                    has enough reported history in the payment's country (8-digit BIN first, then the
                                    first 6 digits); otherwise the ranking falls back to the country and payment-method
                                    segments. Any other value is ignored, never rejected.
                                  example: '45717360'
                    initiation:
                      type: string
                      enum:
                        - CIT
                        - MIT
                      example: CIT
                candidates:
                  type: array
                  minItems: 2
                  maxItems: 20
                  items:
                    type: object
                    required:
                      - provider_id
                    properties:
                      provider_id:
                        type: string
                        example: ADYEN
                      merchant_connection_id:
                        type: string
                        example: acct-adyen-us-1
                optimize_for:
                  type: string
                  enum:
                    - APPROVAL_RATE
                    - LATENCY
                    - BALANCED
                  default: APPROVAL_RATE
                  example: APPROVAL_RATE
            example:
              account_id: 7825fc5e-e50a-4248-9ae8-5d3786afb0be
              merchant_order_id: order_45678
              payment:
                amount:
                  currency: USD
                  value: 99
                country: US
                payment_method:
                  type: CARD
              candidates:
                - provider_id: ADYEN
                  merchant_connection_id: acct-adyen-us-1
                - provider_id: STRIPE
                - provider_id: DLOCAL
              optimize_for: APPROVAL_RATE
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  recommendation_id:
                    type: string
                    format: uuid
                    example: 3e37f0c9-e9cd-4d85-9e1a-ec5f09af296d
                  merchant_order_id:
                    type:
                      - string
                      - 'null'
                    example: order_45678
                  optimized_for:
                    type: string
                    enum:
                      - APPROVAL_RATE
                      - LATENCY
                      - BALANCED
                    example: APPROVAL_RATE
                  decision_source:
                    type: string
                    enum:
                      - MERCHANT_HISTORY
                      - INSUFFICIENT_DATA
                    example: MERCHANT_HISTORY
                  recommended:
                    type: object
                    properties:
                      provider_id:
                        type: string
                        example: ADYEN
                      merchant_connection_id:
                        type:
                          - string
                          - 'null'
                        example: acct-adyen-us-1
                  ranking:
                    type: array
                    items:
                      type: object
                      properties:
                        provider_id:
                          type: string
                          example: ADYEN
                        merchant_connection_id:
                          type:
                            - string
                            - 'null'
                          example: acct-adyen-us-1
                        approval_rate:
                          type:
                            - number
                            - 'null'
                          example: 0.9987
                        avg_latency_ms:
                          type:
                            - integer
                            - 'null'
                          example: 180
                        sample_size:
                          type: integer
                          example: 767
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - The field 'candidates' has a value less than allowed.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Invalid Credentials
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: PRODUCT_NOT_ENABLED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - >-
                        The Routing Recommendations API is enabled per organization. Contact your Key Account Manager
                        (KAM) to activate it.
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_UPSTREAM_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - routing service unavailable.
      tags:
        - Organizations
  /routing/succeeded-groups:
    get:
      summary: List Succeeded Groups
      operationId: list-succeeded-groups
      description: >-
        Lists the succeeded groups of an account, to reference by group_id from SUCCEEDED_GROUP routing outputs. Read
        only.
      parameters:
        - name: account_id
          in: query
          required: true
          schema:
            type: string
            format: uuid
          description: Account to list groups for. Must belong to the organization of your API credentials.
      responses:
        '200':
          description: The groups of the account, or an empty array if it has none.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: integer
                      example: 430
                      description: The value to send as group_id in a routing output.
                    name:
                      type: string
                      example: Pending review
                    type:
                      type: string
                      enum:
                        - SUCCEEDED_GROUP
                      description: Always SUCCEEDED_GROUP, the output status the group is used with.
                    succeeded_types:
                      type: array
                      items:
                        type: string
                      example:
                        - PENDING_IN_REVIEW
                      description: >-
                        Members of the group. Today the only success sub-status that can be grouped is
                        PENDING_IN_REVIEW.
        '400':
          description: >-
            Bad Request. `ROUTING_VALIDATION_FAILED` when `account_id` is missing, `INVALID_ACCOUNT_ID` when it belongs
            to a different organization.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_VALIDATION_FAILED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - account_id is required.
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_UPSTREAM_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - routing service unavailable.
      tags:
        - Organizations
  /routing/{routing_id}:
    get:
      summary: Retrieve a Routing
      operationId: retrieve-routing
      description: Returns the routing's current live configuration.
      parameters:
        - name: routing_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 8f2c1d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f
                  account_id:
                    type: string
                    example: acc-uuid
                  payment_method:
                    type: string
                    example: CARD
                  name:
                    type: string
                    example: Card routing — Stripe primary, Adyen fallback
                  default_route:
                    type: object
                    properties:
                      start_split:
                        type: array
                        description: >-
                          Splits the entry of the route across several steps by percentage. Omit to start every payment
                          on step 1. Entries must sum to 100; returned only when the route has a split entry.
                        items:
                          type: object
                          required:
                            - index
                            - percentage
                          properties:
                            index:
                              type: integer
                              example: 1
                            percentage:
                              type: integer
                              example: 45
                      steps:
                        type: array
                        items:
                          type: object
                          properties:
                            index:
                              type: integer
                              example: 1
                            provider_id:
                              type: string
                              example: STRIPE
                              description: >-
                                Required on provider steps; absent on action steps. Must match the provider of the
                                connection.
                            connection_id:
                              type: string
                              example: f1a3c4d5-...
                              description: >-
                                Required on provider steps; absent on action and smart routing steps. Must be ACTIVE and
                                support the payment_method.
                            provider_type:
                              type: string
                              enum:
                                - PAYMENT
                                - FRAUD
                                - THREE_D_SECURE
                                - AUTHENTICATION
                              description: The kind the provider resolves to. Response only.
                            timeout:
                              type: integer
                              example: 60
                              description: >-
                                Provider steps. Timeout in seconds of the provider, from the provider catalog. Response
                                only.
                            network_token_enable:
                              type: boolean
                              description: >-
                                Payment steps. Whether network_token_on can be true on this step: the organization is
                                onboarded to network tokens and the provider supports them. Response only.
                            network_token_on:
                              type: boolean
                              description: >-
                                Payment steps. Whether the step pays with the network token of the card when one is
                                available.
                            three_d_secure_exemptions:
                              type: array
                              items:
                                type: string
                                enum:
                                  - LOW_VALUE
                                  - TRANSACTION_RISK_ANALYSIS
                                  - SECURE_CORPORATE
                                  - TRUSTED_BENEFICIARY
                                  - RECURRING_PAYMENT
                                  - STRONG_CUSTOMER_AUTHENTICATION
                                  - OUT_OF_SCOPE
                              description: 3DS steps. The SCA exemptions the step may apply; an empty array when none.
                            action:
                              type: string
                              enum:
                                - CANCEL
                                - CAPTURE
                                - HOLD_FOR_REVIEW
                                - REVERT
                              description: >-
                                Makes the step an action step that ends the route: CANCEL rejects the payment, CAPTURE
                                captures the authorization after action_delay, HOLD_FOR_REVIEW leaves it pending manual
                                review, REVERT reverts it after a post-payment fraud screening. CAPTURE and
                                HOLD_FOR_REVIEW follow an APPROVED or SUCCEEDED_GROUP output of a payment or smart
                                routing step, REVERT the outputs of a fraud step that runs after the payment, CANCEL
                                never an approval. An action step has no provider_id, connection_id or output.
                            action_delay:
                              type: string
                              example: PT5M
                              description: >-
                                Only with action = CAPTURE. ISO-8601 duration between the approval and the capture, at
                                least PT1M and at most P7D. Omit to capture as soon as the approval is processed.
                            output:
                              type: array
                              items:
                                type: object
                                required:
                                  - status
                                properties:
                                  status:
                                    type: string
                                    example: DECLINED
                                    description: >-
                                      APPROVED, DECLINED, DECLINE_GROUP, MAC_CODE_GROUP, SUCCEEDED_GROUP, PENDING
                                      (fraud, 3DS and authentication steps only) or INTERNAL_ERROR.
                                  decline_types:
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      Members of the group on DECLINE_GROUP (decline sub-statuses) and MAC_CODE_GROUP
                                      (Merchant Advice Codes) outputs.
                                  group_id:
                                    type: integer
                                    example: 1044
                                    description: Id of the group behind a DECLINE_GROUP, MAC_CODE_GROUP or SUCCEEDED_GROUP output.
                                  group_name:
                                    type: string
                                    example: Soft declines
                                    description: Name of the group behind group_id. Ignored on write.
                                  retry:
                                    type: boolean
                                    example: false
                                    description: >-
                                      Whether this output retries the same provider once before following next. Always
                                      returned.
                                  next:
                                    type: integer
                                    example: 2
                                  next_split:
                                    type: array
                                    description: >-
                                      Splits the fallback across several steps by percentage: at least 2 entries whose
                                      percentages sum to 100. Returned alongside next = first entry.
                                    items:
                                      type: object
                                      required:
                                        - index
                                        - percentage
                                      properties:
                                        index:
                                          type: integer
                                          example: 2
                                        percentage:
                                          type: integer
                                          example: 70
                              description: Per-outcome handlers. Returned as an empty array on action steps.
                            fraud:
                              type: object
                              description: Configuration of a fraud provider step, returned on FRAUD steps.
                              properties:
                                rules:
                                  type: string
                                  example: rule-a,rule-b
                                blocklists:
                                  type: string
                                allowlists:
                                  type: string
                                reviewlists:
                                  type: string
                                preset:
                                  type: string
                                report_only:
                                  type: boolean
                                  description: >-
                                    Score without acting on the result. Only on a fraud step reached from declined
                                    outputs of a payment step.
                            smart_routing:
                              type: object
                              description: Returned on smart routing steps.
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - COSTS
                                    - LATENCY
                                  example: LATENCY
                                providers:
                                  type: array
                                  minItems: 2
                                  maxItems: 4
                                  items:
                                    type: object
                                    required:
                                      - provider_id
                                      - connection_id
                                    properties:
                                      provider_id:
                                        type: string
                                        example: ADYEN
                                      connection_id:
                                        type: string
                                        format: uuid
                                      network_token_on:
                                        type: boolean
                                no_retry_decline_types:
                                  type: array
                                  items:
                                    type: string
                                  description: Decline sub-statuses after which the next provider of the set is not tried.
                                no_retry_failure_causes:
                                  type: array
                                  items:
                                    type: string
                                  description: >-
                                    Failure causes (for example PROVIDER_TIMEOUT) after which the next provider of the
                                    set is not tried.
                  condition_sets:
                    type: array
                    items:
                      type: object
                      properties:
                        sort_number:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: High Value US
                        description:
                          type: string
                        conditions:
                          type: array
                          items:
                            type: object
                            properties:
                              condition_type:
                                type: string
                                example: COUNTRY
                                description: >-
                                  See Routing Conditions for the catalog: COUNTRY, CARD_ISSUER_COUNTRY, AMOUNT,
                                  CURRENCY, CARD_TYPE, CARD_BRAND, CARD_BIN, TRANSACTION_TYPE, METADATA,
                                  ADDITIONAL_FIELD, TIME_PERIOD, VOLUME_PAYMENTS_LIMIT, SUBSCRIPTION_RETRY,
                                  SUBSCRIPTION_RETRY_COUNT.
                              conditional:
                                type: string
                                example: ONE_OF
                              values:
                                type: array
                                items:
                                  type: string
                                example:
                                  - US
                                  - CA
                                description: >-
                                  On CURRENCY, uppercase ISO 4217 codes (not XXX, no repeats): exactly 1 with EQUAL or
                                  NOT_EQUAL, 1 or more with ONE_OF or NOT_ONE_OF. Empty only on an AMOUNT condition with
                                  currency, which then matches any amount in that currency.
                              key:
                                type: string
                                description: 'METADATA: the metadata key. ADDITIONAL_FIELD: the supported field name.'
                              currency:
                                type: string
                                example: USD
                                description: >-
                                  ISO 4217. Required on AMOUNT and on VOLUME_PAYMENTS_LIMIT with limit_by = VOLUME. Not
                                  sent on CURRENCY, whose currencies go in values.
                              time_period_repeat_amount:
                                type: integer
                                example: 1
                                description: >-
                                  TIME_PERIOD and VOLUME_PAYMENTS_LIMIT: every how many units of
                                  time_period_repeat_frequency (schedule), or the length of a DAILY window in days, 1 to
                                  90 (limit).
                              time_period_repeat_frequency:
                                type: string
                                enum:
                                  - DAILY
                                  - WEEKLY
                                  - MONTHLY
                                  - QUARTERLY
                                  - YEARLY
                                description: >-
                                  TIME_PERIOD: recurrence unit. VOLUME_PAYMENTS_LIMIT: period of the limit, DAILY,
                                  MONTHLY or QUARTERLY.
                              time_period_repetition_days:
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - MONDAY
                                    - TUESDAY
                                    - WEDNESDAY
                                    - THURSDAY
                                    - FRIDAY
                                    - SATURDAY
                                    - SUNDAY
                                description: TIME_PERIOD only. Days of the week the schedule applies to; needs a frequency.
                              time_period_start_time:
                                type: string
                                example: '09:00:00'
                                description: >-
                                  TIME_PERIOD only. Start of the daily time window (HH:mm:ss), together with
                                  time_period_end_time.
                              time_period_end_time:
                                type: string
                                example: '18:00:00'
                                description: TIME_PERIOD only. End of the daily time window (HH:mm:ss), inclusive.
                              timezone:
                                type: string
                                example: '-03:00'
                                description: >-
                                  UTC offset. TIME_PERIOD: offset the schedule is read in (defaults to the offset of
                                  values[0]). VOLUME_PAYMENTS_LIMIT: whole-hour offset where periods start (defaults to
                                  +00:00).
                              limit_by:
                                type: string
                                enum:
                                  - PAYMENTS
                                  - VOLUME
                                description: VOLUME_PAYMENTS_LIMIT only. Count payments (default) or sum amounts in currency.
                              payments_count:
                                type: string
                                enum:
                                  - ALL
                                  - SUCCEEDED
                                description: VOLUME_PAYMENTS_LIMIT only. Which payments count toward the limit. Default ALL.
                          description: Conditions combined with logical AND. See Routing Conditions.
                        route:
                          type: object
                          description: Same shape as default_route, including start_split, output[].next_split and action steps.
                  created_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T14:30:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T14:30:00Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Routing '...' was not found
      tags:
        - Organizations
    patch:
      summary: Update a Routing
      operationId: update-routing
      description: Replaces the routing's full configuration.
      parameters:
        - name: routing_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: X-Idempotency-Key
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - payment_method
                - name
                - default_route
              properties:
                account_id:
                  type: string
                  format: uuid
                  example: 7825fc5e-e50a-4248-9ae8-5d3786afb0be
                  description: Must match the routing's account.
                payment_method:
                  type: string
                  example: CARD
                  description: Must match the routing's payment_method.
                name:
                  type: string
                  example: Card routing
                default_route:
                  type: object
                  required:
                    - steps
                  properties:
                    start_split:
                      type: array
                      description: >-
                        Splits the entry of the route across several steps by percentage. Omit to start every payment on
                        step 1. Entries must sum to 100; returned only when the route has a split entry.
                      items:
                        type: object
                        required:
                          - index
                          - percentage
                        properties:
                          index:
                            type: integer
                            example: 1
                          percentage:
                            type: integer
                            example: 45
                    steps:
                      type: array
                      items:
                        type: object
                        required:
                          - index
                        properties:
                          index:
                            type: integer
                            example: 1
                          provider_id:
                            type: string
                            example: STRIPE
                            description: >-
                              Required on provider steps (SMART_ROUTING on a smart routing step); absent on action
                              steps. Must match the provider of the connection.
                          connection_id:
                            type: string
                            format: uuid
                            example: f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e
                            description: >-
                              Required on provider steps; absent on action and smart routing steps. Must be ACTIVE and
                              support the payment_method.
                          action:
                            type: string
                            enum:
                              - CANCEL
                              - CAPTURE
                              - HOLD_FOR_REVIEW
                              - REVERT
                            description: >-
                              Makes the step an action step that ends the route: CANCEL rejects the payment, CAPTURE
                              captures the authorization after action_delay, HOLD_FOR_REVIEW leaves it pending manual
                              review, REVERT reverts it after a post-payment fraud screening. CAPTURE and
                              HOLD_FOR_REVIEW follow an APPROVED or SUCCEEDED_GROUP output of a payment or smart routing
                              step, REVERT the outputs of a fraud step that runs after the payment, CANCEL never an
                              approval. An action step has no provider_id, connection_id or output.
                          action_delay:
                            type: string
                            example: PT5M
                            description: >-
                              Only with action = CAPTURE. ISO-8601 duration between the approval and the capture, at
                              least PT1M and at most P7D. Omit to capture as soon as the approval is processed.
                          output:
                            type: array
                            items:
                              type: object
                              required:
                                - status
                              properties:
                                status:
                                  type: string
                                  example: DECLINED
                                  description: >-
                                    APPROVED, DECLINED, DECLINE_GROUP, MAC_CODE_GROUP, SUCCEEDED_GROUP, PENDING (fraud,
                                    3DS and authentication steps only) or INTERNAL_ERROR.
                                decline_types:
                                  type: array
                                  items:
                                    type: string
                                  description: >-
                                    Decline sub-statuses. On DECLINE_GROUP, required unless group_id is sent; with
                                    group_id it must equal the group's members. Not allowed on SUCCEEDED_GROUP.
                                group_id:
                                  type: integer
                                  example: 1044
                                  description: >-
                                    Id of a decline, Merchant Advice Code or succeeded group of the account (see List
                                    Decline Groups and List Succeeded Groups). Required on MAC_CODE_GROUP and
                                    SUCCEEDED_GROUP, optional on DECLINE_GROUP, not allowed otherwise. Must be of the
                                    kind the status expects.
                                retry:
                                  type: boolean
                                  example: false
                                  description: >-
                                    true attempts the same provider once more when this outcome happens, before
                                    following next. Only on DECLINED, INTERNAL_ERROR and DECLINE_GROUP. On update, an
                                    omitted retry keeps the stored value.
                                next:
                                  type: integer
                                  example: 2
                                next_split:
                                  type: array
                                  description: >-
                                    Splits the fallback across several steps by percentage: at least 2 entries whose
                                    percentages sum to 100. next is optional next to it and, when sent, must equal the
                                    first entry; responses return next = first entry alongside next_split.
                                  items:
                                    type: object
                                    required:
                                      - index
                                      - percentage
                                    properties:
                                      index:
                                        type: integer
                                        example: 2
                                      percentage:
                                        type: integer
                                        example: 70
                            description: Per-outcome handlers of a provider step. Not allowed on an action step.
                          network_token_on:
                            type: boolean
                            description: >-
                              Only on payment provider steps of a CARD routing. true pays with the network token of the
                              card when one is available; requires the organization onboarded to network tokens and a
                              provider that supports them (network_token_enable on the response), otherwise 400
                              NETWORK_TOKEN_NOT_ONBOARDED or NETWORK_TOKEN_NOT_SUPPORTED. Omitted on update keeps the
                              stored value; false turns it off.
                          three_d_secure_exemptions:
                            type: array
                            items:
                              type: string
                              enum:
                                - LOW_VALUE
                                - TRANSACTION_RISK_ANALYSIS
                                - SECURE_CORPORATE
                                - TRUSTED_BENEFICIARY
                                - RECURRING_PAYMENT
                                - STRONG_CUSTOMER_AUTHENTICATION
                                - OUT_OF_SCOPE
                            description: >-
                              Only on 3DS provider steps. The SCA exemptions this step may apply. Omitted on update
                              keeps the stored list; [] clears it.
                          fraud:
                            type: object
                            description: >-
                              Configuration of a fraud provider step. Only on FRAUD providers; omitted on update keeps
                              the stored configuration.
                            properties:
                              rules:
                                type: string
                                example: rule-a,rule-b
                              blocklists:
                                type: string
                              allowlists:
                                type: string
                              reviewlists:
                                type: string
                              preset:
                                type: string
                              report_only:
                                type: boolean
                                description: >-
                                  Score without acting on the result. Only on a fraud step reached from declined outputs
                                  of a payment step.
                          smart_routing:
                            type: object
                            description: >-
                              Makes the step a smart routing step (provider_id SMART_ROUTING, no connection_id). Card
                              routings only, one per route.
                            required:
                              - type
                              - providers
                            properties:
                              type:
                                type: string
                                enum:
                                  - COSTS
                                  - LATENCY
                                example: LATENCY
                              providers:
                                type: array
                                minItems: 2
                                maxItems: 4
                                items:
                                  type: object
                                  required:
                                    - provider_id
                                    - connection_id
                                  properties:
                                    provider_id:
                                      type: string
                                      example: ADYEN
                                    connection_id:
                                      type: string
                                      format: uuid
                                    network_token_on:
                                      type: boolean
                              no_retry_decline_types:
                                type: array
                                items:
                                  type: string
                                description: Decline sub-statuses after which the next provider of the set is not tried.
                              no_retry_failure_causes:
                                type: array
                                items:
                                  type: string
                                description: >-
                                  Failure causes (for example PROVIDER_TIMEOUT) after which the next provider of the set
                                  is not tried.
                        description: >-
                          A provider attempt (provider_id + connection_id) or an action step (action). index values are
                          contiguous starting at 1.
                condition_sets:
                  type: array
                  description: Optional. Ordered by sort_number, first matching set wins.
                  items:
                    type: object
                    required:
                      - sort_number
                      - name
                      - conditions
                      - route
                    properties:
                      sort_number:
                        type: integer
                        example: 1
                      name:
                        type: string
                        example: US & Canada — high value
                      description:
                        type: string
                      conditions:
                        type: array
                        items:
                          type: object
                          required:
                            - condition_type
                            - conditional
                            - values
                          properties:
                            condition_type:
                              type: string
                              example: COUNTRY
                              description: >-
                                See Routing Conditions for the catalog: COUNTRY, CARD_ISSUER_COUNTRY, AMOUNT, CURRENCY,
                                CARD_TYPE, CARD_BRAND, CARD_BIN, TRANSACTION_TYPE, METADATA, ADDITIONAL_FIELD,
                                TIME_PERIOD, VOLUME_PAYMENTS_LIMIT, SUBSCRIPTION_RETRY, SUBSCRIPTION_RETRY_COUNT.
                            conditional:
                              type: string
                              example: ONE_OF
                            values:
                              type: array
                              items:
                                type: string
                              example:
                                - US
                                - CA
                              description: >-
                                On CURRENCY, uppercase ISO 4217 codes (not XXX, no repeats): exactly 1 with EQUAL or
                                NOT_EQUAL, 1 or more with ONE_OF or NOT_ONE_OF. Empty only on an AMOUNT condition with
                                currency, which then matches any amount in that currency.
                            key:
                              type: string
                              description: 'METADATA: the metadata key. ADDITIONAL_FIELD: the supported field name.'
                            currency:
                              type: string
                              example: USD
                              description: >-
                                ISO 4217. Required on AMOUNT and on VOLUME_PAYMENTS_LIMIT with limit_by = VOLUME. Not
                                sent on CURRENCY, whose currencies go in values.
                            time_period_repeat_amount:
                              type: integer
                              example: 1
                              description: >-
                                TIME_PERIOD and VOLUME_PAYMENTS_LIMIT: every how many units of
                                time_period_repeat_frequency (schedule), or the length of a DAILY window in days, 1 to
                                90 (limit).
                            time_period_repeat_frequency:
                              type: string
                              enum:
                                - DAILY
                                - WEEKLY
                                - MONTHLY
                                - QUARTERLY
                                - YEARLY
                              description: >-
                                TIME_PERIOD: recurrence unit. VOLUME_PAYMENTS_LIMIT: period of the limit, DAILY, MONTHLY
                                or QUARTERLY.
                            time_period_repetition_days:
                              type: array
                              items:
                                type: string
                                enum:
                                  - MONDAY
                                  - TUESDAY
                                  - WEDNESDAY
                                  - THURSDAY
                                  - FRIDAY
                                  - SATURDAY
                                  - SUNDAY
                              description: TIME_PERIOD only. Days of the week the schedule applies to; needs a frequency.
                            time_period_start_time:
                              type: string
                              example: '09:00:00'
                              description: >-
                                TIME_PERIOD only. Start of the daily time window (HH:mm:ss), together with
                                time_period_end_time.
                            time_period_end_time:
                              type: string
                              example: '18:00:00'
                              description: TIME_PERIOD only. End of the daily time window (HH:mm:ss), inclusive.
                            timezone:
                              type: string
                              example: '-03:00'
                              description: >-
                                UTC offset. TIME_PERIOD: offset the schedule is read in (defaults to the offset of
                                values[0]). VOLUME_PAYMENTS_LIMIT: whole-hour offset where periods start (defaults to
                                +00:00).
                            limit_by:
                              type: string
                              enum:
                                - PAYMENTS
                                - VOLUME
                              description: VOLUME_PAYMENTS_LIMIT only. Count payments (default) or sum amounts in currency.
                            payments_count:
                              type: string
                              enum:
                                - ALL
                                - SUCCEEDED
                              description: VOLUME_PAYMENTS_LIMIT only. Which payments count toward the limit. Default ALL.
                        description: Conditions combined with logical AND. See Routing Conditions.
                      route:
                        type: object
                        description: Same shape as default_route, including start_split, output[].next_split and action steps.
            example:
              account_id: 7825fc5e-e50a-4248-9ae8-5d3786afb0be
              payment_method: GOOGLE_PAY
              name: Google Pay routing v2
              default_route:
                steps:
                  - index: 1
                    provider_id: ADYEN
                    connection_id: b2c4d5e6-1a2b-4c3d-8e4f-5a6b7c8d9e0f
                    output:
                      - status: APPROVED
                        next: 3
                      - status: DECLINED
                        retry: false
                        next_split:
                          - index: 2
                            percentage: 70
                          - index: 4
                            percentage: 30
                  - index: 2
                    provider_id: ADYEN
                    connection_id: b2c4d5e6-1a2b-4c3d-8e4f-5a6b7c8d9e0f
                    output:
                      - status: APPROVED
                        next: 3
                  - index: 3
                    action: CAPTURE
                    action_delay: PT5M
                  - index: 4
                    action: CANCEL
              condition_sets:
                - sort_number: 1
                  name: US & Canada
                  conditions:
                    - condition_type: COUNTRY
                      conditional: ONE_OF
                      values:
                        - US
                        - CA
                  route:
                    steps:
                      - index: 1
                        action: CANCEL
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 8f2c1d3e-4b5a-4c7d-8e9f-0a1b2c3d4e5f
                  account_id:
                    type: string
                    example: acc-uuid
                  payment_method:
                    type: string
                    example: CARD
                  name:
                    type: string
                    example: Updated Card routing v2
                  default_route:
                    type: object
                    properties:
                      start_split:
                        type: array
                        description: >-
                          Splits the entry of the route across several steps by percentage. Omit to start every payment
                          on step 1. Entries must sum to 100; returned only when the route has a split entry.
                        items:
                          type: object
                          required:
                            - index
                            - percentage
                          properties:
                            index:
                              type: integer
                              example: 1
                            percentage:
                              type: integer
                              example: 45
                      steps:
                        type: array
                        items:
                          type: object
                          properties:
                            index:
                              type: integer
                              example: 1
                            provider_id:
                              type: string
                              example: STRIPE
                              description: >-
                                Required on provider steps; absent on action steps. Must match the provider of the
                                connection.
                            connection_id:
                              type: string
                              example: f1a3c4d5-7b8e-4a2c-9d1e-3f4a5b6c7d8e
                              description: >-
                                Required on provider steps; absent on action and smart routing steps. Must be ACTIVE and
                                support the payment_method.
                            provider_type:
                              type: string
                              enum:
                                - PAYMENT
                                - FRAUD
                                - THREE_D_SECURE
                                - AUTHENTICATION
                              description: The kind the provider resolves to. Response only.
                            timeout:
                              type: integer
                              example: 60
                              description: >-
                                Provider steps. Timeout in seconds of the provider, from the provider catalog. Response
                                only.
                            network_token_enable:
                              type: boolean
                              description: >-
                                Payment steps. Whether network_token_on can be true on this step: the organization is
                                onboarded to network tokens and the provider supports them. Response only.
                            network_token_on:
                              type: boolean
                              description: >-
                                Payment steps. Whether the step pays with the network token of the card when one is
                                available.
                            three_d_secure_exemptions:
                              type: array
                              items:
                                type: string
                                enum:
                                  - LOW_VALUE
                                  - TRANSACTION_RISK_ANALYSIS
                                  - SECURE_CORPORATE
                                  - TRUSTED_BENEFICIARY
                                  - RECURRING_PAYMENT
                                  - STRONG_CUSTOMER_AUTHENTICATION
                                  - OUT_OF_SCOPE
                              description: 3DS steps. The SCA exemptions the step may apply; an empty array when none.
                            action:
                              type: string
                              enum:
                                - CANCEL
                                - CAPTURE
                                - HOLD_FOR_REVIEW
                                - REVERT
                              description: >-
                                Makes the step an action step that ends the route: CANCEL rejects the payment, CAPTURE
                                captures the authorization after action_delay, HOLD_FOR_REVIEW leaves it pending manual
                                review, REVERT reverts it after a post-payment fraud screening. CAPTURE and
                                HOLD_FOR_REVIEW follow an APPROVED or SUCCEEDED_GROUP output of a payment or smart
                                routing step, REVERT the outputs of a fraud step that runs after the payment, CANCEL
                                never an approval. An action step has no provider_id, connection_id or output.
                            action_delay:
                              type: string
                              example: PT5M
                              description: >-
                                Only with action = CAPTURE. ISO-8601 duration between the approval and the capture, at
                                least PT1M and at most P7D. Omit to capture as soon as the approval is processed.
                            output:
                              type: array
                              items:
                                type: object
                                required:
                                  - status
                                properties:
                                  status:
                                    type: string
                                    example: DECLINED
                                    description: >-
                                      APPROVED, DECLINED, DECLINE_GROUP, MAC_CODE_GROUP, SUCCEEDED_GROUP, PENDING
                                      (fraud, 3DS and authentication steps only) or INTERNAL_ERROR.
                                  decline_types:
                                    type: array
                                    items:
                                      type: string
                                    description: >-
                                      Members of the group on DECLINE_GROUP (decline sub-statuses) and MAC_CODE_GROUP
                                      (Merchant Advice Codes) outputs.
                                  group_id:
                                    type: integer
                                    example: 1044
                                    description: Id of the group behind a DECLINE_GROUP, MAC_CODE_GROUP or SUCCEEDED_GROUP output.
                                  group_name:
                                    type: string
                                    example: Soft declines
                                    description: Name of the group behind group_id. Ignored on write.
                                  retry:
                                    type: boolean
                                    example: false
                                    description: >-
                                      Whether this output retries the same provider once before following next. Always
                                      returned.
                                  next:
                                    type: integer
                                    example: 2
                                  next_split:
                                    type: array
                                    description: >-
                                      Splits the fallback across several steps by percentage: at least 2 entries whose
                                      percentages sum to 100. Returned alongside next = first entry.
                                    items:
                                      type: object
                                      required:
                                        - index
                                        - percentage
                                      properties:
                                        index:
                                          type: integer
                                          example: 2
                                        percentage:
                                          type: integer
                                          example: 70
                              description: Per-outcome handlers. Returned as an empty array on action steps.
                            fraud:
                              type: object
                              description: Configuration of a fraud provider step, returned on FRAUD steps.
                              properties:
                                rules:
                                  type: string
                                  example: rule-a,rule-b
                                blocklists:
                                  type: string
                                allowlists:
                                  type: string
                                reviewlists:
                                  type: string
                                preset:
                                  type: string
                                report_only:
                                  type: boolean
                                  description: >-
                                    Score without acting on the result. Only on a fraud step reached from declined
                                    outputs of a payment step.
                            smart_routing:
                              type: object
                              description: Returned on smart routing steps.
                              properties:
                                type:
                                  type: string
                                  enum:
                                    - COSTS
                                    - LATENCY
                                  example: LATENCY
                                providers:
                                  type: array
                                  minItems: 2
                                  maxItems: 4
                                  items:
                                    type: object
                                    required:
                                      - provider_id
                                      - connection_id
                                    properties:
                                      provider_id:
                                        type: string
                                        example: ADYEN
                                      connection_id:
                                        type: string
                                        format: uuid
                                      network_token_on:
                                        type: boolean
                                no_retry_decline_types:
                                  type: array
                                  items:
                                    type: string
                                  description: Decline sub-statuses after which the next provider of the set is not tried.
                                no_retry_failure_causes:
                                  type: array
                                  items:
                                    type: string
                                  description: >-
                                    Failure causes (for example PROVIDER_TIMEOUT) after which the next provider of the
                                    set is not tried.
                  condition_sets:
                    type: array
                    items:
                      type: object
                      properties:
                        sort_number:
                          type: integer
                          example: 1
                        name:
                          type: string
                          example: Updated Card routing
                        description:
                          type: string
                        conditions:
                          type: array
                          items:
                            type: object
                            properties:
                              condition_type:
                                type: string
                                example: COUNTRY
                                description: >-
                                  See Routing Conditions for the catalog: COUNTRY, CARD_ISSUER_COUNTRY, AMOUNT,
                                  CURRENCY, CARD_TYPE, CARD_BRAND, CARD_BIN, TRANSACTION_TYPE, METADATA,
                                  ADDITIONAL_FIELD, TIME_PERIOD, VOLUME_PAYMENTS_LIMIT, SUBSCRIPTION_RETRY,
                                  SUBSCRIPTION_RETRY_COUNT.
                              conditional:
                                type: string
                                example: ONE_OF
                              values:
                                type: array
                                items:
                                  type: string
                                example:
                                  - US
                                  - CA
                                description: >-
                                  On CURRENCY, uppercase ISO 4217 codes (not XXX, no repeats): exactly 1 with EQUAL or
                                  NOT_EQUAL, 1 or more with ONE_OF or NOT_ONE_OF. Empty only on an AMOUNT condition with
                                  currency, which then matches any amount in that currency.
                              key:
                                type: string
                                description: 'METADATA: the metadata key. ADDITIONAL_FIELD: the supported field name.'
                              currency:
                                type: string
                                example: USD
                                description: >-
                                  ISO 4217. Required on AMOUNT and on VOLUME_PAYMENTS_LIMIT with limit_by = VOLUME. Not
                                  sent on CURRENCY, whose currencies go in values.
                              time_period_repeat_amount:
                                type: integer
                                example: 1
                                description: >-
                                  TIME_PERIOD and VOLUME_PAYMENTS_LIMIT: every how many units of
                                  time_period_repeat_frequency (schedule), or the length of a DAILY window in days, 1 to
                                  90 (limit).
                              time_period_repeat_frequency:
                                type: string
                                enum:
                                  - DAILY
                                  - WEEKLY
                                  - MONTHLY
                                  - QUARTERLY
                                  - YEARLY
                                description: >-
                                  TIME_PERIOD: recurrence unit. VOLUME_PAYMENTS_LIMIT: period of the limit, DAILY,
                                  MONTHLY or QUARTERLY.
                              time_period_repetition_days:
                                type: array
                                items:
                                  type: string
                                  enum:
                                    - MONDAY
                                    - TUESDAY
                                    - WEDNESDAY
                                    - THURSDAY
                                    - FRIDAY
                                    - SATURDAY
                                    - SUNDAY
                                description: TIME_PERIOD only. Days of the week the schedule applies to; needs a frequency.
                              time_period_start_time:
                                type: string
                                example: '09:00:00'
                                description: >-
                                  TIME_PERIOD only. Start of the daily time window (HH:mm:ss), together with
                                  time_period_end_time.
                              time_period_end_time:
                                type: string
                                example: '18:00:00'
                                description: TIME_PERIOD only. End of the daily time window (HH:mm:ss), inclusive.
                              timezone:
                                type: string
                                example: '-03:00'
                                description: >-
                                  UTC offset. TIME_PERIOD: offset the schedule is read in (defaults to the offset of
                                  values[0]). VOLUME_PAYMENTS_LIMIT: whole-hour offset where periods start (defaults to
                                  +00:00).
                              limit_by:
                                type: string
                                enum:
                                  - PAYMENTS
                                  - VOLUME
                                description: VOLUME_PAYMENTS_LIMIT only. Count payments (default) or sum amounts in currency.
                              payments_count:
                                type: string
                                enum:
                                  - ALL
                                  - SUCCEEDED
                                description: VOLUME_PAYMENTS_LIMIT only. Which payments count toward the limit. Default ALL.
                          description: Conditions combined with logical AND. See Routing Conditions.
                        route:
                          type: object
                          description: Same shape as default_route, including start_split, output[].next_split and action steps.
                  created_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T14:30:00Z'
                  updated_at:
                    type: string
                    format: date-time
                    example: '2026-05-12T14:30:00Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_VALIDATION_FAILED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Validation failed for update
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Routing '...' was not found
        '409':
          description: Conflict
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: ROUTING_VERSION_CONFLICT
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Another concurrent PATCH won the publish race
      tags:
        - Organizations
  /sellers:
    post:
      summary: Create Seller
      operationId: create-seller
      tags:
        - Sellers
      description: Creates a new franchise seller mapping.
      parameters:
        - name: public-api-key
          in: header
          required: true
          schema:
            type: string
        - name: private-secret-key
          in: header
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SellerCreate'
            examples:
              CardProvider:
                summary: Seller with card provider
                value:
                  account_id: 8a1c0e7f-4f2d-4bc7-9e1a-2c4d6f8a1b22
                  merchant_seller_id: FRANCHISE_STORE_001
                  name: Franchise Store New York
                  email: store001@franchise.com
                  phone:
                    code: '+1'
                    number: '2125550100'
                  document:
                    type: EIN
                    number: 12-3456789
                  address:
                    line_1: 350 Fifth Avenue
                    line_2: Suite 101
                    city: New York
                    state: NY
                    country: US
                    zip_code: '10118'
                  country: US
                  merchant_category_code: '5812'
                  payment_methods:
                    - provider_id: STRIPE
                      payment_method_type: CARD
                      merchant_id: acct_1A2B3C4D5E
              MultipleProviders:
                summary: Seller with multiple providers (card + wallet)
                value:
                  account_id: 8a1c0e7f-4f2d-4bc7-9e1a-2c4d6f8a1b22
                  merchant_seller_id: FRANCHISE_STORE_001
                  name: Franchise Store Los Angeles
                  country: US
                  merchant_category_code: '5812'
                  payment_methods:
                    - provider_id: STRIPE
                      payment_method_type: CARD
                      merchant_id: acct_1A2B3C4D5E
                    - provider_id: APPLE_PAY
                      payment_method_type: APPLE_PAY
                      wallet_details:
                        payment_processing_key: <base64-encoded .pem content>
                        payment_processing_certificate: <base64-encoded .pem content>
                        merchant_identity_key: <base64-encoded .pem content>
                        merchant_identity_certificate: <base64-encoded .pem content>
                        merchant_identity_password: password123
              MinimalSeller:
                summary: Minimal seller (no payment methods yet)
                value:
                  account_id: 8a1c0e7f-4f2d-4bc7-9e1a-2c4d6f8a1b22
                  merchant_seller_id: FRANCHISE_STORE_002
                  name: Franchise Store Chicago
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Seller'
              examples:
                CardProvider:
                  summary: Seller created with card provider
                  value:
                    seller_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    merchant_seller_id: FRANCHISE_STORE_001
                    name: Franchise Store New York
                    email: store001@franchise.com
                    phone:
                      code: '+1'
                      number: '2125550100'
                    document:
                      type: EIN
                      number: 12-3456789
                    address:
                      line_1: 350 Fifth Avenue
                      line_2: Suite 101
                      city: New York
                      state: NY
                      country: US
                      zip_code: '10118'
                    country: US
                    website: null
                    industry: null
                    merchant_category_code: '5812'
                    payment_methods:
                      - provider_id: STRIPE
                        payment_method_type: CARD
                        merchant_id: acct_1A2B3C4D5E
                        wallet_details: null
                    created_at: '2026-05-07T10:00:00Z'
                    updated_at: '2026-05-07T10:00:00Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized_2'
        '409':
          $ref: '#/components/responses/Conflict'
  /sellers/{merchant_seller_id}:
    get:
      summary: Get Seller
      operationId: get-seller
      tags:
        - Sellers
      description: Retrieves a franchise seller mapping by the merchant's own identifier.
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Seller'
              examples:
                CardProvider:
                  summary: Seller with card provider
                  value:
                    seller_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    merchant_seller_id: FRANCHISE_STORE_001
                    name: Franchise Store New York
                    email: store001@franchise.com
                    phone:
                      code: '+1'
                      number: '2125550100'
                    document:
                      type: EIN
                      number: 12-3456789
                    address:
                      line_1: 350 Fifth Avenue
                      line_2: Suite 101
                      city: New York
                      state: NY
                      country: US
                      zip_code: '10118'
                    country: US
                    website: null
                    industry: null
                    merchant_category_code: '5812'
                    payment_methods:
                      - provider_id: STRIPE
                        payment_method_type: CARD
                        merchant_id: acct_1A2B3C4D5E
                        wallet_details: null
                    created_at: '2026-05-07T10:00:00Z'
                    updated_at: '2026-05-07T10:00:00Z'
        '401':
          $ref: '#/components/responses/Unauthorized_2'
        '404':
          $ref: '#/components/responses/NotFound'
      parameters:
        - name: merchant_seller_id
          in: path
          required: true
          schema:
            type: string
        - name: public-api-key
          in: header
          required: true
          schema:
            type: string
        - name: private-secret-key
          in: header
          required: true
          schema:
            type: string
    put:
      summary: Update Seller
      operationId: update-seller
      tags:
        - Sellers
      description: >-
        Fully replaces the seller details and payment method configurations. `merchant_seller_id` is taken from the URL
        path; `account_id` must be provided in the request body.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SellerUpdate'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Seller'
              examples:
                MultipleProviders:
                  summary: Updated seller with multiple providers
                  value:
                    seller_id: a1b2c3d4-e5f6-7890-abcd-ef1234567890
                    merchant_seller_id: FRANCHISE_STORE_001
                    name: Franchise Store Los Angeles
                    email: null
                    phone:
                      code: null
                      number: null
                    document:
                      type: null
                      number: null
                    address:
                      line_1: null
                      line_2: null
                      city: null
                      state: null
                      country: null
                      zip_code: null
                    country: US
                    website: null
                    industry: null
                    merchant_category_code: '5812'
                    payment_methods:
                      - provider_id: STRIPE
                        payment_method_type: CARD
                        merchant_id: acct_1A2B3C4D5E
                        wallet_details: null
                      - provider_id: APPLE_PAY
                        payment_method_type: APPLE_PAY
                        merchant_id: null
                        wallet_details:
                          payment_processing_key: <base64-encoded .pem content>
                          payment_processing_certificate: <base64-encoded .pem content>
                          merchant_identity_key: <base64-encoded .pem content>
                          merchant_identity_certificate: <base64-encoded .pem content>
                          merchant_identity_password: password123
                    created_at: '2026-05-07T10:00:00Z'
                    updated_at: '2026-05-07T14:30:00Z'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized_2'
        '404':
          $ref: '#/components/responses/NotFound'
      parameters:
        - name: merchant_seller_id
          in: path
          required: true
          schema:
            type: string
        - name: public-api-key
          in: header
          required: true
          schema:
            type: string
        - name: private-secret-key
          in: header
          required: true
          schema:
            type: string
    delete:
      summary: Delete Seller
      operationId: delete-seller
      tags:
        - Sellers
      description: Soft-deletes a franchise seller mapping.
      responses:
        '204':
          description: No Content
        '401':
          $ref: '#/components/responses/Unauthorized_2'
        '404':
          $ref: '#/components/responses/NotFound'
      parameters:
        - name: merchant_seller_id
          in: path
          required: true
          schema:
            type: string
        - name: public-api-key
          in: header
          required: true
          schema:
            type: string
        - name: private-secret-key
          in: header
          required: true
          schema:
            type: string
  /smart-support/external/payments:
    post:
      summary: Initiate Recovery Outreach for Abandoned User Flows
      operationId: initiate-recovery-outreach-for-abandoned-user-flows
      tags:
        - AI Caller
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RecoveryOutreachRequest'
            examples:
              recoveryOutreachExample:
                summary: Example Recovery Outreach Request (USA)
                value:
                  customer:
                    full_name: Robert Johnson
                    phone_number: '+12125550103'
                    email: robert.johnson@example.com
                    country_code: US
                    language: en
                  session:
                    abandonment_timestamp: '2025-05-13T22:45:00Z'
                    flow_stage: cart_review
                    platform: ios
                    session_id: sess_def456uvw
                  cart:
                    total_value: 29.99
                    currency: USD
                    items:
                      - name: Bluetooth Speaker
                        sku: BSPEAKER-PRO
                        quantity: 1
                        price: 29.99
                  engagement:
                    preferred_channel: whatsapp
                    reason: user_abandoned_cart
                    metadata:
                      utm_campaign: summer_promo
                      last_clicked_button: Continue Shopping
      responses:
        '200':
          description: Successfully initiated recovery outreach.
        '400':
          description: Invalid request payload or validation error.
        '401':
          description: Unauthorized - missing or invalid API key.
        '500':
          description: Internal server error.
  /smart-support/external/payments/recover:
    post:
      summary: Declined Payment Calls
      tags:
        - AI Caller
      operationId: declined-payment-calls
      parameters:
        - name: X-Idempotency-Key
          in: header
          description: >-
            Unique identifier used in HTTP headers to ensure that a request is processed only once, even if it is
            retried due to network issues or timeouts.
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - settings
              properties:
                settings:
                  type: object
                  description: AI agent configuration
                  required:
                    - contact_details
                  properties:
                    contact_details:
                      type: object
                      description: Object with the contact details
                      required:
                        - channel
                      properties:
                        channel:
                          type: string
                          enum:
                            - PHONE_CALL
                            - WHATSAPP_MESSAGE
                          description: |+
                            The list of possible contact channels.

                          example: WHATSAPP_MESSAGE
                        initial_template_message:
                          type: object
                          description: >-
                            Required if `channel = WHATSAPP_MESSAGE`. Initial template message configuration for
                            `WHATSAPP_MESSAGE`.
                          properties:
                            id:
                              type: string
                              description: Yuno template ID
                              example: HX8e7ac569f40a064c71a37e5d672bb9123
                            variables:
                              type: object
                              description: Object with template's variables
                              example:
                                name: Maria
                                amount: $10.0000
                        pdf_template:
                          type: object
                          properties:
                            id:
                              type: string
                              description: Yuno PDF template ID
                            variables:
                              type: object
                              description: Object with pdf template's variables
                              example:
                                seller_name: RAPPI
                                merchant_order_id: MX_Verification_50708779
                          description: PDF template configuration for WHATSAPP_MESSAGE.
                        payment_methods:
                          type: object
                          description: Available payment methods to offer the customer payer
                          properties:
                            available:
                              type: array
                              description: >-
                                The list of available payment methods to be offered to the user as alternatives to
                                complete the payment.
                              items:
                                type: string
                              example:
                                - MERCADO_PAGO
                                - NEQUI
                                - CREDIT_CARD
                          required:
                            - available
                additional_information:
                  type: object
                  description: All relevant information to feed to the AI to improve context.
                  properties:
                    seller_details:
                      type: object
                      description: >-
                        Object containing the merchant's contact information to be used if the agent is unable to answer
                        the inquiry.
                      properties:
                        name:
                          type: string
                          description: The merchant's name, used by the AI to introduce itself.
                          minLength: 3
                          maxLength: 255
                          example: RAPPI
                        fallback_instructions:
                          type: string
                          description: >-
                            Instruction to be provided to the user on how to contact customer support in case the AI
                            cannot solve the issue.
                          minLength: 3
                          maxLength: 255
                          example: Go to the application and click on the top right corner to contact a customer support agent.
                        redirection_url:
                          type: string
                          description: URL to redirect the customer for additional support.
                          example: www.test.com/purchase
                    payment:
                      type: object
                      description: Declined payment information
                      properties:
                        account_id:
                          type: string
                          description: The unique identifier of the account.
                          minLength: 36
                          maxLength: 64
                          example: e4c03f29-b0f6-403a-8814-9aee1a88d60e
                        id:
                          type: string
                          description: The unique identifier of the payment.
                          minLength: 3
                          maxLength: 64
                          example: f1fbad16-93c1-4335-b735-2b01ec94ea9e
                        merchant_order_id:
                          type: string
                          description: Identification of the Order.
                          minLength: 3
                          maxLength: 255
                          example: ORDER-12345
                        country:
                          type: string
                          description: Country where the payment was processed (ISO 3166-1).
                          minLength: 2
                          maxLength: 2
                          example: US
                        description:
                          type: string
                          description: The description of product or service the user tried to purchase.
                          minLength: 3
                          maxLength: 1000
                          example: Online store purchase
                        created_at:
                          type: string
                          format: date-time
                          description: The timestamp of when the payment was made (ISO 8601).
                          minLength: 27
                          maxLength: 27
                          example: '2022-05-09T20:46:54.786342Z'
                        declined_reason:
                          type: string
                          description: The declined reason for the payment provided by the payment provider.
                          minLength: 3
                          maxLength: 255
                          example: insufficient funds
                        payment_method:
                          type: object
                          properties:
                            type:
                              type: string
                              description: The type of payment method selected by the customer.
                              minLength: 3
                              maxLength: 255
                              example: Credit Card
                            detail:
                              type: object
                              properties:
                                card_data:
                                  type: object
                                  properties:
                                    expiration_month:
                                      type: number
                                      description: Card's expiration month - MM
                                      minimum: 1
                                      maximum: 12
                                      example: 12
                                    expiration_year:
                                      type: number
                                      description: Card's expiration year - YYYY
                                      minimum: 2024
                                      maximum: 9999
                                      example: 2030
                                    iin:
                                      type: string
                                      description: >-
                                        The Institution identification number (IIN) refers to the first few digits of a
                                        payment card number issued by a financial institution.
                                      minLength: 6
                                      maxLength: 8
                                      example: '411111'
                                    lfd:
                                      type: string
                                      description: Last four digits of the card.
                                      minLength: 4
                                      maxLength: 4
                                      example: '1234'
                                    issuer:
                                      type: string
                                      description: Card issuer.
                                      minLength: 3
                                      maxLength: 255
                                      example: CHASE
                                    type:
                                      type: string
                                      description: Card's issuer type.
                                      enum:
                                        - CREDIT
                                        - DEBIT
                                        - PREPAID
                                      minLength: 3
                                      maxLength: 255
                                      example: CREDIT
                        amount:
                          type: object
                          properties:
                            value:
                              type: number
                              description: The amount of the payment that was declined.
                              example: 149.99
                            currency:
                              type: string
                              description: The currency of the payment that was declined (ISO 4217).
                              minLength: 3
                              maxLength: 3
                              example: USD
                        customer_payer:
                          type: object
                          properties:
                            first_name:
                              type: string
                              description: The customer's first name.
                              minLength: 3
                              maxLength: 255
                              example: John
                            last_name:
                              type: string
                              description: The customer's last name.
                              minLength: 3
                              maxLength: 255
                              example: Doe
                            phone:
                              type: object
                              properties:
                                country_code:
                                  type: string
                                  description: Customer payer cell phone area code.
                                  minLength: 2
                                  maxLength: 3
                                  example: '1'
                                number:
                                  type: string
                                  description: Customer payer cell phone number.
                                  minLength: 1
                                  maxLength: 32
                                  example: '5551234567'
            examples:
              Request Example:
                summary: Request Example
                value:
                  settings:
                    contact_details:
                      channel: PHONE_CALL
                      initial_template_message:
                        id: HX8e7ac569f40a064c71a37e5d672bb9123
                        variables:
                          name: Maria
                          amount: $10.0000
                      pdf_template:
                        id: ede0d2da-138d-441b-8101-85e2d21af8b9
                        variables:
                          seller_name: RAPPI
                          merchant_order_id: MX_Verification_50708779
                      payment_methods:
                        available:
                          - MERCADO_PAGO
                          - NEQUI
                  additional_information:
                    seller_details:
                      name: RAPPI
                      fallback_instructions: Go to the application and click on the top right corner to contact a customer support agent.
                      redirection_url: www.test.com/purchase
                    payment:
                      account_id: e4c03f29-b0f6-403a-8814-9aee1a88d60e
                      id: f1fbad16-93c1-4335-b735-2b01ec94ea9e
                      merchant_order_id: MX_Verification_50708779
                      country: CO
                      description: Purchase in McDonalds
                      created_at: '2022-05-09T20:46:54.786342Z'
                      declined_reason: insufficient funds
                      payment_method:
                        type: Credit Card
                        detail:
                          card_data:
                            iin: '636318'
                            lfd: '2671'
                            type: CREDIT
                            issuer: SCOTIABANK
                            expiration_year: 2030
                            expiration_month: 12
                      amount:
                        currency: COP
                        value: 27000
                      customer_payer:
                        first_name: Pepito
                        last_name: Perez
                        phone:
                          country_code: '57'
                          number: '3000000000'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 7c3a9c6e-9bf0-4c2c-9f67-752b16ba5dd5
                  message:
                    type: string
                    example: Communication processed successfully
              examples:
                Success:
                  value:
                    id: 7c3a9c6e-9bf0-4c2c-9f67-752b16ba5dd5
                    message: Communication processed successfully
                  summary: Success
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Missing customer_payer.first_name required field
              examples:
                Bad Request:
                  value:
                    message: Missing customer_payer.first_name required field
                  summary: Bad Request
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Internal error
              examples:
                Internal Error:
                  value:
                    message: Internal error
                  summary: Internal Error
  /split-marketplace/transfers:
    post:
      summary: Create Standalone Transfer
      operationId: create-standalone-transfer
      tags:
        - Transfers
      parameters:
        - name: X-Account-Code
          in: header
          required: true
          schema:
            type: string
            format: uuid
          description: The account_id found in the Yuno Dashboard. The API reads the account from this header.
        - name: X-Idempotency-Key
          in: header
          required: true
          schema:
            type: string
          description: Unique key for request idempotency.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - recipient_id
                - provider_id
                - amount
              properties:
                account_id:
                  type: string
                  deprecated: true
                  description: Not used. The API takes the account from the `X-Account-Code` header, so you can omit this field.
                recipient_id:
                  type: string
                  format: uuid
                  description: >-
                    The target recipient identifier. The recipient must have an onboarding for `provider_id` in status
                    PENDING or SUCCEEDED.
                provider_id:
                  type: string
                  description: The payment provider code to use (e.g., adyen, stripe).
                amount:
                  $ref: '#/components/schemas/Amount'
                description:
                  type: string
                  description: A human-readable description for the transfer (3-255 chars). This is sent to the provider.
                merchant_reference:
                  type: string
                  description: Merchant's unique identifier for idempotency and tracking.
                metadata:
                  $ref: '#/components/schemas/Metadata'
                direction:
                  type:
                    - string
                    - 'null'
                  enum:
                    - PLATFORM_TO_RECIPIENT
                    - RECIPIENT_TO_PLATFORM
                    - null
                  default: PLATFORM_TO_RECIPIENT
                  description: >-
                    Direction of the transfer. Omitted or null defaults to PLATFORM_TO_RECIPIENT. RECIPIENT_TO_PLATFORM
                    is supported only for eligible STRIPE accounts. RECIPIENT_TO_PLATFORM is not generally available.
                    Use it only after Yuno confirms account enablement and provider support.
            examples:
              Platform to recipient:
                value:
                  recipient_id: 5a37f0c0-7689-4065-8348-4b5ff5bf9cc7
                  provider_id: STRIPE
                  amount:
                    value: 150
                    currency: USD
                  description: Marketplace payout
                  merchant_reference: MR-TRANSFER-001
                  direction: PLATFORM_TO_RECIPIENT
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transfer'
              examples:
                Success:
                  value:
                    id: 94036ceb-5cca-4384-b144-e2a5a908af77
                    recipient_id: e56c3329-f3d9-48e5-a677-284b147abf95
                    amount:
                      currency: USD
                      value: 100
                    status: SUCCEEDED
                    description: test transfer
                    merchant_reference: c19e858a-ffd6-4635-8a31-4f60c5becf4d
                    metadata: []
                    provider: null
                    transactions:
                      - code: 7ac2c5f3-7c79-4e99-b45e-aa5952620188
                        type: SPLIT_TRANSFER
                        status: SUCCEEDED
                        provider_transfer_id: tr_1T9eKVIiMnPsFcbbRTb8ObsZ
                        provider_response_message: null
                        provider_raw_response: |-
                          {
                            "id": "tr_1T9eKVIiMnPsFcbbRTb8ObsZ",
                            "object": "transfer",
                            "amount": 10000,
                            "amount_reversed": 0,
                            "balance_transaction": "txn_1T9eKVIiMnPsFcbbOPnvz3xM",
                            "created": 1773203107,
                            "currency": "usd",
                            "description": "test transfer",
                            "destination": "acct_1T9PSQIZEg1WWTvj",
                            "destination_payment": "py_1T9eKVIZEg1WWTvjbVjmnzFK",
                            "livemode": false,
                            "metadata": {},
                            "reversals": {
                              "object": "list",
                              "data": [],
                              "has_more": false,
                              "total_count": 0,
                              "url": "/v1/transfers/tr_1T9eKVIiMnPsFcbbRTb8ObsZ/reversals"
                            },
                            "reversed": false,
                            "source_transaction": null,
                            "source_type": "card",
                            "transfer_group": null
                          }
                        created_at: '2026-03-11T04:25:06.229027Z'
                        updated_at: '2026-03-11T04:25:07.917364Z'
                    created_at: '2026-03-11T04:25:06.208761Z'
                    updated_at: '2026-03-11T04:25:07.928000342Z'
                    completed_at: '2026-03-11T04:25:07.927971142Z'
                    direction: PLATFORM_TO_RECIPIENT
                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'
                    direction: PLATFORM_TO_RECIPIENT
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                PROVIDER_NOT_FOUND:
                  summary: Provider not found
                  value:
                    code: PROVIDER_NOT_FOUND
                    messages:
                      - The specified provider was not found.
                ONBOARDING_NOT_VALID:
                  summary: Onboarding not valid
                  value:
                    code: ONBOARDING_NOT_VALID
                    messages:
                      - The recipient onboarding is not valid for this operation.
                CURRENCY_NOT_SUPPORTED:
                  summary: Currency not supported
                  value:
                    code: CURRENCY_NOT_SUPPORTED
                    messages:
                      - The specified currency is not supported.
                INVALID_AMOUNT:
                  summary: Invalid amount
                  value:
                    code: INVALID_AMOUNT
                    messages:
                      - The transfer amount is invalid.
                INSUFFICIENT_BALANCE:
                  summary: Insufficient balance
                  value:
                    code: INSUFFICIENT_BALANCE
                    messages:
                      - Insufficient balance to complete the transfer.
                INVALID_DIRECTION_VALUE:
                  summary: Invalid direction value
                  description: >-
                    An empty, unknown or incorrectly cased string returns INVALID_PARAMETERS. Null uses the default
                    direction.
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'direction' has an invalid value.
                INVALID_DIRECTION_TYPE:
                  summary: Direction is not a string
                  description: >-
                    A JSON object, array, number or boolean in direction is rejected while decoding the body, before any
                    other validation.
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'direction' must be a string.
                DIRECTION_UNSUPPORTED_PROVIDER:
                  summary: Recipient-to-platform with a provider other than STRIPE
                  description: >-
                    Rejected before the account enablement check. Match on code; the message text can differ between
                    releases.
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - Invalid transfer parameters
                DIRECTION_NOT_ENABLED:
                  summary: Direction not enabled for this account
                  value:
                    code: DIRECTION_NOT_ENABLED
                    messages:
                      - Transfer direction is not enabled for this account
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                RECIPIENT_NOT_FOUND:
                  summary: Recipient not found
                  value:
                    code: RECIPIENT_NOT_FOUND
                    messages:
                      - The specified recipient was not found.
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                PROVIDER_INTERNAL_ERROR:
                  summary: Provider internal error
                  value:
                    code: PROVIDER_INTERNAL_ERROR
                    messages:
                      - The payment provider encountered an internal error.
      description: >-
        Create a standalone transfer. Direction is immutable; omitted or null direction defaults to
        PLATFORM_TO_RECIPIENT. RECIPIENT_TO_PLATFORM is not generally available. Use it only after Yuno confirms account
        enablement and provider support. RECIPIENT_TO_PLATFORM with a provider other than STRIPE returns
        INVALID_PARAMETERS before the enablement check. Reusing the same account and idempotency key with a different
        normalized direction returns INVALID_PARAMETERS when the requested direction is enabled; otherwise the
        availability guard returns DIRECTION_NOT_ENABLED first.
  /split-marketplace/transfers/{transfer_id}:
    get:
      summary: Get Standalone Transfer
      operationId: get-standalone-transfer
      tags:
        - Transfers
      parameters:
        - name: transfer_id
          in: path
          required: true
          schema:
            type: string
          description: The unique ID of the transfer (e.g., TRF_7kB2mQ9xPnL4vR).
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transfer'
              examples:
                Success:
                  value:
                    id: 94036ceb-5cca-4384-b144-e2a5a908af77
                    recipient_id: e56c3329-f3d9-48e5-a677-284b147abf95
                    amount:
                      currency: USD
                      value: 100
                    status: SUCCEEDED
                    description: test transfer
                    merchant_reference: c19e858a-ffd6-4635-8a31-4f60c5becf4d
                    metadata: []
                    provider: null
                    transactions:
                      - code: 7ac2c5f3-7c79-4e99-b45e-aa5952620188
                        type: SPLIT_TRANSFER
                        status: SUCCEEDED
                        provider_transfer_id: tr_1T9eKVIiMnPsFcbbRTb8ObsZ
                        provider_response_message: null
                        provider_raw_response: |-
                          {
                            "id": "tr_1T9eKVIiMnPsFcbbRTb8ObsZ",
                            "object": "transfer",
                            "amount": 10000,
                            "amount_reversed": 0,
                            "balance_transaction": "txn_1T9eKVIiMnPsFcbbOPnvz3xM",
                            "created": 1773203107,
                            "currency": "usd",
                            "description": "test transfer",
                            "destination": "acct_1T9PSQIZEg1WWTvj",
                            "destination_payment": "py_1T9eKVIZEg1WWTvjbVjmnzFK",
                            "livemode": false,
                            "metadata": {},
                            "reversals": {
                              "object": "list",
                              "data": [],
                              "has_more": false,
                              "total_count": 0,
                              "url": "/v1/transfers/tr_1T9eKVIiMnPsFcbbRTb8ObsZ/reversals"
                            },
                            "reversed": false,
                            "source_transaction": null,
                            "source_type": "card",
                            "transfer_group": null
                          }
                        created_at: '2026-03-11T04:25:06.229027Z'
                        updated_at: '2026-03-11T04:25:07.917364Z'
                    created_at: '2026-03-11T04:25:06.208761Z'
                    updated_at: '2026-03-11T04:25:07.928000342Z'
                    completed_at: '2026-03-11T04:25:07.927971142Z'
                    direction: PLATFORM_TO_RECIPIENT
                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'
                    direction: PLATFORM_TO_RECIPIENT
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                TRANSFER_NOT_FOUND:
                  summary: Transfer not found
                  value:
                    code: TRANSFER_NOT_FOUND
                    messages:
                      - The specified transfer was not found.
      description: >-
        Retrieve the saved transfer, including its immutable direction. Existing transfers return PLATFORM_TO_RECIPIENT.
        Reversals do not change the parent direction.
  /split-marketplace/transfers/{transfer_id}/reverse:
    post:
      summary: Reverse Standalone Transfer
      operationId: reverse-standalone-transfer
      tags:
        - Transfers
      parameters:
        - name: transfer_id
          in: path
          required: true
          schema:
            type: string
          description: The unique ID of the transfer flow to reverse.
        - name: X-Idempotency-Key
          in: header
          required: true
          schema:
            type: string
          description: Unique key for request idempotency.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - reason
              properties:
                account_id:
                  type: string
                  description: The unique identifier of the account.
                amount:
                  $ref: '#/components/schemas/Amount'
                reason:
                  type: string
                  description: >-
                    The reason for the reversal. Required: the API returns 400 INVALID_PARAMETERS ("The field 'reason'
                    is required.") when it is missing.
                description:
                  type: string
                  description: A human-readable description for the reversal.
                merchant_reference:
                  type: string
                  description: Merchant's unique identifier for tracking this reversal.
            examples:
              Reverse a transfer:
                value:
                  account_id: '{{account-code}}'
                  reason: Order cancelled by the customer
                  description: Reversal of transfer
                  merchant_reference: MR-REVERSAL-001
      responses:
        '201':
          description: Reversal processed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReverseTransfer'
              examples:
                PartialReversal:
                  summary: Parent after a partial reversal
                  value:
                    id: 550e8400-e29b-41d4-a716-446655440000
                    recipient_id: d246d578-266c-47c3-92b6-1748d780711b
                    amount:
                      currency: USD
                      value: 1
                    status: REVERSED_PARTIAL
                    reason: ORDER_CANCELLED
                    description: Partial reversal
                    merchant_reference: REVERSAL-001
                    provider_data:
                      id: STRIPE
                      recipient_id: acct_example
                      transaction_id: trr_example
                      response_code: ''
                      response_message: ''
                    transactions:
                      - code: cb5fd244-90fd-49b0-a160-a9d9f764eb9e
                        type: SPLIT_TRANSFER
                        status: SUCCEEDED
                        provider_transfer_id: tr_example
                        created_at: '2026-09-15T10:00:00Z'
                        updated_at: '2026-09-15T10:00:00Z'
                      - code: 0e5b4d60-4811-4a48-90c1-398d28dbce8c
                        type: SPLIT_TRANSFER_REVERSE
                        status: SUCCEEDED
                        parent_transaction_code: cb5fd244-90fd-49b0-a160-a9d9f764eb9e
                        provider_transfer_id: trr_example
                        reason: ORDER_CANCELLED
                        created_at: '2026-09-15T10:05:00Z'
                        updated_at: '2026-09-15T10:05:00Z'
                    created_at: '2026-09-15T10:00:00Z'
                    updated_at: '2026-09-15T10:05:00Z'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                TRANSFER_NOT_REVERSIBLE:
                  summary: Transfer not reversible
                  value:
                    code: TRANSFER_NOT_REVERSIBLE
                    messages:
                      - The transfer is not in a reversible state.
                TRANSFER_ALREADY_REVERSED:
                  summary: Transfer already reversed
                  value:
                    code: TRANSFER_ALREADY_REVERSED
                    messages:
                      - The transfer has already been reversed.
                REVERSAL_AMOUNT_EXCEEDS:
                  summary: Reversal amount exceeds original
                  value:
                    code: REVERSAL_AMOUNT_EXCEEDS
                    messages:
                      - The reversal amount exceeds the original transfer amount.
                INVALID_CURRENCY:
                  summary: Invalid currency
                  value:
                    code: INVALID_CURRENCY
                    messages:
                      - The specified currency is invalid or does not match the original transfer.
                DIRECTION_NOT_REVERSIBLE:
                  summary: Recipient-to-platform transfers cannot be reversed
                  description: Match on code. The message text can differ between releases.
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - Invalid transfer parameters
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                TRANSFER_NOT_FOUND:
                  summary: Transfer not found
                  value:
                    code: TRANSFER_NOT_FOUND
                    messages:
                      - The specified transfer was not found.
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                PROVIDER_INTERNAL_ERROR:
                  summary: Provider internal error
                  value:
                    code: PROVIDER_INTERNAL_ERROR
                    messages:
                      - The payment provider encountered an internal error.
      description: >-
        Fully or partially reverse a PLATFORM_TO_RECIPIENT transfer. A RECIPIENT_TO_PLATFORM parent returns 400
        INVALID_PARAMETERS. To return a separately collected fee, create a new PLATFORM_TO_RECIPIENT transfer. The
        reversal HTTP response does not include direction; read the parent transfer to retrieve it.
  /subscriptions:
    get:
      summary: List Subscriptions
      description: >-
        Returns a paginated list of the account's subscriptions, newest first (`created_at` descending). Filters are
        combinable and every one of them is optional; with none set, subscriptions in every status are returned.
        1-indexed pagination.
      operationId: list-subscriptions
      parameters:
        - in: header
          name: X-Account-Code
          required: true
          schema:
            type: string
          description: >-
            The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID). Required — the
            list is always scoped to a single account. Omitting it returns `400 INVALID_PARAMETERS` ("x-account-code
            header is required.").
        - name: customer_id
          in: query
          description: >-
            Filter by the customer that owns the subscription (`customer_payer.id`, UUID). A value that isn't a UUID
            returns `400 BAD_REQUEST` ("Invalid customer_id.").
          schema:
            type: string
            example: 3t04911d-5df9-429e-8488-ad41abea1a2c
        - name: status
          in: query
          description: >-
            Filter by status. Accepts several values separated by commas, matching any of them — `ACTIVE,PAUSED`. Values
            must be spelled exactly as in [Subscription statuses](/reference/subscriptions/status-subscriptions); an
            unknown one returns `400 BAD_REQUEST` ("Invalid status: FOO.").
          schema:
            type: string
            example: ACTIVE,PAUSED
        - name: plan_id
          in: query
          description: >-
            Filter by the [plan](/reference/plans/the-plan-object) the subscription is linked to (UUID). A plan with no
            subscribers — or one that doesn't exist — returns an empty list, not an error. A value that isn't a UUID
            returns `400 BAD_REQUEST` ("Invalid plan_id.").
          schema:
            type: string
            example: 00000000-0000-4000-8000-000000000001
        - name: created_at_from
          in: query
          description: >-
            Only return subscriptions created at or after this instant (ISO 8601 with offset, inclusive). A value that
            doesn't parse returns `400 BAD_REQUEST` ("Invalid created_at_from.").
          schema:
            type: string
            example: '2024-01-01T00:00:00Z'
        - name: created_at_to
          in: query
          description: >-
            Only return subscriptions created at or before this instant (ISO 8601 with offset, inclusive). A value that
            doesn't parse returns `400 BAD_REQUEST` ("Invalid created_at_to.").
          schema:
            type: string
            example: '2024-12-31T23:59:59Z'
        - name: payment_method_type
          in: query
          description: Filter by the subscription's payment method type, for example `CARD`.
          schema:
            type: string
            example: CARD
        - name: page
          in: query
          description: >-
            1-indexed page number. Must be >= 1, else `400 BAD_REQUEST` ("The page must be greater than or equal to
            1.").
          schema:
            type: integer
            default: 1
            minimum: 1
        - name: size
          in: query
          description: >-
            Page size. Must be between 1 and 100 inclusive, else `400 BAD_REQUEST` ("The size must be greater than or
            equal to 1." if too low, "The size must be at most 100." if too high).
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    items:
                      - id: 7304911d-5df9-429e-8488-ad41abea1a4c
                        name: sub_001
                        status: ACTIVE
                        merchant_reference: 001_marzo_23
                        account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                        customer_payer:
                          id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                        amount:
                          currency: USD
                          value: 12100
                        frequency:
                          type: MONTH
                          value: 1
                        billing_cycles:
                          total: 10
                          current: 2
                          next_at: '2023-02-16T20:00:00.786342Z'
                        payment_method:
                          type: CARD
                        plan_id: 00000000-0000-4000-8000-000000000001
                        created_at: '2023-12-16T20:46:54.786342Z'
                        current_period_start: '2023-01-16T20:00:00.912480Z'
                        current_period_end: '2023-02-16T20:00:00.786342Z'
                    pagination:
                      page: 1
                      size: 20
                      total: 1
                      total_pages: 1
                  summary: Result
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: The unique identifier of the subscription.
                        name:
                          type: string
                        status:
                          type: string
                          description: See [Subscription statuses](/reference/subscriptions/status-subscriptions).
                        merchant_reference:
                          type: string
                        account_id:
                          type: string
                        customer_payer:
                          type: object
                          properties:
                            id:
                              type: string
                              description: The unique identifier of the customer.
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: '`null` on subscriptions billed with `billing_date` instead of a frequency.'
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                            monthly_billing_day:
                              type:
                                - integer
                                - 'null'
                              description: >-
                                The day of the month billing is anchored to on a MONTH-frequency subscription — set by
                                RESTART (on Update, a plan change, resume or reactivate) or by sending Update
                                Subscription's own frequency.monthly_billing_day. Present only once stamped; absent, not
                                null, before that and on every other frequency type.
                              example: 15
                        billing_cycles:
                          type: object
                          description: >-
                            Same semantics as on [The Subscription
                            Object](/reference/subscriptions/the-subscription-object) — `current` is the next cycle to
                            be charged, not the one in progress.
                          properties:
                            total:
                              type:
                                - integer
                                - 'null'
                            current:
                              type: integer
                            next_at:
                              type: string
                            scheduling_date:
                              type: string
                              description: >-
                                When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only
                                present on `PIX_AUTOMATIC` items that Yuno executes, and only where the four-day
                                scheduling lead is enabled for the organization; absent, not `null`, otherwise.
                                Read-only. See [Pix
                                Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                            paid:
                              type: integer
                              description: >-
                                How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                                billed.
                        payment_method:
                          type: object
                          properties:
                            type:
                              type: string
                              description: The payment method type, for example `CARD`.
                            vaulted_token:
                              type: string
                              example: 6104911d-5df9-429e-8488-ad41abea1a4b
                            card:
                              type:
                                - object
                                - 'null'
                              properties:
                                installments:
                                  type:
                                    - integer
                                    - 'null'
                                network_transaction_id:
                                  type:
                                    - string
                                    - 'null'
                                usage:
                                  type: string
                                  example: FIRST
                        plan_id:
                          type:
                            - string
                            - 'null'
                          description: >-
                            The plan the subscription is linked to, or `null` for subscriptions created with a raw
                            `amount`/`frequency`.
                        created_at:
                          type: string
                        current_period_start:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Same semantics as on [The Subscription
                            Object](/reference/subscriptions/the-subscription-object): start of the billing period the
                            subscription is currently in.
                        current_period_end:
                          type:
                            - string
                            - 'null'
                          description: >-
                            End of the billing period the subscription is currently in. Equal to
                            `billing_cycles.next_at`.
                        description:
                          type:
                            - string
                            - 'null'
                          example: streaming service
                        country:
                          type: string
                          description: The subscription's country (ISO 3166-1 alpha-2).
                          example: US
                        soft_descriptor:
                          type:
                            - string
                            - 'null'
                          example: ACME SUBSCRIPTION
                        billing_date:
                          type:
                            - object
                            - 'null'
                          description: >-
                            Only present on subscriptions billed on a fixed date instead of a frequency; mutually
                            exclusive with `frequency`.
                          properties:
                            type:
                              type: string
                              example: DAY
                            day:
                              type: integer
                              example: 2
                        availability:
                          type: object
                          properties:
                            start_at:
                              type: string
                              example: '2024-01-16T00:00:00.786342Z'
                            finish_at:
                              type:
                                - string
                                - 'null'
                              example: '2024-05-26T20:00:00.786342Z'
                        retries:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The retry policy applied when a recurring charge is declined. See
                            [Retries](/docs/payment-features/subscriptions/retries).
                          properties:
                            retry_on_decline:
                              type: boolean
                              description: Whether declined charges are retried at all.
                              example: true
                            amount:
                              type: integer
                              description: >-
                                How many retries a billing cycle gets. Capped by your environment's retry schedule
                                length (6 in production).
                              example: 4
                            strategy:
                              type: string
                              description: >-
                                How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat
                                as open-ended — handle unrecognized values gracefully.
                              example: DEFAULT
                            schedule:
                              type:
                                - array
                                - 'null'
                              description: >-
                                The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null`
                                otherwise.
                              items:
                                type: object
                            stop_on_hard_decline:
                              type:
                                - boolean
                                - 'null'
                              description: When true, a hard decline stops the retries for the current billing cycle.
                            cancel_on_exhausted_retries:
                              type:
                                - boolean
                                - 'null'
                              description: >-
                                When true, the subscription is canceled once a cycle's retries end without a successful
                                payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                            profile:
                              type: string
                              description: >-
                                The fixed retry ladder the subscription follows instead of the configurable schedule.
                                Always `PIX_AUTOMATIC`. This field and the three below are only present on
                                `PIX_AUTOMATIC` subscriptions that Yuno executes; they are absent, not `null`, on every
                                other payment method. See [Pix
                                Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                              example: PIX_AUTOMATIC
                            max_attempts:
                              type: integer
                              description: >-
                                How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                                subscriptions.
                              example: 3
                            min_gap_hours:
                              type: integer
                              description: >-
                                Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not
                                between dispatch attempts.
                              example: 24
                            until:
                              type: string
                              description: >-
                                When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at
                                every renewal.
                            stopped:
                              type: boolean
                              description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                            attempts_made:
                              type: integer
                              description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                            outcome:
                              type: string
                              description: >-
                                RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                                cancel_scheduled pending.
                            next_retry_at:
                              type: string
                              description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                        trial_period:
                          type: object
                          properties:
                            billing_cycles:
                              type: integer
                              example: 1
                              default: 0
                            amount:
                              type: object
                              properties:
                                value:
                                  type: number
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: ''
                        metadata:
                          type:
                            - array
                            - 'null'
                          items:
                            type: object
                            properties:
                              key:
                                type: string
                                example: sub_ext_id
                              value:
                                type: string
                                example: AA001
                        additional_data:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The optional order enrichment sent at creation, echoed back. See [The Subscription
                            Object](/reference/subscriptions/the-subscription-object) for its full shape.
                        initial_payment_validation:
                          type: boolean
                          description: >-
                            Whether the subscription waited for its first payment to succeed before activating. `false`
                            by default.
                          example: false
                        reason:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Free-form reason for the subscription's current status, when one was recorded; `null`
                            otherwise.
                          example: merchant request
                        renewal_notification_days:
                          type:
                            - integer
                            - 'null'
                          description: >-
                            How many days before the next billing date the `subscription.close_to_renewal` webhook is
                            sent. `null` means no renewal notification is sent.
                          example: 3
                        payments:
                          type: array
                          items:
                            type: string
                            example: 5104911d-5df9-229e-8468-bd41abea1a4s
                        subscription_agreement_id:
                          type:
                            - string
                            - 'null'
                          example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                        cancellation_time:
                          type:
                            - string
                            - 'null'
                          description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                          example: '2023-12-16T20:46:54.786342Z'
                        cancellation_source:
                          type:
                            - string
                            - 'null'
                          description: >-
                            What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`.
                            Only set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended —
                            handle unrecognized values gracefully.
                          example: MERCHANT
                        ending_time:
                          type:
                            - string
                            - 'null'
                          description: >-
                            When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                            otherwise.
                          example: '2024-12-16T20:46:54.786342Z'
                        plan_assigned_at:
                          type: string
                          description: >-
                            Only present on plan-linked subscriptions. The moment the plan was attached — at creation
                            from a plan, migration onto a plan, or a plan change.
                          example: '2023-12-16T20:46:54.786342Z'
                        previous_subscription_id:
                          type:
                            - string
                            - 'null'
                          description: >-
                            Only present when this subscription was created by a plan change (switching an existing
                            subscription to a different plan).
                        phases:
                          type: array
                          description: >-
                            The linked plan's phase definitions, as the plan declares them — including the terminal
                            `REGULAR` phase. Only present on plan-linked subscriptions whose plan has phases. This is
                            the plan's own ladder, not this subscriber's snapshot: for what was pinned for this
                            subscription at creation, use `billing_phases`.
                          items:
                            type: object
                            properties:
                              order:
                                type: integer
                              name:
                                type: string
                              type:
                                type: string
                                description: '`TRIAL` or `REGULAR`.'
                              duration:
                                type:
                                  - object
                                  - 'null'
                                description: >-
                                  How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                                  subscription ends.
                                properties:
                                  type:
                                    type: string
                                  value:
                                    type: integer
                              frequency:
                                type:
                                  - object
                                  - 'null'
                                description: >-
                                  How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the
                                  plan's own frequency.
                                properties:
                                  type:
                                    type: string
                                  value:
                                    type: integer
                              amount:
                                type:
                                  - object
                                  - 'null'
                                description: >-
                                  The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the
                                  plan at every billing.
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                              total_payments:
                                type:
                                  - integer
                                  - 'null'
                              country_prices:
                                type: array
                                description: Per-country overrides of the phase price, empty when the phase has none.
                                items:
                                  type: object
                                  properties:
                                    country:
                                      type: string
                                    amount:
                                      type: object
                                      properties:
                                        currency:
                                          type: string
                                        value:
                                          type: number
                        current_phase:
                          type: string
                          description: Only present on plan-linked subscriptions.
                          example: REGULAR
                        current_phase_end:
                          type:
                            - string
                            - 'null'
                          description: >-
                            When the phase named by `current_phase` hands over to the next one — for a subscription in
                            its trial, when it switches to the regular price. End of the last billing period the phase
                            covers, so on the final period of a trial it equals `current_period_end`. Null for a
                            subscription with no plan and for one that already left the phase ladder.
                          example: '2023-03-16T20:00:00.786342Z'
                        billing_phases:
                          type: array
                          description: >-
                            Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL
                            phases only, snapshotted at creation — the terminal REGULAR phase is never included, since
                            its price isn't pinned and instead resolves from the plan at every billing. `current_phase:
                            "REGULAR"` is how you know the ladder is exhausted.
                          items:
                            type: object
                            properties:
                              order:
                                type: integer
                              type:
                                type: string
                                description: Always TRIAL — the terminal REGULAR phase is never in this array.
                              name:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                              frequency:
                                type: object
                                properties:
                                  type:
                                    type: string
                                  value:
                                    type: integer
                              start_cycle:
                                type: integer
                              end_cycle:
                                type: integer
                        pending_plan_change:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The plan change scheduled for the next billing cycle, or null when none is pending. Schedule
                            one with the `plan_change` block on Update Subscription.
                          properties:
                            plan_id:
                              type: string
                              description: The identifier of the target plan.
                              example: 1904911d-5df9-429e-8488-ad41abea1a4d
                            plan_name:
                              type: string
                              description: The name of the target plan.
                              example: Pro
                            direction:
                              type: string
                              enum:
                                - UPGRADE
                                - DOWNGRADE
                              description: Whether the target plan is an upgrade or a downgrade. Informational only.
                              example: UPGRADE
                            effective:
                              type: string
                              enum:
                                - NEXT_BILLING_CYCLE
                              description: When the change applies.
                              example: NEXT_BILLING_CYCLE
                            phases_behavior:
                              type: string
                              enum:
                                - START_FROM_REGULAR
                                - HONOR_PHASES
                              description: What happens when the target plan has phases.
                              example: START_FROM_REGULAR
                            applies_at:
                              type: string
                              description: The billing event the change will take effect on — the subscription's next billing date.
                              example: '2023-02-16T20:00:00.786342Z'
                            requested_at:
                              type: string
                              description: When the change was scheduled.
                              example: '2023-01-20T10:12:31.786342Z'
                        updated_at:
                          type: string
                          example: '2023-12-16T21:00:54.786342Z'
                        refund_rule:
                          type: object
                          description: >-
                            The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends
                            no refund_amount of its own. Present only when one is configured; omitted, not null,
                            otherwise. Available to organizations enabled for it; contact Yuno.
                          properties:
                            type:
                              type: string
                              enum:
                                - PERCENT
                                - FIXED
                              description: >-
                                PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to
                                a fixed amount.
                              example: FIXED
                            percent:
                              type: number
                              description: Required, and only allowed, when type is PERCENT (0-100).
                              example: 50
                            amount:
                              type: object
                              description: Required, and only allowed, when type is FIXED.
                              properties:
                                value:
                                  type: number
                                  example: 10000
                                currency:
                                  type: string
                                  description: Must match the subscription's own currency.
                                  example: COP
                        pause_until:
                          type: string
                          description: >-
                            When the subscription is scheduled to resume automatically. Present only on a subscription
                            currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not
                            null, on every other read.
                          example: '2026-10-15T15:54:22.780166Z'
                        cancel_scheduled:
                          type:
                            - object
                            - 'null'
                          description: null when no cancellation is pending.
                          properties:
                            mode:
                              type: string
                              example: AFTER_CYCLES
                            after_cycles:
                              type: integer
                              example: 3
                            at:
                              type: string
                            requested_at:
                              type: string
                            past_due_behavior:
                              type: string
                              example: EXHAUST_RETRIES
                        refund:
                          type:
                            - object
                            - 'null'
                          description: >-
                            null when refund was NONE or omitted. Present on the cancel response and on every later read
                            once computed.
                          properties:
                            mode:
                              type: string
                              example: PRORATED
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: USD
                                value:
                                  type: number
                                  example: 20
                            unused_days:
                              type: integer
                              example: 20
                            period_days:
                              type: integer
                              example: 30
                            basis:
                              type: object
                              properties:
                                billing_cycle:
                                  type: integer
                                  example: 4
                                charged_amount:
                                  type: object
                                  properties:
                                    currency:
                                      type: string
                                      example: USD
                                    value:
                                      type: number
                                      example: 30
                                payment_id:
                                  type: string
                                  description: null for a $0-phase quote with no captured payment.
                                charged_at:
                                  type: string
                                  description: null for a $0-phase quote with no captured payment.
                            execution:
                              type: string
                              example: MERCHANT
                            quoted_at:
                              type: string
                        unpaid_cycle:
                          type: object
                          description: Present only when the current billing cycle is PAST_DUE and has not settled.
                          properties:
                            cycle_number:
                              type: integer
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                value:
                                  type: number
                            attempts:
                              type: integer
                            last_failure_code:
                              type: string
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                        description: The page returned — echoes the request.
                      size:
                        type: integer
                        description: The page size returned — echoes the request.
                      total:
                        type: integer
                        description: Total subscriptions matching the filters, across every page.
                      total_pages:
                        type: integer
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - The page must be greater than or equal to 1.
                  summary: Result
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: BAD_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
      deprecated: false
      tags:
        - Subscriptions
    post:
      summary: Create Subscription
      description: ''
      operationId: create-subscription
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - name
                - account_id
                - country
                - payment_method
                - customer_payer
              properties:
                name:
                  type: string
                  description: The subscription plan name (MAX 255; MIN 3).
                description:
                  type: string
                  description: The subscription plan description (MAX 255; MIN 3).
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account that will have the subscription plan available to use (UUID, 36
                    chars).
                merchant_reference:
                  type: string
                  description: Identification of the subscription plan (MAX 255; MIN 3).
                soft_descriptor:
                  type: string
                  maxLength: 255
                  description: >-
                    Statement descriptor shown on the cardholder's bank statement. When set, it is persisted on the
                    subscription and propagated to every rebill payment generated by the subscription engine. Length and
                    formatting limits vary by provider (for example, Unlimit truncates to 22 characters and Airwallex to
                    30). Worldpay does not read this field; it builds the statement narrative from `payment_description`
                    instead.
                country:
                  type: string
                  description: The subscription's country (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                amount:
                  type: object
                  description: >-
                    Specifies the `amount` object, with the value of each subscription payment and the used currency.
                    Mutually exclusive with `plan_id` — send exactly one of the two.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: The currency used to make the payment (MAX 3; MIN 3; [ISO 4217](/reference/country-reference)).
                    value:
                      type: number
                      description: The value of each payment of the subscription (multiple of 0.0001).
                      format: float
                plan_id:
                  type: string
                  description: >-
                    The unique identifier of a [plan](/reference/plans/the-plan-object) to subscribe this customer to.
                    Mutually exclusive with `amount` — send exactly one of the two. Omit `trial_period` and
                    `billing_date` when set: both are inherited from the plan and the request is rejected with `400
                    BAD_REQUEST` if you send them. Also omit `frequency` — it's inherited from the plan too, but sending
                    it anyway is not rejected: it's silently ignored and overridden by the plan's frequency. If the plan
                    has its own retry configuration, also omit `retries`: the subscription inherits the plan's retries,
                    and sending both is rejected with `400 INVALID_PARAMETERS`.
                additional_data:
                  type: object
                  description: >-
                    Specifies the additional_data object. This object is not mandatory. However, if you send this
                    information, the payment experience will be enhanced for your user.
                  properties:
                    order:
                      type: object
                      description: Specifies the order object.
                      properties:
                        items:
                          type: array
                          description: Specifies the item's object.
                          items:
                            properties:
                              id:
                                type: string
                                description: The unique identifier of the item (MAX 255; MIN 3).
                              name:
                                type: string
                                description: The name of the item (MAX 255; MIN 3).
                              quantity:
                                type: integer
                                description: The quantity of the item.
                                format: int32
                              unit_amount:
                                type: number
                                description: The unit amount of the item (multiple of 0.0001).
                              category:
                                type: string
                                description: The category of the item. Check the Item category reference.
                                enum:
                                  - art
                                  - baby
                                  - coupons
                                  - beauty_&_personal_care
                                  - donations
                                  - computing
                                  - books
                                  - grocery_&_gourmet_food
                                  - cameras
                                  - video_games
                                  - television
                                  - car_electronics
                                  - electronics
                                  - automotive
                                  - toys_&_games
                                  - musical_instruments
                                  - handmade
                                  - garden_&_outdoor
                                  - entertainment
                                  - industrial_&_scientific
                                  - fashion
                                  - games
                                  - pet_supplies
                                  - home
                                  - musical
                                  - phones
                                  - services
                                  - learnings
                                  - tickets
                                  - travels
                                  - virtual_goods
                                  - others
                              brand:
                                type: string
                                description: The brand of the item (MAX 255; MIN 3).
                              sku_code:
                                type: string
                                description: The stock keeping unit (SKU) of the item (MAX 255; MIN 3).
                              manufacture_part_number:
                                type: string
                                description: The manufacture part number of the item.
                            type: object
                frequency:
                  type: object
                  description: >-
                    Specifies the `frequency` object. Defines the billing frequency for the subscription. Including type
                    and value.
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      description: >-
                        The type of interval the subscription will have in time (DAY, WEEK, MONTH, YEAR). If not set,
                        defaults to MONTH. When `payment_method.type` is `PIX_AUTOMATIC`, only `WEEK`, `MONTH` and
                        `YEAR` with `value` `1` are legal — every other type, and every other value, is rejected with
                        `400 INVALID_PARAMETERS`. See [Pix
                        Automático](/docs/payment-features/subscriptions/pix-automatico#accepted-billing-cadences).
                      enum:
                        - DAY
                        - WEEK
                        - MONTH
                        - YEAR
                    value:
                      type: integer
                      description: The value between each interval. Min 1. Defaults to 1 if not set.
                      format: int32
                billing_cycles:
                  type: object
                  description: >-
                    Specifies the `billing_cycles` object. Defines the number of charges associated to the subscription.
                    If omitted, the subscription has no cycle limit and keeps billing until it is canceled or reaches
                    `availability.finish_at`, if one is set.
                  properties:
                    total:
                      type: integer
                      description: >-
                        The total number of billing cycles for the subscription (MIN 1). Values lower than 1 are
                        rejected with a `400` error.
                      format: int32
                      minimum: 1
                customer_payer:
                  type: object
                  description: >-
                    Specifies the `customer_payer` object to identify the customer. Required. Note that validation
                    errors on this object name the field `customer_payer.code`, not `customer_payer.id` — for example
                    `400 BAD_REQUEST` ("customer_payer.code field is required") when it is omitted.
                  properties:
                    id:
                      type: string
                      description: The unique identifier of the customer (UUID, 36 chars).
                    ip_address:
                      type: string
                      maxLength: 45
                      example: 203.0.113.7
                      description: >-
                        IP address of the payer at the initial customer-initiated payment (IPv4 or IPv6, up to 45
                        characters). It is stored on the subscription and sent on every renewal; some payment providers
                        require it for merchant-initiated renewals. Optional: an empty or absent value is ignored. A
                        value that is not a valid IPv4 or IPv6 address returns `400 BAD_REQUEST` ("The
                        customer_payer.ip_address must be a valid IPv4 or IPv6 address."). Only stored and returned for
                        organizations enabled for this feature.
                payment_method:
                  type: object
                  description: >-
                    Specifies the `payment_method` object. Supported types are `CARD`, `PAYPAL_ENROLLMENT` and
                    `PIX_AUTOMATIC`, all using previously enrolled payment methods (`vaulted_token`)
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      description: >-
                        Payment method type. `PIX_AUTOMATIC` bills a Brazilian Pix Automático mandate, is matched
                        case-insensitively, and restricts the billing cadence — see [Pix
                        Automático](/docs/payment-features/subscriptions/pix-automatico).
                      enum:
                        - CARD
                        - PAYPAL_ENROLLMENT
                        - PIX_AUTOMATIC
                    vaulted_token:
                      type: string
                      description: The vaulted token (UUID, 36 chars).
                    card:
                      type: object
                      properties:
                        installments:
                          type: integer
                          description: The number of installments (MAX 50; MIN 1).
                        network_transaction_id:
                          type: string
                          description: The ID provided by Visa/Mastercard in the response of the initial payment (MAX 256; MIN 1).
                        usage:
                          type: string
                          description: >-
                            Indicates whether this stored credential is being used for the first time (FIRST) or has
                            been used before (USED). Required if a CIT payment was created before the subscription —
                            without it, rebills are treated as CITs and may be declined.
                          enum:
                            - FIRST
                            - USED
                trial_period:
                  type: object
                  description: Specifies the trial period object
                  properties:
                    billing_cycles:
                      type: integer
                      description: The amount of cycles the trial period will have in time. If not set, defaults to 1 (MIN 1).
                      format: int32
                    amount:
                      type: object
                      description: Amount to be discounted for the trial period
                      required:
                        - currency
                        - value
                      properties:
                        currency:
                          type: string
                          description: >-
                            The currency used to make the payment (MAX 3; MIN 3; [ISO
                            4217](/reference/country-reference)).
                        value:
                          type: number
                          description: The value of each payment of the subscription (multiple of 0.0001).
                          format: float
                availability:
                  type: object
                  description: >-
                    Specifies the `availability` object. Defines a date interval based on starting and ending dates when
                    the subscription is available to use.
                  properties:
                    start_at:
                      type: string
                      description: >-
                        The start date that the subscription plan will be available to use. If not set, the subscription
                        is available from the moment it is created. Must be later than the current time: a past date
                        returns `400 BAD_REQUEST`.
                      format: date-time
                    finish_at:
                      type: string
                      description: >-
                        The end date until the subscription plan will be available to use. If not defined, the
                        subscription does not have an expiration date.
                      format: date-time
                metadata:
                  type: array
                  description: >-
                    Set of key-value pairs that you can attach to an object. This can be useful for storing additional
                    information about the object in a structured format. Keys can be unset by posting an empty value to
                    metadata. You can add up to 50 metadata objects.
                  items:
                    properties:
                      key:
                        type: string
                        description: The metadata key (MAX 48).
                      value:
                        type: string
                        description: The metadata key value (MAX 512).
                    type: object
                retries:
                  type: object
                  description: >-
                    Specified the 'retries' object. If we need to retry declined transactions in Yuno and the amount if
                    necessary. With `plan_id`, send `retries` only when the plan has no retry configuration of its own.
                    If the plan defines retries, the subscription inherits them and a request that also sends `retries`
                    is rejected with `400 INVALID_PARAMETERS`.
                  properties:
                    retry_on_decline:
                      type: boolean
                      description: If we should retry a payment or not after a first decline. False by default.
                    amount:
                      type: integer
                      description: >-
                        The number of retries that the subscription plan will have to complete. 6 will be defined as
                        default if this value is not set or higher than 6. (MAX 6).
                      format: int32
                    strategy:
                      type: string
                      description: >-
                        The retry strategy. Allowed values: DEFAULT (the fixed retry schedule), SMART
                        (machine-learning-based retry timing, applied from the second retry onward) or CUSTOM_SCHEDULE
                        (uses the per-attempt schedule array you provide).
                      enum:
                        - DEFAULT
                        - SMART
                        - CUSTOM_SCHEDULE
                    schedule:
                      type: array
                      description: >-
                        Object that define the schedule strategy for each retry event, the amounts of objects should
                        match the amount of retries defined. Up to 7 attempts; attempt numbers must run sequentially
                        from 1, and each delay_seconds must be between 1 and 604800 (7 days). The schedule can be
                        replaced later via Update Subscription.
                      items:
                        properties:
                          attempt:
                            type: number
                            description: Number of the retry attempt
                          delay_seconds:
                            type: number
                            description: Specifies the amount of seconds between each retry.
                        type: object
                    stop_on_hard_decline:
                      type: boolean
                      description: >-
                        When true, the retry schedule stops for the current billing cycle after a hard decline. On its
                        own, the subscription remains ACTIVE and billing advances to the next cycle; no subscription is
                        canceled or paused and no subscription webhook is emitted. If cancel_on_exhausted_retries is
                        also true, the subscription is canceled instead.
                    cancel_on_exhausted_retries:
                      type: boolean
                      description: >-
                        When true, the subscription is canceled once retries for a billing cycle end without a
                        successful payment, instead of remaining ACTIVE and advancing to the next cycle. The
                        subscription status becomes CANCELED, cancellation_source is set to RETRIES_EXHAUSTED, future
                        billing stops, and a single SUBSCRIPTION.CANCEL webhook is emitted. Applies both when the retry
                        schedule runs out and when stop_on_hard_decline ends the cycle early. Defaults to false, which
                        preserves the existing behavior. Create-only: it cannot be changed later — Update Subscription
                        rejects a different value with 400. The cancellation itself is final, so Retry Subscription is
                        rejected afterwards.
                initial_payment_validation:
                  type: boolean
                  description: >-
                    Flag to identify if the subscription should wait for the first payment in order to continue. False
                    by default.
                billing_date:
                  type: object
                  description: >-
                    Specifies the `billing_date` object. Defines the type of date use for the subscription logic.
                    Mutually exclusive with the frequency object.
                  properties:
                    type:
                      type: string
                      description: >-
                        The type of billing_date the subscription will have in time. PREPAID, POSTDATE, DAY. If not set,
                        the creation date for the plan will be set  by default.
                    day:
                      type: integer
                      description: >-
                        [Conditional] The day of the month to charge the subscription if type is DAY. Default is 1.
                        Range 1 - 31.
                subscription_agreement_id:
                  type: string
                  description: >-
                    Links this subscription to the initial payment created with the same agreement ID. Used for
                    tracking, reconciliation, and chargeback handling. Must exactly match the
                    `subscription_agreement_id` sent in
                    `payment_method.detail.card.stored_credentials.subscription_agreement_id` on the originating payment
                    (MAX 255).
                refund_rule:
                  type: object
                  description: >-
                    Configures the refund rule used to resolve a later CUSTOM cancel refund when that cancel request
                    sends no refund_amount of its own. Available to organizations enabled for it; contact Yuno.
                  properties:
                    type:
                      type: string
                      enum:
                        - PERCENT
                        - FIXED
                      description: >-
                        PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a fixed
                        amount.
                      example: FIXED
                    percent:
                      type: number
                      description: Required, and only allowed, when type is PERCENT (0-100).
                      example: 50
                    amount:
                      type: object
                      description: Required, and only allowed, when type is FIXED.
                      properties:
                        value:
                          type: number
                          example: 10000
                        currency:
                          type: string
                          description: Must match the subscription's own currency.
                          example: COP
            examples:
              Subscription:
                value:
                  name: Test Subscription
                  description: Subscription Test
                  merchant_reference: subscription-ref-merchant-AA01
                  soft_descriptor: ACME SUBSCRIPTION
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  country: CL
                  amount:
                    currency: CLP
                    value: 15000
                  frequency:
                    type: MONTH
                    value: 1
                  billing_cycles:
                    total: 12
                  customer_payer:
                    id: a1d3b664-e32a-4508-9da1-9ede3e62a60c
                  payment_method:
                    type: CARD
                    vaulted_token: d4aa3586-def2-4705-b7cd-fe064bb764e6
                    card:
                      installments: 3
                  availability:
                    start_at: '2030-01-01T00:00:00Z'
                  trial_period:
                    billing_cycles: 1
                    amount:
                      currency: CLP
                      value: 0
                  metadata:
                    - key: plan
                      value: gold
              PERCENT RULE:
                value:
                  refund_rule:
                    type: PERCENT
                    percent: 50
              FIXED RULE:
                value:
                  refund_rule:
                    type: FIXED
                    amount:
                      currency: COP
                      value: 8000
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                CREATE SUBSCRIPTION:
                  value:
                    id: 0c7fed3e-ee0d-4d34-9547-778be4ec0798
                    name: Test Subscription
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    country: US
                    description: Subscription Test
                    merchant_reference: subscription-ref-merchant-AA01
                    soft_descriptor: ACME SUBSCRIPTION
                    status: ACTIVE
                    amount:
                      currency: USD
                      value: 15000
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 12
                      current: 1
                      next_at: '2024-09-30T12:04:23.265393Z'
                    customer_payer:
                      id: a1d3b664-e32a-4508-9da1-9ede3e62a60c
                    payment_method:
                      type: CARD
                      vaulted_token: d4aa3586-def2-4705-b7cd-fe064bb764e6
                    availability:
                      start_at: '2024-09-30T12:04:23.265393Z'
                      finish_at: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: ''
                    metadata: null
                    created_at: '2024-09-30T12:04:23.265372Z'
                    updated_at: '2024-09-30T12:04:23.265372Z'
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    additional_data: null
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    pending_plan_change: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 0c7fed3e-ee0d-4d34-9547-778be4ec0798
                  name:
                    type: string
                    example: Test Subscription
                  account_id:
                    type: string
                    example: 493e9374-510a-4201-9e09-de669d75f256
                  country:
                    type: string
                    example: US
                  description:
                    type:
                      - string
                      - 'null'
                    example: Subscription Test
                  merchant_reference:
                    type: string
                    example: subscription-ref-merchant-AA01
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    example: ACME SUBSCRIPTION
                  status:
                    type: string
                    example: ACTIVE
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 15000
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 12
                        default: 0
                      current:
                        type: integer
                        example: 1
                        default: 0
                      next_at:
                        type: string
                        example: '2024-09-30T12:04:23.265393Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: a1d3b664-e32a-4508-9da1-9ede3e62a60c
                      ip_address:
                        type: string
                        maxLength: 45
                        example: 203.0.113.7
                        description: >-
                          IP address of the payer stored for renewals. Returned only on single-subscription responses
                          (create, retrieve, update, pause, resume, reactivate and cancel) and only when one was
                          supplied; never returned on list items or in webhooks.
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      vaulted_token:
                        type: string
                        example: d4aa3586-def2-4705-b7cd-fe064bb764e6
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-09-30T12:04:23.265393Z'
                      finish_at: {}
                  trial_period:
                    type: object
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: ''
                  metadata: {}
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                  previous_subscription_id:
                    type: string
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  created_at:
                    type: string
                    example: '2024-09-30T12:04:23.265372Z'
                  updated_at:
                    type: string
                    example: '2024-09-30T12:04:23.265372Z'
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry policy applied when a recurring charge is declined. See
                      [Retries](/docs/payment-features/subscriptions/retries).
                    properties:
                      retry_on_decline:
                        type: boolean
                        description: Whether declined charges are retried at all.
                        example: true
                      amount:
                        type: integer
                        description: >-
                          How many retries a billing cycle gets. Capped by your environment's retry schedule length (6
                          in production).
                        example: 4
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request.
                  summary: Result
                PIX AUTOMATICO CADENCE NOT SUPPORTED:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        Pix Automático only supports weekly, monthly, quarterly, half-yearly or yearly frequencies with
                        value 1.
                INLINE YEAR WITHOUT A PLAN:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - YEAR is invalid for frequency.type field
                PLAN NOT FOUND:
                  value:
                    code: PLAN_NOT_FOUND
                    messages:
                      - Plan not found.
                  summary: The plan_id does not resolve to a plan on this account.
                REFUND RULE CURRENCY MISMATCH:
                  value:
                    code: REFUND_RULE_CURRENCY_MISMATCH
                    messages:
                      - refund_rule.amount.currency USD must match the subscription currency COP.
                  summary: A FIXED refund_rule must be denominated in the subscription's own currency.
                REFUND RULE PERCENT OUT OF RANGE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - refund_rule.percent must be between 0 and 100.
                  summary: >-
                    Same refund_rule validator as Update Subscription (captured there, row 154); the message text is
                    shared.
      deprecated: false
      parameters:
        - in: header
          name: x-idempotency-key
          schema:
            type: string
            default: '{$randomUUID}'
          description: >-
            A unique identifier for the request. Must be different each time (UUID). See
            [authentication](/reference/authentication#idempotency).
      tags:
        - Subscriptions
  /subscriptions/plans:
    get:
      summary: List Plans
      description: >-
        Returns a paginated, grid-ready list of plans for the authenticated account. offset-based (`offset=0` is the
        first page) pagination.
      operationId: list-plans
      parameters:
        - in: header
          name: X-Account-Code
          required: false
          schema:
            type: string
          description: >-
            The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID). Required unless
            `account_id` is supplied as a query parameter — with neither, the call returns `400 BAD_REQUEST` ("Invalid
            x-account-code header.").
        - in: query
          name: account_id
          required: false
          schema:
            type: string
          description: >-
            Scope the list to one account. An alternative to the `X-Account-Code` header; one of the two must be
            present.
        - in: query
          name: limit
          required: false
          schema:
            type: integer
          description: Maximum number of plans to return. Defaults to 20.
        - in: query
          name: offset
          required: false
          schema:
            type: integer
          description: Number of plans to skip. Defaults to 0.
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    data:
                      - id: 00000000-0000-4000-8000-000000000001
                        account_id: 00000000-0000-4000-8000-000000000002
                        name: Streaming Pro
                        merchant_reference: streaming-pro-monthly
                        status: ACTIVE
                        base_amount:
                          currency: USD
                          value: 20
                        frequency:
                          type: MONTH
                          value: 1
                        subscribers_count: 3
                        countries:
                          - BR
                          - US
                        created_at: '2024-01-15T10:30:00.000000Z'
                    pagination:
                      total: 1
                      limit: 20
                      offset: 0
                      has_more: false
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        account_id:
                          type: string
                        name:
                          type: string
                        merchant_reference:
                          type: string
                        status:
                          type: string
                        base_amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        subscribers_count:
                          type: integer
                        countries:
                          type: array
                          items:
                            type: string
                        created_at:
                          type: string
                  pagination:
                    type: object
                    properties:
                      total:
                        type: integer
                        description: Total number of plans on the account.
                      limit:
                        type: integer
                        description: The limit applied to this page.
                      offset:
                        type: integer
                        description: The offset applied to this page.
                      has_more:
                        type: boolean
                        description: Whether more plans follow this page.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The limit must be greater than or equal to 1
                  summary: Result
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
      deprecated: false
      tags:
        - Plans
    post:
      summary: Create Plan
      description: >-
        Creates a reusable pricing plan. Plans are immutable once created — a price change means creating a new plan;
        existing subscriptions on the old plan are unaffected.
      operationId: create-plan
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - name
                - base_amount
                - frequency
              properties:
                name:
                  type: string
                  description: The plan name (MAX 255; MIN 3).
                description:
                  type: string
                  description: The plan description. No length limit is currently enforced.
                merchant_reference:
                  type: string
                  description: Your own identifier for the plan. No length limit is currently enforced.
                base_amount:
                  type: object
                  description: The default price used for any country without an explicit entry in `country_prices`.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: MAX 3; MIN 3; [ISO 4217](/reference/country-reference).
                    value:
                      type: number
                      description: Multiple of 0.0001.
                      format: float
                frequency:
                  type: object
                  description: The billing frequency for the plan. Subscriptions created from this plan inherit it.
                  required:
                    - type
                    - value
                  properties:
                    type:
                      type: string
                      enum:
                        - DAY
                        - WEEK
                        - MONTH
                        - QUARTER
                        - HALF_YEAR
                        - YEAR
                    value:
                      type: integer
                      format: int32
                country_prices:
                  type: array
                  description: Optional explicit per-country prices. A country not listed falls back to `base_amount`.
                  items:
                    type: object
                    properties:
                      country:
                        type: string
                        description: '[ISO 3166-1](/reference/country-reference).'
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                            format: float
                allowed_payment_methods:
                  type: array
                  description: Payment method types accepted for subscriptions on this plan.
                  items:
                    type: string
                metadata:
                  type: array
                  description: >-
                    Key-value pairs attached to the plan. Independent of any `metadata` set on a subscription created
                    from it.
                  items:
                    type: object
                    properties:
                      key:
                        type: string
                        description: MAX 48.
                      value:
                        type: string
                        description: MAX 512.
                phases:
                  type: array
                  description: >-
                    Optional leading ladder (for example, a trial) before the plan's regular price. Omit for a flat
                    plan. The last entry must be the terminal REGULAR phase with no `duration`.
                  items:
                    type: object
                    required:
                      - order
                      - type
                      - name
                    properties:
                      order:
                        type: integer
                        format: int32
                      name:
                        type: string
                        description: Required, non-empty — each phase must have a name.
                      type:
                        type: string
                        enum:
                          - TRIAL
                          - REGULAR
                      duration:
                        type: object
                        description: Required on every non-terminal phase, omitted on the terminal REGULAR phase.
                        properties:
                          type:
                            type: string
                            enum:
                              - DAY
                              - WEEK
                              - MONTH
                              - YEAR
                          value:
                            type: integer
                            format: int32
                      frequency:
                        type: object
                        description: >-
                          Optional. If omitted, the phase bills as a single lump-sum charge covering the whole
                          `duration`. If set, the phase bills every `frequency` interval instead, and the server
                          computes `total_payments = duration / frequency` (both in the same unit) — e.g. a 3-month
                          duration with a 1-month frequency produces 3 charges. Not applicable to the terminal phase.
                        properties:
                          type:
                            type: string
                            enum:
                              - DAY
                              - WEEK
                              - MONTH
                              - QUARTER
                              - HALF_YEAR
                              - YEAR
                          value:
                            type: integer
                            format: int32
                      amount:
                        type: object
                        description: >-
                          Flat price for the phase. 0 is allowed (a free trial). On a **non-terminal** phase, this or
                          `country_prices` is required (one of the two). On the **terminal** REGULAR phase, omit this
                          entirely — sending it is rejected with `400 BAD_REQUEST` ("The terminal phase price comes from
                          the plan base_amount/country_prices - remove the phase amount"); the terminal price always
                          comes from the plan's own `base_amount`/`country_prices`.
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                            format: float
                      country_prices:
                        type: array
                        description: >-
                          Per-country prices for this phase. On a non-terminal phase, this or `amount` is required. Not
                          applicable to the terminal phase — its pricing always comes from the plan's own
                          `country_prices`.
                        items:
                          type: object
                          properties:
                            country:
                              type: string
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                value:
                                  type: number
                                  format: float
                account_id:
                  type: string
                  description: >-
                    The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID). Required
                    — on this endpoint the account is sent in the request body, not the `X-Account-Code` header.
            examples:
              Plan:
                value:
                  account_id: <your account_id>
                  name: Streaming Pro
                  description: Access to Pro features, billed monthly
                  merchant_reference: streaming-pro-monthly
                  base_amount:
                    currency: USD
                    value: 20
                  frequency:
                    type: MONTH
                    value: 1
                  country_prices:
                    - country: US
                      amount:
                        currency: USD
                        value: 20
                    - country: BR
                      amount:
                        currency: BRL
                        value: 99.9
                  allowed_payment_methods:
                    - CARD
                    - PIX
                  metadata:
                    - key: campaign
                      value: app_store
                  phases:
                    - order: 1
                      name: Intro
                      type: TRIAL
                      duration:
                        type: MONTH
                        value: 3
                      frequency:
                        type: MONTH
                        value: 1
                      amount:
                        currency: USD
                        value: 9.99
                      country_prices:
                        - country: BR
                          amount:
                            currency: BRL
                            value: 49.9
                    - order: 2
                      name: Regular
                      type: REGULAR
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 00000000-0000-4000-8000-000000000001
                    account_id: 00000000-0000-4000-8000-000000000002
                    name: Streaming Pro
                    description: Access to Pro features, billed monthly
                    merchant_reference: streaming-pro-monthly
                    status: ACTIVE
                    base_amount:
                      currency: USD
                      value: 20
                    frequency:
                      type: MONTH
                      value: 1
                    country_prices:
                      - country: US
                        amount:
                          currency: USD
                          value: 20
                      - country: BR
                        amount:
                          currency: BRL
                          value: 99.9
                    allowed_payment_methods:
                      - CARD
                      - PIX
                    metadata:
                      - key: campaign
                        value: app_store
                    phases:
                      - order: 1
                        name: Intro
                        type: TRIAL
                        duration:
                          type: MONTH
                          value: 3
                        frequency:
                          type: MONTH
                          value: 1
                        amount:
                          currency: USD
                          value: 9.99
                      - order: 2
                        name: Regular
                        type: REGULAR
                    created_at: '2024-01-15T10:30:00.000000Z'
                    updated_at: '2024-01-15T10:30:00.000000Z'
                    account_ids:
                      - a5b50509-2f47-444e-8056-feb736ad89ae
                    retries: null
                    retry_split: null
                    meters: []
              schema:
                type: object
                properties:
                  id:
                    type: string
                  account_id:
                    type: string
                  name:
                    type: string
                  description:
                    type:
                      - string
                      - 'null'
                  merchant_reference:
                    type: string
                  status:
                    type: string
                    example: ACTIVE
                  base_amount:
                    type: object
                    properties:
                      currency:
                        type: string
                      value:
                        type: number
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                      value:
                        type: integer
                  country_prices:
                    type: array
                    items:
                      type: object
                      properties:
                        country:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                  allowed_payment_methods:
                    type: array
                    items:
                      type: string
                  metadata:
                    type: array
                    items:
                      type: object
                  phases:
                    type: array
                    items:
                      type: object
                  created_at:
                    type: string
                  updated_at:
                    type: string
                  account_ids:
                    type: array
                    items:
                      type: string
                    description: Account ids.
                  retries:
                    nullable: true
                    description: Retries.
                  retry_split:
                    nullable: true
                    description: Retry split.
                  meters:
                    type: array
                    items: {}
                    description: Meters.
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Result
      deprecated: false
      tags:
        - Plans
  /subscriptions/plans/{plan_id}:
    get:
      summary: Retrieve Plan
      description: ''
      operationId: retrieve-plan
      parameters:
        - in: header
          name: X-Account-Code
          required: true
          schema:
            type: string
          description: >-
            The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID). Required —
            omitting it returns `400 BAD_REQUEST` ("Invalid x-account-code header.").
        - name: plan_id
          in: path
          description: The unique identifier of the plan.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 00000000-0000-4000-8000-000000000001
                    account_id: 00000000-0000-4000-8000-000000000002
                    name: Streaming Pro
                    description: Access to Pro features, billed monthly
                    merchant_reference: streaming-pro-monthly
                    status: ACTIVE
                    base_amount:
                      currency: USD
                      value: 20
                    frequency:
                      type: MONTH
                      value: 1
                    country_prices:
                      - country: US
                        amount:
                          currency: USD
                          value: 20
                      - country: BR
                        amount:
                          currency: BRL
                          value: 99.9
                    allowed_payment_methods:
                      - CARD
                      - PIX
                    metadata:
                      - key: campaign
                        value: app_store
                    phases:
                      - order: 1
                        name: Intro
                        type: TRIAL
                        duration:
                          type: MONTH
                          value: 3
                        frequency:
                          type: MONTH
                          value: 1
                        amount:
                          currency: USD
                          value: 9.99
                        total_payments: 3
                        country_prices: []
                      - order: 2
                        name: Regular
                        type: REGULAR
                        duration: null
                        frequency: null
                        amount: null
                        total_payments: null
                        country_prices: []
                    created_at: '2024-01-15T10:30:00.000000Z'
                    updated_at: '2024-01-15T10:30:00.000000Z'
                    account_ids:
                      - a5b50509-2f47-444e-8056-feb736ad89ae
                    retries: null
                    retry_split: null
                    meters: []
              schema:
                type: object
                properties:
                  id:
                    type: string
                  account_id:
                    type: string
                  name:
                    type: string
                  description:
                    type:
                      - string
                      - 'null'
                  merchant_reference:
                    type: string
                  status:
                    type: string
                  base_amount:
                    type: object
                    properties:
                      currency:
                        type: string
                      value:
                        type: number
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                      value:
                        type: integer
                  country_prices:
                    type: array
                    items:
                      type: object
                      properties:
                        country:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                  allowed_payment_methods:
                    type: array
                    items:
                      type: string
                  metadata:
                    type: array
                    items:
                      type: object
                  phases:
                    type: array
                    items:
                      type: object
                  created_at:
                    type: string
                  updated_at:
                    type: string
                  account_ids:
                    type: array
                    items:
                      type: string
                    description: >-
                      Every account the plan is available on. Always returned; contains `account_id` when the plan is
                      scoped to a single account.
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry configuration subscriptions created from this plan inherit. `null` when the plan sets
                      none.
                  retry_split:
                    type:
                      - object
                      - 'null'
                    description: The Smart Retries A/B split configuration attached to this plan. `null` when none is set.
                  meters:
                    type: array
                    items:
                      type: object
                    description: >-
                      The metered prices attached to this plan. Empty when the plan has no usage-based pricing; see
                      [Attach Meter to Plan](/reference/meters/attach-meter-to-plan).
        '404':
          description: '404'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: PLAN_NOT_FOUND
                    messages:
                      - Plan not found.
                  summary: Result
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: PLAN_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
      deprecated: false
      tags:
        - Plans
  /subscriptions/plans/{plan_id}/status:
    post:
      summary: Cancel Plan
      description: >-
        The only supported status transition. Canceling a plan blocks new subscriptions AND synchronously
        cascade-cancels every subscription currently linked to it.
      operationId: cancel-plan
      parameters:
        - in: header
          name: X-Account-Code
          required: true
          schema:
            type: string
          description: >-
            The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID). Required —
            omitting it returns `400 BAD_REQUEST` ("Invalid x-account-code header.").
        - name: plan_id
          in: path
          description: The unique identifier of the plan.
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - status
              properties:
                status:
                  type: string
                  enum:
                    - CANCELED
            examples:
              Result:
                value:
                  status: CANCELED
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 00000000-0000-4000-8000-000000000001
                    status: CANCELED
                    affected_subscriptions: 3
              schema:
                type: object
                properties:
                  id:
                    type: string
                  status:
                    type: string
                  affected_subscriptions:
                    type: integer
                    description: The number of subscriptions that were cascade-canceled along with the plan.
        '400':
          description: >-
            400. Reserved for a plan status outside ACTIVE/CANCELED — not currently reachable, since those are the
            plan's only two statuses today. Re-canceling an already-CANCELED plan does NOT hit this: it re-runs the
            cascade and returns 200.
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_STATE
                    messages:
                      - The plan state does not support the action requested.
                  summary: Result
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_STATE
                  messages:
                    type: array
                    items:
                      type: string
      deprecated: false
      tags:
        - Plans
  /subscriptions/{subscription_id}:
    get:
      summary: Retrieve Subscription
      description: ''
      operationId: retrieve-subscription
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of the subscription.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: sub_001
                    description: streaming service
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    country: US
                    merchant_reference: 001_marzo_23
                    soft_descriptor: ACME SUBSCRIPTION
                    status: ACTIVE
                    amount:
                      currency: USD
                      value: 12100
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 10
                      current: 2
                      next_at: '2023-02-16T20:00:00.786342Z'
                    current_period_start: '2023-01-16T20:00:00.912480Z'
                    current_period_end: '2023-02-16T20:00:00.786342Z'
                    billing_date: null
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        installments: null
                        network_transaction_id: null
                        usage: FIRST
                    availability:
                      start_at: '2024-01-16T00:00:00.786342Z'
                      finish_at: '2024-05-26T20:00:00.786342Z'
                    retries:
                      retry_on_decline: true
                      amount: 4
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: ''
                    initial_payment_validation: false
                    metadata:
                      - key: sub_ext_id
                        value: AA001
                    additional_data: null
                    reason: null
                    renewal_notification_days: 3
                    payments:
                      - 5104911d-5df9-229e-8468-bd41abea1a4s
                    subscription_agreement_id: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    plan_id: 00000000-0000-4000-8000-000000000001
                    plan_assigned_at: '2023-12-16T20:46:54.786342Z'
                    previous_subscription_id: null
                    phases:
                      - order: 1
                        name: Intro
                        type: TRIAL
                        duration:
                          type: MONTH
                          value: 3
                        frequency:
                          type: MONTH
                          value: 1
                        amount:
                          currency: USD
                          value: 9.99
                        total_payments: 3
                        country_prices: []
                      - order: 2
                        name: Regular
                        type: REGULAR
                        duration: null
                        frequency: null
                        amount: null
                        total_payments: null
                        country_prices: []
                    current_phase: REGULAR
                    billing_phases:
                      - order: 1
                        type: TRIAL
                        name: Intro
                        amount:
                          currency: USD
                          value: 9.99
                        frequency:
                          type: MONTH
                          value: 1
                        start_cycle: 0
                        end_cycle: 2
                    pending_plan_change: null
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T21:00:54.786342Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 7304911d-5df9-429e-8488-ad41abea1a4c
                  name:
                    type: string
                    example: sub_001
                  description:
                    type:
                      - string
                      - 'null'
                    example: streaming service
                  account_id:
                    type: string
                    example: 2404911d-5df9-429e-8488-ad41abea1a4b
                  country:
                    type: string
                    description: The subscription's country (ISO 3166-1 alpha-2).
                    example: US
                  merchant_reference:
                    type: string
                    example: 001_marzo_23
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    example: ACME SUBSCRIPTION
                  status:
                    type: string
                    example: ACTIVE
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 12100
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 10
                        default: 0
                      current:
                        type: integer
                        example: 2
                        default: 0
                      next_at:
                        type: string
                        example: '2023-02-16T20:00:00.786342Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 3t04911d-5df9-429e-8488-ad41abea1a2c
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      vaulted_token:
                        type: string
                        example: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-01-16T00:00:00.786342Z'
                      finish_at:
                        type:
                          - string
                          - 'null'
                        example: '2024-05-26T20:00:00.786342Z'
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry policy applied when a recurring charge is declined. See
                      [Retries](/docs/payment-features/subscriptions/retries).
                    properties:
                      retry_on_decline:
                        type: boolean
                        description: Whether declined charges are retried at all.
                        example: true
                      amount:
                        type: integer
                        description: >-
                          How many retries a billing cycle gets. Capped by your environment's retry schedule length (6
                          in production).
                        example: 4
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  trial_period:
                    type: object
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: ''
                  metadata:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: sub_ext_id
                        value:
                          type: string
                          example: AA001
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  created_at:
                    type: string
                    example: '2023-12-16T20:46:54.786342Z'
                  updated_at:
                    type: string
                    example: '2023-12-16T21:00:54.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: SUBSCRIPTION_NOT_FOUND
                    messages:
                      - Subscription not found.
                  summary: Result
      deprecated: false
      tags:
        - Subscriptions
    patch:
      summary: Update Subscription
      description: ''
      operationId: update-subscription
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of the subscription.
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: The subscription plan name (MAX 255; MIN 3).
                description:
                  type: string
                  description: The subscription plan description (MAX 255; MIN 3).
                account_id:
                  type: string
                  description: >-
                    The unique identifier of the account that will have the subscription plan available to use (MAX 64 ;
                    MIN 36).
                merchant_reference:
                  type: string
                  description: Identification of the subscription plan (MAX 255; MIN 3).
                soft_descriptor:
                  type: string
                  maxLength: 255
                  description: >-
                    Statement descriptor shown on the cardholder's bank statement. Updating it changes the descriptor
                    applied to subsequent rebills generated by the subscription engine. Length and formatting limits
                    vary by provider (for example, Unlimit truncates to 22 characters and Airwallex to 30). Worldpay
                    does not read this field; it builds the statement narrative from `payment_description` instead.
                country:
                  type: string
                  description: The subscription's country.
                amount:
                  type: object
                  description: Specifies the `amount` object, with the value of each subscription payment and the used currency.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: The currency used to make the payment (MAX 3; MIN 3; [ISO 4217](/reference/country-reference)).
                    value:
                      type: number
                      description: The value of each payment of the subscription (multiple of 0.0001).
                      format: float
                frequency:
                  type: object
                  description: >-
                    Specifies the `frequency` object. Defines the billing frequency for the subscription. Including type
                    and value.
                  required:
                    - type
                  properties:
                    type:
                      type: string
                      description: >-
                        The type of interval the subscription will have in time (DAY, WEEK, MONTH). If not set, always
                        MONTH by default.
                      enum:
                        - DAY
                        - WEEK
                        - MONTH
                    value:
                      type: integer
                      description: >-
                        The value between each interval the subscription will have in time. The system will use the
                        default value of 1 if not set.
                      format: int32
                    monthly_billing_day:
                      type: integer
                      description: >-
                        The day of the month when billing is processed. (MAX 31; MIN 1). Only valid for MONTH frequency.
                        If the subscription has not started yet (availability.start_at is in the future), the first
                        billing still occurs at availability.start_at and the billing day applies from the second cycle
                        onward; the resulting first billing period may be shorter than a full cycle and is charged in
                        full.
                billing_cycles:
                  type: object
                  description: Specifies the `billing_cycles` object. Defines the number of charges associated to the subscription.
                  properties:
                    total:
                      type: integer
                      description: >-
                        The total number of billing cycles for the subscription (MIN 1). On update it must also be
                        greater than or equal to the current `billing_cycles.current`. A value below either limit is
                        rejected with a `400` error. Sending `null`, or omitting this field, leaves the current value
                        unchanged; clearing a previously set cycle limit is not supported.
                      format: int32
                      minimum: 1
                customer_payer:
                  type: object
                  description: Specifies the `customer_payer` object to identify the customer.
                  properties:
                    id:
                      type: string
                      description: >-
                        The unique identifier of the customer (MAX 255; MIN 3). Send it only to change the customer of
                        the subscription.
                    ip_address:
                      type: string
                      maxLength: 45
                      example: 203.0.113.7
                      description: >-
                        IP address of the payer at the initial customer-initiated payment (IPv4 or IPv6, up to 45
                        characters). Sending it replaces the stored value, which is sent on every renewal; omitting it
                        (or sending an empty value) leaves the stored value unchanged, and it cannot be cleared. A value
                        that is not a valid IPv4 or IPv6 address returns `400 BAD_REQUEST` ("The
                        customer_payer.ip_address must be a valid IPv4 or IPv6 address."). Only stored and returned for
                        organizations enabled for this feature.
                payment_method:
                  type: object
                  description: >-
                    Specifies the `payment_method` object. Supported types are `CARD` and `PAYPAL_ENROLLMENT`. When you
                    send `payment_method`, `type` and `vaulted_token` are required, even if you only change
                    `card.usage`.
                  properties:
                    type:
                      type: string
                      description: Payment method type.
                      enum:
                        - CARD
                    vaulted_token:
                      type: string
                      description: 'The vaulted token (UUID, MAX: 64; MIN: 36). Required whenever `payment_method` is sent.'
                    card:
                      type: object
                      description: Specifies the card object.
                      properties:
                        usage:
                          type: string
                          description: >-
                            Indicates whether this stored credential is being used for the first time (FIRST) or has
                            been used before (USED). Required if a CIT payment was created before the subscription —
                            without it, rebills are treated as CITs and may be declined.
                          enum:
                            - FIRST
                            - USED
                  required:
                    - type
                    - vaulted_token
                availability:
                  type: object
                  description: >-
                    Specifies the `availability` object. Defines a date interval based on starting and ending dates when
                    the subscription is available to use. If this object is omitted from the request, the availability
                    dates are left unchanged. When it is included, omitting `finish_at` (or sending it as `null`)
                    removes any previously set end date; omitting `start_at` leaves the current start date unchanged.
                  properties:
                    start_at:
                      type: string
                      description: >-
                        The start date that the subscription plan will be available to use. If not set, the subscription
                        is available from the moment it is created. On update, omitting this field leaves the current
                        start date unchanged, and the start date can only be moved earlier: sending a later date returns
                        a 400 error.
                      format: date-time
                    finish_at:
                      type:
                        - string
                        - 'null'
                      description: >-
                        The end date until the subscription will be available to use. When the `availability` object is
                        included in the request, omit this field or send `null` to clear a previously set end date: the
                        subscription becomes open-ended and keeps renewing until it is canceled. Send a date-time to set
                        or update the end date. Note that `availability.finish_at` and `billing_cycles.total` are
                        independent end conditions: whichever is reached first completes the subscription.
                      format: date-time
                retries:
                  type: object
                  description: >-
                    The retries configuration to apply going forward. Accepts the same object as Create Subscription —
                    including strategy and schedule — except cancel_on_exhausted_retries, which is create-only. Changes
                    apply the next time retries are scheduled: a billing cycle already running its retries finishes on
                    the configuration it started with, and the update takes effect from the next cycle.
                  properties:
                    retry_on_decline:
                      type: boolean
                      description: If we should retry a payment or not after a first decline. False by default.
                    amount:
                      type: integer
                      description: >-
                        The number of retries the subscription will attempt, for the DEFAULT and SMART strategies. The
                        maximum equals your environment's configured retry schedule length — 6 in production; a higher
                        value is rejected with 400 (Max retries attempts exceeded). With CUSTOM_SCHEDULE the amount is
                        derived from the length of the schedule array instead.
                      format: int32
                    strategy:
                      type: string
                      description: >-
                        The retry strategy. Allowed values: DEFAULT (the fixed retry schedule), SMART
                        (machine-learning-based retry timing, applied from the second retry onward) or CUSTOM_SCHEDULE
                        (uses the per-attempt schedule array you provide). Sending a schedule without a strategy implies
                        CUSTOM_SCHEDULE.
                      enum:
                        - DEFAULT
                        - SMART
                        - CUSTOM_SCHEDULE
                    schedule:
                      type: array
                      description: >-
                        Per-attempt retry schedule; replaces the stored schedule as a whole. Up to 7 attempts, attempt
                        numbers must run sequentially from 1, and each delay_seconds must be between 1 and 604800 (7
                        days). Sending it implies strategy CUSTOM_SCHEDULE and sets the retry amount to the schedule
                        length.
                      items:
                        properties:
                          attempt:
                            type: number
                            description: Number of the retry attempt
                          delay_seconds:
                            type: number
                            description: Specifies the amount of seconds between each retry.
                        type: object
                    stop_on_hard_decline:
                      type: boolean
                      description: >-
                        When true, the retry schedule stops for the current billing cycle after a hard decline. On its
                        own, the subscription remains ACTIVE and billing advances to the next cycle; no subscription is
                        canceled or paused and no subscription webhook is emitted. If cancel_on_exhausted_retries is
                        also true, the subscription is canceled instead.
                    cancel_on_exhausted_retries:
                      type: boolean
                      description: >-
                        Create-only: this flag cannot be changed after the subscription is created — sending a value
                        different from the one stored on the subscription returns 400 (The field
                        'retries.cancel_on_exhausted_retries' can only be set when the subscription is created); echoing
                        the current value is accepted. When true, the subscription is canceled once retries for a
                        billing cycle end without a successful payment, instead of remaining ACTIVE and advancing to the
                        next cycle. cancellation_source is set to RETRIES_EXHAUSTED and a single SUBSCRIPTION.CANCEL
                        webhook is emitted. Defaults to false. The cancellation itself is final, so Retry Subscription
                        is rejected afterwards.
                plan_change:
                  type:
                    - object
                    - 'null'
                  description: >-
                    Moves the subscription to another plan. `effective: NEXT_BILLING_CYCLE` (the default) schedules the
                    change for the next renewal — no proration, no mid-cycle charge. `effective: IMMEDIATE` applies the
                    change in place, in this call: the subscription keeps its `id`, the new plan's price bills from the
                    next charge, and `billing_cycle_behavior` decides what happens to the billing anchor. The
                    subscription must be ACTIVE or TRIALING and already on a plan; the target plan must be ACTIVE. For
                    scheduled changes only one can be pending at a time — send `"plan_change": null` to undo it before
                    it applies (an IMMEDIATE change while another is pending returns 409). `amount`, `frequency`,
                    `billing_date` and `country` are managed by the plan and cannot be sent for a plan-linked
                    subscription — combining any of them with `plan_change` returns 400.
                  required:
                    - plan_id
                  properties:
                    plan_id:
                      type: string
                      description: >-
                        The identifier of the target plan. Required. The target plan must be ACTIVE and priced in the
                        subscription's currency.
                    effective:
                      type: string
                      enum:
                        - NEXT_BILLING_CYCLE
                        - IMMEDIATE
                      description: >-
                        When the change applies. NEXT_BILLING_CYCLE (default): the current cycle bills the current
                        plan's price, the next one bills the new plan's. IMMEDIATE: the subscription moves to the target
                        plan in this call - unlike a scheduled change, this also works in the final billing cycle.
                    phases_behavior:
                      type: string
                      enum:
                        - START_FROM_REGULAR
                        - HONOR_PHASES
                      description: >-
                        What happens when the target plan has phases. START_FROM_REGULAR (default) enters the regular
                        phase directly — no re-lived trials. HONOR_PHASES enters through the target plan's phase
                        schedule.
                    billing_cycle_behavior:
                      type: string
                      enum:
                        - KEEP
                        - RESTART
                      description: >-
                        What happens to the billing anchor when the plan changes in place with `effective: IMMEDIATE`.
                        KEEP (default — omitting the field behaves identically): the next charge date is untouched.
                        RESTART: the next charge re-anchors to the moment of the change plus the new plan's frequency —
                        the anchor alone resets; billing cycle counters, the retry configuration and the subscription
                        status survive. RESTART requires `effective: IMMEDIATE` and returns 400 with a scheduled change;
                        KEEP alongside a scheduled change is accepted and simply schedules the change as usual.
                        Write-only: this field is never echoed in any response.
                billing_cycle_behavior:
                  type: string
                  enum:
                    - KEEP
                    - RESTART
                  description: >-
                    For subscriptions that are not linked to a plan: re-anchors billing in the same way as
                    `plan_change.billing_cycle_behavior`, typically combined with a `frequency` change in the same call
                    (e.g. monthly to yearly, restarting the cycle from today). KEEP (default): the next charge date is
                    untouched. RESTART: re-anchors the next charge to now plus the (possibly updated) frequency; the
                    anchor alone resets — cycle counters, the retry configuration and the subscription status survive.
                    On a subscription that has not started yet (CREATED — accepted here, unlike `plan_change`), the
                    anchor clamps to its start date. Rules: cannot be combined with `plan_change` (400 — use the nested
                    field); on a plan-linked subscription this field returns 400 (managed through `plan_change`); a
                    PAUSED subscription returns 409 INVALID_SUBSCRIPTION_STATUS. Write-only: never echoed in any
                    response.
                metadata:
                  type: object
                  description: >-
                    Set of key-value pairs that you can attach to an object. This can be useful for storing additional
                    information about the object in a structured format. Individual keys can be unset by posting an
                    empty value to them. All keys can be unset by posting an empty value to metadata.
                  properties:
                    key:
                      type: string
                      description: Object title that represents the key-value pair inside the metadata (MAX 48 ; MIN 1).
                    value:
                      type: string
                      description: Object value for the key defined  (MAX 512 ; MIN 1).
                refund_rule:
                  type:
                    - object
                    - 'null'
                  description: >-
                    Configures the refund rule used to resolve a later CUSTOM cancel refund when that cancel request
                    sends no refund_amount of its own. Available to organizations enabled for it; contact Yuno. Send
                    null to clear a previously configured rule.
                  properties:
                    type:
                      type: string
                      enum:
                        - PERCENT
                        - FIXED
                      description: >-
                        PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a fixed
                        amount.
                      example: FIXED
                    percent:
                      type: number
                      description: Required, and only allowed, when type is PERCENT (0-100).
                      example: 50
                    amount:
                      type: object
                      description: Required, and only allowed, when type is FIXED.
                      properties:
                        value:
                          type: number
                          example: 10000
                        currency:
                          type: string
                          description: Must match the subscription's own currency.
                          example: COP
            examples:
              Update card usage:
                summary: Mark the card as already used, so rebills are sent as subsequent payments
                value:
                  payment_method:
                    type: CARD
                    vaulted_token: <current vaulted_token of the subscription>
                    card:
                      usage: USED
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                UPDATE SUBSCRIPTION:
                  value:
                    id: 0c7fed3e-ee0d-4d34-9547-778be4ec0798
                    name: Test Subscription
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    country: US
                    description: Subscription Test
                    merchant_reference: subscription-ref-merchant-AA01
                    soft_descriptor: ACME SUBSCRIPTION
                    status: ACTIVE
                    amount:
                      currency: USD
                      value: 15000
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 12
                      current: 1
                      next_at: '2024-09-30T12:04:23.265393Z'
                    customer_payer:
                      id: a1d3b664-e32a-4508-9da1-9ede3e62a60c
                    payment_method:
                      type: CARD
                      vaulted_token: d4aa3586-def2-4705-b7cd-fe064bb764e6
                    availability:
                      start_at: '2024-09-30T12:04:23.265393Z'
                      finish_at: null
                    metadata: null
                    pending_plan_change:
                      plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name: Pro
                      direction: UPGRADE
                      effective: NEXT_BILLING_CYCLE
                      phases_behavior: START_FROM_REGULAR
                      applies_at: '2024-10-30T12:04:23.265372Z'
                      requested_at: '2024-09-30T12:04:23.265372Z'
                    created_at: '2024-09-30T12:04:23.265372Z'
                    updated_at: '2024-09-30T12:04:23.265372Z'
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: USD
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 0c7fed3e-ee0d-4d34-9547-778be4ec0798
                  name:
                    type: string
                    example: Test Subscription
                  account_id:
                    type: string
                    example: 493e9374-510a-4201-9e09-de669d75f256
                  country:
                    type: string
                    example: US
                  description:
                    type:
                      - string
                      - 'null'
                    example: Subscription Test
                  merchant_reference:
                    type: string
                    example: subscription-ref-merchant-AA01
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    description: Soft descriptor.
                    example: ACME SUBSCRIPTION
                  status:
                    type: string
                    example: ACTIVE
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 15000
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 12
                        default: 0
                      current:
                        type: integer
                        example: 1
                        default: 0
                      next_at:
                        type: string
                        example: '2024-09-30T12:04:23.265393Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: a1d3b664-e32a-4508-9da1-9ede3e62a60c
                      ip_address:
                        type: string
                        maxLength: 45
                        example: 203.0.113.7
                        description: >-
                          IP address of the payer stored for renewals. Returned only on single-subscription responses
                          (create, retrieve, update, pause, resume, reactivate and cancel) and only when one was
                          supplied; never returned on list items or in webhooks.
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      vaulted_token:
                        type: string
                        example: d4aa3586-def2-4705-b7cd-fe064bb764e6
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-09-30T12:04:23.265393Z'
                      finish_at: {}
                  metadata: {}
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: The plan change scheduled for the next billing cycle, or null when none is pending.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2024-10-30T12:04:23.265372Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2024-09-30T12:04:23.265372Z'
                  created_at:
                    type: string
                    example: '2024-09-30T12:04:23.265372Z'
                  updated_at:
                    type: string
                    example: '2024-09-30T12:04:23.265372Z'
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry policy applied when a recurring charge is declined. See
                      [Retries](/docs/payment-features/subscriptions/retries).
                    properties:
                      retry_on_decline:
                        type: boolean
                        description: Whether declined charges are retried at all.
                        example: true
                      amount:
                        type: integer
                        description: >-
                          How many retries a billing cycle gets. Capped by your environment's retry schedule length (6
                          in production).
                        example: 4
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  trial_period:
                    type: object
                    description: Trial period.
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    description: Subscription agreement id.
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request.
                PIX AUTOMATICO CADENCE NOT SUPPORTED:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        Pix Automático only supports weekly, monthly, quarterly, half-yearly or yearly frequencies with
                        value 1.
                PLAN CHANGE BEHAVIOR INVALID VALUE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - RESET is invalid for plan_change.billing_cycle_behavior field
                  summary: plan_change.billing_cycle_behavior accepts only KEEP or RESTART.
                BEHAVIOR COMBINED WITH PLAN CHANGE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - >-
                        The billing_cycle_behavior field cannot be combined with plan_change; use
                        plan_change.billing_cycle_behavior.
                  summary: When you send plan_change, put the behaviour inside it rather than at the top level.
                RESTART REQUIRES IMMEDIATE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - The plan_change.billing_cycle_behavior value RESTART requires effective IMMEDIATE.
                  summary: RESTART re-anchors the billing date, so it is only valid on an immediate plan change.
                PLAN CHANGE ALREADY SCHEDULED:
                  value:
                    code: PLAN_CHANGE_ALREADY_SCHEDULED
                    messages:
                      - 'A plan change is already scheduled for this subscription. Undo it first with plan_change: null.'
                  summary: Only one plan change may be pending at a time.
                REFUND RULE CURRENCY MISMATCH:
                  value:
                    code: REFUND_RULE_CURRENCY_MISMATCH
                    messages:
                      - refund_rule.amount.currency USD must match the subscription currency COP.
                  summary: A FIXED refund_rule must be denominated in the subscription's own currency.
                REFUND RULE PERCENT OUT OF RANGE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - refund_rule.percent must be between 0 and 100.
      deprecated: false
      tags:
        - Subscriptions
  /subscriptions/{subscription_id}/cancel:
    post:
      summary: Cancel Subscription
      description: ''
      operationId: cancel-subscription
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of a subscription.
          schema:
            type: string
          required: true
      requestBody:
        required: false
        content:
          application/json:
            examples:
              IMMEDIATE (empty body):
                value: {}
              SCHEDULE AFTER 3 CYCLES:
                value:
                  schedule:
                    after_cycles: 3
              SCHEDULE AT A DATE:
                value:
                  schedule:
                    at: '2026-11-01T00:00:00Z'
              SCHEDULE AND SKIP RETRIES IF PAST_DUE:
                value:
                  schedule:
                    after_cycles: 1
                    past_due_behavior: SKIP_RETRIES
              UNDO A PENDING SCHEDULE:
                value:
                  schedule: null
              CANCEL WITH A PRORATED REFUND:
                value:
                  refund: PRORATED
              CANCEL WITH A CUSTOM REFUND AMOUNT:
                value:
                  refund: CUSTOM
                  refund_amount:
                    value: 5
                    currency: USD
              CANCEL WITH CUSTOM REFUND (RULE RESOLVES IT):
                value:
                  refund: CUSTOM
            schema:
              type: object
              properties:
                refund:
                  type: string
                  description: >-
                    NONE (default), PRORATED, FULL, or CUSTOM. Computes a refund quote for the current billing cycle on
                    an immediate cancel. Cannot be combined with schedule.
                  example: PRORATED
                refund_amount:
                  type: object
                  description: >-
                    Required, and only allowed, when refund is CUSTOM. Must not exceed the current cycle's charged
                    amount.
                  properties:
                    value:
                      type: number
                      example: 5
                    currency:
                      type: string
                      description: Must match the subscription's own currency.
                      example: USD
                schedule:
                  type:
                    - object
                    - 'null'
                  properties:
                    after_cycles:
                      type: integer
                      description: >-
                        Cancel after this many more billing cycles. 1-60, capped at the cycles remaining. Exactly one of
                        after_cycles/at is required.
                      example: 3
                    at:
                      type: string
                      description: >-
                        Cancel at this ISO-8601 date-time (UTC offset required). Must be in the future and before
                        availability.finish_at. Exactly one of after_cycles/at is required.
                      example: '2026-11-01T00:00:00Z'
                    past_due_behavior:
                      type: string
                      description: >-
                        EXHAUST_RETRIES (default) waits for the in-flight cycle's retries before firing; SKIP_RETRIES
                        fires immediately even if the subscription is PAST_DUE.
                      example: EXHAUST_RETRIES
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                CANCEL SUBSCRIPTION:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: sub_001
                    description: streaming service
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    merchant_reference: 001_marzo_23
                    status: CANCELED
                    subscription_plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    amount:
                      currency: USD
                      value: 12100
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 10
                      current: 2
                      next_at: '2023-02-16T20:00:00.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      token: 9104911d-5df9-429e-8488-ad41abea1a4b
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        verify: false
                        card_data:
                          number: '4507990000000010'
                          expiration_month: 10
                          expiration_year: 2025
                          security_code: 123
                          holder_name: JOHN DOE
                    availability:
                      start_at: '2024-01-16T00:00:00.786342Z'
                      finish_at: '2024-05-26T20:00:00.786342Z'
                    metadata:
                      - key: sub_ext_id
                        value: AA001
                    payments:
                      - 5104911d-5df9-229e-8468-bd41abea1a4s
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T21:00:54.786342Z'
                    country: US
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: USD
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: ACME SUBSCRIPTION
                    renewal_notification_days: null
                    cancellation_time: '2026-10-23T08:53:58.316841Z'
                    cancellation_source: MERCHANT
                    ending_time: null
                    pending_plan_change: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
                    refund: null
                CANCELLATION SCHEDULED:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: sub_001
                    description: streaming service
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    merchant_reference: 001_marzo_23
                    status: ACTIVE
                    subscription_plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    amount:
                      currency: USD
                      value: 12100
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 10
                      current: 2
                      next_at: '2023-02-16T20:00:00.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    retries:
                      retry_on_decline: true
                      amount: 4
                      strategy: SMART
                    cancel_scheduled:
                      mode: AFTER_CYCLES
                      after_cycles: 3
                      at: '2024-03-16T20:00:00.786342Z'
                      requested_at: '2023-12-16T21:00:54.786342Z'
                      past_due_behavior: EXHAUST_RETRIES
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T21:00:54.786342Z'
                    country: US
                    payment_method:
                      type: CARD
                      vaulted_token: 6477c344-6c33-47d7-880c-867da866eeaf
                      card:
                        installments: 3
                        network_transaction_id: null
                        usage: USED
                    availability:
                      start_at: '2030-01-01T00:00:00Z'
                      finish_at: null
                    metadata:
                      - key: plan
                        value: gold
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: USD
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: ACME SUBSCRIPTION
                    renewal_notification_days: null
                    cancellation_time: '2026-10-23T08:53:58.316841Z'
                    cancellation_source: MERCHANT
                    ending_time: null
                    pending_plan_change: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
                    refund: null
                CANCELED FROM PAST_DUE (RETRIES STOPPED, UNPAID CYCLE):
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: sub_001
                    description: streaming service
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    merchant_reference: 001_marzo_23
                    status: CANCELED
                    subscription_plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    amount:
                      currency: USD
                      value: 12100
                    billing_cycles:
                      total: 10
                      current: 2
                      next_at: '2023-02-16T20:00:00.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    retries:
                      retry_on_decline: true
                      amount: 4
                      strategy: SMART
                      stopped: true
                      attempts_made: 2
                      outcome: ABANDONED
                    unpaid_cycle:
                      cycle_number: 2
                      amount:
                        currency: USD
                        value: 12100
                      attempts: 2
                      last_failure_code: DECLINED_BY_BANK
                    cancel_scheduled: null
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T21:00:54.786342Z'
                    country: US
                    frequency:
                      type: MONTH
                      value: 1
                    payment_method:
                      type: CARD
                      vaulted_token: 6477c344-6c33-47d7-880c-867da866eeaf
                      card:
                        installments: 3
                        network_transaction_id: null
                        usage: USED
                    availability:
                      start_at: '2030-01-01T00:00:00Z'
                      finish_at: null
                    metadata:
                      - key: plan
                        value: gold
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: USD
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: ACME SUBSCRIPTION
                    renewal_notification_days: null
                    cancellation_time: '2026-10-23T08:53:58.316841Z'
                    cancellation_source: MERCHANT
                    ending_time: null
                    pending_plan_change: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
                    refund: null
                CANCELED WITH A PRORATED REFUND QUOTE:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: sub_001
                    description: streaming service
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    merchant_reference: 001_marzo_23
                    status: CANCELED
                    subscription_plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    amount:
                      currency: USD
                      value: 12100
                    billing_cycles:
                      total: 10
                      current: 4
                      next_at: '2023-02-16T20:00:00.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    refund:
                      mode: PRORATED
                      amount:
                        value: 20
                        currency: USD
                      unused_days: 20
                      period_days: 30
                      basis:
                        billing_cycle: 4
                        charged_amount:
                          value: 30
                          currency: USD
                        payment_id: 9104911d-5df9-429e-8488-ad41abea1a5e
                        charged_at: '2023-11-16T20:00:00.786342Z'
                      execution: MERCHANT
                      quoted_at: '2023-12-16T21:00:54.786342Z'
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T21:00:54.786342Z'
                    country: US
                    frequency:
                      type: MONTH
                      value: 1
                    payment_method:
                      type: CARD
                      vaulted_token: 6477c344-6c33-47d7-880c-867da866eeaf
                      card:
                        installments: 3
                        network_transaction_id: null
                        usage: USED
                    availability:
                      start_at: '2030-01-01T00:00:00Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    metadata:
                      - key: plan
                        value: gold
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: USD
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: ACME SUBSCRIPTION
                    renewal_notification_days: null
                    cancellation_time: '2026-10-23T08:53:58.316841Z'
                    cancellation_source: MERCHANT
                    ending_time: null
                    pending_plan_change: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
                CANCELED WITH A CUSTOM REFUND - THE REQUEST AMOUNT WINS:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: SUB-108B merchant precedence subject G
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    country: CO
                    description: null
                    merchant_reference: pa-sub108bg-1789488892790-438550
                    status: CANCELED
                    amount:
                      currency: COP
                      value: 45000
                    frequency:
                      type: MINUTES
                      value: 1
                    billing_cycles:
                      total: null
                      current: 4
                      paid: 3
                      next_at: '2026-09-15T16:17:57.79Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        installments: null
                        network_transaction_id: '615803391389209'
                        usage: USED
                    availability:
                      start_at: '2026-09-15T16:14:57.79Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: SMART
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    metadata: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: ''
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: null
                    renewal_notification_days: null
                    cancellation_time: '2026-09-15T16:17:20.597473Z'
                    cancellation_source: MERCHANT
                    ending_time: null
                    created_at: '2026-09-15T16:14:53.58767Z'
                    updated_at: '2026-09-15T16:17:20.597473Z'
                    pending_plan_change: null
                    current_period_start: '2026-09-15T16:16:57.79Z'
                    current_period_end: '2026-09-15T16:17:57.79Z'
                    refund_rule:
                      type: FIXED
                      amount:
                        currency: COP
                        value: 10000
                    refund:
                      mode: CUSTOM
                      amount:
                        currency: COP
                        value: 5000
                      unused_days: 0
                      period_days: 0
                      basis:
                        billing_cycle: 3
                        charged_amount:
                          currency: COP
                          value: 45000
                        payment_id: 857de7e6-47eb-49be-99ee-7e1239c4e154
                        charged_at: '2026-09-15T16:16:57.804759Z'
                      execution: MERCHANT
                      quoted_at: '2026-09-15T16:17:20.59332Z'
                CANCELED WITH A CUSTOM REFUND - THE CONFIGURED RULE WINS:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: SUB-108B merchant precedence subject H
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    country: CO
                    description: null
                    merchant_reference: pa-sub108bh-1789488893775-983485
                    status: CANCELED
                    amount:
                      currency: COP
                      value: 45000
                    frequency:
                      type: MINUTES
                      value: 1
                    billing_cycles:
                      total: null
                      current: 4
                      paid: 3
                      next_at: '2026-09-15T16:17:58.775Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        installments: null
                        network_transaction_id: '615803391389209'
                        usage: USED
                    availability:
                      start_at: '2026-09-15T16:14:58.775Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: SMART
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    metadata: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: ''
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: null
                    renewal_notification_days: null
                    cancellation_time: '2026-09-15T16:17:21.838701Z'
                    cancellation_source: MERCHANT
                    ending_time: null
                    created_at: '2026-09-15T16:14:54.30455Z'
                    updated_at: '2026-09-15T16:17:21.838701Z'
                    pending_plan_change: null
                    current_period_start: '2026-09-15T16:16:58.775Z'
                    current_period_end: '2026-09-15T16:17:58.775Z'
                    refund_rule:
                      type: FIXED
                      amount:
                        currency: COP
                        value: 10000
                    refund:
                      mode: CUSTOM
                      amount:
                        currency: COP
                        value: 10000
                      unused_days: 0
                      period_days: 0
                      basis:
                        billing_cycle: 3
                        charged_amount:
                          currency: COP
                          value: 45000
                        payment_id: a35cb164-e68f-45f0-954e-1fe34e4203eb
                        charged_at: '2026-09-15T16:16:58.790108Z'
                      execution: MERCHANT
                      quoted_at: '2026-09-15T16:17:21.837768Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 7304911d-5df9-429e-8488-ad41abea1a4c
                  name:
                    type: string
                    example: sub_001
                  description:
                    type:
                      - string
                      - 'null'
                    example: streaming service
                  account_id:
                    type: string
                    example: 2404911d-5df9-429e-8488-ad41abea1a4b
                  merchant_reference:
                    type: string
                    example: 001_marzo_23
                  status:
                    type: string
                    example: CANCELED
                  subscription_plan_id:
                    type: string
                    example: 1904911d-5df9-429e-8488-ad41abea1a4d
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 12100
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 10
                        default: 0
                      current:
                        type: integer
                        example: 2
                        default: 0
                      next_at:
                        type: string
                        example: '2023-02-16T20:00:00.786342Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 3t04911d-5df9-429e-8488-ad41abea1a2c
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      token:
                        type: string
                        example: 9104911d-5df9-429e-8488-ad41abea1a4b
                      vaulted_token:
                        type: string
                        example: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          verify:
                            type: boolean
                            example: false
                            default: true
                          card_data:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '4507990000000010'
                              expiration_month:
                                type: integer
                                example: 10
                                default: 0
                              expiration_year:
                                type: integer
                                example: 2025
                                default: 0
                              security_code:
                                type: integer
                                example: 123
                                default: 0
                              holder_name:
                                type: string
                                example: JOHN DOE
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                    description: The payment method the subscription charges. A single object, not a list.
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-01-16T00:00:00.786342Z'
                      finish_at:
                        type:
                          - string
                          - 'null'
                        example: '2024-05-26T20:00:00.786342Z'
                  metadata:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: sub_ext_id
                        value:
                          type: string
                          example: AA001
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                    description: >-
                      List of payment IDs created by the subscription. Omitted from the response when the subscription
                      has no payments.
                  retries:
                    type: object
                    properties:
                      retry_on_decline:
                        type: boolean
                      amount:
                        type: integer
                      strategy:
                        type: string
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  created_at:
                    type: string
                    example: '2023-12-16T20:46:54.786342Z'
                  updated_at:
                    type: string
                    example: '2023-12-16T21:00:54.786342Z'
                  country:
                    type: string
                    description: The subscription's country (ISO 3166-1 alpha-2).
                    example: US
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    description: Soft descriptor.
                    example: ACME SUBSCRIPTION
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  trial_period:
                    type: object
                    description: Trial period.
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    description: Subscription agreement id.
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
        '400':
          description: '400'
          content:
            application/json:
              examples:
                INVALID_STATE:
                  value:
                    code: INVALID_STATE
                    messages:
                      - The subscription state does not support the action requested.
                UNKNOWN KEY:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - 'unknown field: reason'
                SCHEDULE MUST CARRY EXACTLY ONE OF at OR after_cycles:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - schedule must carry exactly one of at or after_cycles
                at NOT IN THE FUTURE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - schedule.at must be in the future
                ORGANIZATION NOT ENABLED:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - Scheduled cancellation is not enabled for this organization.
                REFUND NOT COMBINABLE WITH SCHEDULE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - refund cannot be combined with schedule (v1)
                REFUND QUOTING NOT ENABLED FOR THIS ORGANIZATION:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - Refund quote is not enabled for this organization.
                REFUND_AMOUNT EXCEEDS THE CHARGED AMOUNT:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - refund_amount must not exceed the charged amount
                REFUND_AMOUNT CURRENCY MISMATCH:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - refund_amount.currency must match the subscription's currency (USD)
                PRORATED NOT AVAILABLE ON A SUB-DAILY CADENCE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - proration is not available for sub-daily cadences
                REFUND NOT AVAILABLE:
                  value:
                    code: REFUND_NOT_AVAILABLE
                    messages:
                      - >-
                        No charged payment exists for the current cycle (subscription is PAST_DUE). Only refund: NONE is
                        valid.
                    current_status: PAST_DUE
                SUBSCRIPTION NOT FOUND:
                  value:
                    code: SUBSCRIPTION_NOT_FOUND
                    messages:
                      - Subscription not found.
                  summary: No subscription resolves for the subscription_id on this account. Returned as 400, not 404.
                REFUND CUSTOM REQUIRES A SOURCE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - 'refund: CUSTOM requires refund_amount or a configured refund_rule.'
                  summary: Neither refund_amount on the request nor a stored refund_rule resolves the CUSTOM refund.
      deprecated: false
      tags:
        - Subscriptions
  /subscriptions/{subscription_id}/pause:
    post:
      summary: Pause Subscription
      description: ''
      operationId: pause-subscription
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of a subscription.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                PAUSE SUBSCRIPTION:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: sub_001
                    description: streaming service
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    merchant_reference: 001_marzo_23
                    status: PAUSED
                    plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    amount:
                      currency: USD
                      value: 12100
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 10
                      current: 2
                      next_at: '2023-02-16T20:00:00.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card: {}
                    availability:
                      start_at: '2024-01-16T00:00:00.786342Z'
                      finish_at: '2024-05-26T20:00:00.786342Z'
                    metadata:
                      - key: sub_ext_id
                        value: AA001
                    payments:
                      - 5104911d-5df9-229e-8468-bd41abea1a4s
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T21:00:54.786342Z'
                    country: US
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: USD
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: ACME SUBSCRIPTION
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    pending_plan_change: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
                PAUSED FOR A SET TIME:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: SUB-112 passthrough subject
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    country: CO
                    description: null
                    merchant_reference: pa-sub112pt-1789487657670-794215
                    status: PAUSED
                    amount:
                      currency: COP
                      value: 45000
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: null
                      current: 2
                      paid: 1
                      next_at: '2026-10-15T15:54:18.312843Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        installments: null
                        network_transaction_id: '615803391389209'
                        usage: USED
                    availability:
                      start_at: '2026-09-15T15:54:18.312843Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: SMART
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    metadata: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: ''
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: null
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    created_at: '2026-09-15T15:54:18.312843Z'
                    updated_at: '2026-09-15T15:54:22.783678Z'
                    pending_plan_change: null
                    current_period_start: '2026-09-15T15:54:18.312843Z'
                    current_period_end: '2026-10-15T15:54:18.312843Z'
                    pause_until: '2026-10-15T15:54:22.780166Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 7304911d-5df9-429e-8488-ad41abea1a4c
                  name:
                    type: string
                    example: sub_001
                  description:
                    type:
                      - string
                      - 'null'
                    example: streaming service
                  account_id:
                    type: string
                    example: 2404911d-5df9-429e-8488-ad41abea1a4b
                  merchant_reference:
                    type: string
                    example: 001_marzo_23
                  status:
                    type: string
                    example: PAUSED
                  subscription_plan_id:
                    type: string
                    example: 1904911d-5df9-429e-8488-ad41abea1a4d
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 12100
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 10
                        default: 0
                      current:
                        type: integer
                        example: 2
                        default: 0
                      next_at:
                        type: string
                        example: '2023-02-16T20:00:00.786342Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 3t04911d-5df9-429e-8488-ad41abea1a2c
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      token:
                        type: string
                        example: 9104911d-5df9-429e-8488-ad41abea1a4b
                      vaulted_token:
                        type: string
                        example: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          verify:
                            type: boolean
                            example: false
                            default: true
                          card_data:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '4507990000000010'
                              expiration_month:
                                type: integer
                                example: 10
                                default: 0
                              expiration_year:
                                type: integer
                                example: 2025
                                default: 0
                              security_code:
                                type: integer
                                example: 123
                                default: 0
                              holder_name:
                                type: string
                                example: JOHN DOE
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                    description: The payment method the subscription charges. A single object, not a list.
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-01-16T00:00:00.786342Z'
                      finish_at:
                        type:
                          - string
                          - 'null'
                        example: '2024-05-26T20:00:00.786342Z'
                  metadata:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: sub_ext_id
                        value:
                          type: string
                          example: AA001
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                    description: >-
                      List of payment IDs created by the subscription. Omitted from the response when the subscription
                      has no payments.
                  created_at:
                    type: string
                    example: '2023-12-16T20:46:54.786342Z'
                  updated_at:
                    type: string
                    example: '2023-12-16T21:00:54.786342Z'
                  country:
                    type: string
                    description: The subscription's country (ISO 3166-1 alpha-2).
                    example: US
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    description: Soft descriptor.
                    example: ACME SUBSCRIPTION
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry policy applied when a recurring charge is declined. See
                      [Retries](/docs/payment-features/subscriptions/retries).
                    properties:
                      retry_on_decline:
                        type: boolean
                        description: Whether declined charges are retried at all.
                        example: true
                      amount:
                        type: integer
                        description: >-
                          How many retries a billing cycle gets. Capped by your environment's retry schedule length (6
                          in production).
                        example: 4
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  trial_period:
                    type: object
                    description: Trial period.
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    description: Subscription agreement id.
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_STATE
                    messages:
                      - The subscription state does not support the action requested.
                SUBSCRIPTION NOT FOUND:
                  value:
                    code: SUBSCRIPTION_NOT_FOUND
                    messages:
                      - Subscription not found.
                  summary: No subscription resolves for the subscription_id on this account. Returned as 400, not 404.
                PAUSE_CYCLES COMBINED WITH PAUSE_UNTIL:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - pause_cycles cannot be combined with pause_until.
                PAUSE_UNTIL NOT IN THE FUTURE:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - pause_until must be in the future.
                UNKNOWN FIELD (GATEWAY):
                  value:
                    code: BAD_REQUEST
                    messages:
                      - Bad request
                INVALID BILLING CYCLE BEHAVIOR (GATEWAY):
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'billing_cycle_behavior' has an invalid value.
                PAUSE_CYCLES OUT OF RANGE (GATEWAY):
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'pause_cycles' has a value greater than allowed.
                MALFORMED JSON (GATEWAY):
                  value:
                    code: BAD_REQUEST
                    messages:
                      - The field '' wrong data type.
      deprecated: false
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                pause_cycles:
                  type: integer
                  minimum: 1
                  maximum: 3
                  description: >-
                    Pause for this many of the subscription's own billing cycles, starting from the pause. Resolved
                    once, at the pause, into a stored `pause_until`. Cannot be combined with pause_until.
                  example: 1
                pause_until:
                  type: string
                  format: date-time
                  description: >-
                    Pause until this RFC 3339 instant. Must be in the future and before availability.finish_at. Cannot
                    be combined with pause_cycles.
                  example: '2026-09-22T15:47:04.964Z'
                billing_cycle_behavior:
                  type: string
                  enum:
                    - KEEP
                    - RESTART
                  description: >-
                    What happens to the billing anchor when the subscription resumes (manually or automatically). KEEP
                    (default): the original anchor is walked forward by whole periods it missed. RESTART: the anchor
                    re-anchors to the moment of the resume. Sending it without pause_cycles or pause_until is accepted —
                    an open-ended pause that just records the behaviour for whenever the subscription is later resumed.
                  example: RESTART
                reason:
                  type: string
                  maxLength: 255
                  description: >-
                    Free-form reason for the pause, stored on the subscription's reason field. At most 255 characters;
                    blank is treated as absent.
                  example: customer requested a break
            examples:
              PAUSE FOR TWO CYCLES:
                value:
                  pause_cycles: 2
              PAUSE UNTIL A DATE:
                value:
                  pause_until: '2026-09-22T15:47:04.964Z'
              PAUSE AND RE-ANCHOR ON RESUME:
                value:
                  pause_cycles: 1
                  billing_cycle_behavior: RESTART
              PAUSE WITH A REASON:
                value:
                  pause_cycles: 1
                  reason: customer requested a break
      tags:
        - Subscriptions
  /subscriptions/{subscription_id}/payments:
    get:
      summary: List Subscription Payments
      description: >-
        Returns the charge history for a subscription — one row per billing attempt, including plan/phase context when
        the subscription is linked to a plan. This is a net-new endpoint (there was no payments subresource before
        Plans), so it ships as a single, clean shape with no legacy fields to carry.
      operationId: list-subscription-payments
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of the subscription.
          schema:
            type: string
          required: true
        - name: limit
          in: query
          description: Max items to return. 1-100, defaults to 20.
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
        - name: offset
          in: query
          description: >-
            Number of items to skip. Must be a non-negative multiple of `limit`, else `400 BAD_REQUEST` — a non-aligned
            offset would re-serve rows you already saw and corrupt `has_more`. Defaults to 0.
          schema:
            type: integer
            default: 0
            minimum: 0
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    data:
                      - id: 00000000-0000-4000-8000-000000000010
                        payment_id: 00000000-0000-4000-8000-000000000011
                        idempotency_key: null
                        status: SUCCEEDED
                        sub_status: null
                        provider: PROVIDER_TEST
                        payment_method:
                          id: 00000000-0000-4000-8000-000000000012
                          type: CARD
                        amount:
                          currency: USD
                          value: 9.99
                        currency: USD
                        subtotal: 9.99
                        total: 9.99
                        plan_id: 00000000-0000-4000-8000-000000000001
                        line_items:
                          - type: PLAN
                            label: Intro
                            service_period:
                              start: '2024-04-01T09:00:00Z'
                              end: '2024-05-01T09:00:00Z'
                            amount:
                              currency: USD
                              value: 9.99
                        phase:
                          index: 1
                          name: Intro
                          type: TRIAL
                        phase_payment: 1
                        billing_cycle: null
                        retry:
                          count: 0
                          forced: false
                        trace_id: null
                        created_at: '2024-04-01T09:00:00.000000Z'
                        updated_at: '2024-04-01T09:00:00.000000Z'
                    pagination:
                      total: 1
                      limit: 20
                      offset: 0
                      has_more: false
              schema:
                type: object
                properties:
                  data:
                    type: array
                    description: Every payment attempt for this subscription, most recent first.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                        payment_id:
                          type: string
                        idempotency_key:
                          type:
                            - string
                            - 'null'
                        status:
                          type: string
                          description: >-
                            Platform vocabulary: SUCCEEDED, DECLINED, REJECTED, ERROR, PENDING, CREATED, CANCELED — not
                            the engine's internal EXECUTED.
                        sub_status:
                          type:
                            - string
                            - 'null'
                        provider:
                          type: string
                          description: >-
                            null for $0 cycles, the starter row, and rows charged before the provider-capture field
                            existed.
                        payment_method:
                          type: object
                          properties:
                            id:
                              type: string
                            type:
                              type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        currency:
                          type: string
                        subtotal:
                          type: number
                        total:
                          type: number
                        plan_id:
                          type: string
                          description: null for raw (non-plan) subscriptions.
                        line_items:
                          type: array
                          items:
                            type: object
                            properties:
                              type:
                                type: string
                              label:
                                type: string
                              service_period:
                                type: object
                                properties:
                                  start:
                                    type: string
                                  end:
                                    type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                        phase:
                          type: object
                          description: null for the starter row and for legacy (non-plan) rows.
                          properties:
                            index:
                              type: integer
                            name:
                              type: string
                            type:
                              type: string
                        phase_payment:
                          type: integer
                          description: 1..N within the current phase. null on the starter row.
                        billing_cycle:
                          type:
                            - integer
                            - 'null'
                          description: 0 = starter row, null = TRIAL-phase rows, 1.. from the first REGULAR-phase payment.
                        retry:
                          type: object
                          properties:
                            count:
                              type: integer
                            forced:
                              type: boolean
                        trace_id:
                          type:
                            - string
                            - 'null'
                        created_at:
                          type: string
                        updated_at:
                          type: string
                  pagination:
                    type: object
                    properties:
                      total:
                        type: integer
                      limit:
                        type: integer
                      offset:
                        type: integer
                      has_more:
                        type: boolean
        '400':
          description: Bad request. The subscription does not exist for this account.
          content:
            application/json:
              examples:
                Not Found:
                  value:
                    code: SUBSCRIPTION_NOT_FOUND
                    messages:
                      - Subscription not found.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: SUBSCRIPTION_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Subscription not found.
      deprecated: false
      tags:
        - Subscriptions
  /subscriptions/{subscription_id}/plan:
    post:
      summary: Change Subscription Plan
      description: >-
        Moves a subscription onto a subscription plan.


        If the subscription is not on a plan yet, it is attached in place and keeps its `id`. If it is already on a
        plan, it is canceled and replaced by a **new** subscription on the target plan; the response is the replacement,
        and its `previous_subscription_id` points at the subscription it replaced.


        In both cases the change takes effect at the subscription's **next renewal** — no charge is made now and nothing
        is prorated or refunded.
      operationId: change-subscription-plan
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of a subscription.
          schema:
            type: string
            format: uuid
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - plan_id
              properties:
                plan_id:
                  type: string
                  format: uuid
                  description: The unique identifier of the plan to move the subscription onto.
                  examples:
                    - 1904911d-5df9-429e-8488-ad41abea1a4d
                skip_trial:
                  type: boolean
                  default: false
                  description: >-
                    Plan-to-plan changes only. When `true`, the replacement subscription does not adopt the target
                    plan's trial or intro phases: it bills that plan's regular price from its first charge and its
                    status stays `ACTIVE` instead of becoming `TRIALING`. Use it to stop subscribers from earning a
                    fresh trial by switching plans. Sending `true` on a subscription that is not on a plan returns
                    `400`; `false` and an omitted flag are equivalent and always accepted.
                  examples:
                    - true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Default (adopts the target plan's trial):
                  value:
                    id: 8f11a2b0-6c1d-4a77-9f3e-2b5c8d0e91aa
                    name: sub_001
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    country: US
                    description: streaming service
                    merchant_reference: 001_marzo_23
                    status: TRIALING
                    amount:
                      currency: USD
                      value: 12100
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 8
                      current: 1
                      next_at: '2024-01-16T20:46:54.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        installments: null
                        network_transaction_id: null
                        usage: FIRST
                    availability:
                      start_at: '2024-01-16T20:46:54.786342Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    metadata:
                      - key: sub_ext_id
                        value: AA001
                    additional_data: null
                    trial_period: null
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: null
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T20:46:54.786342Z'
                    plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    plan_assigned_at: '2023-12-16T20:46:54.786342Z'
                    previous_subscription_id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    phases:
                      - order: 1
                        name: Intro
                        type: TRIAL
                        duration:
                          type: MONTH
                          value: 2
                        frequency:
                          type: MONTH
                          value: 1
                        amount:
                          value: 5000
                          currency: USD
                        total_payments: 2
                        country_prices: []
                      - order: 2
                        name: Regular
                        type: REGULAR
                        duration: null
                        frequency: null
                        amount: null
                        total_payments: null
                        country_prices: []
                    current_phase: TRIAL
                    billing_phases:
                      - order: 1
                        type: TRIAL
                        name: Intro
                        amount:
                          value: 5000
                          currency: USD
                        frequency:
                          type: MONTH
                          value: 1
                        start_cycle: 1
                        end_cycle: 2
                    pending_plan_change: null
                'skip_trial: true':
                  value:
                    id: 9c2d4e6f-1a3b-4c5d-8e7f-0a1b2c3d4e5f
                    name: sub_001
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    country: US
                    description: streaming service
                    merchant_reference: 001_marzo_23
                    status: ACTIVE
                    amount:
                      currency: USD
                      value: 12100
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 8
                      current: 1
                      next_at: '2024-01-16T20:46:54.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        installments: null
                        network_transaction_id: null
                        usage: FIRST
                    availability:
                      start_at: '2024-01-16T20:46:54.786342Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    metadata:
                      - key: sub_ext_id
                        value: AA001
                    additional_data: null
                    trial_period: null
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: null
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T20:46:54.786342Z'
                    plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    plan_assigned_at: '2023-12-16T20:46:54.786342Z'
                    previous_subscription_id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    phases:
                      - order: 1
                        name: Intro
                        type: TRIAL
                        duration:
                          type: MONTH
                          value: 2
                        frequency:
                          type: MONTH
                          value: 1
                        amount:
                          value: 5000
                          currency: USD
                        total_payments: 2
                        country_prices: []
                      - order: 2
                        name: Regular
                        type: REGULAR
                        duration: null
                        frequency: null
                        amount: null
                        total_payments: null
                        country_prices: []
                    pending_plan_change: null
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 7304911d-5df9-429e-8488-ad41abea1a4c
                  name:
                    type: string
                    example: sub_001
                  description:
                    type:
                      - string
                      - 'null'
                    example: streaming service
                  account_id:
                    type: string
                    example: 2404911d-5df9-429e-8488-ad41abea1a4b
                  country:
                    type: string
                    description: The subscription's country (ISO 3166-1 alpha-2).
                    example: US
                  merchant_reference:
                    type: string
                    example: 001_marzo_23
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    example: ACME SUBSCRIPTION
                  status:
                    type: string
                    example: ACTIVE
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 12100
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 10
                        default: 0
                      current:
                        type: integer
                        example: 2
                        default: 0
                      next_at:
                        type: string
                        example: '2023-02-16T20:00:00.786342Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 3t04911d-5df9-429e-8488-ad41abea1a2c
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      vaulted_token:
                        type: string
                        example: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-01-16T00:00:00.786342Z'
                      finish_at:
                        type:
                          - string
                          - 'null'
                        example: '2024-05-26T20:00:00.786342Z'
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry policy applied when a recurring charge is declined. See
                      [Retries](/docs/payment-features/subscriptions/retries).
                    properties:
                      retry_on_decline:
                        type: boolean
                        description: Whether declined charges are retried at all.
                        example: true
                      amount:
                        type: integer
                        description: >-
                          How many retries a billing cycle gets. Capped by your environment's retry schedule length (6
                          in production).
                        example: 4
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  trial_period:
                    type:
                      - object
                      - 'null'
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: ''
                  metadata:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: sub_ext_id
                        value:
                          type: string
                          example: AA001
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  created_at:
                    type: string
                    example: '2023-12-16T20:46:54.786342Z'
                  updated_at:
                    type: string
                    example: '2023-12-16T21:00:54.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_STATE
                    messages:
                      - The subscription status <STATUS> does not support plan changes.
                PIX AUTOMATICO CADENCE NOT SUPPORTED:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        Pix Automático only supports weekly, monthly, quarterly, half-yearly or yearly frequencies with
                        value 1.
                SUBSCRIPTION NOT FOUND:
                  value:
                    code: SUBSCRIPTION_NOT_FOUND
                    messages:
                      - Subscription not found.
                  summary: No subscription resolves for the subscription_id on this account. Returned as 400, not 404.
        '404':
          description: '404'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: PLAN_NOT_FOUND
                    messages:
                      - The target plan does not exist or is not linked to this account.
      deprecated: false
      tags:
        - Subscriptions
  /subscriptions/{subscription_id}/reactivate:
    post:
      summary: Reactivate Subscription
      description: ''
      operationId: reactivate-subscription
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of a subscription.
          schema:
            type: string
          required: true
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                billing_cycle_behavior:
                  type: string
                  enum:
                    - KEEP
                    - RESTART
                  description: >-
                    RESTART re-anchors the next charge to now plus the subscription's frequency (and stamps
                    frequency.monthly_billing_day on a monthly subscription that had none). KEEP or omitted: the stored
                    anchor is left untouched while it is still in the future, otherwise rolled forward to its next
                    future occurrence. No charge is made on the call either way.
                  example: RESTART
                billing_cycles:
                  type: object
                  description: Raises the subscription's cycle limit so it can be reactivated. Only the nested total is allowed.
                  properties:
                    total:
                      type: integer
                      description: >-
                        Must be a positive integer greater than the subscription's current billing_cycles.total.
                        Rejected on a subscription with no cycle limit at all. A valid value raises the limit on the
                        same subscription.
                      example: 12
            examples:
              RESTART:
                value:
                  billing_cycle_behavior: RESTART
              RAISE THE BILLING CYCLES LIMIT:
                value:
                  billing_cycles:
                    total: 12
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                REACTIVATE SUBSCRIPTION:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: SUB-111 merchant reactivate subject
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    country: CO
                    description: null
                    merchant_reference: pa-sub111-1789488115936-594232
                    status: ACTIVE
                    amount:
                      currency: COP
                      value: 45000
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 6
                      current: 2
                      paid: 0
                      next_at: '2026-10-15T16:01:56.709393Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        installments: null
                        network_transaction_id: '615803391389209'
                        usage: USED
                    availability:
                      start_at: '2026-09-15T16:01:56.709393Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: SMART
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    metadata: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: ''
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: null
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    created_at: '2026-09-15T16:01:56.709393Z'
                    updated_at: '2026-09-15T16:01:58.115702Z'
                    pending_plan_change: null
                    current_period_start: '2026-09-15T16:01:56.709393Z'
                    current_period_end: '2026-10-15T16:01:56.709393Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 7304911d-5df9-429e-8488-ad41abea1a4c
                  name:
                    type: string
                    example: sub_001
                  description:
                    type:
                      - string
                      - 'null'
                    example: streaming service
                  account_id:
                    type: string
                    example: 2404911d-5df9-429e-8488-ad41abea1a4b
                  country:
                    type: string
                    description: The subscription's country (ISO 3166-1 alpha-2).
                    example: US
                  merchant_reference:
                    type: string
                    example: 001_marzo_23
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    example: ACME SUBSCRIPTION
                  status:
                    type: string
                    example: ACTIVE
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 12100
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 10
                        default: 0
                      current:
                        type: integer
                        example: 2
                        default: 0
                      next_at:
                        type: string
                        example: '2023-02-16T20:00:00.786342Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 3t04911d-5df9-429e-8488-ad41abea1a2c
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      vaulted_token:
                        type: string
                        example: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-01-16T00:00:00.786342Z'
                      finish_at:
                        type:
                          - string
                          - 'null'
                        example: '2024-05-26T20:00:00.786342Z'
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry policy applied when a recurring charge is declined. See
                      [Retries](/docs/payment-features/subscriptions/retries).
                    properties:
                      retry_on_decline:
                        type: boolean
                        description: Whether declined charges are retried at all.
                        example: true
                      amount:
                        type: integer
                        description: >-
                          How many retries a billing cycle gets. Capped by your environment's retry schedule length (6
                          in production).
                        example: 4
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  trial_period:
                    type: object
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: ''
                  metadata:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: sub_ext_id
                        value:
                          type: string
                          example: AA001
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  created_at:
                    type: string
                    example: '2023-12-16T20:46:54.786342Z'
                  updated_at:
                    type: string
                    example: '2023-12-16T21:00:54.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                INVALID_DATE:
                  value:
                    code: INVALID_DATE
                    messages:
                      - >-
                        The subscription can not be resume due to a conflict with the availability dates. Please update
                        availability dates and try again if you want to keep using the subscription
                  summary: >-
                    availability.finish_at is in the past. Sourced from checks/YunoHttpErrorCode-v1.45.0.kt (the enum's
                    default text, which says "resume" verbatim) — not exercised by a live capture.
                billing_cycles.total BELOW THE CURRENT TOTAL:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - billing_cycles.total must be greater than the current total (12).
                billing_cycles.total WITHOUT A CYCLE LIMIT:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - billing_cycles.total cannot be set on a subscription without a billing cycle limit.
                INVALID BILLING CYCLE BEHAVIOR:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - billing_cycle_behavior must be one of KEEP, RESTART.
                  summary: Identical through the gateway — reactivate has no gateway-side validation of its own.
                PAYMENT METHOD NO LONGER ENROLLED:
                  value:
                    code: PAYMENT_METHOD_STATUS_INVALID
                    messages:
                      - The payment method is a state that does not allow payments to be made.
                  summary: Sourced from checks/YunoHttpErrorCode-v1.45.0.kt — not exercised by a live capture.
                UNKNOWN TOP-LEVEL KEY:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - Bad request
                  summary: >-
                    An unrecognized top-level key is caught by the gateway's own JSON binding (DisallowUnknownFields)
                    before the call reaches the engine. The engine's own guard says "Unknown field(s): foo." instead —
                    see UNKNOWN KEY INSIDE billing_cycles below.
                UNKNOWN KEY INSIDE billing_cycles:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - 'Unknown field(s): foo.'
                  summary: >-
                    billing_cycles is a field the gateway forwards raw, so a key nested inside it reaches the engine
                    unfiltered and is refused by the engine's own unknown-key guard.
        '409':
          description: '409'
          content:
            application/json:
              examples:
                NOT ENABLED FOR THIS ORGANIZATION:
                  value:
                    code: INVALID_SUBSCRIPTION_STATUS
                    messages:
                      - Subscription reactivation is not enabled for this organization.
                  summary: >-
                    Sourced from checks/SubscriptionService-v1.45.0-pause-resume-reactivate-cancel.kt — the stg
                    allow-list is `.*`, so this could not be captured live.
                NOT TERMINAL:
                  value:
                    code: INVALID_SUBSCRIPTION_STATUS
                    messages:
                      - Only a CANCELED or COMPLETED subscription can be reactivated.
                    current_status: ACTIVE
                BILLING CYCLES EXHAUSTED:
                  value:
                    code: INVALID_SUBSCRIPTION_STATUS
                    messages:
                      - >-
                        The subscription exhausted its 1 billing cycles. Send billing_cycles.total greater than 1 in the
                        reactivate body.
                    current_status: COMPLETED
                  summary: >-
                    Engine-only capture (row 756) — no merchant capture reaches an exhausted subscription in this run;
                    the body shape is identical to the merchant NOT TERMINAL case.
      deprecated: false
      tags:
        - Subscriptions
  /subscriptions/{subscription_id}/resume:
    post:
      summary: Resume Subscription
      description: ''
      operationId: resume-subscription
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of a subscription.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                RESUME SUBSCRIPTION:
                  value:
                    id: 7304911d-5df9-429e-8488-ad41abea1a4c
                    name: sub_001
                    description: streaming service
                    account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                    merchant_reference: 001_marzo_23
                    status: ACTIVE
                    plan_id: 1904911d-5df9-429e-8488-ad41abea1a4d
                    amount:
                      currency: USD
                      value: 12100
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 10
                      current: 2
                      next_at: '2023-02-16T20:00:00.786342Z'
                    customer_payer:
                      id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                    payment_method:
                      type: CARD
                      vaulted_token: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card: {}
                    availability:
                      start_at: '2024-01-16T00:00:00.786342Z'
                      finish_at: '2024-05-26T20:00:00.786342Z'
                    metadata:
                      - key: sub_ext_id
                        value: AA001
                    payments:
                      - 5104911d-5df9-229e-8468-bd41abea1a4s
                    created_at: '2023-12-16T20:46:54.786342Z'
                    updated_at: '2023-12-16T21:00:54.786342Z'
                    country: US
                    retries:
                      retry_on_decline: false
                      amount: 6
                      strategy: DEFAULT
                      schedule: null
                      stop_on_hard_decline: null
                      cancel_on_exhausted_retries: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: USD
                    initial_payment_validation: false
                    reason: null
                    subscription_agreement_id: null
                    soft_descriptor: ACME SUBSCRIPTION
                    renewal_notification_days: null
                    cancellation_time: null
                    cancellation_source: null
                    ending_time: null
                    pending_plan_change: null
                    current_period_start: '2026-10-23T00:00:00Z'
                    current_period_end: '2026-11-23T00:00:00Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 7304911d-5df9-429e-8488-ad41abea1a4c
                  name:
                    type: string
                    example: sub_001
                  description:
                    type:
                      - string
                      - 'null'
                    example: streaming service
                  account_id:
                    type: string
                    example: 2404911d-5df9-429e-8488-ad41abea1a4b
                  merchant_reference:
                    type: string
                    example: 001_marzo_23
                  status:
                    type: string
                    example: ACTIVE
                  subscription_plan_id:
                    type: string
                    example: 1904911d-5df9-429e-8488-ad41abea1a4d
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: number
                        example: 12100
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type:
                          - integer
                          - 'null'
                        example: 10
                        default: 0
                      current:
                        type: integer
                        example: 2
                        default: 0
                      next_at:
                        type: string
                        example: '2023-02-16T20:00:00.786342Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 3t04911d-5df9-429e-8488-ad41abea1a2c
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      token:
                        type: string
                        example: 9104911d-5df9-429e-8488-ad41abea1a4b
                      vaulted_token:
                        type: string
                        example: 6104911d-5df9-429e-8488-ad41abea1a4b
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          verify:
                            type: boolean
                            example: false
                            default: true
                          card_data:
                            type: object
                            properties:
                              number:
                                type: string
                                example: '4507990000000010'
                              expiration_month:
                                type: integer
                                example: 10
                                default: 0
                              expiration_year:
                                type: integer
                                example: 2025
                                default: 0
                              security_code:
                                type: integer
                                example: 123
                                default: 0
                              holder_name:
                                type: string
                                example: JOHN DOE
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                    description: The payment method the subscription charges. A single object, not a list.
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2024-01-16T00:00:00.786342Z'
                      finish_at:
                        type:
                          - string
                          - 'null'
                        example: '2024-05-26T20:00:00.786342Z'
                  metadata:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        key:
                          type: string
                          example: sub_ext_id
                        value:
                          type: string
                          example: AA001
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                    description: >-
                      List of payment IDs created by the subscription. Omitted from the response when the subscription
                      has no payments.
                  created_at:
                    type: string
                    example: '2023-12-16T20:46:54.786342Z'
                  updated_at:
                    type: string
                    example: '2023-12-16T21:00:54.786342Z'
                  country:
                    type: string
                    description: The subscription's country (ISO 3166-1 alpha-2).
                    example: US
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    description: Soft descriptor.
                    example: ACME SUBSCRIPTION
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  retries:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The retry policy applied when a recurring charge is declined. See
                      [Retries](/docs/payment-features/subscriptions/retries).
                    properties:
                      retry_on_decline:
                        type: boolean
                        description: Whether declined charges are retried at all.
                        example: true
                      amount:
                        type: integer
                        description: >-
                          How many retries a billing cycle gets. Capped by your environment's retry schedule length (6
                          in production).
                        example: 4
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  trial_period:
                    type: object
                    description: Trial period.
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: USD
                  additional_data:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The optional order enrichment sent at creation, echoed back. See [The Subscription
                      Object](/reference/subscriptions/the-subscription-object) for its full shape.
                  initial_payment_validation:
                    type: boolean
                    description: >-
                      Whether the subscription waited for its first payment to succeed before activating. `false` by
                      default.
                    example: false
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    description: Subscription agreement id.
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_DATE
                    messages:
                      - >-
                        The subscription can not be resumed due to a conflict with the availability dates. Please update
                        availability dates and try again if you want to keep using the subscription.
                SUBSCRIPTION NOT FOUND:
                  value:
                    code: SUBSCRIPTION_NOT_FOUND
                    messages:
                      - Subscription not found.
                  summary: No subscription resolves for the subscription_id on this account. Returned as 400, not 404.
                INVALID BILLING CYCLE BEHAVIOR:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'billing_cycle_behavior' has an invalid value.
                  summary: billing_cycle_behavior accepts only KEEP or RESTART.
                BILLING CYCLE BEHAVIOR NOT ENABLED:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - billing_cycle_behavior is not enabled for this organization.
                  summary: >-
                    Sourced from checks/ResumeSubscriptionRequest-v1.45.0.kt — the stg allow-list is `.*`, so this could
                    not be captured live.
      deprecated: false
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                billing_cycle_behavior:
                  type: string
                  enum:
                    - KEEP
                    - RESTART
                  description: >-
                    KEEP (default when omitted): the original anchor is walked forward by whole periods it missed during
                    the pause. RESTART: re-anchors the next charge to now, plus the subscription's frequency
                    (monthly-billing-day rule as on Update). On a pause that stored its own billing_cycle_behavior (set
                    at the pause call), omitting this field applies the behaviour stored on the pause; an explicit value
                    here always wins. Write-only: never echoed in any response.
                  example: KEEP
                reason:
                  type: string
                  maxLength: 255
                  description: >-
                    Free-form reason for the resume, written to the subscription's reason field from this call's own
                    body (null when the body omits it, even if the pause had recorded one). At most 255 characters;
                    blank is treated as absent.
                  example: customer is back
            examples:
              KEEP:
                value:
                  billing_cycle_behavior: KEEP
              RESTART:
                value:
                  billing_cycle_behavior: RESTART
      tags:
        - Subscriptions
  /subscriptions/{subscription_id}/retry:
    post:
      summary: Retry Subscription
      description: ''
      operationId: retry-subscription
      parameters:
        - name: subscription_id
          in: path
          description: The unique identifier of the subscription, see [create subscription](/reference/create-subscription) (UUID).
          schema:
            type: string
          required: true
        - in: header
          name: X-Account-Code
          schema:
            type: string
          description: The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID).
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    id: 0054840f-bcd5-4d8e-b86c-c18ede81c556
                    name: Test Subscription
                    account_id: f7c5fe77-721b-49c2-84d3-957748df3c2c
                    country: CL
                    description: Subscription Test
                    merchant_reference: subscription-ref-merchant-AA01
                    status: ACTIVE
                    amount:
                      currency: CLP
                      value: 15000
                    frequency:
                      type: MONTH
                      value: 1
                    billing_cycles:
                      total: 12
                      current: 2
                      next_at: '2025-05-29T11:13:31.786421Z'
                    customer_payer:
                      id: 1c6d1a88-d8d5-4c09-b19c-852530d89f05
                    payment_method:
                      type: CARD
                      vaulted_token: 743880c1-1bdb-4572-99a8-c4e5ce184895
                    availability:
                      start_at: '2025-04-29T11:13:31.786421Z'
                      finish_at: null
                    retries:
                      retry_on_decline: false
                      amount: 6
                    metadata: null
                    additional_data: null
                    trial_period:
                      billing_cycles: 1
                      amount:
                        value: 0
                        currency: ''
                    initial_payment_validation: false
                    created_at: '2025-04-29T11:13:31.786421Z'
                    updated_at: '2025-04-29T11:13:31.942325Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 0054840f-bcd5-4d8e-b86c-c18ede81c556
                  name:
                    type: string
                    example: Test Subscription
                  account_id:
                    type: string
                    example: f7c5fe77-721b-49c2-84d3-957748df3c2c
                  country:
                    type: string
                    example: CL
                  description:
                    type: string
                    example: Subscription Test
                  merchant_reference:
                    type: string
                    example: subscription-ref-merchant-AA01
                  status:
                    type: string
                    example: ACTIVE
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: CLP
                      value:
                        type: number
                        example: 15000
                        default: 0
                  frequency:
                    type: object
                    properties:
                      type:
                        type: string
                        example: MONTH
                      value:
                        type: integer
                        example: 1
                        default: 0
                      monthly_billing_day:
                        type:
                          - integer
                          - 'null'
                        description: >-
                          The day of the month billing is anchored to on a MONTH-frequency subscription — set by RESTART
                          (on Update, a plan change, resume or reactivate) or by sending Update Subscription's own
                          frequency.monthly_billing_day. Present only once stamped; absent, not null, before that and on
                          every other frequency type.
                        example: 15
                  billing_cycles:
                    type: object
                    properties:
                      total:
                        type: integer
                        example: 12
                        default: 0
                      current:
                        type: integer
                        example: 2
                        default: 0
                      next_at:
                        type: string
                        example: '2025-05-29T11:13:31.786421Z'
                      scheduling_date:
                        type: string
                        description: >-
                          When the debit instruction is handed to the Pix rail — `next_at` minus four days. Only present
                          on `PIX_AUTOMATIC` subscriptions that Yuno executes, and only where the four-day scheduling
                          lead is enabled for the organization; absent, not `null`, otherwise. Read-only. See [Pix
                          Automático](/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date).
                        example: '2026-11-27T00:00:00Z'
                      paid:
                        type: integer
                        description: >-
                          How many cycles have been paid so far. Distinct from `current`, which is the cycle being
                          billed.
                  customer_payer:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 1c6d1a88-d8d5-4c09-b19c-852530d89f05
                  payment_method:
                    type: object
                    properties:
                      type:
                        type: string
                        example: CARD
                      vaulted_token:
                        type: string
                        example: 743880c1-1bdb-4572-99a8-c4e5ce184895
                      card:
                        type:
                          - object
                          - 'null'
                        properties:
                          installments:
                            type:
                              - integer
                              - 'null'
                          network_transaction_id:
                            type:
                              - string
                              - 'null'
                          usage:
                            type: string
                            example: FIRST
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2025-04-29T11:13:31.786421Z'
                      finish_at: {}
                  retries:
                    type: object
                    properties:
                      retry_on_decline:
                        type: boolean
                        example: false
                        default: true
                      amount:
                        type: integer
                        example: 6
                        default: 0
                      strategy:
                        type: string
                        description: >-
                          How the timing of each retry is decided: `DEFAULT`, `SMART` or `CUSTOM_SCHEDULE`. Treat as
                          open-ended — handle unrecognized values gracefully.
                        example: DEFAULT
                      schedule:
                        type:
                          - array
                          - 'null'
                        description: The per-attempt schedule, only set when `strategy` is `CUSTOM_SCHEDULE`; `null` otherwise.
                        items:
                          type: object
                      stop_on_hard_decline:
                        type:
                          - boolean
                          - 'null'
                        description: When true, a hard decline stops the retries for the current billing cycle.
                      cancel_on_exhausted_retries:
                        type:
                          - boolean
                          - 'null'
                        description: >-
                          When true, the subscription is canceled once a cycle's retries end without a successful
                          payment, with `cancellation_source` set to `RETRIES_EXHAUSTED`.
                      profile:
                        type: string
                        description: >-
                          The fixed retry ladder the subscription follows instead of the configurable schedule. Always
                          `PIX_AUTOMATIC`. This field and the three below are only present on `PIX_AUTOMATIC`
                          subscriptions that Yuno executes; they are absent, not `null`, on every other payment method.
                          See [Pix Automático](/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder).
                        example: PIX_AUTOMATIC
                      max_attempts:
                        type: integer
                        description: >-
                          How many retries the Pix ladder runs. Always 3, matching the `amount` reported for these
                          subscriptions.
                        example: 3
                      min_gap_hours:
                        type: integer
                        description: >-
                          Always 24 — the gap between the ladder's debit dates (`D`, `D+1`, `D+2`, `D+3`), not between
                          dispatch attempts.
                        example: 24
                      until:
                        type: string
                        description: >-
                          When the ladder stops — `billing_cycles.next_at` plus 7 days. Moves with `next_at` at every
                          renewal.
                      stopped:
                        type: boolean
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      attempts_made:
                        type: integer
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                      outcome:
                        type: string
                        description: >-
                          RECOVERED, EXHAUSTED or ABANDONED. Present only when the subscription is PAST_DUE or has
                          cancel_scheduled pending.
                      next_retry_at:
                        type: string
                        description: Present only when the subscription is PAST_DUE or has cancel_scheduled pending.
                  metadata: {}
                  additional_data: {}
                  trial_period:
                    type: object
                    properties:
                      billing_cycles:
                        type: integer
                        example: 1
                        default: 0
                      amount:
                        type: object
                        properties:
                          value:
                            type: number
                            example: 0
                            default: 0
                          currency:
                            type: string
                            example: ''
                  initial_payment_validation:
                    type: boolean
                    example: false
                    default: true
                  created_at:
                    type: string
                    example: '2025-04-29T11:13:31.786421Z'
                  updated_at:
                    type: string
                    example: '2025-04-29T11:13:31.942325Z'
                  soft_descriptor:
                    type:
                      - string
                      - 'null'
                    example: ACME SUBSCRIPTION
                  current_period_start:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Start of the billing period the subscription is currently in, one cadence before
                      `current_period_end`. Inside a trial or any other plan phase it follows that phase's cadence. A
                      terminal subscription (`CANCELED` or `COMPLETED`) keeps its final window rather than going null.
                      Null only for a subscription with no recurring cadence. Always returned together with
                      current_period_end.
                    example: '2023-01-16T20:00:00.912480Z'
                  current_period_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      End of the billing period the subscription is currently in. Equal to billing_cycles.next_at.
                      Always returned together with current_period_start.
                    example: '2023-02-16T20:00:00.786342Z'
                  billing_date:
                    type:
                      - object
                      - 'null'
                    description: >-
                      Only present on subscriptions billed on a fixed date instead of a frequency; mutually exclusive
                      with `frequency`.
                    properties:
                      type:
                        type: string
                        example: DAY
                      day:
                        type: integer
                        example: 2
                  reason:
                    type:
                      - string
                      - 'null'
                    description: Free-form reason for the subscription's current status, when one was recorded; `null` otherwise.
                    example: merchant request
                  renewal_notification_days:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      How many days before the next billing date the `subscription.close_to_renewal` webhook is sent.
                      `null` means no renewal notification is sent.
                    example: 3
                  payments:
                    type: array
                    items:
                      type: string
                      example: 5104911d-5df9-229e-8468-bd41abea1a4s
                  subscription_agreement_id:
                    type:
                      - string
                      - 'null'
                    example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                  cancellation_time:
                    type:
                      - string
                      - 'null'
                    description: When the subscription was canceled. Only set once it reaches `CANCELED`; `null` otherwise.
                    example: '2023-12-16T20:46:54.786342Z'
                  cancellation_source:
                    type:
                      - string
                      - 'null'
                    description: >-
                      What triggered the cancellation: `MERCHANT`, `SYSTEM`, `PLAN_CHANGE` or `RETRIES_EXHAUSTED`. Only
                      set once the subscription reaches `CANCELED`; `null` otherwise. Treat as open-ended — handle
                      unrecognized values gracefully.
                    example: MERCHANT
                  ending_time:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the subscription completed or expired. Only set once it reaches `COMPLETED`; `null`
                      otherwise.
                    example: '2024-12-16T20:46:54.786342Z'
                  plan_id:
                    type: string
                    description: Only present when the subscription is linked to a plan.
                    example: 00000000-0000-4000-8000-000000000001
                  plan_assigned_at:
                    type: string
                    description: >-
                      Only present on plan-linked subscriptions. The moment the plan was attached — at creation from a
                      plan, migration onto a plan, or a plan change.
                    example: '2023-12-16T20:46:54.786342Z'
                  previous_subscription_id:
                    type:
                      - string
                      - 'null'
                    description: >-
                      Only present when this subscription was created by a plan change (switching an existing
                      subscription to a different plan).
                  phases:
                    type: array
                    description: >-
                      The linked plan's phase definitions, as the plan declares them — including the terminal `REGULAR`
                      phase. Only present on plan-linked subscriptions whose plan has phases. This is the plan's own
                      ladder, not this subscriber's snapshot: for what was pinned for this subscription at creation, use
                      `billing_phases`.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        name:
                          type: string
                        type:
                          type: string
                          description: '`TRIAL` or `REGULAR`.'
                        duration:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How long the phase lasts. `null` on the terminal `REGULAR` phase, which runs until the
                            subscription ends.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        frequency:
                          type:
                            - object
                            - 'null'
                          description: >-
                            How often the phase bills. `null` on the terminal `REGULAR` phase, which bills at the plan's
                            own frequency.
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        amount:
                          type:
                            - object
                            - 'null'
                          description: >-
                            The phase price. `null` on the terminal `REGULAR` phase, whose price resolves from the plan
                            at every billing.
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        total_payments:
                          type:
                            - integer
                            - 'null'
                        country_prices:
                          type: array
                          description: Per-country overrides of the phase price, empty when the phase has none.
                          items:
                            type: object
                            properties:
                              country:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                  current_phase:
                    type: string
                    description: Only present on plan-linked subscriptions.
                    example: REGULAR
                  current_phase_end:
                    type:
                      - string
                      - 'null'
                    description: >-
                      When the phase named by `current_phase` hands over to the next one — for a subscription in its
                      trial, when it switches to the regular price. End of the last billing period the phase covers, so
                      on the final period of a trial it equals `current_period_end`. Null for a subscription with no
                      plan and for one that already left the phase ladder.
                    example: '2023-03-16T20:00:00.786342Z'
                  billing_phases:
                    type: array
                    description: >-
                      Only present on plan-linked subscriptions whose plan has phases. Contains the leading TRIAL phases
                      only, snapshotted at creation — the terminal REGULAR phase is never included, since its price
                      isn't pinned and instead resolves from the plan at every billing. `current_phase: "REGULAR"` is
                      how you know the ladder is exhausted.
                    items:
                      type: object
                      properties:
                        order:
                          type: integer
                        type:
                          type: string
                          description: Always TRIAL — the terminal REGULAR phase is never in this array.
                        name:
                          type: string
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                        start_cycle:
                          type: integer
                        end_cycle:
                          type: integer
                  pending_plan_change:
                    type:
                      - object
                      - 'null'
                    description: >-
                      The plan change scheduled for the next billing cycle, or null when none is pending. Schedule one
                      with the `plan_change` block on Update Subscription.
                    properties:
                      plan_id:
                        type: string
                        description: The identifier of the target plan.
                        example: 1904911d-5df9-429e-8488-ad41abea1a4d
                      plan_name:
                        type: string
                        description: The name of the target plan.
                        example: Pro
                      direction:
                        type: string
                        enum:
                          - UPGRADE
                          - DOWNGRADE
                        description: Whether the target plan is an upgrade or a downgrade. Informational only.
                        example: UPGRADE
                      effective:
                        type: string
                        enum:
                          - NEXT_BILLING_CYCLE
                        description: When the change applies.
                        example: NEXT_BILLING_CYCLE
                      phases_behavior:
                        type: string
                        enum:
                          - START_FROM_REGULAR
                          - HONOR_PHASES
                        description: What happens when the target plan has phases.
                        example: START_FROM_REGULAR
                      applies_at:
                        type: string
                        description: The billing event the change will take effect on — the subscription's next billing date.
                        example: '2023-02-16T20:00:00.786342Z'
                      requested_at:
                        type: string
                        description: When the change was scheduled.
                        example: '2023-01-20T10:12:31.786342Z'
                  refund_rule:
                    type: object
                    description: >-
                      The stored refund rule used to resolve a CUSTOM cancel refund when the cancel request sends no
                      refund_amount of its own. Present only when one is configured; omitted, not null, otherwise.
                      Available to organizations enabled for it; contact Yuno.
                    properties:
                      type:
                        type: string
                        enum:
                          - PERCENT
                          - FIXED
                        description: >-
                          PERCENT resolves the refund as a percentage of the charged amount; FIXED resolves it to a
                          fixed amount.
                        example: FIXED
                      percent:
                        type: number
                        description: Required, and only allowed, when type is PERCENT (0-100).
                        example: 50
                      amount:
                        type: object
                        description: Required, and only allowed, when type is FIXED.
                        properties:
                          value:
                            type: number
                            example: 10000
                          currency:
                            type: string
                            description: Must match the subscription's own currency.
                            example: COP
                  pause_until:
                    type: string
                    description: >-
                      When the subscription is scheduled to resume automatically. Present only on a subscription
                      currently paused with a duration (pause_cycles or pause_until sent at pause); absent, not null, on
                      every other read.
                    example: '2026-10-15T15:54:22.780166Z'
                  cancel_scheduled:
                    type:
                      - object
                      - 'null'
                    description: null when no cancellation is pending.
                    properties:
                      mode:
                        type: string
                        example: AFTER_CYCLES
                      after_cycles:
                        type: integer
                        example: 3
                      at:
                        type: string
                      requested_at:
                        type: string
                      past_due_behavior:
                        type: string
                        example: EXHAUST_RETRIES
                  refund:
                    type:
                      - object
                      - 'null'
                    description: >-
                      null when refund was NONE or omitted. Present on the cancel response and on every later read once
                      computed.
                    properties:
                      mode:
                        type: string
                        example: PRORATED
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                            example: USD
                          value:
                            type: number
                            example: 20
                      unused_days:
                        type: integer
                        example: 20
                      period_days:
                        type: integer
                        example: 30
                      basis:
                        type: object
                        properties:
                          billing_cycle:
                            type: integer
                            example: 4
                          charged_amount:
                            type: object
                            properties:
                              currency:
                                type: string
                                example: USD
                              value:
                                type: number
                                example: 30
                          payment_id:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                          charged_at:
                            type: string
                            description: null for a $0-phase quote with no captured payment.
                      execution:
                        type: string
                        example: MERCHANT
                      quoted_at:
                        type: string
                  unpaid_cycle:
                    type: object
                    description: Present only when the current billing cycle is PAST_DUE and has not settled.
                    properties:
                      cycle_number:
                        type: integer
                      amount:
                        type: object
                        properties:
                          currency:
                            type: string
                          value:
                            type: number
                      attempts:
                        type: integer
                      last_failure_code:
                        type: string
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: INVALID_STATE
                    messages:
                      - The last payment intent of the subscription does not support the action requested.
                SUBSCRIPTION NOT FOUND:
                  value:
                    code: SUBSCRIPTION_NOT_FOUND
                    messages:
                      - Subscription not found.
                  summary: No subscription resolves for the subscription_id on this account. Returned as 400, not 404.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_STATE
                  messages:
                    type: array
                    items:
                      type: string
                      example: The last payment intent of the subscription does not support the action requested.
      deprecated: false
      tags:
        - Subscriptions
  /three-d-secure/setups:
    post:
      summary: Create 3DS2 Setup
      description: >-
        Register the 3D Secure 2 setup data your integration has collected — the cardholder's browser environment and
        any pre-computed device fingerprints — and receive a `three_d_secure_setup_id` to reference on the subsequent
        `POST /v1/payments`.
      operationId: create-three-d-secure-setup
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - type
                - browser_info
              properties:
                account_id:
                  type: string
                  format: uuid
                  description: Account UUID that owns this 3DS2 setup.
                type:
                  type: string
                  description: >-
                    Source of the device data. `MERCHANT_PROVIDED` means you collected the browser/device data on your
                    side and are passing it in directly.
                  enum:
                    - MERCHANT_PROVIDED
                browser_info:
                  type: object
                  description: >-
                    Browser environment captured from the cardholder's session. Forwarded verbatim to the 3DS2 server
                    for risk scoring and frictionless decisioning.
                  required:
                    - user_agent
                    - accept_header
                    - color_depth
                    - screen_height
                    - screen_width
                    - language
                  properties:
                    user_agent:
                      type: string
                      description: '`navigator.userAgent` of the cardholder''s browser.'
                    accept_header:
                      type: string
                      description: Value of the `Accept` HTTP header sent by the browser.
                    color_depth:
                      type: string
                      description: '`screen.colorDepth`, e.g. `"24"`.'
                    screen_height:
                      type: string
                      description: '`screen.height` in pixels.'
                    screen_width:
                      type: string
                      description: '`screen.width` in pixels.'
                    language:
                      type: string
                      description: BCP-47 language tag from `navigator.language`, e.g. `"es-CO"`.
                    javascript_enabled:
                      type: boolean
                      description: Whether JavaScript is enabled. Defaults to `true` when omitted.
                    java_enabled:
                      type: boolean
                      description: Whether the Java plugin is enabled. Almost always `false` on modern browsers.
                    browser_time_difference:
                      type: string
                      description: >-
                        UTC offset of the browser in minutes, signed (e.g. `"-300"` for UTC-5). Equivalent to `new
                        Date().getTimezoneOffset()`.
                    platform:
                      type: string
                      description: Channel that captured the data.
                      enum:
                        - WEB
                        - IOS
                        - ANDROID
                    accept_content:
                      type: string
                      description: Optional `Accept-Encoding` value if you capture it.
                    accept_browser:
                      type: string
                      description: Optional `Accept-Language` value if you capture it.
                device_fingerprints:
                  type: array
                  description: >-
                    One or more provider-scoped device fingerprints already collected on your side. Yuno will not run
                    device collection again for any `provider_id` you include here.
                  items:
                    type: object
                    required:
                      - provider_id
                      - id
                    properties:
                      provider_id:
                        type: string
                        format: uuid
                        description: >-
                          UUID of the fraud or device-intelligence connection in your Yuno account that produced this
                          fingerprint. Find it in **Dashboard → Connections** or via `GET /v1/connections`.
                      id:
                        type: string
                        description: The fingerprint value as returned by that provider's collector.
            examples:
              With device fingerprints:
                value:
                  account_id: 11111111-1111-1111-1111-111111111111
                  type: MERCHANT_PROVIDED
                  browser_info:
                    user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
                    accept_header: text/html,application/xhtml+xml,application/xml;q=0.9
                    color_depth: '24'
                    screen_height: '1080'
                    screen_width: '1920'
                    language: es-CO
                    javascript_enabled: true
                    java_enabled: false
                    browser_time_difference: '-300'
                    platform: WEB
                  device_fingerprints:
                    - provider_id: f3a8b5d2-9c4e-4a7b-b1f8-2d6c9e0a4f12
                      id: fp_abc123xyz
              Without device fingerprints:
                value:
                  account_id: 11111111-1111-1111-1111-111111111111
                  type: MERCHANT_PROVIDED
                  browser_info:
                    user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
                    accept_header: text/html,application/xhtml+xml,application/xml;q=0.9
                    color_depth: '24'
                    screen_height: '1080'
                    screen_width: '1920'
                    language: es-CO
                    javascript_enabled: true
                    java_enabled: false
                    browser_time_difference: '-300'
                    platform: WEB
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                With device fingerprints:
                  value:
                    three_d_secure_setup_id: a17b4f2c-08d1-4e9b-b6c5-9a3e0c7f1b22
                    account_id: 11111111-1111-1111-1111-111111111111
                    type: MERCHANT_PROVIDED
                    browser_info:
                      user_agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
                      accept_header: text/html,application/xhtml+xml,application/xml;q=0.9
                      color_depth: '24'
                      screen_height: '1080'
                      screen_width: '1920'
                      language: es-CO
                      javascript_enabled: true
                      java_enabled: false
                      browser_time_difference: '-300'
                      platform: WEB
                    device_fingerprints:
                      - provider_id: f3a8b5d2-9c4e-4a7b-b1f8-2d6c9e0a4f12
                        id: fp_abc123xyz
              schema:
                type: object
                properties:
                  three_d_secure_setup_id:
                    type: string
                    description: >-
                      Generated identifier of the 3DS2 setup. Pass this under
                      `payment_method.detail.card.three_d_secure.three_d_secure_setup_id` on the subsequent `POST
                      /v1/payments`.
                    example: a17b4f2c-08d1-4e9b-b6c5-9a3e0c7f1b22
                  account_id:
                    type: string
                    description: Echo of the request `account_id`.
                    example: 11111111-1111-1111-1111-111111111111
                  type:
                    type: string
                    description: Echo of the request `type`.
                    example: MERCHANT_PROVIDED
                  browser_info:
                    type: object
                    description: Echo of the request `browser_info`.
                    properties:
                      user_agent:
                        type: string
                        example: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
                      accept_header:
                        type: string
                        example: text/html,application/xhtml+xml,application/xml;q=0.9
                      color_depth:
                        type: string
                        example: '24'
                      screen_height:
                        type: string
                        example: '1080'
                      screen_width:
                        type: string
                        example: '1920'
                      language:
                        type: string
                        example: es-CO
                      javascript_enabled:
                        type: boolean
                        example: true
                      java_enabled:
                        type: boolean
                        example: false
                      browser_time_difference:
                        type: string
                        example: '-300'
                      platform:
                        type: string
                        example: WEB
                  device_fingerprints:
                    type: array
                    description: Echo of the request `device_fingerprints`.
                    items:
                      type: object
                      properties:
                        provider_id:
                          type: string
                          example: f3a8b5d2-9c4e-4a7b-b1f8-2d6c9e0a4f12
                        id:
                          type: string
                          example: fp_abc123xyz
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid parameters:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - account_id must be a valid UUIDv4
                    httpCode: 400
                Missing parameters:
                  value:
                    code: MISSING_PARAMETERS
                    messages:
                      - account_id is required
                    httpCode: 400
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_PARAMETERS
                  messages:
                    type: array
                    items:
                      type: string
                      example: account_id must be a valid UUIDv4
                  httpCode:
                    type: integer
                    example: 400
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: NOT_AUTHENTICATED
                    messages:
                      - Missing API credentials
                    httpCode: 401
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                      example: Missing API credentials
                  httpCode:
                    type: integer
                    example: 401
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: FORBIDDEN
                    messages:
                      - Account inactive or lacks 3DS2 entitlement
                    httpCode: 403
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: FORBIDDEN
                  messages:
                    type: array
                    items:
                      type: string
                      example: Account inactive or lacks 3DS2 entitlement
                  httpCode:
                    type: integer
                    example: 403
      deprecated: false
      tags:
        - Three D Secure Setups
      security:
        - PublicApiKey: []
          PrivateSecretKey: []
          IdempotencyKey: []
  /transfers/{transfer_id}:
    get:
      description: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              examples:
                OK:
                  summary: OK
                  value:
                    id: 550e8400-e29b-41d4-a716-446655440000
                    origin_onboarding:
                      id: 660e8400-e29b-41d4-a716-446655440001
                      status: TRANSFERRED
                      type: ONE_STEP_ONBOARDING
                      workflow: DIRECT
                      response_message: null
                      provider:
                        id: STRIPE
                        recipient_id: acct_1234567890
                        connection_id: 880e8400-e29b-41d4-a716-446655440003
                        legal_entity: COMPANY
                      documentation: []
                      legal_representatives: []
                      requirements: []
                      metadata: []
                      withdrawal_methods: null
                      capabilities: null
                      recipient:
                        id: 770e8400-e29b-41d4-a716-446655440002
                        merchant_recipient_id: seller-123
                        country: BR
                        national_entity: INDIVIDUAL
                        entity_type: PERSON
                        email: seller@example.com
                        first_name: João
                        last_name: Silva
                        created_at: '2026-01-10T12:00:00Z'
                        updated_at: '2026-01-10T12:00:00Z'
                      created_at: '2026-01-15T10:00:00Z'
                      updated_at: '2026-01-15T16:59:22Z'
                    destination_onboarding:
                      id: 990e8400-e29b-41d4-a716-446655440004
                      status: SUCCEEDED
                      type: ONE_STEP_ONBOARDING
                      workflow: DIRECT
                      response_message: null
                      provider:
                        id: STRIPE
                        recipient_id: acct_0987654321
                        connection_id: 880e8400-e29b-41d4-a716-446655440003
                        legal_entity: COMPANY
                      documentation: []
                      legal_representatives: []
                      requirements: []
                      metadata: []
                      withdrawal_methods: null
                      capabilities: null
                      recipient:
                        id: aa0e8400-e29b-41d4-a716-446655440005
                        merchant_recipient_id: seller-456
                        country: BR
                        national_entity: INDIVIDUAL
                        entity_type: PERSON
                        email: newseller@example.com
                        first_name: Maria
                        last_name: Santos
                        created_at: '2026-01-12T14:00:00Z'
                        updated_at: '2026-01-12T14:00:00Z'
                      created_at: '2026-01-15T16:59:22Z'
                      updated_at: '2026-01-15T16:59:23Z'
                    created_at: '2026-01-15T16:59:22.996009Z'
                    updated_at: '2026-01-15T16:59:23.734739Z'
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 550e8400-e29b-41d4-a716-446655440000
                  origin_onboarding:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 660e8400-e29b-41d4-a716-446655440001
                      status:
                        type: string
                        example: TRANSFERRED
                      type:
                        type: string
                        example: ONE_STEP_ONBOARDING
                      workflow:
                        type: string
                        example: DIRECT
                      response_message: {}
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: STRIPE
                          recipient_id:
                            type: string
                            example: acct_1234567890
                          connection_id:
                            type: string
                            example: 880e8400-e29b-41d4-a716-446655440003
                          legal_entity:
                            type: string
                            example: COMPANY
                      documentation:
                        type: array
                        items:
                          type: object
                          properties: {}
                      legal_representatives:
                        type: array
                        items:
                          type: object
                          properties: {}
                      requirements:
                        type: array
                        items:
                          type: object
                          properties: {}
                      metadata:
                        type: array
                        items:
                          type: object
                          properties: {}
                      withdrawal_methods: {}
                      capabilities: {}
                      recipient:
                        type: object
                        properties:
                          id:
                            type: string
                            example: 770e8400-e29b-41d4-a716-446655440002
                          merchant_recipient_id:
                            type: string
                            example: seller-123
                          country:
                            type: string
                            example: BR
                          national_entity:
                            type: string
                            example: INDIVIDUAL
                          entity_type:
                            type: string
                            example: PERSON
                          email:
                            type: string
                            example: seller@example.com
                          first_name:
                            type: string
                            example: João
                          last_name:
                            type: string
                            example: Silva
                          created_at:
                            type: string
                            example: '2026-01-10T12:00:00Z'
                          updated_at:
                            type: string
                            example: '2026-01-10T12:00:00Z'
                      created_at:
                        type: string
                        example: '2026-01-15T10:00:00Z'
                      updated_at:
                        type: string
                        example: '2026-01-15T16:59:22Z'
                  destination_onboarding:
                    type: object
                    properties:
                      id:
                        type: string
                        example: 990e8400-e29b-41d4-a716-446655440004
                      status:
                        type: string
                        example: SUCCEEDED
                      type:
                        type: string
                        example: ONE_STEP_ONBOARDING
                      workflow:
                        type: string
                        example: DIRECT
                      response_message: {}
                      provider:
                        type: object
                        properties:
                          id:
                            type: string
                            example: STRIPE
                          recipient_id:
                            type: string
                            example: acct_0987654321
                          connection_id:
                            type: string
                            example: 880e8400-e29b-41d4-a716-446655440003
                          legal_entity:
                            type: string
                            example: COMPANY
                      documentation:
                        type: array
                        items:
                          type: object
                          properties: {}
                      legal_representatives:
                        type: array
                        items:
                          type: object
                          properties: {}
                      requirements:
                        type: array
                        items:
                          type: object
                          properties: {}
                      metadata:
                        type: array
                        items:
                          type: object
                          properties: {}
                      withdrawal_methods: {}
                      capabilities: {}
                      recipient:
                        type: object
                        properties:
                          id:
                            type: string
                            example: aa0e8400-e29b-41d4-a716-446655440005
                          merchant_recipient_id:
                            type: string
                            example: seller-456
                          country:
                            type: string
                            example: BR
                          national_entity:
                            type: string
                            example: INDIVIDUAL
                          entity_type:
                            type: string
                            example: PERSON
                          email:
                            type: string
                            example: newseller@example.com
                          first_name:
                            type: string
                            example: Maria
                          last_name:
                            type: string
                            example: Santos
                          created_at:
                            type: string
                            example: '2026-01-12T14:00:00Z'
                          updated_at:
                            type: string
                            example: '2026-01-12T14:00:00Z'
                      created_at:
                        type: string
                        example: '2026-01-15T16:59:22Z'
                      updated_at:
                        type: string
                        example: '2026-01-15T16:59:23Z'
                  created_at:
                    type: string
                    example: '2026-01-15T16:59:22.996009Z'
                  updated_at:
                    type: string
                    example: '2026-01-15T16:59:23.734739Z'
        '401':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: UNAUTHORIZED
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid authentication credentials.
              examples:
                'Unauthorized: Invalid authentication':
                  summary: 'Unauthorized: Invalid authentication'
                  value:
                    code: UNAUTHORIZED
                    messages:
                      - Invalid authentication credentials.
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: FORBIDDEN
                  messages:
                    type: array
                    items:
                      type: string
                      example: You do not have permission to access this resource.
              examples:
                'Forbidden: Transfer belongs to different organization':
                  summary: 'Forbidden: Transfer belongs to different organization'
                  value:
                    code: FORBIDDEN
                    messages:
                      - You do not have permission to access this resource.
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: TRANSFER_NOT_FOUND
                  messages:
                    type: array
                    items:
                      type: string
                      example: Transfer not found.
              examples:
                'Not Found: Transfer does not exist':
                  summary: 'Not Found: Transfer does not exist'
                  value:
                    code: TRANSFER_NOT_FOUND
                    messages:
                      - Transfer not found.
          description: Not Found
      parameters:
        - in: path
          name: transfer_id
          schema:
            type: string
          required: true
          description: The transfer `id` returned from the [transfer onboarding](/reference/transfer-onboarding) endpoint (UUID).
        - in: header
          name: x-account-code
          schema:
            type: string
          description: The `account_id` found in your [Yuno Dashboard](https://dashboard.y.uno/developers) (UUID).
      operationId: get_transfers-transfer-id
      tags:
        - Recipients For Marketplace
  /v2/payments:
    post:
      summary: Create Payment (two cards)
      description: >-
        Creates one payment funded by exactly two cards. Each card pays its part of `amount`. If one card fails, Yuno
        reverses the other one before it answers.
      operationId: create-payment-v2
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            Unique key for this request. Required on every v2 payment request. Retry an unclear outcome with the same
            key. Without it the request is rejected with `400 INVALID_PARAMETERS`: "The header 'x-idempotency-key' is
            required."
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - merchant_order_id
                - description
                - country
                - amount
                - workflow
                - payment_method
                - customer_payer
              properties:
                account_id:
                  type: string
                  format: uuid
                  description: Your Yuno account id.
                merchant_order_id:
                  type: string
                  description: Your order id (MIN 3; MAX 255).
                merchant_reference:
                  type: string
                  description: Your reference for the payment (MIN 3; MAX 255).
                description:
                  type: string
                  description: Description of the payment (MIN 3; MAX 255).
                country:
                  type: string
                  description: ISO 3166-1 alpha-2 country code.
                amount:
                  type: object
                  description: >-
                    Total of the payment. It must equal the sum of the two card amounts. `amount.currency_conversion` is
                    not allowed.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 currency code (3 characters).
                      example: BRL
                    value:
                      type: number
                      description: Amount in major units (multiple of 0.0001).
                      example: 300
                workflow:
                  type: string
                  enum:
                    - DIRECT
                    - REDIRECT
                    - SDK_CHECKOUT
                  description: >-
                    `DIRECT` or `REDIRECT` with `payment_method.payment_methods`, or `SDK_CHECKOUT` with
                    `checkout.session` and the composite `payment_method.token`.
                checkout:
                  type: object
                  description: Required for `SDK_CHECKOUT`.
                  properties:
                    session:
                      type: string
                      format: uuid
                      description: The checkout session the composite token was created for.
                payment_method:
                  type: object
                  properties:
                    capture:
                      type: boolean
                      default: true
                      description: >-
                        Shared by both cards. `true` (default) charges both cards; `false` authorizes them and you
                        capture each one later.
                    token:
                      type: string
                      format: uuid
                      description: >-
                        `SDK_CHECKOUT` only: the composite one-time token from the Web SDK. Do not send
                        `payment_methods` with it.
                    payment_methods:
                      type: array
                      description: '`DIRECT` and `REDIRECT` only: exactly two items, both `type: CARD`.'
                      minItems: 2
                      maxItems: 2
                      items:
                        type: object
                        required:
                          - type
                          - amount
                        properties:
                          type:
                            type: string
                            enum:
                              - CARD
                          amount:
                            type: object
                            description: >-
                              Part of the total that this card pays. `value` greater than 0; `currency` the same as
                              `amount.currency`.
                            required:
                              - currency
                              - value
                            properties:
                              currency:
                                type: string
                                description: ISO 4217 currency code (3 characters).
                                example: BRL
                              value:
                                type: number
                                description: Amount in major units (multiple of 0.0001).
                                example: 300
                          vaulted_token:
                            type: string
                            format: uuid
                            description: Vaulted token of an enrolled card. Send it or `detail.card`.
                          detail:
                            type: object
                            properties:
                              card:
                                type: object
                                description: 'Card data. Do not send `capture` here: use `payment_method.capture`.'
                                properties:
                                  number:
                                    type: string
                                    example: '4111111111111111'
                                  expiration_month:
                                    type: integer
                                    example: 11
                                  expiration_year:
                                    type: integer
                                    example: 2029
                                  security_code:
                                    type: string
                                    example: '123'
                                  holder_name:
                                    type: string
                                    example: ANA SOUZA
                          payment_method_owner:
                            type: object
                            description: >-
                              Optional. The cardholder of this card, when it is not the payer. Same fields as
                              `customer_payer`.
                          account_updater:
                            type: boolean
                            description: Optional.
                customer_payer:
                  type: object
                  description: >-
                    Required. The payer, shared by both cards. Same fields as in [Create
                    Payment](/reference/payments/create-payment).
                callback_url:
                  type: string
                  description: Optional. Where a 3DS challenge or a redirect returns the customer.
                additional_data:
                  type: object
                  description: Optional, as in v1.
                metadata:
                  type: array
                  items:
                    type: object
            examples:
              'DIRECT: two new cards':
                value:
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  merchant_order_id: order-10045
                  description: Order paid with two cards
                  country: BR
                  amount:
                    currency: BRL
                    value: 300
                  workflow: DIRECT
                  customer_payer:
                    id: cfae0941-7234-427a-a739-ef4fce966c79
                    first_name: Ana
                    last_name: Souza
                    email: ana.souza@example.com
                    document:
                      document_type: CPF
                      document_number: '12345678909'
                  payment_method:
                    capture: true
                    payment_methods:
                      - type: CARD
                        amount:
                          currency: BRL
                          value: 200
                        detail:
                          card:
                            number: '4111111111111111'
                            expiration_month: 11
                            expiration_year: 2029
                            security_code: '123'
                            holder_name: ANA SOUZA
                      - type: CARD
                        amount:
                          currency: BRL
                          value: 100
                        detail:
                          card:
                            number: '5555555555554444'
                            expiration_month: 3
                            expiration_year: 2030
                            security_code: '456'
                            holder_name: ANA SOUZA
              'DIRECT: one vaulted card and one new card':
                value:
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  merchant_order_id: order-10046
                  description: Order paid with two cards
                  country: BR
                  amount:
                    currency: BRL
                    value: 300
                  workflow: DIRECT
                  customer_payer:
                    id: cfae0941-7234-427a-a739-ef4fce966c79
                  payment_method:
                    capture: false
                    payment_methods:
                      - type: CARD
                        amount:
                          currency: BRL
                          value: 120
                        vaulted_token: aad8578e-ac2f-40a0-8065-25b5957f6555
                      - type: CARD
                        amount:
                          currency: BRL
                          value: 180
                        detail:
                          card:
                            number: '4111111111111111'
                            expiration_month: 11
                            expiration_year: 2029
                            security_code: '123'
                            holder_name: JOAO SOUZA
                        payment_method_owner:
                          first_name: Joao
                          last_name: Souza
                          email: joao.souza@example.com
              'SDK_CHECKOUT: composite token':
                value:
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  merchant_order_id: order-10047
                  description: Order paid with two cards
                  country: BR
                  amount:
                    currency: BRL
                    value: 300
                  workflow: SDK_CHECKOUT
                  checkout:
                    session: eec6578e-ac2f-40a0-8065-25b5957f6dd3
                  customer_payer:
                    id: cfae0941-7234-427a-a739-ef4fce966c79
                  payment_method:
                    token: ee78bc2a-63b4-45bb-bd28-3e6829ab1c3d
                    capture: true
                  callback_url: https://merchant.example.com/checkout/return
      responses:
        '201':
          description: Payment created. Read `status` and `sub_status`, then each card's `transactions`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                Both cards charged:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: true
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
                Both cards authorized (capture false):
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: PENDING
                    sub_status: AUTHORIZED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: false
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
                One card declined, the other refunded:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: DECLINED
                    sub_status: DECLINED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: true
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: f4c6b8d0-3e5a-4c7d-8f9b-1a2b3c4d5e6f
                              type: REFUND
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: PURCHASE
                              status: DECLINED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: DECLINED_BY_ISSUER
                              response_message: Declined by issuer
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
                Workflow not allowed:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        The field 'workflow' has an invalid value for /v2/payments, the allowed values are: 'DIRECT',
                        'REDIRECT', 'SDK_CHECKOUT'.
                SDK_CHECKOUT without session or token:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'checkout.session' is required for the SDK_CHECKOUT workflow.
                      - The field 'payment_method.token' is required for the SDK_CHECKOUT workflow.
                SDK_CHECKOUT token is not a UUID:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'payment_method.token' must be a valid UUID.
                payment_methods with SDK_CHECKOUT:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        The field 'payment_method.payment_methods' is not allowed for the SDK_CHECKOUT workflow, the
                        one-time token carries the payment methods.
                token with DIRECT:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'payment_method.token' is only allowed for the SDK_CHECKOUT workflow, not for DIRECT.
                Field not allowed with two methods:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'split_marketplace' is not allowed with more than one payment method.
                      - The field 'external_subscription' is not allowed with more than one payment method.
                      - The field 'amount.currency_conversion' is not allowed with more than one payment method.
                Capture per card:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - >-
                        The field 'payment_method.payment_methods[0].detail.card.capture' is not allowed, use
                        'payment_method.capture' for every payment method.
                Invalid card item:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The field 'payment_method.payment_methods[1].type' must be 'CARD'.
                      - The field 'payment_method.payment_methods[0].amount.value' must be greater than 0.
                      - The field 'payment_method.payment_methods[1].amount.currency' must match 'amount.currency'.
                Amounts do not add up:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The sum of 'payment_method.payment_methods[].amount.value' must equal 'amount.value'.
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
        '403':
          description: Two-card payments are not enabled for the organization (production only)
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: PRODUCT_NOT_ENABLED
                messages:
                  - >-
                    Payments with more than one payment method are enabled per account. Contact your Key Account Manager
                    (KAM) to activate it.
      tags:
        - Payments
      servers:
        - url: https://api-sandbox.y.uno
          description: Sandbox
        - url: https://api.y.uno
          description: Production (US)
  /v2/payments/{payment_id}:
    get:
      summary: Retrieve Payment (v2)
      description: >-
        Retrieves a payment created with `POST /v2/payments`, with one entry per card in
        `payment_method.payment_methods`.
      operationId: retrieve-payment-two-cards
      parameters:
        - name: payment_id
          in: path
          required: true
          description: The `id` of the payment returned by `POST /v2/payments`.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The payment
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                Both cards charged:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: SUCCEEDED
                    sub_status: APPROVED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: true
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
                One card captured:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: SUCCEEDED
                    sub_status: PARTIALLY_CAPTURED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: false
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: a5d7c9e1-4f6b-4d8e-9a0c-2b3c4d5e6f7a
                              type: CAPTURE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
        '404':
          description: Payment not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: PAYMENT_NOT_FOUND
                messages:
                  - Payment not found
      tags:
        - Payments
      servers:
        - url: https://api-sandbox.y.uno
          description: Sandbox
        - url: https://api.y.uno
          description: Production (US)
  /v2/payments/{payment_id}/cancel-or-refund:
    post:
      summary: Cancel or Refund a Payment (two cards)
      description: >-
        Cancels or refunds the whole payment. An optional `amount` is spread across the cards, the card with the most
        refundable amount first.
      operationId: cancel-or-refund-a-payment-v2
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            Unique key for this request. Required on every v2 payment request. Retry an unclear outcome with the same
            key. Without it the request is rejected with `400 INVALID_PARAMETERS`: "The header 'x-idempotency-key' is
            required."
          schema:
            type: string
            format: uuid
        - name: payment_id
          in: path
          required: true
          description: The `id` of the payment returned by `POST /v2/payments`.
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                description:
                  type: string
                  description: Description of the cancellation or refund. (MAX 255; MIN 3).
                reason:
                  type: string
                  description: Reason for the operation. Possible values are `DUPLICATE`, `FRAUDULENT` and `REQUESTED_BY_CUSTOMER`.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                merchant_reference:
                  type: string
                  description: >-
                    Identification of the payment transaction defined by the merchant. If no merchant_reference is
                    defined, the merchant_order_id of the payment will be associated to the transaction. (MAX 255; MIN
                    3).
                amount:
                  type: object
                  description: >-
                    Optional. Amount to refund across both cards, the card with the most refundable amount first. Above
                    the total refundable amount, the request is rejected. If you omit it, the whole payment is canceled
                    or refunded.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 currency code (3 characters).
                      example: BRL
                    value:
                      type: number
                      description: Amount in major units (multiple of 0.0001).
                      example: 300
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 3).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 3).
                    gender:
                      type: string
                      description: >-
                        The customer's gender (MAX 2; MIN 1). <br/>- M=Male <br/>- F=Female <br/>- NB=Non Binary <br/>-
                        NA=Not applicable <br/>- NK=Not Known <br/>- U=Undefined.
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the `YYYY-MM-DD` format (Length: 10).'
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      properties:
                        document_number:
                          type: string
                          description: Document number for customer (MAX 40; MIN 3)
                        document_type:
                          type: string
                          description: >-
                            The customer's document type (MAX 6, MIN 2). Access [Document Type
                            List](/reference/country-reference) for more details.
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Specifies the customer's phone object.
                      properties:
                        country_code:
                          type: string
                          description: The country code of the customer's phone (MAX 3; MIN 1).
                        number:
                          type: string
                          description: The customer's phone number, without the country code (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary billing address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary billing address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the billing address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the billing address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the billing address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary shipping address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the shipping address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the shipping address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the shipping address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                payment_method:
                  type: object
                  description: Specifies payment method object for payments.
                  properties:
                    detail:
                      type: object
                      description: Specifies the payment method detail object.
                      properties:
                        bank_transfer:
                          type: object
                          description: Specifies bank transfer payment method details.
                          properties:
                            account_type:
                              type: string
                              description: Type of bank account (MAX 255; MIN 3)
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_name:
                              type: string
                              description: Name of the bank (MAX 255; MIN 3)
                            bank_id:
                              type: string
                              description: ID of the bank (MAX 255; MIN 3)
                            beneficiary_name:
                              type: string
                              description: Name of the account holder (MAX 255; MIN 3)
                            bank_account:
                              type: string
                              description: Bank account number (MAX 255; MIN 3)
                            beneficiary_document_type:
                              type: string
                              description: Document type of the account holder (MAX 255; MIN 3)
                            beneficiary_document:
                              type: string
                              description: Document number of the account holder (MAX 255; MIN 3)
                            reference:
                              type: string
                              description: Reference code for the user (MAX 255; MIN 1)
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
              required:
                - reason
      responses:
        '201':
          description: The payment after the operation, in the v2 shape
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                Both cards refunded:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: REFUNDED
                    sub_status: REFUNDED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: true
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: b6e8d0f2-5a7c-4e9f-8b1d-3c4d5e6f7a8b
                              type: REFUND
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: d8a0f2b4-7c9e-4a1b-8d3f-5e6f7a8b9c0d
                              type: REFUND
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '400':
          description: >-
            Invalid request. `INVALID_PARAMETERS` for a missing idempotency key or an amount above what can be operated
            on; `INVALID_STATUS` when the card cannot take the operation, for example a refund while the card has an
            open chargeback, or a capture or cancel while the payment is in `REFUND_RETRY_IN_PROCESS` or
            `CANCEL_RETRY_IN_PROCESS`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
      tags:
        - Payments
      servers:
        - url: https://api-sandbox.y.uno
          description: Sandbox
        - url: https://api.y.uno
          description: Production (US)
  /v2/payments/{payment_id}/transactions/{transaction_id}/cancel:
    post:
      summary: Cancel Payment (two cards)
      description: Cancels the authorization of one card, with that card's `AUTHORIZE` transaction id.
      operationId: cancel-payment-v2
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            Unique key for this request. Required on every v2 payment request. Retry an unclear outcome with the same
            key. Without it the request is rejected with `400 INVALID_PARAMETERS`: "The header 'x-idempotency-key' is
            required."
          schema:
            type: string
            format: uuid
        - name: payment_id
          in: path
          required: true
          description: The `id` of the payment returned by `POST /v2/payments`.
          schema:
            type: string
            format: uuid
        - name: transaction_id
          in: path
          required: true
          description: The `id` of the card transaction to operate on, from `payment_method.payment_methods[].transactions[]`.
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
              properties:
                description:
                  type: string
                  description: Description of the cancellation.(MAX 255; MIN 3)
                reason:
                  type: string
                  description: Reason for the operation. Possible values are `DUPLICATE`, `FRAUDULENT` and `REQUESTED_BY_CUSTOMER`.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                merchant_reference:
                  type: string
                  description: Identification of the payment transaction defined by the merchant (MAX 255; MIN 3).
      responses:
        '201':
          description: The payment after the operation, in the v2 shape
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                Card canceled:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: CANCELED
                    sub_status: CANCELED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: false
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: c7f9e1a3-6b8d-4f0a-9c2e-4d5e6f7a8b9c
                              type: CANCEL
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '400':
          description: >-
            Invalid request. `INVALID_PARAMETERS` for a missing idempotency key or an amount above what can be operated
            on; `INVALID_STATUS` when the card cannot take the operation, for example a refund while the card has an
            open chargeback, or a capture or cancel while the payment is in `REFUND_RETRY_IN_PROCESS` or
            `CANCEL_RETRY_IN_PROCESS`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
      tags:
        - Payments
      servers:
        - url: https://api-sandbox.y.uno
          description: Sandbox
        - url: https://api.y.uno
          description: Production (US)
  /v2/payments/{payment_id}/transactions/{transaction_id}/cancel-or-refund:
    post:
      summary: Cancel or Refund with Transaction (two cards)
      description: Cancels one card if it is only authorized, or refunds it if it was charged.
      operationId: cancel-or-refund-payment-with-transaction-v2
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            Unique key for this request. Required on every v2 payment request. Retry an unclear outcome with the same
            key. Without it the request is rejected with `400 INVALID_PARAMETERS`: "The header 'x-idempotency-key' is
            required."
          schema:
            type: string
            format: uuid
        - name: payment_id
          in: path
          required: true
          description: The `id` of the payment returned by `POST /v2/payments`.
          schema:
            type: string
            format: uuid
        - name: transaction_id
          in: path
          required: true
          description: The `id` of the card transaction to operate on, from `payment_method.payment_methods[].transactions[]`.
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required: []
              properties:
                description:
                  type: string
                  description: Description of the cancellation or refund. (MAX 255; MIN 3).
                reason:
                  type: string
                  description: Reason for the operation. Possible values are `DUPLICATE`, `FRAUDULENT` and `REQUESTED_BY_CUSTOMER`.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                merchant_reference:
                  type: string
                  description: >-
                    Identification of the payment transaction defined by the merchant. If no merchant_reference is
                    defined, the merchant_order_id of the payment will be associated to the transaction. (MAX 255; MIN
                    3).
                amount:
                  type: object
                  description: Optional. Amount to refund on this card.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 currency code (3 characters).
                      example: BRL
                    value:
                      type: number
                      description: Amount in major units (multiple of 0.0001).
                      example: 300
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 3).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 3).
                    gender:
                      type: string
                      description: >-
                        The customer's gender (MAX 2; MIN 1). <br/>- M=Male <br/>- F=Female <br/>- NB=Non Binary <br/>-
                        NA=Not applicable <br/>- NK=Not Known <br/>- U=Undefined.
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the `YYYY-MM-DD` format (Length: 10).'
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      properties:
                        document_number:
                          type: string
                          description: Document number for customer (MAX 40; MIN 3)
                        document_type:
                          type: string
                          description: >-
                            The customer's document type (MAX 6, MIN 2). Access [Document Type
                            List](/reference/country-reference) for more details.
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Specifies the customer's phone object.
                      properties:
                        country_code:
                          type: string
                          description: The country code of the customer's phone (MAX 3; MIN 1).
                        number:
                          type: string
                          description: The customer's phone number, without the country code (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary billing address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary billing address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the billing address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the billing address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the billing address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary shipping address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the shipping address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the shipping address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the shipping address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                payment_method:
                  type: object
                  description: Specifies payment method object for payments.
                  properties:
                    detail:
                      type: object
                      description: Specifies the payment method detail object.
                      properties:
                        bank_transfer:
                          type: object
                          description: Specifies bank transfer payment method details.
                          properties:
                            account_type:
                              type: string
                              description: Type of bank account (MAX 255; MIN 3)
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_name:
                              type: string
                              description: Name of the bank (MAX 255; MIN 3)
                            bank_id:
                              type: string
                              description: ID of the bank (MAX 255; MIN 3)
                            beneficiary_name:
                              type: string
                              description: Name of the account holder (MAX 255; MIN 3)
                            bank_account:
                              type: string
                              description: Bank account number (MAX 255; MIN 3)
                            beneficiary_document_type:
                              type: string
                              description: Document type of the account holder (MAX 255; MIN 3)
                            beneficiary_document:
                              type: string
                              description: Document number of the account holder (MAX 255; MIN 3)
                            reference:
                              type: string
                              description: Reference code for the user (MAX 255; MIN 1)
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
      responses:
        '201':
          description: The payment after the operation, in the v2 shape
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                One card refunded:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: SUCCEEDED
                    sub_status: PARTIALLY_REFUNDED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: true
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: b6e8d0f2-5a7c-4e9f-8b1d-3c4d5e6f7a8b
                              type: REFUND
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '400':
          description: >-
            Invalid request. `INVALID_PARAMETERS` for a missing idempotency key or an amount above what can be operated
            on; `INVALID_STATUS` when the card cannot take the operation, for example a refund while the card has an
            open chargeback, or a capture or cancel while the payment is in `REFUND_RETRY_IN_PROCESS` or
            `CANCEL_RETRY_IN_PROCESS`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
      tags:
        - Payments
      servers:
        - url: https://api-sandbox.y.uno
          description: Sandbox
        - url: https://api.y.uno
          description: Production (US)
  /v2/payments/{payment_id}/transactions/{transaction_id}/capture:
    post:
      summary: Capture Authorization (two cards)
      description: Captures the authorization of one card. Call it once per card, with that card's `AUTHORIZE` transaction id.
      operationId: capture-authorization-v2
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            Unique key for this request. Required on every v2 payment request. Retry an unclear outcome with the same
            key. Without it the request is rejected with `400 INVALID_PARAMETERS`: "The header 'x-idempotency-key' is
            required."
          schema:
            type: string
            format: uuid
        - name: payment_id
          in: path
          required: true
          description: The `id` of the payment returned by `POST /v2/payments`.
          schema:
            type: string
            format: uuid
        - name: transaction_id
          in: path
          required: true
          description: The `id` of the card transaction to operate on, from `payment_method.payment_methods[].transactions[]`.
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
                - reason
              properties:
                merchant_reference:
                  type: string
                  description: Identification of the payment transaction defined by the merchant (MAX 255; MIN 3)
                amount:
                  type: object
                  description: >-
                    Optional. Amount to capture on this card. If you omit it, the full authorized amount of the card is
                    captured.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 currency code (3 characters).
                      example: BRL
                    value:
                      type: number
                      description: Amount in major units (multiple of 0.0001).
                      example: 300
                reason:
                  type: string
                  description: Reason for the operation. Possible values are `DUPLICATE`, `FRAUDULENT` and `REQUESTED_BY_CUSTOMER`.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                additional_data:
                  type: object
                  description: Additional data to complement the payment capture
                  properties:
                    order:
                      type: object
                      description: Specifies the order object.
                      properties:
                        shipping_amount:
                          type: number
                          description: The shipping amount of the order (multiple of 0.0001)
                          format: float
                        fee_amount:
                          type: number
                          description: The fee amount of the order (multiple of 0.0001)
                          format: float
                        items:
                          type: array
                          description: Specifies the items array of object.
                          items:
                            properties:
                              id:
                                type: string
                                description: The unique identifier of the item (MAX 255; MIN 3).
                              name:
                                type: string
                                description: The name of the item (MAX 255; MIN 3).
                              quantity:
                                type: integer
                                description: The quantity of the item.
                                format: int32
                              unit_amount:
                                type: number
                                description: The unit amount of the item (multiple of 0.0001).
                                format: float
                              category:
                                type: string
                                description: >-
                                  The category of the item. Check the [Item category
                                  reference](/reference/items-category-list).
                                enum:
                                  - art
                                  - baby
                                  - coupons
                                  - beauty_&_personal_care
                                  - donations
                                  - computing
                                  - books
                                  - grocery_&_gourmet_food
                                  - cameras
                                  - video_games
                                  - television
                                  - car_electronics
                                  - electronics
                                  - automotive
                                  - toys_&_games
                                  - musical_instruments
                                  - handmade
                                  - garden_&_outdoor
                                  - entertainment
                                  - industrial_&_scientific
                                  - fashion
                                  - games
                                  - pet_supplies
                                  - home
                                  - musical
                                  - phones
                                  - services
                                  - learnings
                                  - tickets
                                  - travels
                                  - virtual_goods
                                  - others
                              brand:
                                type: string
                                description: The brand of the item (MAX 255; MIN 3).
                              sku_code:
                                type: string
                                description: The stock keeping unit (SKU) of the item (MAX 255; MIN 3).
                              manufacture_part_number:
                                type: string
                                description: The manufacture part number of the item
                            required:
                              - id
                              - name
                              - quantity
                              - unit_amount
                            type: object
                    airline:
                      type: object
                      description: Specifies the airline object.
                      properties:
                        pnr:
                          type: string
                          description: Passenger name record (MAX 10; MIN 1).
                        legs:
                          type: array
                          description: Specifies the legs array of objects.
                          items:
                            properties:
                              departure_airport:
                                type: string
                                description: IATA code. See http://www.iata.org (MAX 3; MIN 3).
                              departure_datetime:
                                type: string
                                description: >-
                                  The departure date and time in UTC time ([ISO
                                  8601](https://en.wikipedia.org/wiki/ISO_8601), MAX 27; MIN 27).
                                format: date-time
                              departure_airport_timezone:
                                type: string
                                description: Airport timezone (MAX 6; MIN 6).
                              arrival_airport:
                                type: string
                                description: IATA airport code. See http://www.iata.org (MAX 3; MIN 3).
                              carrier_code:
                                type: string
                                description: IATA carrier code. See http://www.iata.org (MAX 2; MIN 2).
                              carrier_name:
                                type: string
                                description: The name of the airline carrier (MAX 100; MIN 1).
                              flight_number:
                                type: string
                                description: The flight number assigned by the airline carrier (MAX 5; MIN 1).
                              fare_basis_code:
                                type: string
                                description: >-
                                  Code base rate provides specific information on the fare in addition to the class
                                  service, both required for booking (MAX 15; MIN 1).
                              fare_class_code:
                                type: string
                                description: >-
                                  The fare class code of the airline (MAX 1; MIN 1). The values can be a letter (A-Z)
                                  but may vary depending on the airline's definition. Check the [Airline information
                                  reference](/reference/airline-information#fare-class-code).
                                enum:
                                  - F
                                  - FR
                                  - B
                                  - CR
                                  - 'Y'
                                  - YD
                              base_fare:
                                type: number
                                description: >-
                                  The transaction amount, excluding taxes and fees, the smallest unit of currency
                                  (multipleOf 0.0001).
                                format: float
                              base_fare_currency:
                                type: string
                                description: The currency used to transaction amount (MAX 3; MIN 3; [ISO 4217](country-reference)).
                              stopover_code:
                                type: string
                                description: >-
                                  1-letter code that indicates whether the passenger is allowed to make a stopover. Only
                                  two types of characters are allowed: O: Stopover allowed (the letter “O”, not zero) /
                                  X: Stopover not allowed. (MAX 1; MIN 1)
                            required:
                              - departure_airport
                              - departure_datetime
                              - departure_airport_timezone
                              - arrival_airport
                              - carrier_code
                              - flight_number
                              - fare_basis_code
                              - fare_class_code
                            type: object
                        passengers:
                          type: array
                          description: Specifies the passengers array of objects associated to the tickets.
                          items:
                            properties:
                              first_name:
                                type: string
                                description: The passenger first name (MAX 255; MIN 3).
                              last_name:
                                type: string
                                description: The passenger last name (MAX 255; MIN 3)
                              middle_name:
                                type: string
                                description: The passenger middle name (MAX 255; MIN 3).
                              type:
                                type: string
                                description: >-
                                  The passenger type (MAX 1; MIN 1). Check the [Airline information
                                  reference](/reference/airline-information#passenger-type).
                                enum:
                                  - A
                                  - C
                                  - I
                              date_of_birth:
                                type: string
                                description: The passenger date of birth in the YYYY-MM-DD (MAX 10; MIN 10).
                                format: date
                              nationality:
                                type: string
                                description: The passenger nationality (MAX 2; MIN 2; [ISO 3166-1](country-reference)).
                                enum:
                                  - AR
                                  - BO
                                  - BR
                                  - CL
                                  - CO
                                  - CR
                                  - EC
                                  - SV
                                  - GT
                                  - HN
                                  - MX
                                  - NI
                                  - PA
                                  - PY
                                  - PE
                                  - US
                                  - UY
                              document:
                                type: object
                                description: Specifies the passengers' document object.
                                properties:
                                  document_number:
                                    type: string
                                    description: Document number for passenger (MAX 40; MIN 3).
                                  document_type:
                                    type: string
                                    description: >-
                                      The passenger's document type (MAX 6, MIN 2; ([Country
                                      reference](country-reference))).
                                    enum:
                                      - DNI
                                      - CI
                                      - LC
                                      - LE
                                      - CUIT
                                      - CUIL
                                      - PAS
                                      - CPF
                                      - RG
                                      - CNH
                                      - CNPJ
                                      - RUT
                                      - RUN
                                      - CC
                                      - CE
                                      - NIT
                                      - DUI
                                      - PIC
                                      - DPI
                                      - IFR
                                      - INE
                                      - CP
                                      - RFC
                                      - CURP
                                      - CIP
                                      - CIC
                                      - CUI
                                      - RUC
                                      - ''
                                  country:
                                    type: string
                                    description: >-
                                      Country where the document was issued (MAX 2; MIN 2; [ISO
                                      3166-1](country-reference)).
                                    enum:
                                      - AR
                                      - BO
                                      - BR
                                      - CL
                                      - CO
                                      - CR
                                      - EC
                                      - SV
                                      - GT
                                      - HN
                                      - MX
                                      - NI
                                      - PA
                                      - PY
                                      - PE
                                      - US
                                      - UY
                              loyalty_number:
                                type: string
                                description: Number of passenger loyalty program.
                              loyalty_tier:
                                type: string
                                description: >-
                                  Tier of passenger loyalty program. Check the [Airline information
                                  reference](/reference/airline-information#loyalty-tier).
                                enum:
                                  - '1'
                                  - '2'
                                  - '3'
                              phone:
                                type: object
                                description: Specifies the phone object for the passenger.
                            type: object
                        tickets:
                          type: array
                          description: Specifies the array of ticket objects associated to the passengers.
                          items:
                            properties:
                              ticket_number:
                                type: string
                                description: Ticket number (MAX 14; MIN 1).
                              e_ticket:
                                type: boolean
                                description: Is this an e-ticket?  (true) (false).
                              restricted:
                                type: boolean
                                description: Indicates if the ticket is refunfable or not (true/false)
                              total_fare_amount:
                                type: number
                                description: Total fare amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              total_tax_amount:
                                type: number
                                description: Total taxes amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              total_fee_amount:
                                type: number
                                description: Total fee amount in the smallest unit of currency (multiple of 0.0001).
                                format: float
                              issue:
                                type: object
                                description: Specifies the issue object.
                                properties:
                                  carrier_prefix_code:
                                    type: string
                                    description: >-
                                      Issuing or Validating carrier. This is the AWB Prefix (Air waybill) 3-numeric code
                                      (MAX 3; MIN 3).
                                  travel_agent_code:
                                    type: string
                                    description: Code of the travel agent issuing the ticket (MAX 9; MIN 8).
                                  travel_agent_name:
                                    type: string
                                    description: >-
                                      The name under which the point of sale appears on the agency list or franchise
                                      name (MAX 32; MIN 1).
                                  date:
                                    type: string
                                    description: Ticket issuing date (MAX 27; MIN 27).
                                    format: date-time
                                  address:
                                    type: string
                                    description: Address of the agent whose sold the ticket (MAX 255; MIN 3).
                                  city:
                                    type: string
                                    description: City name of the agent whose sold the ticket (MAX 255; MIN 3).
                                  country:
                                    type: string
                                    description: >-
                                      Country code alpha 2 where the ticket was issued (MAX 2; MIN 2; [ISO
                                      3166-1](country-reference)).
                                    enum:
                                      - AR
                                      - BO
                                      - BR
                                      - CL
                                      - CO
                                      - CR
                                      - EC
                                      - SV
                                      - GT
                                      - HN
                                      - MX
                                      - NI
                                      - PA
                                      - PY
                                      - PE
                                      - US
                                      - UY
                            type: object
                    seller_details:
                      type: object
                      description: Specifies the seller's details object.
                      properties:
                        name:
                          type: string
                          description: The seller's legal name (MAX 255; MIN 3).
                        email:
                          type: string
                          description: The seller's e-mail (MAX 255; MIN 3).
                        reference:
                          type: number
                          description: The seller's identification code (MAX 255; MIN 3).
                          format: float
                        website:
                          type: string
                          description: The seller's website URL (MAX 255; MIN 3).
                        industry:
                          type: string
                          description: >-
                            The seller's industry (MAX 235; MIN 1) For more information access the [Industry category
                            reference page](/reference/industry-category-list).
                        merchant_category_code:
                          type: string
                          description: MCC - The merchant category code (MAX 235; MIN 1).
                        country:
                          type: string
                          description: The seller's country (MAX 255; MIN 3; [ISO 3166-1](/reference/country-reference)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                            - ''
                        document:
                          type: object
                          description: Specifies the document object of the seller.
                          properties:
                            document_number:
                              type: string
                              description: The seller's document number (MAX 40; MIN 3).
                            document_type:
                              type: string
                              description: >-
                                The seller's document type (MAX 6, MIN 2; [Document Type
                                List](/reference/country-reference)).
                              enum:
                                - DNI
                                - CI
                                - LC
                                - LE
                                - CUIT
                                - CUIL
                                - PAS
                                - CPF
                                - RG
                                - CNH
                                - CNPJ
                                - RUT
                                - RUN
                                - CC
                                - CE
                                - NIT
                                - DUI
                                - PIC
                                - DPI
                                - IFR
                                - INE
                                - CP
                                - RFC
                                - CURP
                                - CIP
                                - CIC
                                - CUI
                                - RUC
                                - ''
                        phone:
                          type: object
                          description: Specifies the seller's phone number object.
                          properties:
                            country_code:
                              type: string
                              description: >-
                                The country calling code of the seller's phone (MAX 3; MIN 1). Check the [Country
                                reference](country-reference) to see the phone codes.
                            number:
                              type: string
                              description: The seller's phone number, without the country code (MAX 32; MIN 1).
                        address:
                          type: object
                          description: Specifies the seller's address object.
                          properties:
                            address_line_1:
                              type: string
                              description: The primary address line of the seller (MAX 255; MIN 3).
                            address_line_2:
                              type: string
                              description: The secondary billing address line of the seller (MAX 255; MIN 3).
                            city:
                              type: string
                              description: The city considered for the seller's address (MAX 255; MIN 3).
                            country:
                              type: string
                              description: >-
                                The country considered for the seller's address (MAX 2; MIN 2; [ISO
                                3166-1](/reference/country-reference)).
                              enum:
                                - AR
                                - BO
                                - BR
                                - CL
                                - CO
                                - CR
                                - EC
                                - SV
                                - GT
                                - HN
                                - MX
                                - NI
                                - PA
                                - PY
                                - PE
                                - US
                                - UY
                                - ''
                            state:
                              type: string
                              description: The state considered for the seller's address (MAX 255; MIN 3).
                            zip_code:
                              type: string
                              description: The zipcode considered for the seller's address (MAX 11; MIN 4).
      responses:
        '201':
          description: The payment after the operation, in the v2 shape
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                One card captured:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: SUCCEEDED
                    sub_status: PARTIALLY_CAPTURED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: false
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: a5d7c9e1-4f6b-4d8e-9a0c-2b3c4d5e6f7a
                              type: CAPTURE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '400':
          description: >-
            Invalid request. `INVALID_PARAMETERS` for a missing idempotency key or an amount above what can be operated
            on; `INVALID_STATUS` when the card cannot take the operation, for example a refund while the card has an
            open chargeback, or a capture or cancel while the payment is in `REFUND_RETRY_IN_PROCESS` or
            `CANCEL_RETRY_IN_PROCESS`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
      tags:
        - Payments
      servers:
        - url: https://api-sandbox.y.uno
          description: Sandbox
        - url: https://api.y.uno
          description: Production (US)
  /v2/payments/{payment_id}/transactions/{transaction_id}/refund:
    post:
      summary: Refund Payment (two cards)
      description: >-
        Refunds one card, fully or partially. The refund is capped at that card's amount minus what was already refunded
        on it.
      operationId: refund-payment-v2
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            Unique key for this request. Required on every v2 payment request. Retry an unclear outcome with the same
            key. Without it the request is rejected with `400 INVALID_PARAMETERS`: "The header 'x-idempotency-key' is
            required."
          schema:
            type: string
            format: uuid
        - name: payment_id
          in: path
          required: true
          description: The `id` of the payment returned by `POST /v2/payments`.
          schema:
            type: string
            format: uuid
        - name: transaction_id
          in: path
          required: true
          description: The `id` of the card transaction to operate on, from `payment_method.payment_methods[].transactions[]`.
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
              properties:
                description:
                  type: string
                  description: Description of the refund. (MAX 255; MIN 3).
                reason:
                  type: string
                  description: Reason for the operation. Possible values are `DUPLICATE`, `FRAUDULENT` and `REQUESTED_BY_CUSTOMER`.
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                merchant_reference:
                  type: string
                  description: Identification of the payment transaction defined by the merchant (MAX 255; MIN 3).
                amount:
                  type: object
                  description: Optional. Amount to refund on this card. If you omit it, the card is refunded in full.
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 currency code (3 characters).
                      example: BRL
                    value:
                      type: number
                      description: Amount in major units (multiple of 0.0001).
                      example: 300
                customer_payer:
                  type: object
                  description: Specifies customer object for payments.
                  properties:
                    first_name:
                      type: string
                      description: The customer's first name (MAX 255; MIN 3).
                    last_name:
                      type: string
                      description: The customer's last name (MAX 255; MIN 3).
                    gender:
                      type: string
                      description: >-
                        The customer's gender (MAX 2; MIN 1). <br/>- M=Male <br/>- F=Female <br/>- NB=Non Binary <br/>-
                        NA=Not applicable <br/>- NK=Not Known <br/>- U=Undefined.
                      enum:
                        - M
                        - F
                        - NB
                        - NA
                        - NK
                        - U
                    date_of_birth:
                      type: string
                      description: 'The customer''s date of birth in the `YYYY-MM-DD` format (Length: 10).'
                    email:
                      type: string
                      description: The customer's e-mail (MAX 255; MIN 3).
                    nationality:
                      type: string
                      description: The customer's nationality (MAX 2; MIN 2; [ISO 3166-1](/reference/country-reference)).
                    document:
                      type: object
                      description: Specifies the customer's document object, including its number and type.
                      required:
                        - document_number
                        - document_type
                      properties:
                        document_number:
                          type: string
                          description: Document number for customer (MAX 40; MIN 3)
                        document_type:
                          type: string
                          description: >-
                            The customer's document type (MAX 6, MIN 2). Access [Document Type
                            List](/reference/country-reference) for more details.
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                    phone:
                      type: object
                      description: Specifies the customer's phone object.
                      properties:
                        country_code:
                          type: string
                          description: The country code of the customer's phone (MAX 3; MIN 1).
                        number:
                          type: string
                          description: The customer's phone number, without the country code (MAX 32; MIN 1).
                    billing_address:
                      type: object
                      description: Specifies the customer's billing address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary billing address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary billing address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the billing address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the billing address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the billing address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the billing address (MAX 10; MIN 5).
                    shipping_address:
                      type: object
                      description: Specifies the customer's shipping address object.
                      properties:
                        address_line_1:
                          type: string
                          description: The primary shipping address line of the customer (MAX 255; MIN 3).
                        address_line_2:
                          type: string
                          description: The secondary shipping address line of the customer (MAX 255; MIN 3).
                        city:
                          type: string
                          description: The city considered for the shipping address (MAX 255; MIN 3).
                        country:
                          type: string
                          description: >-
                            The country considered for the shipping address (MAX 2; MIN 2; [ISO
                            3166-1](https://docs.y.uno/reference/customer-object#country-code-list-iso-3166-1)).
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: The state considered for the shipping address (MAX 255; MIN 3).
                        zip_code:
                          type: string
                          description: The zipcode considered for the shipping address (MAX 10; MIN 5).
                payment_method:
                  type: object
                  description: Specifies payment method object for payments.
                  properties:
                    detail:
                      type: object
                      description: Specifies the payment method detail object.
                      properties:
                        bank_transfer:
                          type: object
                          description: Specifies bank transfer payment method details.
                          properties:
                            account_type:
                              type: string
                              description: Type of bank account (MAX 255; MIN 3)
                              enum:
                                - CHECKINGS
                                - SAVINGS
                            bank_name:
                              type: string
                              description: Name of the bank (MAX 255; MIN 3)
                            bank_id:
                              type: string
                              description: ID of the bank (MAX 255; MIN 3)
                            beneficiary_name:
                              type: string
                              description: Name of the account holder (MAX 255; MIN 3)
                            bank_account:
                              type: string
                              description: Bank account number (MAX 255; MIN 3)
                            beneficiary_document_type:
                              type: string
                              description: Document type of the account holder (MAX 255; MIN 3)
                            beneficiary_document:
                              type: string
                              description: Document number of the account holder (MAX 255; MIN 3)
                            reference:
                              type: string
                              description: Reference code for the user (MAX 255; MIN 1)
                            bank_account_mask_number:
                              type: string
                              description: >-
                                Masked bank account number associated with the bank transfer (for example, ****6789).
                                This is account data, not mandate data.
                            mandate:
                              type: object
                              description: >-
                                Direct debit mandate details, for bank transfer methods that operate with mandates (for
                                example, ACH, SEPA, BACS, PAD).
                              properties:
                                id:
                                  type: string
                                  description: Mandate identifier, as provided by the payment provider.
                                info:
                                  type: string
                                  description: Free-text mandate information.
                                received_status:
                                  type: string
                                  description: >-
                                    Provider status indicating whether the mandate was received. Forwarded as provided
                                    by the payment provider.
                                existing_status:
                                  type: string
                                  description: >-
                                    Provider status of the existing mandate. Forwarded as provided by the payment
                                    provider.
                                created_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was created (ISO 8601).
                                updated_at:
                                  type: string
                                  format: date-time
                                  description: Date and time when the mandate was last updated (ISO 8601).
      responses:
        '201':
          description: The payment after the operation, in the v2 shape
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                One card refunded:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: SUCCEEDED
                    sub_status: PARTIALLY_REFUNDED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: true
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: b6e8d0f2-5a7c-4e9f-8b1d-3c4d5e6f7a8b
                              type: REFUND
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: PURCHASE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '400':
          description: >-
            Invalid request. `INVALID_PARAMETERS` for a missing idempotency key or an amount above what can be operated
            on; `INVALID_STATUS` when the card cannot take the operation, for example a refund while the card has an
            open chargeback, or a capture or cancel while the payment is in `REFUND_RETRY_IN_PROCESS` or
            `CANCEL_RETRY_IN_PROCESS`.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
        '401':
          description: Invalid credentials
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
      tags:
        - Payments
      servers:
        - url: https://api-sandbox.y.uno
          description: Sandbox
        - url: https://api.y.uno
          description: Production (US)
  /v2/reports/{report_id}/download:
    get:
      summary: Download a Report
      description: ''
      operationId: download-a-report
      parameters:
        - name: X-Organization-Code
          in: header
          required: true
          schema:
            type: string
          description: Organization code associated to the request.
        - name: report_id
          in: path
          required: true
          description: The report unique identifier.
          schema:
            type: string
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    type: TRANSACTIONS
                    download_link: https://s3.amazonaws.com/.../report.csv
                    status: AVAILABLE
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: TRANSACTIONS
                  download_link:
                    type: string
                    example: https://s3.amazonaws.com/.../report.csv
                  status:
                    type: string
                    example: AVAILABLE
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Bad Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid request
        '401':
          description: '401'
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    code: INVALID_CREDENTIALS
                    messages:
                      - Invalid credentials
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: INVALID_CREDENTIALS
                  messages:
                    type: array
                    items:
                      type: string
                      example: Invalid credentials
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Forbidden:
                  value:
                    code: AUTHORIZATION_REQUIRED
                    messages:
                      - The merchant has no authorization to use this API.
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: AUTHORIZATION_REQUIRED
                  messages:
                    type: array
                    items:
                      type: string
                      example: The merchant has no authorization to use this API.
      deprecated: false
      tags:
        - Reports
      servers:
        - url: https://api-sandbox.y.uno
        - url: https://api.y.uno
  /webhooks:
    get:
      summary: List Webhooks
      description: >-
        Returns the webhooks configured on an account, with their secrets masked. Filter by `state` to list only the
        active or the inactive ones.
      operationId: list-webhooks
      parameters:
        - name: account_id
          in: query
          required: true
          description: The unique identifier of the account the webhooks belong to.
          schema:
            type: string
            format: uuid
            example: 493e9374-510a-4201-9e09-de669d75f256
            x-default: 493e9374-510a-4201-9e09-de669d75f256
        - name: state
          in: query
          required: false
          description: Return only the webhooks in this state. Omit it to return all of them.
          schema:
            type: string
            enum:
              - ACTIVE
              - INACTIVE
            example: ACTIVE
      responses:
        '200':
          description: The webhooks configured on the account, or an empty array if it has none.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Webhook'
              example:
                - id: '12345'
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  name: Production payments listener
                  state: ACTIVE
                  url: https://api.acme.com/yuno/webhooks
                  api_key: '***'
                  secret: '***'
                  hmac_client_secret: '***'
                  oauth2_authentication_url: null
                  oauth2_client_secret: null
                  oauth2_client_id: null
                  oauth2_grant_type: null
                  oauth2_scope: null
                  oauth2_authorization_name: null
                  oauth2_include_client_id: false
                  enrollment_triggers: []
                  payment_triggers:
                    - AUTHORIZE
                    - CAPTURE
                    - REFUND
                  report_triggers: []
                  subscription_triggers: null
                  onboarding_triggers: null
                  renewal_days: null
                  created_at: '2026-07-09T13:05:36.482913Z'
                  updated_at: '2026-07-09T13:05:36.482913Z'
                - id: '12346'
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  name: Subscription renewals
                  state: INACTIVE
                  url: https://api.acme.com/yuno/subscriptions
                  api_key: '***'
                  secret: '***'
                  hmac_client_secret: null
                  oauth2_authentication_url: null
                  oauth2_client_secret: null
                  oauth2_client_id: null
                  oauth2_grant_type: null
                  oauth2_scope: null
                  oauth2_authorization_name: null
                  oauth2_include_client_id: false
                  enrollment_triggers: []
                  payment_triggers: []
                  report_triggers: []
                  subscription_triggers:
                    - CREATE
                    - CLOSE_TO_RENEWAL
                  onboarding_triggers: null
                  renewal_days: 5
                  created_at: '2026-07-10T09:41:12.204518Z'
                  updated_at: '2026-07-11T16:20:44.918330Z'
        '400':
          $ref: '#/components/responses/InvalidListRequest'
        '401':
          $ref: '#/components/responses/Unauthorized_3'
        '502':
          $ref: '#/components/responses/UpstreamError'
      tags:
        - Webhooks
    post:
      summary: Create a Webhook
      description: >-
        Creates a webhook in active state, subscribed to the events you select. It requires at least one trigger, and
        starts receiving notifications immediately.
      operationId: create-webhook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookCreateInput'
            example:
              account_id: 493e9374-510a-4201-9e09-de669d75f256
              name: Production payments listener
              url: https://api.acme.com/yuno/webhooks
              api_key: my-webhook-key
              secret: my-webhook-secret
              hmac_client_secret: my-hmac-secret
              enrollment_triggers:
                - ENROLL
                - UNENROLL
              payment_triggers:
                - AUTHORIZE
                - CAPTURE
                - REFUND
              subscription_triggers:
                - CREATE
                - CLOSE_TO_RENEWAL
              renewal_days: 5
      responses:
        '201':
          description: >-
            The webhook you created. The secrets you configured come back masked, and the ones you left out come back as
            null.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
              example:
                id: '12345'
                account_id: 493e9374-510a-4201-9e09-de669d75f256
                name: Production payments listener
                state: ACTIVE
                url: https://api.acme.com/yuno/webhooks
                api_key: '***'
                secret: '***'
                hmac_client_secret: '***'
                oauth2_authentication_url: null
                oauth2_client_secret: null
                oauth2_client_id: null
                oauth2_grant_type: null
                oauth2_scope: null
                oauth2_authorization_name: null
                oauth2_include_client_id: false
                enrollment_triggers:
                  - ENROLL
                  - UNENROLL
                payment_triggers:
                  - AUTHORIZE
                  - CAPTURE
                  - REFUND
                report_triggers: []
                subscription_triggers:
                  - CREATE
                  - CLOSE_TO_RENEWAL
                onboarding_triggers: []
                renewal_days: 5
                created_at: '2026-07-09T13:05:36.482913Z'
                updated_at: '2026-07-09T13:05:36.482913Z'
        '400':
          $ref: '#/components/responses/InvalidCreateRequest'
        '401':
          $ref: '#/components/responses/Unauthorized_3'
        '409':
          $ref: '#/components/responses/WebhookConflict'
        '502':
          $ref: '#/components/responses/UpstreamError'
      tags:
        - Webhooks
  /webhooks/{webhook_id}:
    get:
      summary: Retrieve a Webhook
      description: Returns a webhook by its unique identifier, with its secrets masked.
      operationId: retrieve-webhook
      parameters:
        - name: webhook_id
          in: path
          required: true
          description: The unique identifier of the webhook, as returned by [Create a Webhook](/reference/webhooks/create-webhook).
          schema:
            type: string
            example: '12345'
        - name: account_id
          in: query
          required: true
          description: The unique identifier of the account the webhook belongs to.
          schema:
            type: string
            format: uuid
            example: 493e9374-510a-4201-9e09-de669d75f256
            x-default: 493e9374-510a-4201-9e09-de669d75f256
      responses:
        '200':
          description: The webhook.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
              example:
                id: '12345'
                account_id: 493e9374-510a-4201-9e09-de669d75f256
                name: Production payments listener
                state: ACTIVE
                url: https://api.acme.com/yuno/webhooks
                api_key: '***'
                secret: '***'
                hmac_client_secret: '***'
                oauth2_authentication_url: https://api.acme.com/oauth/token
                oauth2_client_secret: '***'
                oauth2_client_id: acme_client_id
                oauth2_grant_type: client_credentials
                oauth2_scope: webhooks:write
                oauth2_authorization_name: Authorization
                oauth2_include_client_id: true
                enrollment_triggers:
                  - ENROLL
                  - UNENROLL
                payment_triggers:
                  - AUTHORIZE
                  - CAPTURE
                  - REFUND
                report_triggers: []
                subscription_triggers:
                  - CREATE
                  - CLOSE_TO_RENEWAL
                onboarding_triggers: null
                renewal_days: 5
                created_at: '2026-07-09T13:05:36.482913Z'
                updated_at: '2026-07-11T16:20:44.918330Z'
        '400':
          $ref: '#/components/responses/InvalidAccountRequest'
        '401':
          $ref: '#/components/responses/Unauthorized_3'
        '404':
          $ref: '#/components/responses/WebhookNotFound'
        '502':
          $ref: '#/components/responses/UpstreamError'
      tags:
        - Webhooks
    patch:
      summary: Update a Webhook
      description: Updates a webhook. Send only the fields you want to change, including the state and any rotated secret.
      operationId: update-webhook
      parameters:
        - name: webhook_id
          in: path
          required: true
          description: The unique identifier of the webhook, as returned by [Create a Webhook](/reference/webhooks/create-webhook).
          schema:
            type: string
            example: '12345'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WebhookUpdateInput'
            example:
              account_id: 493e9374-510a-4201-9e09-de669d75f256
              state: INACTIVE
              secret: my-rotated-secret
      responses:
        '200':
          description: The updated webhook.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
              example:
                id: '12345'
                account_id: 493e9374-510a-4201-9e09-de669d75f256
                name: Production payments listener
                state: INACTIVE
                url: https://api.acme.com/yuno/webhooks
                api_key: '***'
                secret: '***'
                hmac_client_secret: '***'
                oauth2_authentication_url: null
                oauth2_client_secret: null
                oauth2_client_id: null
                oauth2_grant_type: null
                oauth2_scope: null
                oauth2_authorization_name: null
                oauth2_include_client_id: false
                enrollment_triggers:
                  - ENROLL
                  - UNENROLL
                payment_triggers:
                  - AUTHORIZE
                  - CAPTURE
                  - REFUND
                report_triggers: []
                subscription_triggers:
                  - CREATE
                  - CLOSE_TO_RENEWAL
                onboarding_triggers: null
                renewal_days: 5
                created_at: '2026-07-09T13:05:36.482913Z'
                updated_at: '2026-07-11T16:20:44.918330Z'
        '400':
          $ref: '#/components/responses/InvalidUpdateRequest'
        '401':
          $ref: '#/components/responses/Unauthorized_3'
        '404':
          $ref: '#/components/responses/WebhookNotFound'
        '409':
          $ref: '#/components/responses/WebhookConflict'
        '502':
          $ref: '#/components/responses/UpstreamError'
      tags:
        - Webhooks
    delete:
      summary: Delete a Webhook
      description: Deletes a webhook. Yuno stops sending notifications to its URL, and returns the webhook it deleted.
      operationId: delete-webhook
      parameters:
        - name: webhook_id
          in: path
          required: true
          description: The unique identifier of the webhook, as returned by [List Webhooks](/reference/webhooks/list-webhooks).
          schema:
            type: string
            example: '12345'
        - name: account_id
          in: query
          required: true
          description: The unique identifier of the account the webhook belongs to.
          schema:
            type: string
            format: uuid
            example: 493e9374-510a-4201-9e09-de669d75f256
            x-default: 493e9374-510a-4201-9e09-de669d75f256
      responses:
        '200':
          description: The webhook you deleted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Webhook'
              example:
                id: '12345'
                account_id: 493e9374-510a-4201-9e09-de669d75f256
                name: Production payments listener
                state: ACTIVE
                url: https://api.acme.com/yuno/webhooks
                api_key: '***'
                secret: '***'
                hmac_client_secret: '***'
                oauth2_authentication_url: null
                oauth2_client_secret: null
                oauth2_client_id: null
                oauth2_grant_type: null
                oauth2_scope: null
                oauth2_authorization_name: null
                oauth2_include_client_id: false
                enrollment_triggers:
                  - ENROLL
                  - UNENROLL
                payment_triggers:
                  - AUTHORIZE
                  - CAPTURE
                  - REFUND
                report_triggers: []
                subscription_triggers:
                  - CREATE
                  - CLOSE_TO_RENEWAL
                onboarding_triggers: null
                renewal_days: 5
                created_at: '2026-07-09T13:05:36.482913Z'
                updated_at: '2026-07-09T13:05:36.482913Z'
        '400':
          $ref: '#/components/responses/InvalidAccountRequest'
        '401':
          $ref: '#/components/responses/Unauthorized_3'
        '404':
          $ref: '#/components/responses/WebhookNotFound'
        '502':
          $ref: '#/components/responses/UpstreamError'
      tags:
        - Webhooks
  /whitelabel/providers:
    get:
      summary: List the White-label Provider Overlay
      operationId: list-whitelabel-providers
      description: >-
        Returns your organization's overlay on the Yuno provider catalogue: which providers your dashboard offers, and
        the custom wording, links and logos you have set for them. It is an overlay, not the catalogue — join it onto
        the provider catalogue rather than reading it as the list of providers.


        Branch on `filtered`, never on the length of `providers`: a provider with custom wording but no allowlist entry
        appears here with `allowed: false`.


        This filters a picker. It is not authorization, and it does not stop a connection being created against a
        provider you do not offer.
      responses:
        '200':
          description: The organization's provider overlay.
          content:
            application/json:
              schema:
                type: object
                properties:
                  filtered:
                    type: boolean
                    description: >-
                      Whether the organization has at least one allowlist entry. `false` means a white-label
                      organization currently offers no provider at all (the allowlist is opt-in), not that everything is
                      offered. Branch on this, never on the length of `providers` — the list is also non-empty when the
                      only entries are instruction or logo overrides.
                    example: true
                  providers:
                    type: array
                    description: >-
                      The union of the allowlist, the instruction overrides, and the logo overrides. A provider can
                      carry custom wording or a custom logo without being offered, in which case it appears with
                      `allowed: false`.
                    items:
                      type: object
                      properties:
                        provider_id:
                          type: string
                          description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                          example: STRIPE
                        allowed:
                          type: boolean
                          description: Whether the organization offers this provider.
                          example: true
                        has_instruction_override:
                          type: boolean
                          description: >-
                            Whether any instruction override exists. A cheap badge flag, redundant with the content
                            fields and not authoritative for rendering them.
                          example: true
                        name:
                          type: string
                          description: >-
                            Display name replacing the catalogue's, when overridden. Only Yuno-owned providers can carry
                            one.
                          example: Acme Risk
                        instructions:
                          type: array
                          description: >-
                            Connection steps replacing the catalogue's, when overridden. Absent means keep the
                            catalogue's.
                          items:
                            type: object
                            additionalProperties: true
                            description: >-
                              One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`,
                              `has_sub_instructions`, `sub_instructions_type` and `sub_instructions` (nested up to 3
                              levels). `text` and `text_link` are either a plain string or a language map such as
                              `{"EN": "...", "ES": "..."}`. Every `link` must be https.
                        setup_instructions:
                          type: array
                          description: >-
                            Grouped setup steps replacing the catalogue's, when overridden. Absent means keep the
                            catalogue's.
                          items:
                            type: object
                            additionalProperties: true
                            description: >-
                              One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the
                              same step shape).
                        more_info_url:
                          type: string
                          format: uri
                          description: Documentation link replacing the catalogue's, when overridden. Always https.
                          example: https://docs.example.com/stripe
                        logo_url:
                          type: string
                          readOnly: true
                          description: >-
                            Read-only and ephemeral: a presigned URL minted on this read and valid only for a short
                            window. Never store it — read the provider again for a fresh one.
                          example: https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=...
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
      tags:
        - Organizations
    put:
      summary: Replace the Provider Allowlist
      operationId: replace-whitelabel-provider-allowlist
      description: >-
        Replaces the whole set of providers your organization offers with the ids in the body. A provider the body omits
        stops being offered — this is a replace, not a merge; use `PATCH /v1/whitelabel/providers` to change some
        providers without restating the rest.


        An empty `provider_ids` is a legal request and clears the allowlist, the same end state as `DELETE
        /v1/whitelabel/providers`, so a save-everything admin screen needs no special case for "the last provider was
        unticked".


        Removing a provider keeps its instruction override, so toggling it off and on again does not lose your wording.
      requestBody:
        required: true
        description: The complete set of provider ids to offer.
        content:
          application/json:
            schema:
              type: object
              required:
                - provider_ids
              properties:
                provider_ids:
                  type: array
                  description: >-
                    The complete set of provider ids the organization offers. UPPER_SNAKE_CASE catalogue ids
                    (`[A-Z0-9_]`), at most 100 characters each, at most 500 entries.
                  maxItems: 500
                  items:
                    type: string
                    maxLength: 100
                  example:
                    - STRIPE
                    - ADYEN
                    - YUNO_3DS
      responses:
        '200':
          description: The refreshed overlay.
          content:
            application/json:
              schema:
                type: object
                properties:
                  filtered:
                    type: boolean
                    description: >-
                      Whether the organization has at least one allowlist entry. Branch on this, never on the length of
                      `providers` — the list is also non-empty when the only entries are instruction or logo overrides.
                    example: true
                  providers:
                    type: array
                    description: >-
                      The union of the allowlist, the instruction overrides, and the logo overrides. A provider can
                      carry custom wording or a custom logo without being offered, in which case it appears with
                      `allowed: false`.
                    items:
                      type: object
                      properties:
                        provider_id:
                          type: string
                          description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                          example: STRIPE
                        allowed:
                          type: boolean
                          description: Whether the organization offers this provider.
                          example: true
                        has_instruction_override:
                          type: boolean
                          description: >-
                            Whether any instruction override exists. A cheap badge flag, redundant with the content
                            fields and not authoritative for rendering them.
                          example: true
                        name:
                          type: string
                          description: >-
                            Display name replacing the catalogue's, when overridden. Only Yuno-owned providers can carry
                            one.
                          example: Acme Risk
                        instructions:
                          type: array
                          description: >-
                            Connection steps replacing the catalogue's, when overridden. Absent means keep the
                            catalogue's.
                          items:
                            type: object
                            additionalProperties: true
                            description: >-
                              One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`,
                              `has_sub_instructions`, `sub_instructions_type` and `sub_instructions` (nested up to 3
                              levels). `text` and `text_link` are either a plain string or a language map such as
                              `{"EN": "...", "ES": "..."}`. Every `link` must be https.
                        setup_instructions:
                          type: array
                          description: >-
                            Grouped setup steps replacing the catalogue's, when overridden. Absent means keep the
                            catalogue's.
                          items:
                            type: object
                            additionalProperties: true
                            description: >-
                              One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the
                              same step shape).
                        more_info_url:
                          type: string
                          format: uri
                          description: Documentation link replacing the catalogue's, when overridden. Always https.
                          example: https://docs.example.com/stripe
                        logo_url:
                          type: string
                          readOnly: true
                          description: >-
                            Read-only and ephemeral: a presigned URL minted on this read and valid only for a short
                            window. Never store it — read the provider again for a fresh one.
                          example: https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=...
        '400':
          description: Validation error — unknown field, more than 500 ids, or an id that is not a valid catalogue id.
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: about:blank
                  title:
                    type: string
                    example: Bad Request
                  status:
                    type: integer
                    example: 400
                  detail:
                    type: string
                    example: provider_ids contains an invalid catalogue id
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '413':
          description: Request body larger than 256 KB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Request body is too large
      tags:
        - Organizations
    patch:
      summary: Update Several Providers' Visibility
      operationId: update-whitelabel-providers-visibility
      description: >-
        Turns the named providers on or off in one request. Only the providers listed are touched — every other provider
        keeps whatever it had, which is what separates this from `PUT /v1/whitelabel/providers`.


        Every id is normalized and checked for repeats before the first row is written, so a request carrying a repeated
        id changes nothing rather than half of what it asked for. Idempotent, and turning a provider off keeps its
        instruction override.
      requestBody:
        required: true
        description: The providers whose visibility changes.
        content:
          application/json:
            schema:
              type: object
              required:
                - providers
              properties:
                providers:
                  type: array
                  description: >-
                    The providers whose visibility changes in this request. At most 500 entries, each provider_id at
                    most once.
                  maxItems: 500
                  items:
                    type: object
                    required:
                      - provider_id
                      - visible
                    properties:
                      provider_id:
                        type: string
                        description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                        example: STRIPE
                      visible:
                        type: boolean
                        description: Whether the organization offers this provider.
                        example: true
      responses:
        '200':
          description: The refreshed overlay.
          content:
            application/json:
              schema:
                type: object
                properties:
                  filtered:
                    type: boolean
                    description: >-
                      Whether the organization has at least one allowlist entry. Branch on this, never on the length of
                      `providers` — the list is also non-empty when the only entries are instruction or logo overrides.
                    example: true
                  providers:
                    type: array
                    description: >-
                      The union of the allowlist, the instruction overrides, and the logo overrides. A provider can
                      carry custom wording or a custom logo without being offered, in which case it appears with
                      `allowed: false`.
                    items:
                      type: object
                      properties:
                        provider_id:
                          type: string
                          description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                          example: STRIPE
                        allowed:
                          type: boolean
                          description: Whether the organization offers this provider.
                          example: true
                        has_instruction_override:
                          type: boolean
                          description: >-
                            Whether any instruction override exists. A cheap badge flag, redundant with the content
                            fields and not authoritative for rendering them.
                          example: true
                        name:
                          type: string
                          description: >-
                            Display name replacing the catalogue's, when overridden. Only Yuno-owned providers can carry
                            one.
                          example: Acme Risk
                        instructions:
                          type: array
                          description: >-
                            Connection steps replacing the catalogue's, when overridden. Absent means keep the
                            catalogue's.
                          items:
                            type: object
                            additionalProperties: true
                            description: >-
                              One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`,
                              `has_sub_instructions`, `sub_instructions_type` and `sub_instructions` (nested up to 3
                              levels). `text` and `text_link` are either a plain string or a language map such as
                              `{"EN": "...", "ES": "..."}`. Every `link` must be https.
                        setup_instructions:
                          type: array
                          description: >-
                            Grouped setup steps replacing the catalogue's, when overridden. Absent means keep the
                            catalogue's.
                          items:
                            type: object
                            additionalProperties: true
                            description: >-
                              One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the
                              same step shape).
                        more_info_url:
                          type: string
                          format: uri
                          description: Documentation link replacing the catalogue's, when overridden. Always https.
                          example: https://docs.example.com/stripe
                        logo_url:
                          type: string
                          readOnly: true
                          description: >-
                            Read-only and ephemeral: a presigned URL minted on this read and valid only for a short
                            window. Never store it — read the provider again for a fresh one.
                          example: https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=...
        '400':
          description: Validation error — unknown field, an id that is not a valid catalogue id, or a repeated provider_id.
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: about:blank
                  title:
                    type: string
                    example: Bad Request
                  status:
                    type: integer
                    example: 400
                  detail:
                    type: string
                    example: 'provider_id must appear at most once per request; repeated: STRIPE'
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '413':
          description: Request body larger than 256 KB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Request body is too large
      tags:
        - Organizations
    delete:
      summary: Clear the Provider Allowlist
      operationId: clear-whitelabel-provider-allowlist
      description: >-
        Removes every allowlist entry, returning the organization to `filtered: false`. Idempotent, and it keeps every
        instruction override, so re-enabling a provider later restores your wording with it.
      responses:
        '204':
          description: Allowlist cleared. No content.
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
      tags:
        - Organizations
  /whitelabel/providers/{provider_id}:
    get:
      summary: Retrieve a Provider Overlay
      operationId: retrieve-whitelabel-provider
      description: >-
        Returns your organization's overlay on a single provider: whether you offer it, and any custom name,
        instructions, documentation link and logo.


        Never 404s. A provider you have never touched answers `200` with `allowed` and no override fields — exactly what
        an editor needs to render an empty form. A field that is absent means "keep the Yuno catalogue's value for it";
        an override replaces a field wholesale and never merges into it.


        `logo_url` is presigned on this read and short-lived: read the provider again for a fresh URL rather than
        storing this one.
      parameters:
        - name: provider_id
          in: path
          required: true
          description: Yuno catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
          schema:
            type: string
            example: STRIPE
      responses:
        '200':
          description: The provider's overlay.
          content:
            application/json:
              schema:
                type: object
                properties:
                  provider_id:
                    type: string
                    description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                    example: STRIPE
                  allowed:
                    type: boolean
                    description: Whether the organization offers this provider.
                    example: true
                  name:
                    type: string
                    description: Display name replacing the catalogue's, when overridden. Only Yuno-owned providers can carry one.
                    example: Acme Risk
                  instructions:
                    type: array
                    description: Connection steps replacing the catalogue's, when overridden. Absent means keep the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`,
                        `has_sub_instructions`, `sub_instructions_type` and `sub_instructions` (nested up to 3 levels).
                        `text` and `text_link` are either a plain string or a language map such as `{"EN": "...", "ES":
                        "..."}`. Every `link` must be https.
                  setup_instructions:
                    type: array
                    description: Grouped setup steps replacing the catalogue's, when overridden. Absent means keep the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the same step
                        shape).
                  more_info_url:
                    type: string
                    format: uri
                    description: Documentation link replacing the catalogue's, when overridden. Always https.
                    example: https://docs.example.com/stripe
                  logo_url:
                    type: string
                    readOnly: true
                    description: >-
                      Read-only and ephemeral: a presigned URL minted on this read and valid only for a short window.
                      Never store it — read the provider again for a fresh one.
                    example: https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=...
        '400':
          description: Invalid provider_id.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - provider_id is invalid
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
      tags:
        - Organizations
    patch:
      summary: Update a Provider's Visibility
      operationId: update-whitelabel-provider-visibility
      description: >-
        Turns a single provider on or off. Idempotent, and turning it off keeps its instruction override so your wording
        survives the toggle.


        The response is the provider's refreshed overlay, with `allowed` reflecting the `visible` you sent.
      parameters:
        - name: provider_id
          in: path
          required: true
          description: Yuno catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
          schema:
            type: string
            example: STRIPE
      requestBody:
        required: true
        description: Whether the organization offers this provider.
        content:
          application/json:
            schema:
              type: object
              required:
                - visible
              properties:
                visible:
                  type: boolean
                  description: >-
                    Whether the organization offers this provider. `true` adds it to the allowlist, `false` removes it.
                    Removing keeps any instruction override. Required — an omitted or null `visible` is a `400`, never a
                    defaulted `false`.
                  example: true
      responses:
        '200':
          description: The provider's refreshed overlay.
          content:
            application/json:
              schema:
                type: object
                properties:
                  provider_id:
                    type: string
                    description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                    example: STRIPE
                  allowed:
                    type: boolean
                    description: Whether the organization offers this provider.
                    example: true
                  name:
                    type: string
                    description: Display name replacing the catalogue's, when overridden. Only Yuno-owned providers can carry one.
                    example: Acme Risk
                  instructions:
                    type: array
                    description: Connection steps replacing the catalogue's, when overridden. Absent means keep the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`,
                        `has_sub_instructions`, `sub_instructions_type` and `sub_instructions` (nested up to 3 levels).
                        `text` and `text_link` are either a plain string or a language map such as `{"EN": "...", "ES":
                        "..."}`. Every `link` must be https.
                  setup_instructions:
                    type: array
                    description: Grouped setup steps replacing the catalogue's, when overridden. Absent means keep the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the same step
                        shape).
                  more_info_url:
                    type: string
                    format: uri
                    description: Documentation link replacing the catalogue's, when overridden. Always https.
                    example: https://docs.example.com/stripe
                  logo_url:
                    type: string
                    readOnly: true
                    description: >-
                      Read-only and ephemeral: a presigned URL minted on this read and valid only for a short window.
                      Never store it — read the provider again for a fresh one.
                    example: https://s3.amazonaws.com/whitelabel/logo.png?X-Amz-Signature=...
        '400':
          description: Invalid provider_id or body.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - provider_id is invalid
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '413':
          description: Request body larger than 256 KB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Request body is too large
      tags:
        - Organizations
  /whitelabel/providers/{provider_id}/instructions:
    get:
      summary: Retrieve a Provider's Instruction Override
      operationId: retrieve-whitelabel-provider-instructions
      description: >-
        Returns the custom connection instructions you have stored for this provider — the focused read an editor loads
        before saving. A provider with no override answers `404`; use `GET /v1/whitelabel/providers/{provider_id}`,
        which never 404s, when you want the overlay whether or not one exists.


        A field you do not override is absent, not null and not an empty list: absent means "keep the Yuno catalogue's
        value", present-and-empty means "replace it with nothing".
      parameters:
        - name: provider_id
          in: path
          required: true
          description: Yuno catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
          schema:
            type: string
            example: STRIPE
      responses:
        '200':
          description: The stored override.
          content:
            application/json:
              schema:
                type: object
                properties:
                  provider_id:
                    type: string
                    description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                    example: STRIPE
                  instructions:
                    type: array
                    description: Connection steps replacing the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`,
                        `has_sub_instructions`, `sub_instructions_type` and `sub_instructions` (nested up to 3 levels).
                        `text` and `text_link` are either a plain string or a language map such as `{"EN": "...", "ES":
                        "..."}`. Every `link` must be https.
                  setup_instructions:
                    type: array
                    description: Grouped setup steps replacing the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the same step
                        shape).
                  more_info_url:
                    type: string
                    format: uri
                    description: Documentation link replacing the catalogue's, when overridden. Always https.
                    example: https://docs.example.com/stripe
                  name:
                    type: string
                    description: Display name replacing the catalogue's, when overridden. Only Yuno-owned providers can carry one.
                    example: Acme Risk
                  created_at:
                    type: string
                    format: date-time
                    readOnly: true
                    description: When the override was first written.
                    example: '2026-09-02T13:54:13Z'
                  updated_at:
                    type: string
                    format: date-time
                    readOnly: true
                    description: When the override was last written.
                    example: '2026-09-02T13:54:13Z'
                  created_by:
                    type: string
                    format: uuid
                    readOnly: true
                    description: >-
                      The dashboard user who created it. Overrides written through this API carry the all-zero sentinel
                      `00000000-0000-0000-0000-000000000000`, meaning "written through the API" rather than by a person
                      in the dashboard.
                    example: 00000000-0000-0000-0000-000000000000
                  updated_by:
                    type: string
                    format: uuid
                    readOnly: true
                    description: The dashboard user who last updated it, with the same sentinel rule as `created_by`.
                    example: 00000000-0000-0000-0000-000000000000
        '400':
          description: Invalid provider_id.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - provider_id is invalid
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '404':
          description: This provider has no instruction override.
          content:
            application/json:
              schema:
                type: object
                properties:
                  title:
                    type: string
                    example: Not Found
                  status:
                    type: integer
                    example: 404
                  detail:
                    type: string
                    example: No instruction override for provider STRIPE
      tags:
        - Organizations
    put:
      summary: Replace a Provider's Instruction Override
      operationId: replace-whitelabel-provider-instructions
      description: >-
        Stores your own connection instructions for this provider, replacing the Yuno catalogue's wording where you
        override it.


        The document is stored whole, not merged. A field this body omits is cleared, and the provider reverts to the
        catalogue value for it — so read the current document with `GET`, edit it, and put the whole thing back. At
        least one of `instructions`, `setup_instructions`, `more_info_url` and `name` must be present, unknown top-level
        keys are rejected rather than ignored, and the serialised document may not exceed 64 KB.


        Every `link`, and `more_info_url`, must be https. `name` renames the provider and is accepted only for
        Yuno-owned providers (a catalogue id containing `YUNO`); any other provider is rejected with `400`. Rejections
        list every violation at once in `violations`.


        Overriding a provider's wording does not add it to your allowlist.
      parameters:
        - name: provider_id
          in: path
          required: true
          description: Yuno catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
          schema:
            type: string
            example: STRIPE
      requestBody:
        required: true
        description: The complete override document.
        content:
          application/json:
            schema:
              type: object
              description: The complete override document. At least one property must be present.
              minProperties: 1
              properties:
                instructions:
                  type: array
                  description: The connection steps shown to your own users. Every `link` must be https.
                  items:
                    type: object
                    additionalProperties: true
                    description: >-
                      One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`, `has_sub_instructions`,
                      `sub_instructions_type` and `sub_instructions` (nested up to 3 levels). `text` and `text_link` are
                      either a plain string or a language map such as `{"EN": "...", "ES": "..."}`. Every `link` must be
                      https.
                setup_instructions:
                  type: array
                  description: Grouped setup steps.
                  items:
                    type: object
                    additionalProperties: true
                    description: >-
                      One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the same step
                      shape).
                more_info_url:
                  type: string
                  format: uri
                  description: Link to your own documentation for this provider. Must be an https URL.
                  example: https://docs.example.com/stripe
                name:
                  type: string
                  maxLength: 255
                  description: >-
                    Display name that replaces the catalogue's. Accepted only for Yuno-owned providers (a catalogue id
                    containing `YUNO`, e.g. `YUNO_3DS`); any other provider is rejected with `400`.
                  example: Acme Risk
      responses:
        '200':
          description: The stored override.
          content:
            application/json:
              schema:
                type: object
                properties:
                  provider_id:
                    type: string
                    description: Yuno catalogue provider id, UPPER_SNAKE_CASE.
                    example: STRIPE
                  instructions:
                    type: array
                    description: Connection steps replacing the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One instruction step. Accepts `step`, `text`, `text_link`, `link`, `type`,
                        `has_sub_instructions`, `sub_instructions_type` and `sub_instructions` (nested up to 3 levels).
                        `text` and `text_link` are either a plain string or a language map such as `{"EN": "...", "ES":
                        "..."}`. Every `link` must be https.
                  setup_instructions:
                    type: array
                    description: Grouped setup steps replacing the catalogue's.
                    items:
                      type: object
                      additionalProperties: true
                      description: >-
                        One setup group. Accepts `title`, `order`, `instructions_type` and `instructions` (the same step
                        shape).
                  more_info_url:
                    type: string
                    format: uri
                    description: Documentation link replacing the catalogue's, when overridden. Always https.
                    example: https://docs.example.com/stripe
                  name:
                    type: string
                    description: Display name replacing the catalogue's, when overridden. Only Yuno-owned providers can carry one.
                    example: Acme Risk
                  created_at:
                    type: string
                    format: date-time
                    readOnly: true
                    description: When the override was first written.
                    example: '2026-09-02T13:54:13Z'
                  updated_at:
                    type: string
                    format: date-time
                    readOnly: true
                    description: When the override was last written.
                    example: '2026-09-02T13:54:13Z'
                  created_by:
                    type: string
                    format: uuid
                    readOnly: true
                    description: >-
                      The dashboard user who created it. Overrides written through this API carry the all-zero sentinel
                      `00000000-0000-0000-0000-000000000000`, meaning "written through the API" rather than by a person
                      in the dashboard.
                    example: 00000000-0000-0000-0000-000000000000
                  updated_by:
                    type: string
                    format: uuid
                    readOnly: true
                    description: The dashboard user who last updated it, with the same sentinel rule as `created_by`.
                    example: 00000000-0000-0000-0000-000000000000
        '400':
          description: >-
            The document was rejected — invalid provider_id, unknown key, non-https link, `name` on a provider that is
            not Yuno-owned, or over 64 KB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: about:blank
                  title:
                    type: string
                    example: Invalid provider instructions
                  status:
                    type: integer
                    example: 400
                  detail:
                    type: string
                    example: The instruction override was rejected
                  violations:
                    type: array
                    description: Every violation of the request, reported together rather than one per round trip.
                    items:
                      type: string
                    example:
                      - 'name: only Yuno''s own providers can be renamed; ''STRIPE'' cannot'
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '413':
          description: Request body larger than 256 KB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Request body is too large
      tags:
        - Organizations
    delete:
      summary: Delete a Provider's Instruction Override
      operationId: delete-whitelabel-provider-instructions
      description: >-
        Deletes your instruction override for this provider, so it falls back to the Yuno catalogue's wording, name and
        documentation link in full. Idempotent, and it does not change whether you offer the provider. The provider's
        logo is stored separately and is left alone — reset that with `DELETE
        /v1/whitelabel/providers/{provider_id}/logo`.
      parameters:
        - name: provider_id
          in: path
          required: true
          description: Yuno catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
          schema:
            type: string
            example: STRIPE
      responses:
        '204':
          description: Override reset. No content.
        '400':
          description: Invalid provider_id.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - provider_id is invalid
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
      tags:
        - Organizations
  /whitelabel/providers/{provider_id}/logo:
    put:
      summary: Upload a Provider Logo
      operationId: upload-whitelabel-provider-logo
      description: >-
        Uploads your own logo for this provider. The image travels base64 in JSON, not multipart.


        A logo is the provider's identity rather than its wording, so it is held to the same rule as `name`: accepted
        only for Yuno-owned providers (a catalogue id containing `YUNO`) and rejected with `400` for anyone else's. The
        file must be a PNG or a JPEG — decided by the file's own bytes, never by the extension, so an SVG renamed `.png`
        is refused — and square, at least 200x200 pixels and at most 64 KB decoded. Rejections list every violation at
        once in `violations`.


        The stored key is not returned: read the provider again for a fresh presigned `logo_url`. Writing a logo does
        not touch the instruction override, and does not add the provider to your allowlist.
      parameters:
        - name: provider_id
          in: path
          required: true
          description: Yuno catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
          schema:
            type: string
            example: YUNO_3DS
      requestBody:
        required: true
        description: The logo, base64-encoded.
        content:
          application/json:
            schema:
              type: object
              required:
                - file_name
                - base64_data
              properties:
                file_name:
                  type: string
                  maxLength: 255
                  description: >-
                    Original file name, at most 255 characters. Stored for display only; the format is decided by the
                    bytes, never by this extension.
                  example: acme-risk.png
                base64_data:
                  type: string
                  description: >-
                    The image itself, base64-encoded. PNG or JPEG only (checked against the file's magic bytes), square,
                    at least 200x200 pixels and at most 64 KB decoded.
                  example: iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==
      responses:
        '200':
          description: Logo stored.
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Always `stored` on success.
                    example: stored
        '400':
          description: >-
            The logo was rejected — invalid provider_id, not PNG/JPEG, not square, smaller than 200x200, larger than 64
            KB decoded, or the provider is not Yuno-owned.
          content:
            application/json:
              schema:
                type: object
                properties:
                  type:
                    type: string
                    example: about:blank
                  title:
                    type: string
                    example: Invalid provider logo
                  status:
                    type: integer
                    example: 400
                  detail:
                    type: string
                    example: The logo was rejected
                  violations:
                    type: array
                    description: Every violation of the request, reported together rather than one per round trip.
                    items:
                      type: string
                    example:
                      - The logo must be at least 200x200 pixels. This image is 1x1.
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
        '413':
          description: Request body larger than 256 KB.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Request body is too large
      tags:
        - Organizations
    delete:
      summary: Delete a Provider Logo
      operationId: delete-whitelabel-provider-logo
      description: >-
        Deletes your custom logo for this provider, so it falls back to the Yuno catalogue's icon. Idempotent, and it
        leaves the instruction override and the allowlist untouched.
      parameters:
        - name: provider_id
          in: path
          required: true
          description: Yuno catalogue provider id in UPPER_SNAKE_CASE. Case-insensitive; normalized to upper case.
          schema:
            type: string
            example: YUNO_3DS
      responses:
        '204':
          description: Logo reset. No content.
        '400':
          description: Invalid provider_id.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: VALIDATION_ERROR
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - provider_id is invalid
        '401':
          description: Unauthorized — invalid or missing API keys.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: NOT_AUTHENTICATED
                  messages:
                    type: array
                    items:
                      type: string
                    example:
                      - Not authenticated
      tags:
        - Organizations
components:
  securitySchemes:
    AccountCode:
      type: apiKey
      in: header
      name: X-Account-Code
      description: Required only for organizations with multiple accounts. Identifies which account to use for the request.
    IdempotencyKey:
      type: apiKey
      in: header
      name: X-Idempotency-Key
      x-default: <Your X-Idempotency-Key>
    PrivateSecretKey:
      type: apiKey
      in: header
      name: private-secret-key
      description: Private secret key (server-side only)
    PublicApiKey:
      type: apiKey
      in: header
      name: public-api-key
      description: Public API key from Dashboard > Settings > API Keys
    XPrivateSecretKey:
      type: apiKey
      in: header
      name: X-Private-Secret-Key
      x-default: <Your private-secret-key>
    XPublicApiKey:
      type: apiKey
      in: header
      name: X-Public-Api-Key
      x-default: <Your public-api-key>
  schemas:
    Address:
      type: object
      properties:
        line_1:
          type: string
        line_2:
          type: string
        city:
          type: string
        state:
          type: string
        country:
          type: string
        zip_code:
          type: string
    Amount:
      type: object
      required:
        - value
        - currency
      properties:
        value:
          type: number
          example: 150
        currency:
          type: string
          example: USD
    ApplePayDetail:
      type: object
      properties:
        wallet:
          type: object
          properties:
            provider:
              type: object
              required:
                - id
                - merchant_id
                - payment_processing_key
                - payment_processing_certificate
                - merchant_identity_key
                - merchant_identity_certificate
                - merchant_identity_password
              properties:
                id:
                  type: string
                merchant_id:
                  type: string
                payment_processing_key:
                  type: string
                payment_processing_certificate:
                  type: string
                merchant_identity_key:
                  type: string
                merchant_identity_certificate:
                  type: string
                merchant_identity_password:
                  type: string
    BadRequestError:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code.
          enum:
            - INVALID_PARAMETERS
            - BAD_REQUEST
            - CUSTOMER_NOT_FOUND
            - PAYMENT_METHOD_NOT_REASSIGNABLE
        messages:
          type: array
          description: Human-readable description of the error.
          items:
            type: string
    CardDetail:
      type: object
      properties:
        card:
 