Skip to main content
POST
Create quote

Authorizations

Authorization
string
header
required

API key sent in the Authorization header, with no Bearer prefix.

Path Parameters

organizationId
string<uuid>
required

The organization this call acts for: your API key's organization or one of its customer organizations. Any other id returns 404 not-found.

Body

application/json
source
stored · object
required

A payment account in a quote, tagged by type. Use stored with a registered account's id. inline is not supported yet and returns 400 invalid-request.

destination
stored · object
required

A payment account in a quote, tagged by type. Use stored with a registered account's id. inline is not supported yet and returns 400 invalid-request.

sourceAmount
string
required

Amount the source sends, as a positive decimal string.

Example:

"1000"

sourceAsset
string
required

An asset from GET /supported_assets: a currency code such as MXN for a fiat source, or a token's asset for a crypto source.

Example:

"MXN"

destinationAsset
string
required

An asset from GET /supported_assets: a currency code for a fiat destination, or a token's asset for a crypto destination.

Example:

"USDC:GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN"

sourceRail
enum<string>

The rail the source moves on. Omit to use the source account's default rail.

Available options:
spei,
pix,
solana,
base,
polygon,
monad,
stellar,
avalanche
destinationRail
enum<string>

The rail the destination moves on. Omit to use the destination account's default rail.

Available options:
spei,
pix,
solana,
base,
polygon,
monad,
stellar,
avalanche
partnerFeeBpsOverride
integer

Partner fee for this quote in basis points, in place of your organization's default partner fee. Values above 500 are capped at 500.

Required range: x >= 0

Response

The quote.

quoteId
string<uuid>
required

Pass to POST /organization/{organizationId}/order. Becomes the order's id.

sourceAmount
string
required

Decimal string.

destinationAmount
string
required

Decimal string. What the destination receives after fees. On an onramp into a stablebond, we price the bond at the end of the order's funding window, so this is slightly less than today's price gives. See Fees.

sourceAsset
string
required
destinationAsset
string
required
sourceRail
enum<string>
required

The network that moves the money. For a wallet, the rail is its chain.

Available options:
spei,
pix,
solana,
base,
polygon,
monad,
stellar,
avalanche
destinationRail
enum<string>
required

The network that moves the money. For a wallet, the rail is its chain.

Available options:
spei,
pix,
solana,
base,
polygon,
monad,
stellar,
avalanche
rateAfterFees
string
required

The rate the customer gets after fees, as a decimal string.

rateBeforeFees
string
required

The rate before our fee, as a decimal string.

feeBps
integer
required

Total fee in basis points.

feeAmount
string
required

Total fee as a decimal string, in the source asset, rounded down to that asset's decimals. Each line in fees is in its own asset, so the lines do not add up to this total when their assets differ.

fees
object[]
required

The fee lines. The order created from this quote returns the same lines.

createdAt
string<date-time>
required
expiresAt
string<date-time>
required

Create the order before this time. 2 minutes after createdAt.

midMarketRate
string

The mid-market FX rate, as a decimal string. Present only on quotes that convert between currencies.