Get Quote
Get an indicative quote for an off-ramp conversion. Quotes are not rate-locked.
Authorizations
Bearer authentication with an API token
Query Parameters
Source asset currency. Must be USDC or USDT. Currency of a conversion. The currency can be a stablecoin or a fiat currency.
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 "USDC"
Source blockchain network. e.g., SOLANA_MAINNET, ETHEREUM_MAINNET, BASE_MAINNET. Chain identifier
CHAIN_UNSPECIFIED, ETHEREUM_MAINNET, POLYGON_MAINNET, ETHEREUM_TESTNET, OPTIMISM_SEPOLIA, BASE_MAINNET, BASE_SEPOLIA, OPTIMISM_MAINNET, POLYGON_AMOY, SOLANA_MAINNET, SOLANA_DEVNET "ETHEREUM_MAINNET"
Destination fiat currency. e.g., MXN, INR. Currency of a conversion. The currency can be a stablecoin or a fiat currency.
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 "USDC"
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.
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 "US"
Payment rail. Must match an enabled corridor for the destination country. Transfer mechanism for the conversion.
PAYMENT_METHOD_UNSPECIFIED, BLOCKCHAIN, WIRE, ACH, SPEI, IMPS_FIRC, BANK_TRANSFER, SEPA, PIX, TEF, COELSA, CCE, IBFT, SINPE, LBTR, EFT, BECS, NPSS, MADA, ZAHAV "BLOCKCHAIN"
Amount of source currency (USDC or USDT) to convert.
Amount of destination fiat the recipient should receive.
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 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.
FX rate applied.
Per-corridor transaction limits.
Source side of the quote.
Destination side of the quote.
Total fees as a decimal string.
Currency that fees_total is denominated in.
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 "USDC"
Itemized fee breakdown.
Fee model applied to this quote.
FEE_MODEL_UNSPECIFIED, INCLUSIVE, DEDUCTED, ON_TOP "INCLUSIVE"
Bastion quote identifier. Submit as ConversionRequest.quote_id.
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.
Quote expiry (RFC 3339). Submit after this time is rejected with QUOTE_EXPIRED.