Skip to main content
POST
Quote a fiat purchase

Authorizations

x-api-key
string
header
required

Soft-auth read routes accept x-api-key with a publishable or partner key; money-moving routes require a secret partner key in Authorization: Bearer.

Body

application/json
srcCurrency
string
required

Fiat currency code (ISO 4217).

Example:

"USD"

dstCurrency
string
required

Destination crypto asset symbol.

Example:

"USDC"

dstChain
string
required

Destination chain code, as used by the fiat provider. Read the supported set from the onramp config endpoint rather than assuming it matches a chain id.

Example:

"base"

srcAmount
string

Fiat amount to spend (decimal string). Omit for a reverse quote — supply dstAmount instead and the provider computes this.

Example:

"100"

dstAmount
string

Destination crypto amount to receive (decimal string). When set, this is a REVERSE quote: the provider computes the srcAmount (fiat) needed to deliver it, and srcAmount must be omitted. Used by fixed-price checkouts.

Example:

"5"

paymentMode
string

Payment method code. Defaults to card.

Example:

"card"

walletAddress
string

Payer wallet address (defaults to a sentinel when unconnected).

userCountry
string

ISO 3166-1 alpha-2 user country. Defaults to US.

Example:

"US"

Response

201 - undefined