> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lead.bank/llms.txt
> Use this file to discover all available pages before exploring further.

# List all Blockchain Payments

> List all Blockchain Payments.



## OpenAPI

````yaml openapi.json GET /beta/blockchain_payments
openapi: 3.0.1
info:
  title: Lead Bank
  description: Lead Bank's APIs
  version: v1.0
servers:
  - url: https://api.sandbox.lead.bank
  - url: https://api.lead.bank
security:
  - bearerAuth: []
tags:
  - name: ACH
  - name: ACHv2
  - name: Account Number
  - name: OAuth
  - name: Events
  - name: Instant Payments
  - name: Lending
  - name: Simulation
  - name: Sandbox
  - name: Internal Transfer
  - name: Disbursement
  - name: Entity
  - name: Wire
  - name: Originator
  - name: Funding
  - name: Receivable Sale
  - name: Balances
  - name: Compliance
  - name: Application
  - name: User Account
  - name: Blockchain Payment
  - name: Core Account
  - name: Core Balance
  - name: Core Transaction
  - name: Event Subscription
  - name: Receivable
  - name: User Credit Transaction
  - name: Files
paths:
  /beta/blockchain_payments:
    get:
      tags:
        - Blockchain Payment Beta
      summary: List all Blockchain Payments Beta
      description: List all Blockchain Payments.
      operationId: list-all-blockchain-payments-beta
      parameters:
        - name: status
          in: query
          description: Filter payments by their current status.
          schema:
            $ref: '#/components/schemas/BlockchainPaymentStatusBeta'
        - name: limit
          description: Maximum number of objects to be returned.
          in: query
          example: 10
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
        - name: starting_after
          in: query
          example: blockchain_payment_xyz123
          schema:
            type: string
            pattern: ^blockchain_payment_\w+$
          description: >-
            A cursor for use in pagination; this is an ID that defines your
            place in the list.
        - name: ending_before
          in: query
          example: blockchain_payment_xyz456
          schema:
            type: string
            pattern: ^blockchain_payment_\w+$
          description: >-
            A cursor for use in pagination; this is an ID that defines your
            place in the list.
      responses:
        '200':
          description: List of Blockchain Payment objects
          content:
            application/json:
              schema:
                type: object
                required:
                  - objects
                  - has_more
                properties:
                  objects:
                    type: array
                    items:
                      $ref: '#/components/schemas/BlockchainPaymentBeta'
                  has_more:
                    type: boolean
                    description: Indicates whether more results are available.
        '400':
          description: Invalid query parameter value.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '401':
          description: Missing or invalid authentication token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '429':
          description: Too many requests. Please retry after some time.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
        '500':
          description: Unexpected server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/APIError'
