Use this file to discover all available pages before exploring further.
The POST /exchange-rate endpoint is the single source for pricing any transaction on Yativo. It returns a quote_id valid for 5 minutes — use this ID in the execution step to guarantee the rate and fee shown to your customer.There are two modes:
Mode
When to use
With method_id + method_type
Quote a specific payment method — returns exact fees for that rail
Without method_id
Generic FX rate for display only
Type Definitions
interface ExchangeRateRequest { from_currency: string; // source currency (ISO 4217) to_currency: string; // target currency (ISO 4217) amount: number; // amount in source currency method_id?: number; // payment method ID (from /payment-methods/payout or /payin) method_type?: "payout" | "payin"; // required when method_id is provided}interface Quote { quote_id: string; // valid for 5 minutes — use in /wallet/payout or /wallet/deposits/new 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; // total deducted from wallet }; calculator: { amount_due: number; exchange_rate: number; fee_breakdown: { float: { wallet_currency: number; payout_currency: number }; fixed: { wallet_currency: number; payout_currency: number }; total: number; }; PayoutMethod?: { // present when method_id was provided id: number; method_name: string; country: string; currency: string; base_currency: string; }; };}
Payment method ID from GET /payment-methods/payout or GET /payment-methods/payin. Scopes the quote to the exact fees for that rail — required for checkout flows where you will execute at the quoted price.
1. GET /payment-methods/payout?country=... → get method_id (e.g. 21)2. POST /exchange-rate → quote with method_id + method_type → shows exact fees to customer → returns quote_id (5-min window)3. POST /wallet/payout (or /deposits/new) → execute with quote_id4. GET /transaction/tracking/{id} → monitor status
The exchange rate endpoint is limited to 30 requests per minute per API key. Cache quotes client-side for display rather than calling on every user keystroke.