Get real-time rates and generate locked quotes before executing payins or payouts
The exchange rate endpoint generates a quote — a rate-locked calculation valid for 5 minutes. Use the returned quote_id in your deposit or payout request to guarantee that exact rate and fee at execution time.
Type Definitions
Copy
Ask AI
interface QuoteRequest { from_currency: string; // source currency (ISO 4217) to_currency: string; // target currency (ISO 4217) method_id: number; // payment method ID from /payment-methods/payin or /payout method_type: "payin" | "payout"; amount: number; // amount in the source currency}interface Quote { quote_id: string; // valid for 5 minutes from_currency: string; to_currency: string; rate: string; amount: string; payout_data: { total_transaction_fee_in_from_currency: string; total_transaction_fee_in_to_currency: string; customer_sent_amount: string; customer_receive_amount: string; customer_total_amount_due: string; }; calculator: { fee_breakdown: { float: { wallet_currency: number; payout_currency: number }; fixed: { wallet_currency: number; payout_currency: number }; total: number; }; exchange_rate: number; customer_receive_amount: { wallet_currency: number; payout_currency: number }; };}
1. GET /payment-methods/payin?country=CHL¤cy=CLP → get method_id2. POST /exchange-rate → get quote_id (5 min window)3. POST /wallet/deposits/new (or /wallet/payout) → execute with quote_id
Using a quote_id guarantees the displayed rate and fee through execution. Without it, the live market rate applies and may shift between quote and payment completion.