Skip to main content
GET
Get Quote

Authorizations

Authorization
string
header
required

Bearer authentication with an API token

Query Parameters

source_currency
enum<string>
required

Source asset currency. Must be USDC or USDT. Currency of a conversion. The currency can be a stablecoin or a fiat currency.

Available options:
CONVERSION_CURRENCY_UNSPECIFIED,
USDC,
USD,
MXN,
INR,
KRW,
USDT,
GHS,
EUR,
JPY,
PHP,
IDR,
THB,
MYR,
SGD,
BRL,
HNL,
GBP,
COP,
GTQ,
KES,
BOB,
EGP,
JMD,
CLP,
ARS,
PEN,
PKR,
CRC,
DOP,
CAD,
ZAR,
AUD,
AED,
SAR,
ILS,
QAR,
JOD
Example:

"USDC"

source_chain
enum<string>
required

Source blockchain network. e.g., SOLANA_MAINNET, ETHEREUM_MAINNET, BASE_MAINNET. Chain identifier

Available options:
CHAIN_UNSPECIFIED,
ETHEREUM_MAINNET,
POLYGON_MAINNET,
ETHEREUM_TESTNET,
OPTIMISM_SEPOLIA,
BASE_MAINNET,
BASE_SEPOLIA,
OPTIMISM_MAINNET,
POLYGON_AMOY,
SOLANA_MAINNET,
SOLANA_DEVNET
Example:

"ETHEREUM_MAINNET"

destination_currency
enum<string>
required

Destination fiat currency. e.g., MXN, INR. Currency of a conversion. The currency can be a stablecoin or a fiat currency.

Available options:
CONVERSION_CURRENCY_UNSPECIFIED,
USDC,
USD,
MXN,
INR,
KRW,
USDT,
GHS,
EUR,
JPY,
PHP,
IDR,
THB,
MYR,
SGD,
BRL,
HNL,
GBP,
COP,
GTQ,
KES,
BOB,
EGP,
JMD,
CLP,
ARS,
PEN,
PKR,
CRC,
DOP,
CAD,
ZAR,
AUD,
AED,
SAR,
ILS,
QAR,
JOD
Example:

"USDC"

destination_country
enum<string>
required

Destination country (ISO 3166-1 alpha-2). Must form a supported corridor with destination_currency and payment_method. ISO 3166-1 alpha-2 country code.

Available options:
US,
CA,
MX,
CR,
DO,
GT,
HN,
JM,
SV,
AR,
BO,
BR,
CL,
CO,
EC,
PE,
AT,
BE,
BG,
CH,
CY,
CZ,
DE,
DK,
EE,
ES,
FI,
FR,
GR,
HR,
HU,
IE,
IT,
LT,
LU,
LV,
MT,
NL,
NO,
PL,
PT,
RO,
SE,
SI,
SK,
AE,
EG,
IL,
JO,
QA,
SA,
GH,
KE,
ZA,
AU,
ID,
IN,
JP,
KR,
MY,
PH,
PK,
SG,
TH,
GB
Example:

"US"

payment_method
enum<string>
required

Payment rail. Must match an enabled corridor for the destination country. Transfer mechanism for the conversion.

Available options:
PAYMENT_METHOD_UNSPECIFIED,
BLOCKCHAIN,
WIRE,
ACH,
SPEI,
IMPS_FIRC,
BANK_TRANSFER,
SEPA,
PIX,
TEF,
COELSA,
CCE,
IBFT,
SINPE,
LBTR,
EFT,
BECS,
NPSS,
MADA,
ZAHAV
Example:

"BLOCKCHAIN"

source_amount
string

Amount of source currency (USDC or USDT) to convert.

destination_amount
string

Amount of destination fiat the recipient should receive.

source_total_max
string

Max all-in source debit (wallet budget). Bastion returns the largest source.amount whose source.total fits the budget. ON_TOP only.

developer_fee_percent
string

Developer fee percent override in [0, 100] with at most 6 fractional digits. The value is a decimal string. Omit to use the configured developer fee policy for the app.

Response

Success

Indicative pricing for an off-ramp conversion. Each quote is persisted. Non-US off-ramp submit must send quote_id. US destinations can omit quote_id. Quotes are not rate-locked.

exchange_rate
string

FX rate applied.

limits
limits · object

Per-corridor transaction limits.

source
source · object

Source side of the quote.

destination
destination · object

Destination side of the quote.

fees_total
string

Total fees as a decimal string.

fees_total_currency
enum<string>

Currency that fees_total is denominated in.

Available options:
CONVERSION_CURRENCY_UNSPECIFIED,
USDC,
USD,
MXN,
INR,
KRW,
USDT,
GHS,
EUR,
JPY,
PHP,
IDR,
THB,
MYR,
SGD,
BRL,
HNL,
GBP,
COP,
GTQ,
KES,
BOB,
EGP,
JMD,
CLP,
ARS,
PEN,
PKR,
CRC,
DOP,
CAD,
ZAR,
AUD,
AED,
SAR,
ILS,
QAR,
JOD
Example:

"USDC"

fees
Fee · object[]

Itemized fee breakdown.

fee_model
enum<string>

Fee model applied to this quote.

Available options:
FEE_MODEL_UNSPECIFIED,
INCLUSIVE,
DEDUCTED,
ON_TOP
Example:

"INCLUSIVE"

id
string
read-only

Bastion quote identifier. Submit as ConversionRequest.quote_id.

locked
boolean
read-only

When true, exchange_rate is guaranteed until expires_at. When false, the exchange rate is indicative and can change between quote and submit. This field is always false.

expires_at
string
read-only

Quote expiry (RFC 3339). Submit after this time is rejected with QUOTE_EXPIRED.