Skip to main content
POST
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. 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

For fiat providers, fromCurrencyId must be a fiat currency. amountIn is always in minimal units of fromCurrency, using its decimals from Get Deposit Currencies. 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: amountInUsd, amountOutUsd and paymentMethodFeeUsd are best-effort. They are omitted when no fresh USD rate is available.
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, quote with this endpoint, then have the payer send funds to the customer’s deposit address.

Path Parameters

depositId
string
required

The unique ID of the deposit.

Body

application/json

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.

fromCurrencyId
string
required

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
string
required

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

Pattern: ^[1-9]\d*$
Example:

"1000000"

senderAddress
string
required

Payer wallet address. Used to plan the route on the DECENT path; ignored by the other providers but still required.

Example:

"5Q544fKrFoe6tsEbD7S8EmxGTJYAKtTVhAW5Q5pge4j1"

slippageBps
integer
default:100

Slippage tolerance in basis points (1 bps = 0.01%). Forwarded to Decent; ignored elsewhere.

Required range: 0 <= x <= 10000
paymentMethod
enum<string>

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.

Available options:
CRYPTO,
ONRAMP,
COINBASE,
BINANCE
provider
enum<string>

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

Available options:
MOONPAY,
IRON,
ONRAMPER
depositCustomerId
string

Required for MOONPAY, IRON and ONRAMPER. The deposit customer the fiat purchase is delivered to; must belong to this deposit.

quoteCurrencyCode
string

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
enum<string>

Required for MOONPAY. MoonPay prices per payment method.

Available options:
apple_pay,
card,
ach,
fps,
fps_open_banking,
google_pay,
sepa,
sepa_open_banking,
pix,
paypal,
venmo,
revolut_pay,
moonpay_balance,
interac
paymentMethodId
string

MOONPAY only. Identifies a specific saved card.

accessToken
string

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
object

MOONPAY only. Price from the quote the client already holds instead of fetching a new one.

country
string

Required for ONRAMPER. Payer's ISO 3166-1 alpha-2 country code; ramp availability and fees vary by country.

Required string length: 2
Example:

"US"

onramperPaymentMethod
string

ONRAMPER only. Narrows the quote to a specific Onramper payment method id. Omitted, the best available ramp/method is priced.

Response

Swap quote retrieved successfully.

Quote for funding a deposit. Which optional fields are present depends on provider — see the provider table on the page.

provider
enum<string>
required

Who priced this quote.

Available options:
GLIDE,
DECENT,
HELIO,
MOONPAY,
IRON,
ONRAMPER
fromCurrency
object
required

Enriched input currency. Same shape as items returned by GET /v1/currency/all.

toCurrency
object
required

Enriched deposit settlement currency, derived server-side from the deposit.

amountIn
string
required

Input amount in fromCurrency minimal units, echoed from the request.

amountOutNet
string
required

Net amount the merchant receives after fees, in toCurrency minimal units. Always present.

platformFeeBps
integer
required

Helio platform fee in basis points, excluding the affiliate portion and any payment-method surcharge.

affiliateFeeBps
integer
required

Affiliate fee in basis points, if any (otherwise 0).

expiresAt
string<date-time>
required

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.

amountInUsd
string

Best-effort USD value of amountIn. Omitted when no fresh rate is available.

Example:

"14.02"

amountOutGross
string

Quoted output in toCurrency minimal units before Helio fees. Absent on GLIDE, which reports only the post-fee amount.

amountOutUsd
string

Best-effort USD value of amountOutNet. Omitted when no fresh rate is available.

Example:

"13.67"

platformFeeAmount
string

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.

affiliateFeeAmount
string

Affiliate fee in toCurrency minimal units. Absent on GLIDE.

processingFeeUsd
string

Processing fee in USD (Helio platform + affiliate, plus the provider's own processing fee on fiat paths). GLIDE, MOONPAY, IRON, ONRAMPER.

networkFeeUsd
string

Estimated network / gas cost in USD. "0" when the route is gas-sponsored. GLIDE, MOONPAY, IRON, ONRAMPER.

totalFeeUsd
string

All-in fee in USD. GLIDE, MOONPAY, IRON, ONRAMPER.

paymentMethodFeeBps
integer

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
string

Payment-method surcharge in toCurrency minimal units. HELIO only.

paymentMethodFeeUsd
string

Payment-method surcharge in USD, when a rate is available.

slippageBps
integer

Slippage tolerance in basis points. DECENT (echoes the request) and MOONPAY.

exchangeRate
number

Quoted rate (amountOut / amountIn, in whole units). 1 on HELIO. Informational; not used in settlement.

estimatedPriceImpact
number

Estimated price impact for the route (percentage). DECENT only. Informational.

etaSeconds
integer

Estimated seconds until the transfer settles. GLIDE only.

Example:

30

exchangeRateType
enum<string>

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.

Available options:
fixed,
floating
signature
string

MOONPAY only. Opaque token the MoonPay payment frame needs to initialise.

paymentDisclosures
object[]

MOONPAY only. Disclosures that must be rendered verbatim to the customer before they pay. Empty when none apply.

challenge
object

MOONPAY only. Present when the customer must complete a hosted frame before the quote can proceed.