> ## Documentation Index
> Fetch the complete documentation index at: https://dev.commerce.moonpay.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Deposit Swap Quote

> Returns a quote for funding a deposit: how much the merchant receives in the deposit's settlement currency for a given input amount, and the fees involved. Works for crypto funding (same-currency, swap, or cross-chain) and fiat funding via MoonPay, Iron or Onramper.

> [!NOTE]
>
> **No API key is required.** The endpoint is public and rate-limited, so it can be called from a browser checkout or from your own backend.

## How the provider is chosen

The destination currency always comes from the deposit (it must accept exactly one currency), so you only send what the payer funds with. Who prices the quote is returned in `provider`.

| Funding | How to request | `provider` returned |
| - | - | - |
| Crypto, same currency as the deposit | Omit `provider` | `HELIO` (direct sweep, `exchangeRate` = 1) |
| Crypto, different currency or chain | Omit `provider` | `GLIDE` or `DECENT`, decided by the merchant's deposit wallet setup |
| Card, Apple/Google Pay, bank via MoonPay | `provider: "MOONPAY"` | `MOONPAY` |
| Bank wire to a virtual account | `provider: "IRON"` | `IRON` |
| Onramp aggregator | `provider: "ONRAMPER"` | `ONRAMPER` |

`GLIDE`, `DECENT` and `HELIO` are picked by the server and cannot be requested; sending one returns `400`. Cross-chain pairs are supported on the crypto paths. If no route exists, the endpoint returns `422`.

## Required fields by provider

| Field | Crypto (no `provider`) | `MOONPAY` | `IRON` | `ONRAMPER` |
| - | - | - | - | - |
| `fromCurrencyId`, `amountIn`, `senderAddress` | ✅ | ✅ | ✅ | ✅ |
| `depositCustomerId` | — | ✅ | ✅ | ✅ |
| `quoteCurrencyCode` | — | ✅ (e.g. `usdc_sol`) | — | ✅ (e.g. `usdc_solana`) |
| `paymentMethodType` | — | ✅ | — | — |
| `country` | — | — | — | ✅ |
| Optional | `slippageBps`, `paymentMethod` | `accessToken`, `paymentMethodId`, `sdkQuote` | — | `onramperPaymentMethod` |

