We recommend checking out the introductory
section to understand the basics of making
transfers first.
Get Exchange Rate
To use the exchange rate API, you’ll need to know thesource_currency, destination currency and the destination amount (called amount on the API). The rate API will then return the rate and the amount required (source amount) to transit the destination amount.
Example
- John needs to send Paul $1000
- John only has a
KESbalance in his Flutterwave Wallet. This means John needs to know the amount inKESfor a $1000 transfer to Paul - Based on the above,
source_currencyisKES,destination_currencyisUSD,destination_amountis1000andsource_amountisunknown - To get the
source_amount, John makes the below API call
cURL
debit_currency as KES in his transfer request.
Specifying the source_amount and not the destination_amount i.e. reversing the currencies on the API won’t give you the intended rate. You would have to request the destination_amount from the end-user and use the API as explained.