components:
  schemas:
    BlockchainPaymentStatusBeta:
      description: The current status of the blockchain payment.
      type: string
      example: created
      enum:
        - created
        - under_review
        - submitted
        - posted
        - rejected
        - canceled
    BlockchainPaymentBeta:
      description: >
        A blockchain payment, shaped by `direction`. On an `outgoing` payment
        the

        debtor is your Lead account and the creditor is who is being paid. On an

        `incoming` payment that is reversed: the debtor is where the funds came
        from

        and the creditor is your Lead account.
      oneOf:
        - $ref: '#/components/schemas/BlockchainPaymentOutgoingBeta'
        - $ref: '#/components/schemas/BlockchainPaymentIncomingBeta'
      discriminator:
        propertyName: direction
        mapping:
          outgoing: '#/components/schemas/BlockchainPaymentOutgoingBeta'
          incoming: '#/components/schemas/BlockchainPaymentIncomingBeta'
    APIError:
      type: object
      properties:
        code:
          type: string
          description: The error code.
        title:
          type: string
          description: The error title.
        detail:
          type: string
          description: A detailed error description.
        status:
          type: string
          description: The HTTP status code.
        invalid_parameters:
          type: array
          description: Invalid request parameters with reasons, if applicable.
          items:
            $ref: '#/components/schemas/InvalidParameterDetail'
        instance:
          type: string
          description: >-
            The object causing this specific occurrence of the error, if
            applicable.
    BlockchainPaymentOutgoingBeta:
      title: Outgoing Payment
      description: A payout or on-ramp from your Lead account.
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentBaseBeta'
        - type: object
          required:
            - debtor
            - creditor
          properties:
            direction:
              type: string
              enum:
                - outgoing
            debtor:
              $ref: '#/components/schemas/BlockchainPaymentDebtorBeta'
            creditor:
              $ref: '#/components/schemas/BlockchainPaymentCreditorBeta'
            creditor_agent:
              $ref: '#/components/schemas/BlockchainPaymentCreditorAgentBeta'
    BlockchainPaymentIncomingBeta:
      title: Incoming Payment
      description: >-
        A deposit to one of your blockchain deposit addresses, or a returned
        payout, into your Lead account.
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentBaseBeta'
        - type: object
          required:
            - debtor
            - creditor
          properties:
            direction:
              type: string
              enum:
                - incoming
            debtor:
              $ref: '#/components/schemas/BlockchainPaymentIncomingDebtorBeta'
            creditor:
              $ref: '#/components/schemas/BlockchainPaymentIncomingCreditorBeta'
    InvalidParameterDetail:
      type: object
      properties:
        parameter:
          type: string
          description: Which parameter is invalid.
          example: transaction_type
        reason:
          type: string
          description: Why the parameter is invalid.
    BlockchainPaymentBaseBeta:
      type: object
      description: >
        Fields shared by both directions of a blockchain payment. This is the
        base of

        `BlockchainPaymentOutgoingBeta` and `BlockchainPaymentIncomingBeta`;

        integrations reference `BlockchainPaymentBeta`, which selects the shape
        from

        `direction`.
      required:
        - direction
      properties:
        id:
          $ref: '#/components/schemas/BlockchainPaymentID'
        direction:
          $ref: '#/components/schemas/Direction'
          description: >
            Which way the funds move relative to your account. `outgoing` is a
            payout

            or on-ramp. `incoming` is a deposit, or a return sending a payout's
            funds

            back.
        amounts:
          $ref: '#/components/schemas/BlockchainPaymentAmountsBeta'
        payment_purpose:
          description: >-
            The purpose of the transfer. On a return, the returned payment's
            purpose. Absent on deposits.
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentPurposeBeta'
        reference:
          type: string
          description: |
            The reference message for the transfer. See `reference` on the
            create request for the per-rail formatting rules.
          example: INV2024001
        status:
          $ref: '#/components/schemas/BlockchainPaymentStatusBeta'
        rejection:
          description: >
            Why the payment was rejected. Present only when `status` is
            `rejected`.

            See `BlockchainPaymentRejectionReasonBeta` for which reasons are

            **terminal** and which are **retryable**.
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentRejectionBeta'
        cancelation_reason:
          type: string
          description: >-
            Reason the transfer was canceled. Present only if status is
            canceled.
          example: Requested by customer
        return:
          description: |
            Details of the return on this payment. Present only when the payment
            was returned after being sent.
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentReturnBeta'
        related_blockchain_payments:
          description: >
            Other blockchain payments linked to this one. On a payment that was

            returned, this holds the IDs of the return payments sending the
            funds

            back. On a return payment, it holds the ID of the original payment

            being returned. Absent when the payment has no related payments.
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentRelatedPaymentsBeta'
        tracking:
          description: |
            The network or chain reference for the payment. Absent until it is
            posted on a bank rail, or submitted on a chain.
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentTrackingBeta'
        created_at:
          type: string
          format: date-time
          description: >-
            ISO 8601 format timestamp representing when the blockchain payment
            was created.
          example: '2024-06-27T11:22:33Z'
        updated_at:
          type: string
          format: date-time
          description: >-
            ISO 8601 format timestamp representing when the blockchain payment
            was last updated.
          example: '2024-06-27T11:22:33Z'
    BlockchainPaymentDebtorBeta:
      type: object
      description: The source of funds for the transfer.
      additionalProperties: false
      required:
        - account_identifier
      properties:
        account_identifier:
          $ref: '#/components/schemas/BlockchainPaymentAccountIdentifierBeta'
    BlockchainPaymentCreditorBeta:
      type: object
      description: >
        The destination of the transfer, including payment rail details and

        recipient information.


        The required detail object depends on `payment_rail`. Each rail requires

        its matching object and rejects detail objects that belong to a
        different

        rail:


        | `payment_rail` | Required detail object |

        | --- | --- |

        | `ach` | `ach` |

        | `wire` | `wire` |

        | `spei` | `clabe` |

        | `pix` | exactly one of `pix_key` or `pix_br_code` |

        | `bre_b` | `bre_b` |

        | `swift` | `swift` |

        | `co_bank_transfer` | `co_bank_transfer` |

        | `solana`, `base`, `ethereum`, `arbitrum`, `optimism`, `arc` |
        `wallet_address` |


        Provide `individual` when `type` is `individual`, and `business` when

        `type` is `business`.


        On payment rails where the receiving account is validated (currently

        `pix` and `spei`), the creditor name provided here must closely match
        the

        legal name registered on the receiving account — for individuals, an

        approximate match on first + last name; for businesses, on the legal
        name

        or DBA. If the names do not match, the payment is rejected with

        `rejection.reason: "creditor_name_mismatch"`. On other rails the
        creditor

        name is not matched against the account.
      oneOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyAchBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyWireBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyIbanBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyClabeBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyFpsBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBreBBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartySwiftBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyCoBankTransferBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyWalletBeta'
      discriminator:
        propertyName: payment_rail
        mapping:
          ach: '#/components/schemas/BlockchainPaymentCounterpartyAchBeta'
          wire: '#/components/schemas/BlockchainPaymentCounterpartyWireBeta'
          sepa: '#/components/schemas/BlockchainPaymentCounterpartyIbanBeta'
          iban: '#/components/schemas/BlockchainPaymentCounterpartyIbanBeta'
          spei: '#/components/schemas/BlockchainPaymentCounterpartyClabeBeta'
          clabe: '#/components/schemas/BlockchainPaymentCounterpartyClabeBeta'
          pix: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
          pix_key: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
          pix_br_code: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
          faster_payments: '#/components/schemas/BlockchainPaymentCounterpartyFpsBeta'
          fps: '#/components/schemas/BlockchainPaymentCounterpartyFpsBeta'
          bre_b: '#/components/schemas/BlockchainPaymentCounterpartyBreBBeta'
          swift: '#/components/schemas/BlockchainPaymentCounterpartySwiftBeta'
          co_bank_transfer: '#/components/schemas/BlockchainPaymentCounterpartyCoBankTransferBeta'
          solana: '#/components/schemas/BlockchainPaymentCounterpartyWalletBeta'
          base: '#/components/schemas/BlockchainPaymentCounterpartyWalletBeta'
          ethereum: '#/components/schemas/BlockchainPaymentCounterpartyWalletBeta'
          arbitrum: '#/components/schemas/BlockchainPaymentCounterpartyWalletBeta'
          optimism: '#/components/schemas/BlockchainPaymentCounterpartyWalletBeta'
          arc: '#/components/schemas/BlockchainPaymentCounterpartyWalletBeta'
    BlockchainPaymentCreditorAgentBeta:
      type: object
      description: |
        Details of the receiving financial institution. Required when
        `creditor.payment_rail` is not a blockchain network (`solana`, `base`,
        `ethereum`, `arbitrum`, `optimism`, `arc`). When `creditor.payment_rail`
        is `swift`, `address` is also required.
      required:
        - bank_name
        - country_code
      properties:
        bank_name:
          type: string
          description: |
            Name of the receiving bank. On payment rails where the receiving
            account is validated (currently `pix` and `spei`), it must closely
            match the bank's registered name. If it does not, the payment is
            rejected with `rejection.reason: "creditor_agent_name_mismatch"`.
          example: Banco Nacional de Mexico
        country_code:
          $ref: '#/components/schemas/Country'
          description: >
            ISO 3166-1 alpha-2 country code of the receiving bank. Sanctioned
            countries are not accepted.
          example: MX
        address:
          $ref: '#/components/schemas/Address'
          description: A physical address.
    BlockchainPaymentIncomingDebtorBeta:
      description: >
        Where an incoming payment's funds came from, selected by `payment_rail`:
        the

        sending wallet of a deposit to one of your blockchain deposit addresses,
        or the

        beneficiary of a returned payout, on that payout's rail.
      oneOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyAchBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyWireBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyIbanBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyClabeBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyFpsBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBreBBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartySwiftBeta'
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyCoBankTransferBeta'
        - $ref: '#/components/schemas/BlockchainPaymentWalletSenderBeta'
      discriminator:
        propertyName: payment_rail
        mapping:
          ach: '#/components/schemas/BlockchainPaymentCounterpartyAchBeta'
          wire: '#/components/schemas/BlockchainPaymentCounterpartyWireBeta'
          sepa: '#/components/schemas/BlockchainPaymentCounterpartyIbanBeta'
          iban: '#/components/schemas/BlockchainPaymentCounterpartyIbanBeta'
          spei: '#/components/schemas/BlockchainPaymentCounterpartyClabeBeta'
          clabe: '#/components/schemas/BlockchainPaymentCounterpartyClabeBeta'
          pix: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
          pix_key: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
          pix_br_code: '#/components/schemas/BlockchainPaymentCounterpartyPixBeta'
          faster_payments: '#/components/schemas/BlockchainPaymentCounterpartyFpsBeta'
          fps: '#/components/schemas/BlockchainPaymentCounterpartyFpsBeta'
          bre_b: '#/components/schemas/BlockchainPaymentCounterpartyBreBBeta'
          swift: '#/components/schemas/BlockchainPaymentCounterpartySwiftBeta'
          co_bank_transfer: '#/components/schemas/BlockchainPaymentCounterpartyCoBankTransferBeta'
          solana: '#/components/schemas/BlockchainPaymentWalletSenderBeta'
          base: '#/components/schemas/BlockchainPaymentWalletSenderBeta'
          ethereum: '#/components/schemas/BlockchainPaymentWalletSenderBeta'
          arbitrum: '#/components/schemas/BlockchainPaymentWalletSenderBeta'
          optimism: '#/components/schemas/BlockchainPaymentWalletSenderBeta'
          arc: '#/components/schemas/BlockchainPaymentWalletSenderBeta'
    BlockchainPaymentIncomingCreditorBeta:
      type: object
      description: The Lead account an incoming payment credits.
      required:
        - account_identifier
      properties:
        account_identifier:
          $ref: '#/components/schemas/BlockchainPaymentAccountIdentifierBeta'
        blockchain_deposit_address_id:
          description: >-
            The blockchain deposit address that received the funds. Present only
            on deposits.
          allOf:
            - $ref: '#/components/schemas/BlockchainDepositAddressID'
    BlockchainPaymentID:
      type: string
      description: The ID of the Blockchain Payment object.
      example: blockchain_payment_0ujtsYcgvSTl8PAuAdqWYSMnLOv
      pattern: ^blockchain_payment_[0-9A-Za-z]{27}$
    Direction:
      type: string
      description: |-
        Who is initiating the transaction.

        outgoing: You are sending a transaction to a counterparty.
        incoming: You are receiving a transaction from a counterparty.
      example: outgoing
      enum:
        - outgoing
        - incoming
    BlockchainPaymentAmountsBeta:
      type: object
      description: The transfer amounts, currency codes, and settlement details.
      properties:
        instructed_amount:
          type: integer
          format: int64
          description: The transfer amount represented in cents.
          example: 100000
        instructed_currency_code:
          $ref: '#/components/schemas/BlockchainPaymentCurrencyCodeBeta'
        settlement_currency_code:
          $ref: '#/components/schemas/BlockchainPaymentCurrencyCodeBeta'
        settlement_amount:
          type: integer
          format: int64
          description: The settlement amount represented in cents.
          example: 100000
        settlement_exchange_rate:
          $ref: '#/components/schemas/BlockchainPaymentExchangeRateBeta'
    BlockchainPaymentPurposeBeta:
      type: object
      description: The purpose of the transfer.
      required:
        - type
      properties:
        type:
          $ref: '#/components/schemas/BlockchainPaymentPurposeTypeBeta'
        other_details:
          type: string
          description: Additional details when purpose type is 'other'.
          example: Monthly vendor payment
    BlockchainPaymentRejectionBeta:
      type: object
      description: Why a blockchain payment was rejected.
      required:
        - reason
        - details
        - rejected_by
      properties:
        reason:
          $ref: '#/components/schemas/BlockchainPaymentRejectionReasonBeta'
        details:
          type: string
          description: Human-readable text for `reason`, fixed for each reason.
          example: >-
            The creditor name specified does not match the name of the receiving
            entity
        rejected_by:
          $ref: '#/components/schemas/BlockchainPaymentRejectedByBeta'
        validated_creditor_name:
          type: string
          description: >-
            The name on the receiving account. Present only when `reason` is
            `creditor_name_mismatch`.
          example: Maria Garcia
        validated_creditor_agent_name:
          type: string
          description: >-
            The receiving bank's name. Present only when `reason` is
            `creditor_agent_name_mismatch`.
          example: Banco Nacional de México, S.A.
    BlockchainPaymentReturnBeta:
      type: object
      description: >
        Details of the return of a Blockchain Payment, set when funds are sent
        back rather than

        delivered to the creditor. Absent for payments that were never returned.
      required:
        - reason
        - details
      properties:
        reason:
          $ref: '#/components/schemas/BlockchainPaymentReturnReasonBeta'
        details:
          type: string
          description: Human-readable text for `reason`, fixed for each reason.
          example: The account is closed or inactive at the counterparty bank.
          maxLength: 500
    BlockchainPaymentRelatedPaymentsBeta:
      type: object
      description: >
        Other Blockchain Payments linked to this one. Absent when the payment
        has no

        related payments.
      properties:
        original_blockchain_payment_id:
          description: >
            The Blockchain Payment this one returns funds for. Set only on a
            return

            payment.
          example: blockchain_payment_2GvQ7XkEJrPx1bTnLm4sWd9YcFh
          allOf:
            - $ref: '#/components/schemas/BlockchainPaymentID'
        return_blockchain_payment_ids:
          type: array
          description: >
            The Blockchain Payments sending funds back for this payment. Set
            only on

            a payment that was returned.
          example:
            - blockchain_payment_2GvQ8ZaRk5NwT3pHyCe6LuVb1Mq
          items:
            $ref: '#/components/schemas/BlockchainPaymentID'
    BlockchainPaymentTrackingBeta:
      type: object
      description: >
        The network or chain reference for the payment, so it can be traced on
        its

        rail. It holds the one field that matches `payment_rail`:


        | Rail | Field |

        | --- | --- |

        | `ach`, `co_bank_transfer` | `trace_number` |

        | `wire` | `omad` |

        | `sepa`, `pix` | `end_to_end_id` |

        | `swift` | `uetr` |

        | `faster_payments` | `fpid` |

        | `spei` | `tracking_key` |

        | `bre_b` | `transaction_reference` |

        | `solana`, `base`, `ethereum`, `arbitrum`, `optimism`, `arc` |
        `transaction_hash` |


        Absent until the payment is posted on a bank rail, or submitted on a
        chain.

        Treat every value as an opaque string.
      properties:
        trace_number:
          type: string
          description: The ACH or Colombian bank transfer trace number.
          example: '021000021234567'
        omad:
          type: string
          description: The Fedwire output message accountability data (OMAD).
          example: 20261027QMGFT015000123
        end_to_end_id:
          type: string
          description: The SEPA or PIX end-to-end ID.
          example: E00002649202201172211u34srod19le
        uetr:
          type: string
          description: The SWIFT unique end-to-end transaction reference (UETR).
          example: eb6305c9-1f7f-49de-aed0-16487c27b42d
        fpid:
          type: string
          description: The Faster Payments ID (FPID).
          example: LEADB20261027826019220000000001
        tracking_key:
          type: string
          description: The SPEI tracking key (clave de rastreo).
          example: LEADB20261027000123456
        transaction_reference:
          type: string
          description: The Bre-B transaction reference.
          example: BREB20261027000123456
        transaction_hash:
          type: string
          description: >
            The on-chain transaction hash: a `0x`-prefixed hex string on EVM
            chains,

            a base58 signature on Solana.
          example: '0x767ebd2ca82dcaae8b7fe4fbbe4f154230d18ec93c8294caeebccfe29d4ce030'
    BlockchainPaymentAccountIdentifierBeta:
      type: object
      description: Identifies an account.
      required:
        - type
        - value
      properties:
        type:
          $ref: '#/components/schemas/BlockchainPaymentAccountIdentifierTypeBeta'
        value:
          type: string
          description: The account identifier value.
          example: account_number_xyz123
    BlockchainPaymentCounterpartyAchBeta:
      title: ACH
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - ach
          properties:
            payment_rail:
              type: string
              enum:
                - ach
    BlockchainPaymentCounterpartyWireBeta:
      title: Wire
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - wire
          properties:
            payment_rail:
              type: string
              enum:
                - wire
    BlockchainPaymentCounterpartyIbanBeta:
      title: IBAN
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - iban
          properties:
            payment_rail:
              type: string
              enum:
                - sepa
    BlockchainPaymentCounterpartyClabeBeta:
      title: CLABE
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - clabe
          properties:
            payment_rail:
              type: string
              enum:
                - spei
    BlockchainPaymentCounterpartyPixBeta:
      title: PIX
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          description: Exactly one of `pix_key` or `pix_br_code` must be provided.
          oneOf:
            - required:
                - pix_key
            - required:
                - pix_br_code
          properties:
            payment_rail:
              type: string
              enum:
                - pix
    BlockchainPaymentCounterpartyFpsBeta:
      title: Faster Payments
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - fps
          properties:
            payment_rail:
              type: string
              enum:
                - faster_payments
    BlockchainPaymentCounterpartyBreBBeta:
      title: Bre-B
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - bre_b
          properties:
            payment_rail:
              type: string
              enum:
                - bre_b
    BlockchainPaymentCounterpartySwiftBeta:
      title: SWIFT
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - swift
          properties:
            payment_rail:
              type: string
              enum:
                - swift
    BlockchainPaymentCounterpartyCoBankTransferBeta:
      title: Colombian Bank Transfer
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - co_bank_transfer
          properties:
            payment_rail:
              type: string
              enum:
                - co_bank_transfer
    BlockchainPaymentCounterpartyWalletBeta:
      title: Wallet
      allOf:
        - $ref: '#/components/schemas/BlockchainPaymentCounterpartyBaseBeta'
        - type: object
          required:
            - wallet_address
          properties:
            payment_rail:
              type: string
              enum:
                - solana
                - base
                - ethereum
                - arbitrum
                - optimism
                - arc
    Country:
      type: string
      description: >-
        ISO 3166-1 alpha-2 country code. Only officially assigned codes are
        accepted.
      example: US
      enum:
        - AD
        - AE
        - AF
        - AG
        - AI
        - AL
        - AM
        - AO
        - AQ
        - AR
        - AS
        - AT
        - AU
        - AW
        - AX
        - AZ
        - BA
        - BB
        - BD
        - BE
        - BF
        - BG
        - BH
        - BI
        - BJ
        - BL
        - BM
        - BN
        - BO
        - BQ
        - BR
        - BS
        - BT
        - BV
        - BW
        - BY
        - BZ
        - CA
        - CC
        - CD
        - CF
        - CG
        - CH
        - CI
        - CK
        - CL
        - CM
        - CN
        - CO
        - CR
        - CU
        - CV
        - CW
        - CX
        - CY
        - CZ
        - DE
        - DJ
        - DK
        - DM
        - DO
        - DZ
        - EC
        - EE
        - EG
        - EH
        - ER
        - ES
        - ET
        - FI
        - FJ
        - FK
        - FM
        - FO
        - FR
        - GA
        - GB
        - GD
        - GE
        - GF
        - GG
        - GH
        - GI
        - GL
        - GM
        - GN
        - GP
        - GQ
        - GR
        - GS
        - GT
        - GU
        - GW
        - GY
        - HK
        - HM
        - HN
        - HR
        - HT
        - HU
        - ID
        - IE
        - IL
        - IM
        - IN
        - IO
        - IQ
        - IR
        - IS
        - IT
        - JE
        - JM
        - JO
        - JP
        - KE
        - KG
        - KH
        - KI
        - KM
        - KN
        - KP
        - KR
        - KW
        - KY
        - KZ
        - LA
        - LB
        - LC
        - LI
        - LK
        - LR
        - LS
        - LT
        - LU
        - LV
        - LY
        - MA
        - MC
        - MD
        - ME
        - MF
        - MG
        - MH
        - MK
        - ML
        - MM
        - MN
        - MO
        - MP
        - MQ
        - MR
        - MS
        - MT
        - MU
        - MV
        - MW
        - MX
        - MY
        - MZ
        - NA
        - NC
        - NE
        - NF
        - NG
        - NI
        - NL
        - 'NO'
        - NP
        - NR
        - NU
        - NZ
        - OM
        - PA
        - PE
        - PF
        - PG
        - PH
        - PK
        - PL
        - PM
        - PN
        - PR
        - PS
        - PT
        - PW
        - PY
        - QA
        - RE
        - RO
        - RS
        - RU
        - RW
        - SA
        - SB
        - SC
        - SD
        - SE
        - SG
        - SH
        - SI
        - SJ
        - SK
        - SL
        - SM
        - SN
        - SO
        - SR
        - SS
        - ST
        - SV
        - SX
        - SY
        - SZ
        - TC
        - TD
        - TF
        - TG
        - TH
        - TJ
        - TK
        - TL
        - TM
        - TN
        - TO
        - TR
        - TT
        - TV
        - TW
        - TZ
        - UA
        - UG
        - UM
        - US
        - UY
        - UZ
        - VA
        - VC
        - VE
        - VG
        - VI
        - VN
        - VU
        - WF
        - WS
        - XK
        - YE
        - YT
        - ZA
        - ZM
        - ZW
    Address:
      type: object
      required:
        - line_1
        - city
        - country
      properties:
        line_1:
          type: string
          description: >-
            Address line 1 is the required primary street-address field. It must
            contain the full base address needed to identify the physical
            location, such as the street number and street name together, or the
            closest local equivalent in countries where addresses do not use
            that exact structure.


            Use address line 1 for all core location details that describe the
            main property or thoroughfare. Regardless of how each component of
            an address is collected from your end-users, they must be combined
            into address line 1 before sending to Lead.


            Do not:

            - split the primary street address across line 1 and line 2

            - put only the street number in line 1 and the street name in line 2

            - pad line 1 with false or altered data just to satisfy validation
          example: 123 Main St.
        line_2:
          type: string
          description: >-
            Address line 2 is optional and should be used only for secondary or
            sub-premise information, such as:

            - apartment

            - unit

            - suite

            - floor

            - building

            - care-of / attention


            If there is no secondary or sub-premise information, address line 2
            should be blank.


            Do not use address line 2 for any part of the primary street
            address.
          example: Apt 25
        city:
          type: string
          description: City.
          example: Denver
        state:
          type: string
          description: State. required for US addresses in 2 character code (e.g. NY).
          example: CO
        postal_code:
          type: string
          description: Postal code. Required for US addresses.
          example: '80014'
        country:
          $ref: '#/components/schemas/Country'
          description: ISO3166-1 Alpha-2 country code.
          example: US
    BlockchainPaymentWalletSenderBeta:
      title: Wallet
      type: object
      description: >-
        The wallet a deposit to one of your blockchain deposit addresses came
        from.
      required:
        - payment_rail
        - wallet_address
        - token
      properties:
        payment_rail:
          type: string
          description: The blockchain network the deposit arrived on.
          enum:
            - solana
            - base
            - ethereum
            - arbitrum
            - optimism
            - arc
        wallet_address:
          type: string
          description: The sending wallet's address.
          example: '0x022e3fD8662c84AF51fF06d7DcAe0b675416dab4'
        token:
          $ref: '#/components/schemas/BlockchainDepositAddressTokenBeta'
    BlockchainDepositAddressID:
      type: string
      description: The ID of the Blockchain Deposit Address object.
      example: blockchain_deposit_address_2GvQ9cTn4HsWq7JkLp1RzYe8Bx3
      pattern: ^blockchain_deposit_address_[0-9A-Za-z]{27}$
    BlockchainPaymentCurrencyCodeBeta:
      description: |
        A currency on a blockchain payment response. An incoming payment can be
        instructed in a stablecoin or a payout's local currency.
      type: string
      example: USD
      enum:
        - BRL
        - COP
        - EUR
        - GBP
        - MXN
        - USD
        - USDC
        - OUSD
    BlockchainPaymentExchangeRateBeta:
      type: string
      description: |
        The settlement exchange rate, as a decimal string. One unit of the
        instructed currency equals this many units of the settlement currency.
      example: '5.123456'
      pattern: ^[0-9]+(\.[0-9]{1,8})?$
    BlockchainPaymentPurposeTypeBeta:
      description: The purpose of the transfer.
      type: string
      example: invoice_payment
      enum:
        - salary_payment
        - invoice_payment
        - gift
        - payment_for_goods
        - payment_for_services
        - insurance_premium_payment
        - interest_payment
        - loan
        - loan_repayment
        - account_management
        - cash_management_transfer
        - other
        - tax_payment
        - government_payment
        - benefits_payment
        - pension_payment
        - rent_payment
        - utilities_payment
        - education_payment
        - healthcare_payment
        - charitable_payment
        - refund
        - fee_payment
        - intercompany_transfer
        - investment_payment
        - fx_or_treasury
        - derivatives_payment
        - card_network_settlement
    BlockchainPaymentRejectionReasonBeta:
      description: >
        Machine-readable code explaining why a blockchain payment was rejected.
        Each

        reason has fixed `details` text and a fixed `rejected_by`.


        Each value is either **terminal** (resubmitting the same payment cannot

        succeed) or **retryable** (the same payment may be resubmitted once the

        transient condition clears):


        | Reason | `details` | `rejected_by` | Resubmit |

        | --- | --- | --- | --- |

        | `payment_could_not_be_processed` | Payment could not be completed |
        `lead` | terminal |

        | `regulatory_reason` | A compliance control blocked this request.
        Contact Lead | `lead` | terminal |

        | `creditor_name_mismatch` | The creditor name specified does not match
        the name of the receiving entity | `lead` | terminal |

        | `creditor_agent_name_mismatch` | The creditor agent name specified
        does not match the name of the receiving bank | `lead` | terminal |

        | `creditor_validation_timeout` | Creditor account status and creditor
        name validation timed out | `lead` | retryable |

        | `creditor_account_closed` | The account is closed or inactive at the
        counterparty bank. | `counterparty` | terminal |

        | `creditor_account_number_incorrect` | The account number is incorrect.
        | `counterparty` | terminal |


        `creditor_name_mismatch`: correct the creditor name before resubmitting;

        `validated_creditor_name` holds the name on the account.

        `creditor_agent_name_mismatch`: correct `creditor_agent.bank_name`
        before

        resubmitting; `validated_creditor_agent_name` holds the receiving bank's
        name.

        `creditor_validation_timeout`: resubmit the same payment; it reuses the
        held

        account and succeeds once validation completes.


        Extensible: new values may be added without a new version
      type: string
      example: creditor_name_mismatch
      enum:
        - payment_could_not_be_processed
        - regulatory_reason
        - creditor_name_mismatch
        - creditor_agent_name_mismatch
        - creditor_validation_timeout
        - creditor_account_closed
        - creditor_account_number_incorrect
    BlockchainPaymentRejectedByBeta:
      description: Who rejected the payment. `counterparty` is the receiving institution.
      type: string
      example: lead
      enum:
        - lead
        - counterparty
    BlockchainPaymentReturnReasonBeta:
      description: >
        Machine-readable code explaining why a blockchain payment was returned.
        Each

        reason has fixed `details` text.


        Every value is **terminal**: the returned payment settles at `posted`
        with

        the funds back in the debtor account, and resubmitting the same payment

        unchanged returns it again.


        | Reason | `details` |

        | --- | --- |

        | `creditor_account_closed` | The account is closed or inactive at the
        counterparty bank. |

        | `creditor_account_number_incorrect` | The account number is incorrect.
        |

        | `payment_returned` | The receiving bank returned the payment. Check
        the creditor's account details before you send it again. |


        Extensible: new values may be added without a new version
      type: string
      example: creditor_account_closed
      enum:
        - creditor_account_closed
        - creditor_account_number_incorrect
        - payment_returned
    BlockchainPaymentAccountIdentifierTypeBeta:
      description: The type of account identifier.
      type: string
      example: account_number_id
      enum:
        - account_number_id
    BlockchainPaymentCounterpartyBaseBeta:
      type: object
      description: >
        Fields shared by every rail-specific counterparty: the party outside
        Lead on

        a payment rail. It is an outgoing payment's creditor, and the debtor of
        a

        returned payout. Integrations reference `BlockchainPaymentCreditorBeta`

        or `BlockchainPaymentIncomingDebtorBeta`, which select the variant from

        `payment_rail`.
      additionalProperties: false
      required:
        - payment_rail
        - type
        - address
      properties:
        payment_rail:
          $ref: '#/components/schemas/BlockchainPaymentPaymentRailBeta'
        ach:
          $ref: '#/components/schemas/BlockchainPaymentAchDetailsBeta'
        wire:
          $ref: '#/components/schemas/BlockchainPaymentWireDetailsBeta'
        bre_b:
          $ref: '#/components/schemas/BlockchainPaymentBreBDetailsBeta'
        fps:
          $ref: '#/components/schemas/BlockchainPaymentFpsDetailsBeta'
        iban:
          $ref: '#/components/schemas/BlockchainPaymentIbanDetailsBeta'
        swift:
          $ref: '#/components/schemas/BlockchainPaymentSwiftDetailsBeta'
        clabe:
          $ref: '#/components/schemas/BlockchainPaymentClabeDetailsBeta'
        pix_key:
          $ref: '#/components/schemas/BlockchainPaymentPixKeyDetailsBeta'
        pix_br_code:
          $ref: '#/components/schemas/BlockchainPaymentPixBrCodeDetailsBeta'
        co_bank_transfer:
          $ref: '#/components/schemas/BlockchainPaymentCoBankTransferDetailsBeta'
        wallet_address:
          type: string
          description: >-
            The destination wallet address, for the `solana`, `base`,
            `ethereum`, `arbitrum`, `optimism` and `arc` rails.
          example: '0xdef456abc789'
        type:
          $ref: '#/components/schemas/BlockchainPaymentCounterpartyTypeBeta'
        individual:
          $ref: '#/components/schemas/BlockchainPaymentCounterpartyIndividualBeta'
        business:
          $ref: '#/components/schemas/BlockchainPaymentCounterpartyBusinessBeta'
        address:
          $ref: '#/components/schemas/Address'
          description: A physical address.
    BlockchainDepositAddressTokenBeta:
      description: >-
        The token the address receives. OUSD is available on base, ethereum and
        solana for programs whose wallet holds OUSD.
      type: string
      example: USDC
      enum:
        - USDC
        - OUSD
    BlockchainPaymentPaymentRailBeta:
      description: |
        The payment rail used for the creditor payout.
      type: string
      example: wire
      enum:
        - ach
        - wire
        - spei
        - pix
        - bre_b
        - swift
        - co_bank_transfer
        - solana
        - base
        - ethereum
        - arbitrum
        - optimism
        - arc
    BlockchainPaymentAchDetailsBeta:
      type: object
      description: ACH payment details.
      required:
        - account_number
        - routing_number
      properties:
        account_number:
          type: string
          minLength: 1
          maxLength: 17
          pattern: ^[0-9A-Za-z]+$
          description: The bank account number. 1–17 alphanumeric characters.
          example: '123456789'
        routing_number:
          type: string
          description: >
            The routing number. For US-address creditors it is checked against
            the

            FedACH directory when that directory is available; a well-formed but

            unknown routing number is rejected.
          example: '021000021'
    BlockchainPaymentWireDetailsBeta:
      type: object
      description: Wire payment details.
      required:
        - account_number
        - routing_number
      properties:
        account_number:
          type: string
          minLength: 1
          maxLength: 17
          pattern: ^[0-9A-Za-z]+$
          description: The bank account number. 1–17 alphanumeric characters.
          example: '123456789'
        routing_number:
          type: string
          description: >
            The routing number. For US-address creditors it is checked against
            the

            FedACH directory when that directory is available; a well-formed but

            unknown routing number is rejected.
          example: '021000021'
    BlockchainPaymentBreBDetailsBeta:
      type: object
      description: BRE-B payment details.
      required:
        - bre_b_key
      properties:
        bre_b_key:
          type: string
          description: The BRE-B key.
          example: '1234567890'
    BlockchainPaymentFpsDetailsBeta:
      type: object
      description: Faster Payments Service (FPS) payment details.
      required:
        - account_number
        - sort_code
      properties:
        account_number:
          type: string
          description: The bank account number.
          example: '12345678'
        sort_code:
          type: string
          description: The sort code.
          example: '123456'
    BlockchainPaymentIbanDetailsBeta:
      type: object
      description: IBAN payment details.
      required:
        - account_number
        - country
      properties:
        account_number:
          type: string
          description: >
            The IBAN account number. Validated for the country's IBAN length and

            the ISO 7064 MOD-97 check digits; a malformed or bad-checksum IBAN
            is

            rejected.
          example: DE89370400440532013000
        country:
          $ref: '#/components/schemas/Country'
          description: >
            ISO 3166-1 alpha-2 country code. Sanctioned countries are not
            accepted.
          example: DE
        business_identifier_code:
          type: string
          description: >
            The BIC/SWIFT code (optional). When provided, must be a valid ISO
            9362

            BIC (8 or 11 characters).
          example: COBADEFFXXX
    BlockchainPaymentSwiftDetailsBeta:
      type: object
      description: SWIFT payment details.
      required:
        - account_number
        - country
        - business_identifier_code
        - role
        - purpose_of_funds
        - short_business_desc
      properties:
        account_number:
          type: string
          description: The account number.
          example: '123456789'
        country:
          $ref: '#/components/schemas/Country'
          description: >
            ISO 3166-1 alpha-2 country code. Sanctioned countries are not
            accepted.
          example: GB
        business_identifier_code:
          type: string
          description: >-
            The BIC/SWIFT code. Must be a valid ISO 9362 BIC (8 or 11
            characters).
          example: BARCGB22XXX
        role:
          $ref: '#/components/schemas/BlockchainPaymentSwiftRoleBeta'
        purpose_of_funds:
          $ref: '#/components/schemas/BlockchainPaymentSwiftPurposeOfFundsBeta'
        short_business_desc:
          type: string
          description: A short description of the business.
          example: Software development services
    BlockchainPaymentClabeDetailsBeta:
      type: object
      description: CLABE payment details.
      required:
        - account_number
      properties:
        account_number:
          type: string
          description: |
            The CLABE account number (18 digits). Validated for length and the
            Banco de México control-digit checksum; a bad-checksum CLABE is
            rejected.
          example: '032180000118359719'
    BlockchainPaymentPixKeyDetailsBeta:
      type: object
      description: PIX key payment details.
      required:
        - pix_key
      properties:
        pix_key:
          type: string
          description: >-
            PIX key. For CPF (11 digits) and CNPJ (14 digits), send digits only
            — strip periods and hyphens (e.g. "12345678909", not
            "123.456.789-09"). Phone keys use E.164 (+55, a 2-digit area code,
            then an 8- or 9-digit number), email keys are plain addresses,
            EVP/random keys are lowercase UUID v4. CPF and CNPJ keys are
            validated for their check digits; a bad-checksum document is
            rejected.
          example: '12345678909'
        document_number:
          type: string
          nullable: true
          description: >-
            Optional payer/payee tax document (CPF or CNPJ), digits only.
            Forwarded to the PIX network; not validated by this API.
          example: '12345678901'
    BlockchainPaymentPixBrCodeDetailsBeta:
      type: object
      description: PIX BR Code payment details.
      required:
        - br_code
      properties:
        br_code:
          type: string
          description: >-
            PIX BR Code (EMV QR Code payload). Must be a dynamic code — static
            codes (Point of Initiation Method = 11) are rejected. The payload's
            CRC-16 checksum is validated; a bad-checksum code is rejected.
          example: 00020126580014br.gov.bcb.pix...
        document_number:
          type: string
          nullable: true
          description: >-
            Optional payer/payee tax document (CPF or CNPJ), digits only.
            Forwarded to the PIX network; not validated by this API.
          example: '12345678901'
    BlockchainPaymentCoBankTransferDetailsBeta:
      type: object
      description: |
        Colombian COP bank-transfer payment details. For this rail the creditor
        address country and the creditor agent `country_code` must both be `CO`.
      required:
        - account_number
        - bank_code
        - account_type
        - document_type
        - document_number
        - phone_number
      properties:
        account_number:
          type: string
          description: The bank account number.
          example: '1234567890'
        bank_code:
          type: string
          description: The receiving bank code (Colombian financial-institution code).
          example: '1007'
          enum:
            - '1001'
            - '1002'
            - '1006'
            - '1007'
            - '1009'
            - '1012'
            - '1013'
            - '1019'
            - '1023'
            - '1032'
            - '1040'
            - '1047'
            - '1051'
            - '1052'
            - '1053'
            - '1059'
            - '1060'
            - '1061'
            - '1062'
            - '1063'
            - '1065'
            - '1066'
            - '1067'
            - '1069'
            - '1070'
            - '1071'
            - '1097'
            - '1121'
            - '1283'
            - '1286'
            - '1289'
            - '1292'
            - '1303'
            - '1370'
            - '1507'
            - '1551'
            - '1558'
            - '1637'
            - '1801'
            - '1802'
            - '1803'
            - '1804'
            - '1805'
            - '1808'
            - '1809'
            - '1811'
            - '1812'
            - '1814'
            - '1815'
            - '1816'
        account_type:
          type: string
          description: The type of bank account.
          example: savings
          enum:
            - savings
            - checking
            - electronic_deposit
        document_type:
          type: string
          description: The recipient's identification document type.
          example: cc
          enum:
            - cc
            - ce
            - nit
            - rut
            - pa
            - ppt
            - ti
            - rc
            - te
            - die
            - nd
        document_number:
          type: string
          description: The recipient's identification document number.
          example: '12345678901'
        phone_number:
          type: string
          description: The recipient's phone number in E.164 format.
          example: '+573001234567'
          pattern: ^\+[1-9]\d{1,14}$
    BlockchainPaymentCounterpartyTypeBeta:
      description: Whether the counterparty is an individual or a business.
      type: string
      example: individual
      enum:
        - individual
        - business
    BlockchainPaymentCounterpartyIndividualBeta:
      type: object
      description: Individual counterparty details.
      required:
        - first_name
        - last_name
      properties:
        first_name:
          type: string
          description: First name of the individual.
          example: Maria
        last_name:
          type: string
          description: Last name of the individual.
          example: Garcia
    BlockchainPaymentCounterpartyBusinessBeta:
      type: object
      description: Business counterparty details.
      required:
        - name
      properties:
        name:
          type: string
          description: Name of the business.
          example: Acme International LLC
    BlockchainPaymentSwiftRoleBeta:
      description: The role of the creditor in a SWIFT transfer.
      type: string
      example: client
      enum:
        - client
        - parent_company
        - subsidiary
        - supplier
    BlockchainPaymentSwiftPurposeOfFundsBeta:
      description: The purpose of funds for a SWIFT transfer.
      type: string
      example: invoice_for_goods_and_services
      enum:
        - intra_group_transfer
        - invoice_for_goods_and_services
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````