For fiat providers, `fromCurrencyId` must be a fiat currency. `amountIn` is always in minimal units of `fromCurrency`, using its `decimals` from [Get Deposit Currencies](https://dev.commerce.moonpay.com/reference/currency/list-deposit.md). Fiat currencies count too: 25 USD with 6 decimals is `"25000000"`.

## Which response fields each provider returns

`provider`, `fromCurrency`, `toCurrency`, `amountIn`, `amountOutNet`, `platformFeeBps`, `affiliateFeeBps` and `expiresAt` are always present. Everything else depends on the provider:

| Field | `DECENT` | `GLIDE` | `HELIO` | `MOONPAY` | `IRON` / `ONRAMPER` |
| - | - | - | - | - | - |
| `amountOutGross` | ✅ | — | ✅ | ✅ | ✅ |
| `platformFeeAmount`, `affiliateFeeAmount` (token units) | ✅ | — | ✅ | ✅ | ✅ |
| `processingFeeUsd`, `networkFeeUsd`, `totalFeeUsd` | — | ✅ | — | ✅ | ✅ |
| `paymentMethodFee*` | — | when `paymentMethod` set | when `paymentMethod` set | — | — |
| `slippageBps` | ✅ | — | — | ✅ | — |
| `estimatedPriceImpact` | ✅ | — | — | — | — |
| `etaSeconds` | — | ✅ | — | — | — |
| `exchangeRateType`, `signature`, `paymentDisclosures`, `challenge` | — | — | — | ✅ | — |

`amountInUsd`, `amountOutUsd` and `paymentMethodFeeUsd` are best-effort. They are omitted when no fresh USD rate is available.

> [!WARNING]
>
> **Branch on `provider` before reading fees.** `GLIDE` reports fees only in USD and never returns `amountOutGross`, `platformFeeAmount` or `affiliateFeeAmount`. Code that assumes those fields exist will break for merchants on Glide.

## Quote validity

* **Crypto quotes are estimates.** They are not locked or redeemed at settlement. `expiresAt` is 30 seconds after issue; after that, fetch a new quote instead of showing a stale price. What the merchant actually receives is decided when the deposit is swept.
* **`MOONPAY`** uses MoonPay's own `expiresAt`. A `fixed` `exchangeRateType` is locked; a `floating` one (bank transfers) must be shown to the customer as an estimate.
* **`IRON` and `ONRAMPER`** return a pricing preview that expires 30 seconds after issue.

## Using MoonPay quotes

A MoonPay quote you can execute needs the customer's MoonPay Platform `accessToken`, which the MoonPay web SDK holds after `getConnection()`. Without it (and without `sdkQuote`) you get a public preview price only. Before the customer pays:

* Render every entry in `paymentDisclosures` verbatim.
* If `challenge` is present, show its `url` frame and let the customer complete it.
* Pass `signature` to the MoonPay payment frame, which cannot start without it.

Because these steps need the customer in a browser, MoonPay checkout can't be fully server-to-server. The crypto paths can be: create the customer with [Create a Customer for a Deposit](https://dev.commerce.moonpay.com/reference/deposit-customers/create.md), quote with this endpoint, then have the payer send funds to the customer's deposit address.


## OpenAPI

````yaml POST /v1/deposits/{depositId}/swap-quote
openapi: 3.0.0
info:
  title: Helio Open API
  description: |-
    API schema and definitions for Helio API. <br/> 
          The API is using two types of Authentication, for dashboard endpoints we use <b>JSON Web Token (JWT)</b> that is generated by self custodial wallet signing a message from API.</br> 
          We also support authentication with <b>API Key and Secret</b> which can be generated on <a href='https://hel.io'>Helio dashboard</a>.
  version: 1.0.0
  contact: {}
servers:
  - description: Helio API (Mainnet)
    url: https://api.hel.io
security: []
tags:
  - name: Webhooks
  - name: Exports
  - name: Currencies
    description: >-
      Supported currencies endpoint, includes fiat and digital assets
      </br><i>Authentication: </i><b>None</b>
externalDocs:
  description: Helio product documentation
  url: https://dev.commerce.moonpay.com/
paths:
  /v1/deposits/{depositId}/swap-quote:
    post:
      tags:
        - Deposits
      summary: Get Deposit Swap Quote
      description: >-
        Returns a quote for funding a deposit: how much the merchant receives in
        the deposit's settlement currency for a given input amount, and the fees
        involved. The settlement currency is derived from the deposit, which
        must have exactly one accepted currency.


        **Crypto funding** — omit `provider`. The server picks who prices the
        quote from the merchant's deposit wallet provider and the currency pair:
        `GLIDE`, `DECENT` (a swap is needed) or `HELIO` (same currency, direct
        sweep). Same-currency and cross-chain pairs are both supported.


        **Fiat funding** — set `provider` to `MOONPAY`, `IRON` or `ONRAMPER`
        with that provider's required fields.


        Crypto-path quotes are estimates for display; they are not locked or
        redeemed at settlement. No API key is required; this endpoint is
        rate-limited.
      operationId: DepositController_getSwapQuote
      parameters:
        - name: depositId
          in: path
          required: true
          description: The unique ID of the deposit.
          schema:
            type: string
          example: 6a0b1bb21ce2a93f5c1a4dbe
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateDepositSwapQuote'
            examples:
              crypto:
                summary: Crypto funding (provider chosen server-side)
                value:
                  fromCurrencyId: 63430c8348c610068bcdc482
                  amountIn: '1000000000000000'
                  senderAddress: '0x1111111111111111111111111111111111111111'
                  slippageBps: 100
              coinbase:
                summary: Crypto funding from Coinbase (prices the surcharge)
                value:
                  fromCurrencyId: 63430c8348c610068bcdc483
                  amountIn: '25000000'
                  senderAddress: '0x1111111111111111111111111111111111111111'
                  paymentMethod: COINBASE
              moonpay:
                summary: Fiat funding via MoonPay card
                value:
                  provider: MOONPAY
                  fromCurrencyId: 637ca18de2997b3a87a566a8
                  amountIn: '25000000'
                  senderAddress: 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1
                  depositCustomerId: 6a0b1c0f1ce2a93f5c1a4e01
                  paymentMethodType: card
                  quoteCurrencyCode: usdc_sol
                  accessToken: <customer MoonPay Platform access token>
              onramper:
                summary: Fiat funding via Onramper
                value:
                  provider: ONRAMPER
                  fromCurrencyId: 637ca18de2997b3a87a566a8
                  amountIn: '25000000'
                  senderAddress: 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1
                  depositCustomerId: 6a0b1c0f1ce2a93f5c1a4e01
                  quoteCurrencyCode: usdc_solana
                  country: US
      responses:
        '200':
          description: Swap quote retrieved successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DepositSwapQuoteResponse'
              examples:
                decent:
                  summary: DECENT (swap)
                  value:
                    provider: DECENT
                    fromCurrency:
                      id: 63430c8348c610068bcdc482
                      symbol: ETH
                      name: Ethereum
                      decimals: 18
                      mintAddress: '0x0000000000000000000000000000000000000000'
                      coinMarketCapId: 1027
                      symbolPrefix: ''
                      type: DIGITAL
                      blockchain:
                        id: bc-base
                        name: Base
                        symbol: BASE
                        engine:
                          id: engine-evm
                          name: EVM
                    toCurrency:
                      id: 63430c8348c610068bcdc483
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      mintAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
                      coinMarketCapId: 3408
                      symbolPrefix: ''
                      type: DIGITAL
                      blockchain:
                        id: bc-base
                        name: Base
                        symbol: BASE
                        engine:
                          id: engine-evm
                          name: EVM
                    amountIn: '1000000000000000'
                    amountInUsd: '3.21'
                    amountOutGross: '3205000'
                    amountOutNet: '3172950'
                    amountOutUsd: '3.17'
                    platformFeeBps: 100
                    platformFeeAmount: '32050'
                    affiliateFeeBps: 0
                    affiliateFeeAmount: '0'
                    slippageBps: 100
                    exchangeRate: 3205
                    estimatedPriceImpact: 0.001
                    expiresAt: '2026-05-14T13:58:13.608Z'
                glide:
                  summary: GLIDE (fees reported in USD)
                  value:
                    provider: GLIDE
                    fromCurrency:
                      id: 63430c8348c610068bcdc482
                      symbol: ETH
                      name: Ethereum
                      decimals: 18
                      mintAddress: '0x0000000000000000000000000000000000000000'
                      coinMarketCapId: 1027
                      symbolPrefix: ''
                      type: DIGITAL
                      blockchain:
                        id: bc-base
                        name: Base
                        symbol: BASE
                        engine:
                          id: engine-evm
                          name: EVM
                    toCurrency:
                      id: 63430c8348c610068bcdc483
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      mintAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
                      coinMarketCapId: 3408
                      symbolPrefix: ''
                      type: DIGITAL
                      blockchain:
                        id: bc-base
                        name: Base
                        symbol: BASE
                        engine:
                          id: engine-evm
                          name: EVM
                    amountIn: '1000000000000000'
                    amountInUsd: '3.21'
                    amountOutNet: '3150000'
                    amountOutUsd: '3.15'
                    platformFeeBps: 100
                    affiliateFeeBps: 0
                    processingFeeUsd: '0.03'
                    networkFeeUsd: '0.03'
                    totalFeeUsd: '0.06'
                    etaSeconds: 30
                    expiresAt: '2026-05-14T13:58:13.608Z'
                helio:
                  summary: HELIO (same currency, Coinbase surcharge)
                  value:
                    provider: HELIO
                    fromCurrency:
                      id: 63430c8348c610068bcdc483
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      mintAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
                      coinMarketCapId: 3408
                      symbolPrefix: ''
                      type: DIGITAL
                      blockchain:
                        id: bc-base
                        name: Base
                        symbol: BASE
                        engine:
                          id: engine-evm
                          name: EVM
                    toCurrency:
                      id: 63430c8348c610068bcdc483
                      symbol: USDC
                      name: USD Coin
                      decimals: 6
                      mintAddress: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
                      coinMarketCapId: 3408
                      symbolPrefix: ''
                      type: DIGITAL
                      blockchain:
                        id: bc-base
                        name: Base
                        symbol: BASE
                        engine:
                          id: engine-evm
                          name: EVM
                    amountIn: '25000000'
                    amountInUsd: '25.00'
                    amountOutGross: '25000000'
                    amountOutNet: '24675000'
                    amountOutUsd: '24.67'
                    platformFeeBps: 100
                    platformFeeAmount: '250000'
                    affiliateFeeBps: 0
                    affiliateFeeAmount: '0'
                    paymentMethodFeeBps: 30
                    paymentMethodFeeAmount: '75000'
                    paymentMethodFeeUsd: '0.08'
                    exchangeRate: 1
                    expiresAt: '2026-05-14T13:58:13.608Z'
        '400':
          description: >-
            Invalid request or business rule violation: deposit disabled,
            deposit has no or multiple accepted currencies, unknown
            `fromCurrencyId`, a server-side provider was requested, a fiat
            provider's required field is missing, or the fiat provider is not
            enabled for the merchant.
          content:
            application/json:
              examples:
                depositDisabled:
                  summary: Deposit is disabled
                  value:
                    statusCode: 400
                    message: Deposit is disabled.
                    error: Bad Request
                multiCurrency:
                  summary: Deposit accepts more than one currency
                  value:
                    statusCode: 400
                    message: >-
                      Deposit has multiple accepted currencies; swap quote
                      endpoint only supports single-currency deposits.
                    error: Bad Request
                providerNotSelectable:
                  summary: Crypto provider requested
                  value:
                    statusCode: 400
                    message: >-
                      provider GLIDE is resolved server-side and cannot be
                      requested. Omit it for crypto funding.
                    error: Bad Request
                fiatFieldMissing:
                  summary: Fiat field missing
                  value:
                    statusCode: 400
                    message: >-
                      depositCustomerId is required for card and bank transfer
                      quotes.
                    error: Bad Request
        '403':
          description: >-
            `depositCustomerId` does not belong to this deposit, or the customer
            is not eligible for the fiat provider.
          content:
            application/json:
              examples:
                customerMismatch:
                  summary: Customer not on this deposit
                  value:
                    statusCode: 403
                    message: depositCustomerId does not belong to this deposit.
                    error: Forbidden
        '404':
          description: Deposit not found.
          content:
            application/json:
              examples:
                notFound:
                  summary: Deposit not found
                  value:
                    statusCode: 404
                    message: Deposit not found
                    error: Not Found
        '422':
          description: >-
            The provider responded but no usable quote exists for this pair or
            deposit (e.g. no route found, no settlement amount, no settlement
            recipient address).
          content:
            application/json:
              examples:
                noRecipient:
                  summary: No settlement address
                  value:
                    statusCode: 422
                    message: >-
                      Deposit has no settlement recipient address to quote
                      against.
                    error: Unprocessable Entity
        '502':
          description: The pricing provider could not be reached or errored. Safe to retry.
          content:
            application/json:
              examples:
                providerDown:
                  summary: Provider failure
                  value:
                    statusCode: 502
                    message: Unable to fetch swap quote at this time.
                    error: Bad Gateway
      security: []
components:
  schemas:
    CreateDepositSwapQuote:
      type: object
      description: >-
        Request body for fetching a deposit swap quote. For crypto funding send
        only the common fields and omit `provider`. For fiat funding set
        `provider` and the fields that provider requires.
      required:
        - fromCurrencyId
        - amountIn
        - senderAddress
      properties:
        fromCurrencyId:
          type: string
          description: >-
            Currency ID the payer funds with. A digital currency for crypto
            funding (may be on a different chain from, or the same as, the
            deposit settlement currency), or a fiat currency for `MOONPAY` /
            `IRON` / `ONRAMPER`. Retrieve IDs via the Get Deposit Currencies
            endpoint.
          example: 63430c8348c610068bcdc482
        amountIn:
          type: string
          pattern: ^[1-9]\d*$
          description: >-
            Input amount in `fromCurrency` minimal units as a positive integer
            string, using the currency's `decimals` from GET /v1/currency/all.
            E.g. `"1000000"` = 1 USDC (6 decimals); fiat currencies also use
            minimal units, so 25 USD (6 decimals) is `"25000000"`.
          example: '1000000'
        senderAddress:
          type: string
          description: >-
            Payer wallet address. Used to plan the route on the `DECENT` path;
            ignored by the other providers but still required.
          example: 5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1
        slippageBps:
          type: integer
          minimum: 0
          maximum: 10000
          default: 100
          description: >-
            Slippage tolerance in basis points (1 bps = 0.01%). Forwarded to
            Decent; ignored elsewhere.
        paymentMethod:
          type: string
          enum:
            - CRYPTO
            - ONRAMP
            - COINBASE
            - BINANCE
          description: >-
            How the deposit wallet will be funded. When the settling sweep
            charges a payment-method surcharge (e.g. `COINBASE` on the `GLIDE`
            and `HELIO` paths) the quote includes it in `paymentMethodFee*` so
            it matches what settles. Omitted or `CRYPTO`: no surcharge.
        provider:
          type: string
          enum:
            - MOONPAY
            - IRON
            - ONRAMPER
          description: >-
            Fiat provider to quote. Omit for crypto funding: requesting `GLIDE`,
            `DECENT` or `HELIO` returns 400. `MOONPAY` is the hosted card /
            wallet / bank checkout; `IRON` is a virtual bank account the payer
            wires to; `ONRAMPER` is an onramp aggregator (pricing preview only).
        depositCustomerId:
          type: string
          description: >-
            Required for `MOONPAY`, `IRON` and `ONRAMPER`. The deposit customer
            the fiat purchase is delivered to; must belong to this deposit.
        quoteCurrencyCode:
          type: string
          description: >-
            Required for `MOONPAY` (MoonPay currency code, e.g. `usdc_sol`) and
            `ONRAMPER` (Onramper crypto id, e.g. `usdc_solana`). Passed through
            to the provider; must match the deposit settlement asset.
        paymentMethodType:
          type: string
          enum:
            - apple_pay
            - card
            - ach
            - fps
            - fps_open_banking
            - google_pay
            - sepa
            - sepa_open_banking
            - pix
            - paypal
            - venmo
            - revolut_pay
            - moonpay_balance
            - interac
          description: Required for `MOONPAY`. MoonPay prices per payment method.
        paymentMethodId:
          type: string
          description: '`MOONPAY` only. Identifies a specific saved card.'
        accessToken:
          type: string
          description: >-
            `MOONPAY` only. The customer's MoonPay Platform access token, held
            by the MoonPay web SDK after `getConnection()`. Required for an
            executable quote; without it (and without `sdkQuote`) the server
            returns a public preview price. The single-use token from the
            session endpoint is not accepted.
        sdkQuote:
          allOf:
            - $ref: '#/components/schemas/MoonPaySdkQuote'
          description: >-
            `MOONPAY` only. Price from the quote the client already holds
            instead of fetching a new one.
        country:
          type: string
          minLength: 2
          maxLength: 2
          description: >-
            Required for `ONRAMPER`. Payer's ISO 3166-1 alpha-2 country code;
            ramp availability and fees vary by country.
          example: US
        onramperPaymentMethod:
          type: string
          description: >-
            `ONRAMPER` only. Narrows the quote to a specific Onramper payment
            method id. Omitted, the best available ramp/method is priced.
    DepositSwapQuoteResponse:
      type: object
      description: >-
        Quote for funding a deposit. Which optional fields are present depends
        on `provider` — see the provider table on the page.
      required:
        - provider
        - fromCurrency
        - toCurrency
        - amountIn
        - amountOutNet
        - platformFeeBps
        - affiliateFeeBps
        - expiresAt
      properties:
        provider:
          allOf:
            - $ref: '#/components/schemas/DepositSwapProvider'
          description: Who priced this quote.
        fromCurrency:
          allOf:
            - $ref: '#/components/schemas/Currency'
          description: >-
            Enriched input currency. Same shape as items returned by GET
            /v1/currency/all.
        toCurrency:
          allOf:
            - $ref: '#/components/schemas/Currency'
          description: >-
            Enriched deposit settlement currency, derived server-side from the
            deposit.
        amountIn:
          type: string
          description: >-
            Input amount in `fromCurrency` minimal units, echoed from the
            request.
        amountInUsd:
          type: string
          description: >-
            Best-effort USD value of `amountIn`. Omitted when no fresh rate is
            available.
          example: '14.02'
        amountOutGross:
          type: string
          description: >-
            Quoted output in `toCurrency` minimal units before Helio fees.
            Absent on `GLIDE`, which reports only the post-fee amount.
        amountOutNet:
          type: string
          description: >-
            Net amount the merchant receives after fees, in `toCurrency` minimal
            units. Always present.
        amountOutUsd:
          type: string
          description: >-
            Best-effort USD value of `amountOutNet`. Omitted when no fresh rate
            is available.
          example: '13.67'
        platformFeeBps:
          type: integer
          description: >-
            Helio platform fee in basis points, excluding the affiliate portion
            and any payment-method surcharge.
        platformFeeAmount:
          type: string
          description: >-
            Helio platform fee in `toCurrency` minimal units. Absent on `GLIDE`
            (see `processingFeeUsd`). On `HELIO` it can include a fixed Solana
            rent surcharge, so do not re-derive it from `platformFeeBps`.
        affiliateFeeBps:
          type: integer
          description: Affiliate fee in basis points, if any (otherwise 0).
        affiliateFeeAmount:
          type: string
          description: Affiliate fee in `toCurrency` minimal units. Absent on `GLIDE`.
        processingFeeUsd:
          type: string
          description: >-
            Processing fee in USD (Helio platform + affiliate, plus the
            provider's own processing fee on fiat paths). `GLIDE`, `MOONPAY`,
            `IRON`, `ONRAMPER`.
        networkFeeUsd:
          type: string
          description: >-
            Estimated network / gas cost in USD. `"0"` when the route is
            gas-sponsored. `GLIDE`, `MOONPAY`, `IRON`, `ONRAMPER`.
        totalFeeUsd:
          type: string
          description: All-in fee in USD. `GLIDE`, `MOONPAY`, `IRON`, `ONRAMPER`.
        paymentMethodFeeBps:
          type: integer
          description: >-
            Payment-method surcharge in basis points (e.g. 30 for a Coinbase
            deposit). Only when the request set `paymentMethod` and the settling
            sweep charges it (`GLIDE`, `HELIO`). Not included in `platformFee*`.
        paymentMethodFeeAmount:
          type: string
          description: >-
            Payment-method surcharge in `toCurrency` minimal units. `HELIO`
            only.
        paymentMethodFeeUsd:
          type: string
          description: Payment-method surcharge in USD, when a rate is available.
        slippageBps:
          type: integer
          description: >-
            Slippage tolerance in basis points. `DECENT` (echoes the request)
            and `MOONPAY`.
        exchangeRate:
          type: number
          description: >-
            Quoted rate (`amountOut / amountIn`, in whole units). `1` on
            `HELIO`. Informational; not used in settlement.
        estimatedPriceImpact:
          type: number
          description: >-
            Estimated price impact for the route (percentage). `DECENT` only.
            Informational.
        etaSeconds:
          type: integer
          description: Estimated seconds until the transfer settles. `GLIDE` only.
          example: 30
        expiresAt:
          type: string
          format: date-time
          description: >-
            Timestamp after which the quote should not be relied upon. 30
            seconds from issue on every path except `MOONPAY`, where it is
            MoonPay's own expiry.
        exchangeRateType:
          type: string
          enum:
            - fixed
            - floating
          description: >-
            `MOONPAY` only. `fixed` locks the rate at quote time (card, Apple
            Pay, Google Pay); `floating` is an estimate confirmed at settlement
            (bank transfers) and must be presented to the customer as an
            estimate.
        signature:
          type: string
          description: >-
            `MOONPAY` only. Opaque token the MoonPay payment frame needs to
            initialise.
        paymentDisclosures:
          type: array
          items:
            $ref: '#/components/schemas/MoonPayPaymentDisclosure'
          description: >-
            `MOONPAY` only. Disclosures that must be rendered verbatim to the
            customer before they pay. Empty when none apply.
        challenge:
          allOf:
            - $ref: '#/components/schemas/MoonPayQuoteChallenge'
          description: >-
            `MOONPAY` only. Present when the customer must complete a hosted
            frame before the quote can proceed.
    MoonPaySdkQuote:
      type: object
      description: >-
        MOONPAY only. The quote the client already holds from the MoonPay
        headless SDK. When sent, the server prices from it (applying only Helio
        fees) instead of fetching its own quote. Decimal strings in MoonPay
        units: source fiat for `sourceAmount` and fees, crypto for
        `destinationAmount`.
      required:
        - sourceAmount
        - destinationAmount
      properties:
        sourceAmount:
          type: string
          description: >-
            What the customer is charged, including MoonPay fees. Must equal
            `amountIn` once converted to minimal units.
          example: '25.00'
        destinationAmount:
          type: string
          description: >-
            Crypto MoonPay delivers to the deposit wallet, before the Helio
            sweep. Must be greater than zero.
          example: '24.10'
        moonpayFee:
          type: string
          example: '0.65'
        ecosystemFee:
          type: string
          example: '0.00'
        networkFee:
          type: string
          example: '0.25'
        defiFee:
          type: string
          example: '0.00'
    DepositSwapProvider:
      type: string
      enum:
        - GLIDE
        - DECENT
        - HELIO
        - MOONPAY
        - IRON
        - ONRAMPER
      description: >-
        Who prices (and settles) the quote. `GLIDE`, `DECENT` and `HELIO` are
        crypto paths chosen server-side from the merchant's deposit wallet
        provider and the currency pair; they cannot be requested. `MOONPAY`,
        `IRON` and `ONRAMPER` are fiat paths the client requests explicitly.
    Currency:
      type: object
      properties:
        blockchain:
          $ref: '#/components/schemas/Blockchain'
        id:
          type: string
        symbol:
          type: string
        name:
          type: string
        mintAddress:
          type: string
        coinMarketCapId:
          type: number
        decimals:
          type: number
        minDecimals:
          type: number
        symbolPrefix:
          type: string
        order:
          type: number
        type:
          enum:
            - FIAT
            - DIGITAL
          type: string
        features:
          type: array
          items:
            type: string
            enum:
              - PAYMENT_PRICING
              - PAYMENT_RECIPIENT
              - SWAP
        iconUrl:
          type: string
      required:
        - blockchain
        - id
        - symbol
        - name
        - mintAddress
        - coinMarketCapId
        - decimals
        - order
    MoonPayPaymentDisclosure:
      type: object
      description: >-
        A compliance disclosure that must be shown verbatim to the customer
        before they complete the purchase. The canonical text is keyed by `id` +
        `version`.
      required:
        - id
        - version
      properties:
        id:
          type: string
          example: eea-crypto-asset-risk
        version:
          type: string
          example: '1'
    MoonPayQuoteChallenge:
      type: object
      description: >-
        A MoonPay-hosted frame the customer must complete before the quote can
        proceed (e.g. identity verification to raise guest-checkout limits).
      required:
        - kind
        - url
      properties:
        kind:
          type: string
          description: Only `frame` today.
          example: frame
        url:
          type: string
          description: Fully formed frame URL. Render directly; do not parse.
    Blockchain:
      type: object
      properties:
        engine:
          $ref: '#/components/schemas/BlockchainEngine'
        id:
          type: string
        name:
          type: string
        symbol:
          type: string
          enum:
            - SOL
            - ETH
            - POLYGON
            - BASE
            - BITCOIN
      required:
        - engine
        - id
        - name
        - symbol
    BlockchainEngine:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - EVM
            - SOL
            - BTC
      required:
        - id
        - type

````