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

# Create a payment quote

> Creates a payment quote with a locked exchange rate and fee breakdown for a prospective transfer. Quotes expire after a short window; reference the returned quote ID when executing the transaction. Pass an Idempotency-Key header to safely retry.

A disallowed source→destination instrument pair is rejected with `422 unsupportedInstrumentCombination` before any quote is created; the error body carries a `details` object of `{ source, destination, supportedDestinations }`. (Not modeled as a typed error arm here so the other 422 codes on this operation keep their shape.)



## OpenAPI

````yaml /api-reference/openapi.yaml post /quotes
openapi: 3.0.3
info:
  title: Polygon OMS Public API
  version: v26.11.3-0001
  description: >-
    Unified API for moving money between crypto and fiat. Three ways to move
    money: Transactions (instant, wallet or card funded, including Cash-In for
    in-person cash deposits), Deposit Addresses (reusable crypto deposit
    configurations), and Virtual Accounts (dedicated bank accounts that
    auto-convert fiat to crypto). Standard transactions follow a two-step flow:
    create a Quote (pricing), then create a Transaction (execution). Cash-in
    codes generate a one-time deposit code for in-person cash deposits at retail
    locations.
  contact:
    name: Polygon OMS
    url: https://oms.polygon.technology
servers:
  - url: https://sandbox-api.polygon.technology/v0.13
    description: Sandbox
  - url: https://api.polygon.technology/v0.13
    description: Production
security:
  - BearerAuth: []
tags:
  - name: Auth
    description: Authentication via OMS API key and secret
  - name: Customers
    description: Customer management and KYC
  - name: Customer
  - name: Wallet
  - name: Quote
  - name: Transaction
  - name: Transfer
  - name: CashIns
  - name: CashLocation
  - name: Sandbox
  - name: VirtualAccount
  - name: Counterparty
  - name: ExternalAccount
  - name: Reference
  - name: DepositAddress
  - name: Indexer
    description: >-
      Read token balances, prices, and transaction history across EVM networks,
      Solana, and Tron. Indexer methods are webRPC calls: each is a `POST` with
      a JSON body, served at `/v1/{Service}/{Method}` on the API host rather
      than under the `/v0.13` base path. Authenticate with a publishable key in
      the `Api-Key` header, or with a bearer token from `POST /auth/token`.
paths:
  /quotes:
    post:
      tags:
        - Quote
      summary: Create a payment quote
      description: >-
        Creates a payment quote with a locked exchange rate and fee breakdown
        for a prospective transfer. Quotes expire after a short window;
        reference the returned quote ID when executing the transaction. Pass an
        Idempotency-Key header to safely retry.


        A disallowed source→destination instrument pair is rejected with `422
        unsupportedInstrumentCombination` before any quote is created; the error
        body carries a `details` object of `{ source, destination,
        supportedDestinations }`. (Not modeled as a typed error arm here so the
        other 422 codes on this operation keep their shape.)
      operationId: createQuote
      parameters:
        - $ref: '#/components/parameters/IdempotencyKeyHeader'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteCreateRequest'
      responses:
        '201':
          description: >-
            The request has succeeded and a new resource has been created as a
            result.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Quote'
        '400':
          description: The server could not understand the request due to invalid syntax.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/CustomerRequiredErrorResponse'
                  - $ref: '#/components/schemas/DestinationAssetRequiredErrorResponse'
                  - $ref: >-
                      #/components/schemas/DestinationNetworkRequiredErrorResponse
                  - $ref: '#/components/schemas/InvalidAmountFormatErrorResponse'
                  - $ref: '#/components/schemas/InvalidDestinationTypeErrorResponse'
                  - $ref: '#/components/schemas/InvalidExternalAccountIDErrorResponse'
                  - $ref: '#/components/schemas/InvalidMetadataErrorResponse'
                  - $ref: '#/components/schemas/InvalidRequestErrorResponse'
                  - $ref: '#/components/schemas/InvalidSourceTypeErrorResponse'
                  - $ref: '#/components/schemas/InvalidWalletAddressErrorResponse'
                  - $ref: '#/components/schemas/InvalidWalletIDErrorResponse'
                  - $ref: '#/components/schemas/InvalidWalletTargetErrorResponse'
                  - $ref: '#/components/schemas/MetadataKeyTooLongErrorResponse'
                  - $ref: '#/components/schemas/MetadataTooManyKeysErrorResponse'
                  - $ref: '#/components/schemas/MetadataValueTooLongErrorResponse'
                  - $ref: '#/components/schemas/MissingCashLocationErrorResponse'
                  - $ref: '#/components/schemas/MissingRequiredFieldErrorResponse'
                  - $ref: '#/components/schemas/SourceAssetRequiredErrorResponse'
                  - $ref: '#/components/schemas/SourceNetworkRequiredErrorResponse'
                  - $ref: '#/components/schemas/SourceWalletRequiredErrorResponse'
                  - $ref: '#/components/schemas/UnsupportedValueErrorResponse'
                  - $ref: '#/components/schemas/ZeroAddressNotAllowedErrorResponse'
        '403':
          description: Access is forbidden.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/FeatureNotEnabledErrorResponse'
                  - $ref: '#/components/schemas/KYCPendingErrorResponse'
                  - $ref: '#/components/schemas/KYCRequiredErrorResponse'
                  - $ref: '#/components/schemas/TransferPairNotPermittedErrorResponse'
        '404':
          description: The server cannot find the requested resource.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/ExternalAccountNotFoundErrorResponse'
                  - $ref: '#/components/schemas/QuoteNotFoundErrorResponse'
                  - $ref: '#/components/schemas/WalletNotFoundErrorResponse'
        '422':
          description: Client error
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/AboveMaximumAmountErrorResponse'
                  - $ref: '#/components/schemas/AmbiguousAmountErrorResponse'
                  - $ref: '#/components/schemas/AmountAboveMaximumErrorResponse'
                  - $ref: '#/components/schemas/AmountBelowMinimumErrorResponse'
                  - $ref: '#/components/schemas/AmountNotMultipleErrorResponse'
                  - $ref: >-
                      #/components/schemas/AmountNotMultipleOfTwentyErrorResponse
                  - $ref: '#/components/schemas/AmountRequiredErrorResponse'
                  - $ref: >-
                      #/components/schemas/BankBeneficiaryNotVerifiedErrorResponse
                  - $ref: '#/components/schemas/BankRailNotSupportedErrorResponse'
                  - $ref: '#/components/schemas/CardNotEnabledForProjectErrorResponse'
                  - $ref: '#/components/schemas/CashPayoutExceedsMaximumErrorResponse'
                  - $ref: >-
                      #/components/schemas/CashPickupNotAllowedInCountryErrorResponse
                  - $ref: >-
                      #/components/schemas/CashPickupNotAllowedInStateErrorResponse
                  - $ref: >-
                      #/components/schemas/CryptoToCryptoExternalAddressUnsupportedErrorResponse
                  - $ref: '#/components/schemas/DailyCountExceededErrorResponse'
                  - $ref: '#/components/schemas/DailyLimitExceededErrorResponse'
                  - $ref: >-
                      #/components/schemas/DestinationAssetUnsupportedErrorResponse
                  - $ref: >-
                      #/components/schemas/DestinationExternalAccountAddressMissingErrorResponse
                  - $ref: >-
                      #/components/schemas/DestinationExternalAccountNetworkMismatchErrorResponse
                  - $ref: >-
                      #/components/schemas/DestinationExternalAccountNotActiveErrorResponse
                  - $ref: >-
                      #/components/schemas/DestinationExternalAccountNotWalletExternalErrorResponse
                  - $ref: >-
                      #/components/schemas/DestinationExternalAccountVendorMismatchErrorResponse
                  - $ref: >-
                      #/components/schemas/DestinationInvalidReferenceErrorResponse
                  - $ref: >-
                      #/components/schemas/DestinationNetworkNotSupportedByProviderErrorResponse
                  - $ref: '#/components/schemas/DestinationRequiredErrorResponse'
                  - $ref: '#/components/schemas/DestinationTypeInvalidErrorResponse'
                  - $ref: '#/components/schemas/InsufficientBalanceErrorResponse'
                  - $ref: '#/components/schemas/IntraBankNotSupportedErrorResponse'
                  - $ref: '#/components/schemas/MemoNotSupportedErrorResponse'
                  - $ref: '#/components/schemas/MonthlyCountExceededErrorResponse'
                  - $ref: '#/components/schemas/MonthlyLimitExceededErrorResponse'
                  - $ref: '#/components/schemas/NoRouteAvailableErrorResponse'
                  - $ref: '#/components/schemas/ProductDailyLimitReachedErrorResponse'
                  - $ref: '#/components/schemas/RouteDisabledErrorResponse'
                  - $ref: '#/components/schemas/SelfTransferNotAllowedErrorResponse'
                  - $ref: '#/components/schemas/SellNotAllowedAtLocationErrorResponse'
                  - $ref: '#/components/schemas/UnsupportedDestinationErrorResponse'
                  - $ref: >-
                      #/components/schemas/UnsupportedInstrumentCombinationErrorResponse
                  - $ref: '#/components/schemas/ValidationErrorResponse'
                  - $ref: '#/components/schemas/WalletAssetMismatchErrorResponse'
                  - $ref: >-
                      #/components/schemas/WalletBoundToCustodialFlowErrorResponse
                  - $ref: '#/components/schemas/WalletClaimedErrorResponse'
                  - $ref: >-
                      #/components/schemas/WalletExternalIDUnsupportedErrorResponse
                  - $ref: '#/components/schemas/WeeklyCountExceededErrorResponse'
                  - $ref: '#/components/schemas/WeeklyLimitExceededErrorResponse'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/InternalErrorResponse'
                  - $ref: '#/components/schemas/LimitMisconfiguredErrorResponse'
        '503':
          description: Service unavailable.
          content:
            application/json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/BankRailUnavailableErrorResponse'
                  - $ref: '#/components/schemas/CardRailUnavailableErrorResponse'
components:
  parameters:
    IdempotencyKeyHeader:
      name: Idempotency-Key
      in: header
      required: true
      description: >-
        Required on POST and PUT requests. Use a unique value per logical
        mutation attempt, for example a UUID.
      schema:
        type: string
  schemas:
    QuoteCreateRequest:
      type: object
      required:
        - customerId
        - source
        - destination
      properties:
        customerId:
          type: string
          description: The customer this quote is for (`cst_` prefix).
        source:
          allOf:
            - $ref: '#/components/schemas/QuoteSourceRequest'
          description: >-
            What funds the transaction. Pick a `type`: an OMS crypto wallet
            (`walletCrypto`) or a registered card (`card`, pull-from-card).
        destination:
          allOf:
            - $ref: '#/components/schemas/QuoteSideRequest'
          description: >-
            The instrument that receives the funds. Pick a `type`: a wallet
            (`walletCrypto` / `walletExternal`), a bank account (`bankUs` /
            `bankIban` / `bankCanada`), a `card`, or `cash`.
        sponsorGas:
          type: boolean
          description: >-
            When `true`, OMS absorbs the on-chain gas cost for the destination
            delivery. Only `true` is currently supported. Ignored for non-crypto
            destinations (no on-chain leg).
        metadata:
          type: object
          additionalProperties:
            type: string
          description: >-
            Free-form key-value pairs stored on the quote and copied to the
            resulting transaction.
      description: >-
        Request body for creating a quote. Pick a `type` on each side and set
        the amount on exactly one side; OMS calculates the other.
      example:
        customerId: cst_vfa0nxw6zvyws9g237jrxn4y7k
        source:
          type: walletCrypto
          details:
            id: wlt_5h4jzzpr9xre3bamd9ca7qyghn
            asset: usdc
            network: polygon
          amount: '100.00'
        destination:
          type: bankUs
          details:
            id: ext_fky491gakzj0dd46qb6whsr2vq
            asset: usd
            network: ach
        sponsorGas: true
        metadata:
          orderId: order_12345
    Quote:
      type: object
      required:
        - id
        - object
        - status
        - customerId
        - source
        - destination
        - pricing
      properties:
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: Quote ID (`qt_` prefix).
        object:
          type: string
          enum:
            - quote
          description: Resource type discriminator. Always "quote".
        status:
          allOf:
            - $ref: '#/components/schemas/QuoteStatus'
          description: Current status of the quote.
        sourceToDestination:
          allOf:
            - $ref: '#/components/schemas/SourceToDestination'
          description: Corridor composite derived from the two sides.
        customerId:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: The OMS customer that owns this record (`cst_` prefix).
        customer:
          allOf:
            - $ref: '#/components/schemas/CustomerSummary'
          description: >-
            Display-safe summary of the owning customer (`customer.id` equals
            `customerId`). Omitted when the customer cannot be resolved.
        source:
          allOf:
            - $ref: '#/components/schemas/TransactionSide'
          description: >-
            The funding side, echoed from the request with resolved instrument
            detail.
        destination:
          allOf:
            - $ref: '#/components/schemas/TransactionDestination'
          description: >-
            The receiving side, echoed from the request with resolved instrument
            detail.
        pricing:
          allOf:
            - $ref: '#/components/schemas/Pricing'
          description: Consolidated economics.
        expiresAt:
          type: string
          format: date-time
          description: When the locked pricing expires.
        createdAt:
          type: string
          format: date-time
          description: When the quote was created.
        metadata:
          type: object
          additionalProperties:
            type: string
          description: Free-form key-value pairs supplied at creation or update.
      description: >-
        A price quote for moving money between two instruments. It locks an
        exchange rate and the amounts for a short window; execute it by creating
        a transaction that references this quote's id.
      example:
        id: qt_0gq9aesz4wb5etdv88z1j61qcm
        object: quote
        status: open
        sourceToDestination: cryptoToFiatAccount
        customerId: cst_vfa0nxw6zvyws9g237jrxn4y7k
        customer:
          id: cst_vfa0nxw6zvyws9g237jrxn4y7k
          name: Jane Smith
        source:
          type: walletCrypto
          id: wlt_5h4jzzpr9xre3bamd9ca7qyghn
          asset: usdc
          network: polygon
          details:
            address: '0x7B3A9F2C4D1eA8bf6390cE5D2b7fA104c8e3D9B1'
        destination:
          owner:
            kind: counterparty
            id: ctp_yp5z8m7n22svc0vh6edqgcfdat
            name: Alice Smith
          type: bankUs
          id: ext_fky491gakzj0dd46qb6whsr2vq
          asset: usd
          network: ach
          details:
            accountNumberLast4: '1234'
            holderName: Alice Smith
          payoutOrigin:
            type: bank
            accountHolder: customer
            accountHolderName: Jane Smith
        pricing:
          source:
            asset: usdc
            amount: '100.000000'
          destination:
            asset: usd
            amount: '100.00'
          fees: []
          exchangeRate: '1.0000'
          fixedAmountSide: source
          sponsorGas: true
        expiresAt: '2026-03-14T19:15:00Z'
        createdAt: '2026-03-14T19:00:00Z'
    CustomerRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - CustomerRequired
        code:
          type: number
          enum:
            - 10125
        msg:
          type: string
          enum:
            - customer_id is required
        cause:
          type: string
    DestinationAssetRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationAssetRequired
        code:
          type: number
          enum:
            - 10128
        msg:
          type: string
          enum:
            - destination.asset is required
        cause:
          type: string
    DestinationNetworkRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationNetworkRequired
        code:
          type: number
          enum:
            - 10130
        msg:
          type: string
          enum:
            - destination.network is required
        cause:
          type: string
    InvalidAmountFormatErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidAmountFormat
        code:
          type: number
          enum:
            - 10016
        msg:
          type: string
          enum:
            - amount must be positive
        cause:
          type: string
    InvalidDestinationTypeErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidDestinationType
        code:
          type: number
          enum:
            - 10142
        msg:
          type: string
          enum:
            - destination has an unsupported or missing type
        cause:
          type: string
    InvalidExternalAccountIDErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidExternalAccountID
        code:
          type: number
          enum:
            - 10067
        msg:
          type: string
          enum:
            - invalid destination external account id
        cause:
          type: string
    InvalidMetadataErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidMetadata
        code:
          type: number
          enum:
            - 10133
        msg:
          type: string
          enum:
            - invalid metadata
        cause:
          type: string
    InvalidRequestErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidRequest
        code:
          type: number
          enum:
            - 10005
        msg:
          type: string
          enum:
            - the request is invalid
        cause:
          type: string
    InvalidSourceTypeErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidSourceType
        code:
          type: number
          enum:
            - 10141
        msg:
          type: string
          enum:
            - source has an unsupported or missing type
        cause:
          type: string
    InvalidWalletAddressErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidWalletAddress
        code:
          type: number
          enum:
            - 10112
        msg:
          type: string
          enum:
            - >-
              destination.wallet.blockchainAddress is not valid for
              destination.network
        cause:
          type: string
    InvalidWalletIDErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidWalletID
        code:
          type: number
          enum:
            - 10138
        msg:
          type: string
          enum:
            - invalid source fiat wallet id
        cause:
          type: string
    InvalidWalletTargetErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InvalidWalletTarget
        code:
          type: number
          enum:
            - 10131
        msg:
          type: string
          enum:
            - destination.wallet is required
        cause:
          type: string
    MetadataKeyTooLongErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MetadataKeyTooLong
        code:
          type: number
          enum:
            - 10075
        msg:
          type: string
          enum:
            - metadata key must be 64 characters or fewer
        cause:
          type: string
    MetadataTooManyKeysErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MetadataTooManyKeys
        code:
          type: number
          enum:
            - 10074
        msg:
          type: string
          enum:
            - metadata may have at most 20 keys
        cause:
          type: string
    MetadataValueTooLongErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MetadataValueTooLong
        code:
          type: number
          enum:
            - 10076
        msg:
          type: string
          enum:
            - metadata value must be 500 characters or fewer
        cause:
          type: string
    MissingCashLocationErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MissingCashLocation
        code:
          type: number
          enum:
            - 10132
        msg:
          type: string
          enum:
            - cash location not found
        cause:
          type: string
    MissingRequiredFieldErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MissingRequiredField
        code:
          type: number
          enum:
            - 10154
        msg:
          type: string
          enum:
            - destination.cash is required for cash off-ramp
        cause:
          type: string
    SourceAssetRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - SourceAssetRequired
        code:
          type: number
          enum:
            - 10127
        msg:
          type: string
          enum:
            - source.asset is required
        cause:
          type: string
    SourceNetworkRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - SourceNetworkRequired
        code:
          type: number
          enum:
            - 10129
        msg:
          type: string
          enum:
            - source.network is required
        cause:
          type: string
    SourceWalletRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - SourceWalletRequired
        code:
          type: number
          enum:
            - 10126
        msg:
          type: string
          enum:
            - source.details.id is required
        cause:
          type: string
    UnsupportedValueErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - UnsupportedValue
        code:
          type: number
          enum:
            - 10017
        msg:
          type: string
          enum:
            - unsupported value
        cause:
          type: string
    ZeroAddressNotAllowedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - ZeroAddressNotAllowed
        code:
          type: number
          enum:
            - 10050
        msg:
          type: string
          enum:
            - blockchainAddress must not be the zero (burn) address
        cause:
          type: string
    FeatureNotEnabledErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - FeatureNotEnabled
        code:
          type: number
          enum:
            - 10153
        msg:
          type: string
          enum:
            - cash offramp is not enabled for this partner
        cause:
          type: string
    KYCPendingErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - KYCPending
        code:
          type: number
          enum:
            - 10009
        msg:
          type: string
          enum:
            - customer KYC is pending; retry shortly
        cause:
          type: string
    KYCRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - KYCRequired
        code:
          type: number
          enum:
            - 10008
        msg:
          type: string
          enum:
            - customer KYC verification is required
        cause:
          type: string
    TransferPairNotPermittedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - TransferPairNotPermitted
        code:
          type: number
          enum:
            - 10012
        msg:
          type: string
          enum:
            - transfer pair not permitted
        cause:
          type: string
    ExternalAccountNotFoundErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - ExternalAccountNotFound
        code:
          type: number
          enum:
            - 10066
        msg:
          type: string
          enum:
            - external account not found
        cause:
          type: string
    QuoteNotFoundErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - QuoteNotFound
        code:
          type: number
          enum:
            - 10260
        msg:
          type: string
          enum:
            - quote not found
        cause:
          type: string
    WalletNotFoundErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - WalletNotFound
        code:
          type: number
          enum:
            - 10015
        msg:
          type: string
          enum:
            - fiat wallet not found
        cause:
          type: string
    AboveMaximumAmountErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - AboveMaximumAmount
        code:
          type: number
          enum:
            - 10110
        msg:
          type: string
          enum:
            - amount exceeds the maximum (cash_onramp legacy)
        cause:
          type: string
    AmbiguousAmountErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - AmbiguousAmount
        code:
          type: number
          enum:
            - 10162
        msg:
          type: string
          enum:
            - only one of source.amount or destination.amount may be specified
        cause:
          type: string
    AmountAboveMaximumErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - AmountAboveMaximum
        code:
          type: number
          enum:
            - 10136
        msg:
          type: string
          enum:
            - amount exceeds the maximum
        cause:
          type: string
    AmountBelowMinimumErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - AmountBelowMinimum
        code:
          type: number
          enum:
            - 10135
        msg:
          type: string
          enum:
            - amount is below the minimum
        cause:
          type: string
    AmountNotMultipleErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - AmountNotMultiple
        code:
          type: number
          enum:
            - 10223
        msg:
          type: string
          enum:
            - amount is not a multiple of the required increment
        cause:
          type: string
    AmountNotMultipleOfTwentyErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - AmountNotMultipleOfTwenty
        code:
          type: number
          enum:
            - 10163
        msg:
          type: string
          enum:
            - >-
              amount is not a multiple of the required increment (v0.10 cash
              pickup)
        cause:
          type: string
    AmountRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - AmountRequired
        code:
          type: number
          enum:
            - 10161
        msg:
          type: string
          enum:
            - source.amount or destination.amount is required
        cause:
          type: string
    BankBeneficiaryNotVerifiedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - BankBeneficiaryNotVerified
        code:
          type: number
          enum:
            - 10293
        msg:
          type: string
          enum:
            - bank beneficiary is not verified
        cause:
          type: string
    BankRailNotSupportedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - BankRailNotSupported
        code:
          type: number
          enum:
            - 10294
        msg:
          type: string
          enum:
            - bank payment rail is not supported for this beneficiary
        cause:
          type: string
    CardNotEnabledForProjectErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - CardNotEnabledForProject
        code:
          type: number
          enum:
            - 10336
        msg:
          type: string
          enum:
            - cards are not enabled for this project
        cause:
          type: string
    CashPayoutExceedsMaximumErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - CashPayoutExceedsMaximum
        code:
          type: number
          enum:
            - 10164
        msg:
          type: string
          enum:
            - amount exceeds the maximum (v0.10 cash pickup)
        cause:
          type: string
    CashPickupNotAllowedInCountryErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - CashPickupNotAllowedInCountry
        code:
          type: number
          enum:
            - 10155
        msg:
          type: string
          enum:
            - cash pickup is only available in the customer's registered country
        cause:
          type: string
    CashPickupNotAllowedInStateErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - CashPickupNotAllowedInState
        code:
          type: number
          enum:
            - 10156
        msg:
          type: string
          enum:
            - cash pickup is only available in the customer's registered state
        cause:
          type: string
    CryptoToCryptoExternalAddressUnsupportedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - CryptoToCryptoExternalAddressUnsupported
        code:
          type: number
          enum:
            - 10311
        msg:
          type: string
          enum:
            - >-
              this route does not deliver crypto-to-crypto transfers to a raw
              destination.details.blockchainAddress; use destination.type
              walletCrypto with destination.details.id for a wallet registered
              in OMS
        cause:
          type: string
    DailyCountExceededErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DailyCountExceeded
        code:
          type: number
          enum:
            - 10224
        msg:
          type: string
          enum:
            - daily transaction count limit reached
        cause:
          type: string
    DailyLimitExceededErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DailyLimitExceeded
        code:
          type: number
          enum:
            - 10010
        msg:
          type: string
          enum:
            - daily limit exceeded
        cause:
          type: string
    DestinationAssetUnsupportedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationAssetUnsupported
        code:
          type: number
          enum:
            - 10182
        msg:
          type: string
          enum:
            - >-
              destination.details.asset is not a fiat asset the resolved bank
              flavour settles
        cause:
          type: string
    DestinationExternalAccountAddressMissingErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationExternalAccountAddressMissing
        code:
          type: number
          enum:
            - 10322
        msg:
          type: string
          enum:
            - destination external account has no registered blockchain address
        cause:
          type: string
    DestinationExternalAccountNetworkMismatchErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationExternalAccountNetworkMismatch
        code:
          type: number
          enum:
            - 10323
        msg:
          type: string
          enum:
            - >-
              destination external account is registered on a different network
              family than the requested destination network
        cause:
          type: string
    DestinationExternalAccountNotActiveErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationExternalAccountNotActive
        code:
          type: number
          enum:
            - 10321
        msg:
          type: string
          enum:
            - destination external account is not active
        cause:
          type: string
    DestinationExternalAccountNotWalletExternalErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationExternalAccountNotWalletExternal
        code:
          type: number
          enum:
            - 10320
        msg:
          type: string
          enum:
            - destination external account is not a walletExternal account
        cause:
          type: string
    DestinationExternalAccountVendorMismatchErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationExternalAccountVendorMismatch
        code:
          type: number
          enum:
            - 10325
        msg:
          type: string
          enum:
            - >-
              destination external account was provisioned by a different vendor
              than the route
        cause:
          type: string
    DestinationInvalidReferenceErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationInvalidReference
        code:
          type: number
          enum:
            - 10177
        msg:
          type: string
          enum:
            - invalid destination.details.id
        cause:
          type: string
    DestinationNetworkNotSupportedByProviderErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationNetworkNotSupportedByProvider
        code:
          type: number
          enum:
            - 10324
        msg:
          type: string
          enum:
            - >-
              the requested destination network has no provider chain mapping
              and cannot be delivered to
        cause:
          type: string
    DestinationRequiredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationRequired
        code:
          type: number
          enum:
            - 10176
        msg:
          type: string
          enum:
            - destination.details.id is required
        cause:
          type: string
    DestinationTypeInvalidErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - DestinationTypeInvalid
        code:
          type: number
          enum:
            - 10175
        msg:
          type: string
          enum:
            - destination type is not a known bank-EA discriminator
        cause:
          type: string
    InsufficientBalanceErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - InsufficientBalance
        code:
          type: number
          enum:
            - 10249
        msg:
          type: string
          enum:
            - available balance is less than the requested amount
        cause:
          type: string
    IntraBankNotSupportedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - IntraBankNotSupported
        code:
          type: number
          enum:
            - 10376
        msg:
          type: string
          enum:
            - intra-bank requested on a project that has not enabled it
        cause:
          type: string
    MemoNotSupportedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MemoNotSupported
        code:
          type: number
          enum:
            - 10023
        msg:
          type: string
          enum:
            - memo is not supported on this rail
        cause:
          type: string
    MonthlyCountExceededErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MonthlyCountExceeded
        code:
          type: number
          enum:
            - 10226
        msg:
          type: string
          enum:
            - monthly transaction count limit reached
        cause:
          type: string
    MonthlyLimitExceededErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - MonthlyLimitExceeded
        code:
          type: number
          enum:
            - 10221
        msg:
          type: string
          enum:
            - monthly limit exceeded
        cause:
          type: string
    NoRouteAvailableErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - NoRouteAvailable
        code:
          type: number
          enum:
            - 10013
        msg:
          type: string
          enum:
            - no route available for this corridor
        cause:
          type: string
    ProductDailyLimitReachedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - ProductDailyLimitReached
        code:
          type: number
          enum:
            - 10381
        msg:
          type: string
          enum:
            - the daily instant payout limit has been reached
        cause:
          type: string
    RouteDisabledErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - RouteDisabled
        code:
          type: number
          enum:
            - 10014
        msg:
          type: string
          enum:
            - route is currently disabled
        cause:
          type: string
    SelfTransferNotAllowedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - SelfTransferNotAllowed
        code:
          type: number
          enum:
            - 10140
        msg:
          type: string
          enum:
            - self-transfer not allowed
        cause:
          type: string
    SellNotAllowedAtLocationErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - SellNotAllowedAtLocation
        code:
          type: number
          enum:
            - 10157
        msg:
          type: string
          enum:
            - the specified cash location does not allow sell transactions
        cause:
          type: string
    UnsupportedDestinationErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - UnsupportedDestination
        code:
          type: number
          enum:
            - 10146
        msg:
          type: string
          enum:
            - destination network does not resolve to a supported fiat-out rail
        cause:
          type: string
    UnsupportedInstrumentCombinationErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - UnsupportedInstrumentCombination
        code:
          type: number
          enum:
            - 10148
        msg:
          type: string
          enum:
            - source/destination instrument combination is not supported
        cause:
          type: string
    ValidationErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - Validation
        code:
          type: number
          enum:
            - 10030
        msg:
          type: string
          enum:
            - request validation failed
        cause:
          type: string
    WalletAssetMismatchErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - WalletAssetMismatch
        code:
          type: number
          enum:
            - 10139
        msg:
          type: string
          enum:
            - source wallet asset/network does not match request
        cause:
          type: string
    WalletBoundToCustodialFlowErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - WalletBoundToCustodialFlow
        code:
          type: number
          enum:
            - 10317
        msg:
          type: string
          enum:
            - >-
              this wallet's blockchain address is already bound to an active
              custodial deposit address or virtual account and cannot be used
              for this operation
        cause:
          type: string
    WalletClaimedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - WalletClaimed
        code:
          type: number
          enum:
            - 10357
        msg:
          type: string
          enum:
            - >-
              this wallet is claimed by a live deposit address or virtual
              account and cannot fund a withdrawal while that claim stands
        cause:
          type: string
    WalletExternalIDUnsupportedErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - WalletExternalIDUnsupported
        code:
          type: number
          enum:
            - 10143
        msg:
          type: string
          enum:
            - >-
              a walletExternal destination given by registered external-account
              id (ext_) is supported only on a custodial crypto-to-crypto or
              card-funded fiat-to-crypto route; this route cannot deliver to an
              external wallet
        cause:
          type: string
    WeeklyCountExceededErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - WeeklyCountExceeded
        code:
          type: number
          enum:
            - 10225
        msg:
          type: string
          enum:
            - weekly transaction count limit reached
        cause:
          type: string
    WeeklyLimitExceededErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - WeeklyLimitExceeded
        code:
          type: number
          enum:
            - 10222
        msg:
          type: string
          enum:
            - weekly limit exceeded
        cause:
          type: string
    InternalErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - Internal
        code:
          type: number
          enum:
            - 10124
        msg:
          type: string
          enum:
            - internal error
        cause:
          type: string
    LimitMisconfiguredErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - LimitMisconfigured
        code:
          type: number
          enum:
            - 10227
        msg:
          type: string
          enum:
            - transfer limit is misconfigured
        cause:
          type: string
    BankRailUnavailableErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - BankRailUnavailable
        code:
          type: number
          enum:
            - 10295
        msg:
          type: string
          enum:
            - bank payment rail is unavailable
        cause:
          type: string
    CardRailUnavailableErrorResponse:
      type: object
      required:
        - error
        - code
        - msg
      properties:
        error:
          type: string
          enum:
            - CardRailUnavailable
        code:
          type: number
          enum:
            - 10145
        msg:
          type: string
          enum:
            - card payment rail is unavailable
        cause:
          type: string
    QuoteSourceRequest:
      type: object
      oneOf:
        - $ref: '#/components/schemas/WalletCryptoSideRequest'
        - $ref: '#/components/schemas/WalletFiatSideRequest'
        - $ref: '#/components/schemas/CardSideRequest'
      discriminator:
        propertyName: type
        mapping:
          walletCrypto: '#/components/schemas/WalletCryptoSideRequest'
          walletFiat: '#/components/schemas/WalletFiatSideRequest'
          card: '#/components/schemas/CardSideRequest'
      description: >-
        What funds a quote: an OMS Multi-Chain Wallet (`walletCrypto`), a fiat
        balance wallet (`walletFiat`), or a registered card (`card`,
        pull-from-card). `card` requires `asset: usd`.
    QuoteSideRequest:
      type: object
      oneOf:
        - $ref: '#/components/schemas/WalletCryptoSideRequest'
        - $ref: '#/components/schemas/WalletExternalSideRequest'
        - $ref: '#/components/schemas/BankUsSideRequest'
        - $ref: '#/components/schemas/BankIbanSideRequest'
        - $ref: '#/components/schemas/BankCanadaSideRequest'
        - $ref: '#/components/schemas/CardSideRequest'
        - $ref: '#/components/schemas/CashSideRequest'
      discriminator:
        propertyName: type
        mapping:
          walletCrypto: '#/components/schemas/WalletCryptoSideRequest'
          walletExternal: '#/components/schemas/WalletExternalSideRequest'
          bankUs: '#/components/schemas/BankUsSideRequest'
          bankIban: '#/components/schemas/BankIbanSideRequest'
          bankCanada: '#/components/schemas/BankCanadaSideRequest'
          card: '#/components/schemas/CardSideRequest'
          cash: '#/components/schemas/CashSideRequest'
      description: >-
        The instrument that receives the funds: a wallet (`walletCrypto` /
        `walletExternal`), a bank account (`bankUs` / `bankIban` /
        `bankCanada`), a `card`, or `cash`.
    typeId:
      type: string
      pattern: >-
        ^[a-z]+_([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
      description: Public TypeID, e.g. `txn_01h455vb4pex5vsknk084sn02q`.
      x-go-type: string
    QuoteStatus:
      type: string
      enum:
        - open
        - accepted
        - expired
      description: >-
        Status of a quote. open: pricing locked, awaiting acceptance. accepted:
        a transaction has been created from it. expired: the pricing window
        elapsed.
    SourceToDestination:
      type: string
      enum:
        - cryptoToCrypto
        - cryptoToCash
        - cryptoToFiatAccount
        - cashToCrypto
        - fiatAccountToCrypto
        - fiatAccountToFiatAccount
      description: >-
        Composite of source and destination instrument categories, inferred from
        each side. The cash corridors (`cryptoToCash`, `cashToCrypto`) are
        derived from a cash-pickup destination / cash-in source respectively;
        the rest map straight from the internal corridor type.
    CustomerSummary:
      type: object
      required:
        - id
        - name
      properties:
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: The OMS customer id (`cst_` prefix).
        name:
          type: string
          description: Customer display name.
      description: >-
        Display-safe summary of a customer — ID plus display name only. Enables
        one-request list rendering: a page of rows needs no per-row detail
        queries. Always the record's owning customer.
    TransactionSide:
      type: object
      oneOf:
        - $ref: '#/components/schemas/WalletCryptoInstrument'
        - $ref: '#/components/schemas/WalletExternalInstrument'
        - $ref: '#/components/schemas/WalletFiatInstrument'
        - $ref: '#/components/schemas/BankUsInstrument'
        - $ref: '#/components/schemas/BankIbanInstrument'
        - $ref: '#/components/schemas/BankCanadaInstrument'
        - $ref: '#/components/schemas/CardInstrument'
        - $ref: '#/components/schemas/CashInstrument'
        - $ref: '#/components/schemas/DepositAddressInstrument'
        - $ref: '#/components/schemas/VirtualAccountInstrument'
      discriminator:
        propertyName: type
        mapping:
          walletCrypto: '#/components/schemas/WalletCryptoInstrument'
          walletExternal: '#/components/schemas/WalletExternalInstrument'
          walletFiat: '#/components/schemas/WalletFiatInstrument'
          bankUs: '#/components/schemas/BankUsInstrument'
          bankIban: '#/components/schemas/BankIbanInstrument'
          bankCanada: '#/components/schemas/BankCanadaInstrument'
          card: '#/components/schemas/CardInstrument'
          cash: '#/components/schemas/CashInstrument'
          depositAddress: '#/components/schemas/DepositAddressInstrument'
          virtualAccount: '#/components/schemas/VirtualAccountInstrument'
      description: >-
        A source or destination: one instrument per account type. Amounts live
        in `pricing`.
    TransactionDestination:
      type: object
      oneOf:
        - $ref: '#/components/schemas/WalletCryptoDestination'
        - $ref: '#/components/schemas/WalletExternalDestination'
        - $ref: '#/components/schemas/WalletFiatDestination'
        - $ref: '#/components/schemas/BankUsDestination'
        - $ref: '#/components/schemas/BankIbanDestination'
        - $ref: '#/components/schemas/BankCanadaDestination'
        - $ref: '#/components/schemas/CardDestination'
        - $ref: '#/components/schemas/CashDestination'
      discriminator:
        propertyName: type
        mapping:
          walletCrypto: '#/components/schemas/WalletCryptoDestination'
          walletExternal: '#/components/schemas/WalletExternalDestination'
          walletFiat: '#/components/schemas/WalletFiatDestination'
          bankUs: '#/components/schemas/BankUsDestination'
          bankIban: '#/components/schemas/BankIbanDestination'
          bankCanada: '#/components/schemas/BankCanadaDestination'
          card: '#/components/schemas/CardDestination'
          cash: '#/components/schemas/CashDestination'
      description: >-
        The destination side of a transaction/quote: a typed instrument plus
        `payoutOrigin`. Amounts live only in `pricing`.
    Pricing:
      type: object
      required:
        - fees
      properties:
        source:
          allOf:
            - $ref: '#/components/schemas/PricingSide'
          description: The source side, in the source asset.
        destination:
          allOf:
            - $ref: '#/components/schemas/PricingSide'
          description: The destination side, in the destination asset.
        fees:
          type: array
          items:
            $ref: '#/components/schemas/PricingFee'
          description: >-
            Every fee charged across both sides. `[]` when there are none —
            never omitted, never null.
        exchangeRate:
          type: string
          description: >-
            Mid-market rate from the source asset to the destination asset, set
            together with the destination amount. Identity: (source.amount − Σ
            source fees) × exchangeRate = destination.amount + Σ destination
            fees.
        fixedAmountSide:
          type: string
          enum:
            - source
            - destination
          description: >-
            The side whose amount was fixed at creation. OMS calculated the
            other side.
        sponsorGas:
          type: boolean
          description: >-
            Present and `true` when OMS absorbs the destination gas cost;
            omitted otherwise.
      description: >-
        Consolidated economics for a quote, transaction or cash-in: per-side
        amounts, a flat fee list, the mid-market rate and gas sponsorship.
    WalletCryptoSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - walletCrypto
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/WalletCryptoSideDetails'
        amount:
          $ref: '#/components/schemas/decimalString'
      description: Pull from / deliver to an OMS Multi-Chain Wallet owned by the customer.
      title: OMS wallet
    WalletFiatSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - walletFiat
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/WalletFiatSideDetails'
        amount:
          $ref: '#/components/schemas/decimalString'
      description: >-
        Pull from / deliver to a fiat balance wallet owned by the customer. No
        `network` — the balance lives on an internal ledger.
      title: Fiat wallet
    CardSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - card
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/CardSideDetails'
        amount:
          $ref: '#/components/schemas/decimalString'
      description: >-
        A registered debit card. Valid as a source (pull-from-card funding) or a
        destination (push-to-card payout). `network` is inferred server-side and
        returned on the response only.
      title: Card
    WalletExternalSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - walletExternal
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/WalletExternalSideDetails'
        amount:
          $ref: '#/components/schemas/decimalString'
      description: >-
        Deliver to a wallet held outside OMS. Provide exactly one of `id` (a
        registered ExternalAccount, `ext_` prefix) or `blockchainAddress` (a raw
        on-chain address). Which form a route accepts depends on its corridor: a
        crypto or `card` source on a route that delivers to external wallets
        takes either; any other route refuses `id` with
        `WalletExternalIDUnsupported`, and a crypto source's `blockchainAddress`
        with `CryptoToCryptoExternalAddressUnsupported`.
      title: External wallet
    BankUsSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - bankUs
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/BankUsSideDetails'
        amount:
          $ref: '#/components/schemas/decimalString'
      description: Deliver to a US bank account.
      title: US bank account
    BankIbanSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - bankIban
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/BankIbanSideDetails'
        amount:
          $ref: '#/components/schemas/decimalString'
      description: Deliver to an IBAN account over SWIFT (USD).
      title: IBAN bank account
    BankCanadaSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - bankCanada
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/BankCanadaSideDetails'
        amount:
          $ref: '#/components/schemas/decimalString'
      description: >-
        Deliver to a Canadian bank account. USD routes over SWIFT; CAD over
        local rails.
      title: Canadian bank account
    CashSideRequest:
      type: object
      required:
        - type
        - details
      properties:
        type:
          type: string
          enum:
            - cash
          description: Type discriminator.
        details:
          $ref: '#/components/schemas/CashSideDetails'
      description: >-
        Deliver as a cash pickup at a retail payout location. Amount is required
        in `details` and must be a multiple of 20.00, up to a maximum of 400.00
        per transaction.
      title: Cash
    WalletCryptoInstrument:
      type: object
      required:
        - type
        - asset
        - network
      properties:
        type:
          type: string
          enum:
            - walletCrypto
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The wallet (`wlt_`); an older wallet keeps its original `wlt_<uuid>`
            id. Left out while a deposit's receiving wallet is not resolved yet.
        asset:
          type: string
          description: Lowercase asset.
        network:
          type: string
          description: Lowercase blockchain.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/WalletCryptoInstrumentDetails'
      description: An OMS-custodied crypto wallet.
      title: OMS wallet
    WalletExternalInstrument:
      type: object
      required:
        - type
        - asset
        - network
      properties:
        type:
          type: string
          enum:
            - walletExternal
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          description: Lowercase asset.
        network:
          type: string
          description: Lowercase blockchain.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/WalletExternalInstrumentDetails'
      description: A crypto wallet OMS does not custody.
      title: External wallet
    WalletFiatInstrument:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - walletFiat
        id:
          type: string
          pattern: >-
            ^(wlt_fiat_|[a-z]+_)([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
          description: >-
            The fiat wallet (`wlt_`; an older wallet keeps its original
            `wlt_<uuid>` id, and a `wlt_fiat_` id is also accepted on input).
            Left out on a book-transfer destination until its outbound leg
            exists.
        asset:
          type: string
          enum:
            - usd
          description: Fiat currency of the balance. Only `usd` today.
        network:
          type: string
          enum:
            - bookTransfer
            - intraBank
          description: >-
            On the destination of a virtual account or deposit address
            book-transfer credit: `intraBank`, or `bookTransfer` on a record
            created before the umbrella names were introduced.
        intraBankRail:
          allOf:
            - $ref: '#/components/schemas/IntraBankRail'
          description: Only when `network` is `intraBank`.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
      description: >-
        A fiat balance wallet OMS holds for the customer at a partner bank. It
        has no details.
      title: Fiat wallet
    BankUsInstrument:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - bankUs
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          enum:
            - usd
          description: Lowercase asset.
        network:
          type: string
          enum:
            - ach
            - achSameDay
            - wire
            - rtp
            - instant
          description: >-
            The rail the money moves on. `instant` is an RTP or FedNow payment,
            named in `instantRail`; a record created before the umbrella names
            were introduced keeps `rtp`.
        instantRail:
          allOf:
            - $ref: '#/components/schemas/InstantRail'
          description: Only when `network` is `instant`.
        secCode:
          allOf:
            - $ref: '#/components/schemas/SecCode'
          description: >-
            ACH SEC code, only on `ach` and `achSameDay`. Derived from the
            destination owner's and the customer's entity type.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/BankUsInstrumentDetails'
      description: A US bank account.
      title: US bank account
    BankIbanInstrument:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - bankIban
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          description: Lowercase asset.
        network:
          type: string
          enum:
            - swift
          description: The rail the money moves on.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/BankIbanInstrumentDetails'
      description: An IBAN bank account.
      title: IBAN bank account
    BankCanadaInstrument:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - bankCanada
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          enum:
            - usd
            - cad
          description: Lowercase asset.
        network:
          type: string
          enum:
            - swift
            - local
          description: The rail the money moves on.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/BankCanadaInstrumentDetails'
      description: A Canadian bank account.
      title: Canadian bank account
    CardInstrument:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - card
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: The external account (`ext_`).
        asset:
          type: string
          enum:
            - usd
          description: Lowercase asset.
        network:
          type: string
          enum:
            - card
          description: The rail the money moves on.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/CardInstrumentDetails'
      description: A card.
      title: Card
    CashInstrument:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - cash
        asset:
          type: string
          description: Lowercase asset.
        details:
          $ref: '#/components/schemas/CashInstrumentDetails'
      description: A cash location. It has no id; the location is in `details`.
      title: Cash
    DepositAddressInstrument:
      type: object
      required:
        - type
        - asset
        - network
      properties:
        type:
          type: string
          enum:
            - depositAddress
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: The deposit address (`da_`).
        asset:
          type: string
          description: Lowercase asset.
        network:
          type: string
          description: Lowercase blockchain.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/DepositAddressInstrumentDetails'
      description: A deposit address.
      title: Deposit address
    VirtualAccountInstrument:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - virtualAccount
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: The virtual account (`va_`).
        asset:
          type: string
          description: Lowercase asset.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/VirtualAccountInstrumentDetails'
      description: A virtual account.
      title: Virtual account
    WalletCryptoDestination:
      type: object
      required:
        - type
        - asset
        - network
      properties:
        type:
          type: string
          enum:
            - walletCrypto
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The wallet (`wlt_`); an older wallet keeps its original `wlt_<uuid>`
            id. Left out while a deposit's receiving wallet is not resolved yet.
        asset:
          type: string
          description: Lowercase asset.
        network:
          type: string
          description: Lowercase blockchain.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/WalletCryptoInstrumentDetails'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      title: OMS wallet
    WalletExternalDestination:
      type: object
      required:
        - type
        - asset
        - network
      properties:
        type:
          type: string
          enum:
            - walletExternal
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          description: Lowercase asset.
        network:
          type: string
          description: Lowercase blockchain.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/WalletExternalInstrumentDetails'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      title: External wallet
    WalletFiatDestination:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - walletFiat
        id:
          type: string
          pattern: >-
            ^(wlt_fiat_|[a-z]+_)([0-9a-hjkmnp-tv-z]{26}|[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})$
          description: >-
            The fiat wallet (`wlt_`; an older wallet keeps its original
            `wlt_<uuid>` id, and a `wlt_fiat_` id is also accepted on input).
            Left out on a book-transfer destination until its outbound leg
            exists.
        asset:
          type: string
          enum:
            - usd
          description: Fiat currency of the balance. Only `usd` today.
        network:
          type: string
          enum:
            - bookTransfer
            - intraBank
          description: >-
            On the destination of a virtual account or deposit address
            book-transfer credit: `intraBank`, or `bookTransfer` on a record
            created before the umbrella names were introduced.
        intraBankRail:
          allOf:
            - $ref: '#/components/schemas/IntraBankRail'
          description: Only when `network` is `intraBank`.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      description: >-
        The deposited value held as a fiat balance in the customer's fiat wallet
        (only `usd` today). Credited by an internal book transfer at the partner
        bank, so the resolved instrument reads `network: bookTransfer`.
        Selectable as a Deposit Address or Virtual Account destination; a Quote
        destination cannot be `walletFiat`. The wallet must belong to the
        route's customer (422 `WalletCustomerMismatch`) and be `active` (422
        `WalletNotActive`).
      title: Fiat wallet
    BankUsDestination:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - bankUs
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          enum:
            - usd
          description: Lowercase asset.
        network:
          type: string
          enum:
            - ach
            - achSameDay
            - wire
            - rtp
            - instant
          description: >-
            The rail the money moves on. `instant` is an RTP or FedNow payment,
            named in `instantRail`; a record created before the umbrella names
            were introduced keeps `rtp`.
        instantRail:
          allOf:
            - $ref: '#/components/schemas/InstantRail'
          description: Only when `network` is `instant`.
        secCode:
          allOf:
            - $ref: '#/components/schemas/SecCode'
          description: >-
            ACH SEC code, only on `ach` and `achSameDay`. Derived from the
            destination owner's and the customer's entity type.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/BankUsInstrumentDetails'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      title: US bank account
    BankIbanDestination:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - bankIban
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          description: Lowercase asset.
        network:
          type: string
          enum:
            - swift
          description: The rail the money moves on.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/BankIbanInstrumentDetails'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      title: IBAN bank account
    BankCanadaDestination:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - bankCanada
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: >-
            The external account (`ext_`). Left out for a sender OMS has no
            record of.
        asset:
          type: string
          enum:
            - usd
            - cad
          description: Lowercase asset.
        network:
          type: string
          enum:
            - swift
            - local
          description: The rail the money moves on.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/BankCanadaInstrumentDetails'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      title: Canadian bank account
    CardDestination:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - card
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: The external account (`ext_`).
        asset:
          type: string
          enum:
            - usd
          description: Lowercase asset.
        network:
          type: string
          enum:
            - card
          description: The rail the money moves on.
        owner:
          $ref: '#/components/schemas/InstrumentOwner'
        details:
          $ref: '#/components/schemas/CardInstrumentDetails'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      title: Card
    CashDestination:
      type: object
      required:
        - type
        - asset
      properties:
        type:
          type: string
          enum:
            - cash
        asset:
          type: string
          description: Lowercase asset.
        details:
          $ref: '#/components/schemas/CashInstrumentDetails'
        payoutOrigin:
          $ref: '#/components/schemas/PayoutOrigin'
        pickupCode:
          type: string
          description: >-
            Retail pickup code for a cash payout. Populated only on cash-out
            (pickup) destinations.
        companyDiscretionaryData:
          type: string
          description: >-
            Echo of the ACH companyDiscretionaryData supplied on the originating
            request. Null/absent on non-ACH destinations or when not supplied.
      title: Cash
    PricingSide:
      type: object
      required:
        - asset
      properties:
        amount:
          type: string
          description: >-
            On the source, the gross amount the customer pays; on the
            destination, the amount that arrives. A decimal string at the
            asset's precision. Always set on the source; set on the destination
            once priced.
        asset:
          type: string
          description: >-
            Lowercase asset of this side, the same as the side's instrument
            asset.
      description: >-
        One side of `pricing`, in that side's asset. Fees are listed in
        `Pricing.fees`.
    PricingFee:
      type: object
      required:
        - type
        - side
        - asset
        - amount
      properties:
        type:
          type: string
          description: >-
            Fee kind. OPEN — clients must tolerate an unrecognised type. Known
            values today: "developer", "oms", "gas".
        side:
          type: string
          enum:
            - source
            - destination
          description: Which side this fee was deducted from.
        asset:
          type: string
          description: Currency this fee is denominated in — that side's asset.
        amount:
          type: string
          description: Fee amount in `asset`, at the asset's precision.
      description: >-
        A fee charged on one side of a quote, transaction or cash-in. A fee is
        listed only when it is not zero.
    WalletCryptoSideDetails:
      type: object
      required:
        - id
        - asset
        - network
      properties:
        id:
          type: string
          description: OMS wallet ID (wlt_ prefix).
        asset:
          type: string
          description: 'Crypto asset. One of: usdc, usdt.'
        network:
          allOf:
            - $ref: '#/components/schemas/CryptoNetwork'
          description: Network identifier.
    decimalString:
      type: string
      description: >-
        Wire-safe decimal string for financial float values (USD amounts,
        percentages).
      x-go-type-import:
        path: github.com/shopspring/decimal
      x-go-type: decimal.Decimal
    WalletFiatSideDetails:
      type: object
      required:
        - id
        - asset
      properties:
        id:
          type: string
          description: >-
            OMS fiat wallet ID (`wlt_` prefix; a `wlt_fiat_` id is also accepted
            on input).
        asset:
          type: string
          enum:
            - usd
          description: Fiat currency. Only `usd` today.
    CardSideDetails:
      type: object
      required:
        - id
        - asset
      properties:
        id:
          type: string
          description: Card ExternalAccount ID (`ext_` prefix).
        asset:
          type: string
          enum:
            - usd
          description: Canonical asset identifier.
    WalletExternalSideDetails:
      type: object
      required:
        - asset
        - network
      properties:
        id:
          type: string
          description: ExternalAccount ID (`ext_` prefix). One of id/blockchainAddress.
        blockchainAddress:
          type: string
          description: >-
            Raw on-chain address (when not registered). One of
            id/blockchainAddress. For an EVM network the address must be
            all-lowercase, all-uppercase, or a valid EIP-55 checksummed form; an
            inconsistent mixed-case address is rejected as a likely casing typo,
            and the zero address is rejected. Solana/SUI are validated per their
            own network rules.
        asset:
          type: string
          description: 'Crypto asset. One of: usdc, usdt.'
        network:
          allOf:
            - $ref: '#/components/schemas/CryptoNetwork'
          description: Network identifier.
    BankUsSideDetails:
      type: object
      required:
        - id
        - asset
        - network
      properties:
        id:
          type: string
          description: US bank ExternalAccount ID (`ext_` prefix).
        asset:
          type: string
          enum:
            - usd
          description: Canonical asset identifier.
        memo:
          type: string
          allOf:
            - $ref: '#/components/schemas/paymentMemo'
          nullable: true
          description: >-
            Optional payment memo delivered to the beneficiary's bank with the
            payout.


            Honored on these rails, each with its own limit: - `network: "ach"`
            or `"achSameDay"`: carried as the ACH addenda. NACHA characters only
            (uppercase letters, digits, space and `.&()-+=':?@_#%`), max 80. -
            `network: "wire"` or `"rtp"`: ISO 20022 characters only (see the
            `paymentMemo` scalar), max 140. - A `bankIban` or `bankCanada`
            destination on `swift`: ISO 20022, max 140.


            A memo outside its rail's characters or length is rejected with 422.


            On a Quote, the memo is honored only on a `walletFiat`-source quote,
            or on a `walletCrypto`-source quote to a `bankUs` destination; any
            other corridor rejects it. A Virtual Account destination offers no
            `rtp` rail. On a Deposit Address the memo is read when each payout
            is built, so an edit applies only to payouts built after it, never
            to one already sent.


            Where a memo is not honored — a rail with no remittance field, such
            as `bankCanada`'s `local` leg, or a Quote corridor outside the two
            above — a non-empty memo is rejected with 422 `MemoNotSupported`,
            its `cause` carrying `reason=unsupportedRail`, rather than accepted
            and dropped. Sending `null`, omitting the field, or sending only
            whitespace is always accepted and means no memo of your own: the
            payout then carries the memo OMS composes for the rail, if any.
        companyDiscretionaryData:
          type: string
          allOf:
            - $ref: '#/components/schemas/companyDiscretionaryData'
          nullable: true
          description: >-
            Optional ACH-only field for the originator's internal use (NACHA
            batch header). See the companyDiscretionaryData scalar doc. Honored
            only when network is "ach" or "achSameDay"; 422 `MemoNotSupported`
            on "wire" and "rtp", because the field itself is an ACH-only
            concept.
        network:
          type: string
          enum:
            - ach
            - achSameDay
            - wire
            - rtp
            - instant
            - intraBank
          description: >-
            Rail the payout moves on. `instant` settles within seconds, around
            the clock, and requires both that the rail is enabled for your
            project and that the beneficiary's bank can receive on it — either
            gate failing is a 422 `BankRailNotSupported`. `memo` is honored on
            `instant` (ISO 20022, max 140); `companyDiscretionaryData` is not.
            `rtp` is accepted as an alias of `instant` in this API version.
            `intraBank` requires your project's configured outgoing US rails to
            include `crnow`, else the request is rejected with
            `intraBankNotSupported` (422).
    BankIbanSideDetails:
      type: object
      required:
        - id
        - asset
      properties:
        id:
          type: string
          description: IBAN ExternalAccount ID (`ext_` prefix).
        asset:
          type: string
          enum:
            - usd
          description: Canonical asset identifier.
        network:
          type: string
          enum:
            - swift
          description: Network identifier.
          default: swift
        memo:
          type: string
          allOf:
            - $ref: '#/components/schemas/paymentMemo'
          nullable: true
          description: >-
            Optional customer-supplied payment memo delivered via SWIFT
            remittance information. See BankUsSideDetails.memo's doc for the
            full contract — this is the same field, same charset/length bound,
            same honored-surface table, applied to the SWIFT rail instead of
            Fedwire.
    BankCanadaSideDetails:
      type: object
      required:
        - id
        - asset
        - network
      properties:
        id:
          type: string
          description: Canadian bank ExternalAccount ID (`ext_` prefix).
        asset:
          type: string
          enum:
            - usd
            - cad
          description: Canonical asset identifier.
        network:
          type: string
          enum:
            - swift
            - local
          description: USD uses `swift`; CAD uses `local`. Always explicit.
        memo:
          type: string
          allOf:
            - $ref: '#/components/schemas/paymentMemo'
          nullable: true
          description: >-
            Optional message carried in the SWIFT remittance information and
            passed through to the recipient's bank (max 140 chars, ISO
            20022-allowed characters only). Supported when `network` is `swift`;
            rejected with 422 `MemoNotSupported` on `local`.
    CashSideDetails:
      type: object
      required:
        - asset
        - cashLocationId
        - cashLocationReference
        - amount
      properties:
        asset:
          type: string
          enum:
            - usd
          description: Canonical asset identifier.
        cashLocationId:
          type: string
          description: Cash location ID from `GET /cash-locations`.
        cashLocationReference:
          type: string
          description: Provider reference for the location, from `GET /cash-locations`.
        amount:
          allOf:
            - $ref: '#/components/schemas/decimalString'
          description: Multiple of 20.00, at most 400.00.
    InstrumentOwner:
      type: object
      required:
        - kind
        - id
      properties:
        kind:
          type: string
          enum:
            - counterparty
            - customer
          description: '`counterparty`, or `customer` for another customer''s account.'
        id:
          allOf:
            - $ref: '#/components/schemas/typeId'
          description: The counterparty (`ctp_`) or customer (`cst_`).
        name:
          type: string
          description: >-
            The counterparty's name. A customer's name is on the customer
            resource.
      description: Who owns an account that is not the resource's customer's.
    WalletCryptoInstrumentDetails:
      type: object
      properties:
        address:
          type: string
          description: On-chain address.
      description: OMS crypto wallet details.
    WalletExternalInstrumentDetails:
      type: object
      properties:
        address:
          type: string
          description: On-chain address.
        custodian:
          type: string
          description: Who custodies the wallet, in lowerCamelCase.
        otherCustodian:
          type: string
          description: The custodian's name when `custodian` is `other`.
        networkFamily:
          $ref: '#/components/schemas/NetworkFamily'
      description: External wallet details.
    IntraBankRail:
      type: string
      enum:
        - bookTransfer
        - crnow
        - ereborRail
      description: >-
        The rail an `intraBank` payment rides between two accounts at the same
        bank: `bookTransfer`, `crnow` or `ereborRail`.
    InstantRail:
      type: string
      enum:
        - rtp
        - fednow
      description: >-
        The rail an `instant` payment rides: `rtp` (RTP over The Clearing House)
        or `fednow`.
    SecCode:
      type: string
      enum:
        - ccd
        - ppd
        - web
      description: >-
        ACH SEC code. Present only when the destination bank network is
        `ach`/`achSameDay`. Server-derived from the destination owner's and the
        source customer's `entityType`.
    BankUsInstrumentDetails:
      type: object
      properties:
        bankName:
          type: string
        accountNumberLast4:
          type: string
        routingNumber:
          type: string
        accountType:
          $ref: '#/components/schemas/BankAccountType'
        holderName:
          type: string
          description: >-
            The account holder: a counterparty's name, or the sender's name when
            the rail carries it.
        memo:
          type: string
          description: >-
            The free-text message that travelled with the money on this side's
            rail.
      description: US bank account details.
    BankIbanInstrumentDetails:
      type: object
      properties:
        bankName:
          type: string
        ibanLast4:
          type: string
        bic:
          type: string
        countryCode:
          type: string
          description: ISO 3166-1 alpha-2 country of the bank.
        bankAddress:
          $ref: '#/components/schemas/Address'
        holderName:
          type: string
          description: >-
            The account holder: a counterparty's name, or the sender's name when
            the rail carries it.
        memo:
          type: string
          description: >-
            The free-text message that travelled with the money on this side's
            rail.
      description: IBAN bank account details.
    BankCanadaInstrumentDetails:
      type: object
      properties:
        bankName:
          type: string
        accountNumberLast4:
          type: string
        institutionNumber:
          type: string
        transitNumber:
          type: string
        holderName:
          type: string
          description: >-
            The account holder: a counterparty's name, or the sender's name when
            the rail carries it.
        memo:
          type: string
          description: >-
            The free-text message that travelled with the money on this side's
            rail.
      description: Canadian bank account details.
    CardInstrumentDetails:
      type: object
      properties:
        brand:
          $ref: '#/components/schemas/CardBrand'
        last4:
          type: string
        cardType:
          $ref: '#/components/schemas/CardType'
        expiryMonth:
          type: integer
          format: int32
        expiryYear:
          type: integer
          format: int32
        billingAddressSource:
          $ref: '#/components/schemas/BillingAddressSource'
      description: Card details.
    CashInstrumentDetails:
      type: object
      properties:
        locationId:
          type: string
        locationName:
          type: string
        locationAddress:
          $ref: '#/components/schemas/Address'
        locationProvider:
          type: string
          description: >-
            The cash network the location belongs to, lowercase, such as
            `greendot`.
      description: Cash location details.
    DepositAddressInstrumentDetails:
      type: object
      properties:
        address:
          type: string
          description: On-chain address.
      description: Deposit address details.
    VirtualAccountInstrumentDetails:
      type: object
      properties:
        bankName:
          type: string
        accountNumberLast4:
          type: string
        routingNumber:
          type: string
      description: >-
        Virtual account details. The full account number is in the virtual
        account's deposit instructions.
    PayoutOrigin:
      type: object
      required:
        - type
      properties:
        type:
          type: string
          enum:
            - bank
            - blockchain
        id:
          $ref: '#/components/schemas/typeId'
        accountHolder:
          allOf:
            - $ref: '#/components/schemas/PayoutOriginAccountHolder'
          description: >-
            Whose legal identity the payment is sent under. Determined by OMS
            from the route's configuration — not a request field. Left out when
            OMS cannot determine it, and on destinations that have no sending
            legal identity (cash payouts, and crypto payouts outside a Deposit
            Address). A bank payout that goes out under the payment provider or
            the partner records that holder just before it is sent to the
            provider, and reports it only while a payout was or may have been
            created there; a send interrupted after the holder was recorded and
            before it went out has an unknown outcome and may report it. A
            failed send known to have created no payout at the provider, and a
            payout sent before holders were recorded whose holder could not be
            recovered afterwards, report the fallback value instead, which may
            differ from the holder actually used. The fallback value, also
            reported before a holder is recorded and for payouts that always go
            out under the customer's own name, is the holder the Deposit Address
            fixed for the destination type the transaction pays on a transaction
            created from a Deposit Address, and the value its route implies on
            any other.
        accountHolderName:
          type: string
          description: >-
            The legal name the payment is sent under, resolved from
            `accountHolder` — the customer's own legal name for `customer`, the
            owning customer's legal name for `partner` (for now; a partner-level
            name may replace it later), or the payment provider's name for
            `paymentProvider`, which differs between a `bank` origin ("Coinme
            Inc FBO its Customers") and a `blockchain` origin. This is what the
            recipient sees as the sender. Like `accountHolder` and unlike `id`,
            it is populated as soon as it is determinable, so it appears on
            Quote, Deposit Address and Virtual Account responses as well as
            Transactions. Left out whenever `accountHolder` is, and when the
            customer's name cannot be read at that moment.
      description: >-
        Where last-mile delivery is sent *from*, as a uniform `{type, id}`
        reference — response-only. `id` is the Virtual Account (`va_`) or OMS
        wallet (`wlt_`) funding the leg; left out before execution (Quote /
        Deposit Address echo the choice only) or when the origin has no
        partner-visible resource. Rail identifiers for the last-mile transfer
        live in the top-level `tracking` array with `leg: destination` — not
        here.
    CryptoNetwork:
      type: string
      enum:
        - ethereum
        - polygon
        - base
        - solana
        - tron
        - bnb
      description: >-
        Blockchain network identifier: `ethereum`, `polygon`, `base`, `solana`,
        `tron`, `bnb`. Pass the lowercase name — numeric EVM chain IDs (`1`,
        `137`, `8453`, `56`) are not accepted, and responses always return the
        name. This is the wire vocabulary, not an availability list. A
        `walletExternal` can be registered on `tron` (networkFamily `tron`)
        where the project's provider serves it. Availability is per provider
        rather than per project, so a network your project holds through one
        provider can still be refused for a customer on another. `GET /networks`
        lists the networks your project can route, as the union across every
        provider it holds.
    paymentMemo:
      type: string
      maxLength: 140
      pattern: ^[A-Za-z0-9 /?:().,'+\-&=@_#%]*$
      description: >-
        Customer-supplied payment memo carried to the beneficiary's bank in the
        unstructured remittance-information field.


        Both `pattern` and `maxLength` describe a NORMALIZED memo, not the
        rail's own rule: the server trims surrounding whitespace before
        validating, so a memo that only differs by leading or trailing spaces
        may be accepted even though a local check of the raw string rejects it.
        `pattern` covers every allowed character in a normalized memo and
        `maxLength` is the normalized-length bound. `maxLength` is the ISO 20022
        bound (140), which is what Fedwire, RTP and SWIFT accept; `pattern` is
        the union of the ISO 20022 set (letters, digits, space and `/?:().,'+-`)
        and the NACHA addenda set (uppercase only, no `/`, but `&=@_#%` allowed,
        capped at 80). The two sets overlap without either containing the other,
        so the union accepts characters no single rail does. The per-rail rule
        is enforced server-side and rejects anything outside it with 422.
      x-go-type: string
    companyDiscretionaryData:
      type: string
      maxLength: 20
      pattern: ^[A-Z0-9 &\-\.\$*\/#@%]*$
      description: >-
        Optional field for the originator's internal use, carried verbatim in
        the NACHA batch header. Unlike `memo` it never reaches the beneficiary.
        Supported only on a `bankUs` destination whose `network` is `ach` or
        `achSameDay` — on any other rail, `wire` and `rtp` included, it is
        rejected with 422 `MemoNotSupported`. Uppercase NACHA character set
        (uppercase letters, digits, space and `&-.$/*#@%`), max 20 characters;
        anything else is rejected with 422. Omitted, `null` and whitespace-only
        all count as not supplied.
    NetworkFamily:
      type: string
      enum:
        - evm
        - solana
        - tron
      description: >-
        Crypto network family for a registered external wallet. A walletExternal
        is registered per family (an EVM address is valid across every EVM
        chain), and the registration covers every served network in that family.
        A create for a family the provider that provisions this project's
        walletExternal accounts does not serve is refused before anything is
        written, with 422 `NetworkFamilyNotServed`; depending on the provider,
        the refusal can be 403 `VendorConfigMissing` instead.
    BankAccountType:
      type: string
      enum:
        - checking
        - savings
      description: Bank account sub-type for US accounts.
    Address:
      type: object
      properties:
        line1:
          type: string
          description: Street address, line 1.
        line2:
          type: string
          description: Street address, line 2.
        city:
          type: string
          description: City.
        state:
          type: string
          description: State / province / region.
        country:
          type: string
          description: ISO 3166-1 alpha-2
        zipCode:
          type: string
          description: ZIP / postal code.
      description: A postal address. country is an ISO 3166-1 alpha-2 country code.
    CardBrand:
      type: string
      enum:
        - visa
        - mastercard
        - amex
        - discover
      description: >-
        Card network/brand. Derived server-side from the PAN; never accepted on
        a request.
    CardType:
      type: string
      enum:
        - debit
        - credit
        - prepaid
      description: >-
        Card funding type, derived server-side from the PAN. Only `debit` is
        supported today; `credit` and `prepaid` are reserved for future
        push-to-card / pull-from-card support.
    BillingAddressSource:
      type: string
      enum:
        - provided
        - customerDefault
      description: >-
        Where a card's billing address came from. `provided` = supplied on the
        request; `customerDefault` = filled from the owning customer's address
        because the request omitted it.
    PayoutOriginAccountHolder:
      type: string
      enum:
        - customer
        - paymentProvider
        - partner
      description: >-
        Whose legal name an outbound payment is sent under — the name that
        appears on the recipient's statement. Determined by which institution
        executes the payout and by your project's configuration, not by anything
        you send: outbound fiat executed by Erebor Bank, N.A. goes out under the
        customer's own legal name (`customer`), while outbound fiat executed by
        Cross River Bank goes out under the payment provider (`paymentProvider`,
        `accountHolderName` "Coinme Inc FBO its Customers") or, on a project
        configured to send under its own name, under the partner (`partner`). A
        Deposit Address created while its customer holds an active Virtual
        Account from the same provider fixes `customer` as its bank holder;
        payouts are not sent from that account, so each of its transactions
        reports the holder described on `PayoutOrigin.accountHolder`. Crypto
        sent from a Deposit Address goes out under whoever holds the sending
        wallet. Read the pair rather than inferring either from a resource's
        `provider` field, which names the custodian of the account and can be a
        different company entirely. On a Virtual Account the pair is reported as
        a top-level `payoutOrigin`, present for its bank and crypto-wallet
        destinations and absent for `walletFiat`. A cash payout has no
        `payoutOrigin`, and a crypto payout outside a Deposit Address leaves the
        pair out. New values may be added.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Token from POST /auth/token

````