QUOTE to preview the rate and converted amount, then submit an EXCHANGE request to execute the conversion. Both the source and destination must be settlement wallets on your account.
Method: POSTURL:
https://app.kulmipay.com/api/v1/wallets/{wallet_id}/exchange/
Replace {wallet_id} with the wallet_id of the source settlement wallet — the one holding the currency you want to sell.
Request parameters
The target currency you want to receive. Must be different from the source wallet’s currency. One of:
KES, USD, EUR, GBP.The amount in the source currency to exchange, as a decimal string. Must be greater than
0.01 and no more than 999999.00.The operation to perform. Use
QUOTE to preview the exchange rate without moving any funds, or EXCHANGE to execute the conversion and debit the source wallet.Code examples
- QUOTE
- EXCHANGE
cURL
Response — QUOTE
AQUOTE response returns the current exchange rate and the amount you would receive. No funds are moved.
The exchange rate applied, expressed as units of target currency per unit of source currency.
The amount you would receive in the target currency at this rate.
The target currency for this quote.
Example QUOTE response
Response — EXCHANGE
AnEXCHANGE response confirms the conversion was executed. The source wallet is debited and the destination settlement wallet is credited.
Always
"success" when the exchange completes.The exchange rate that was applied.
The amount credited to the destination wallet.
The target currency that was credited.
A description of the exchange that appears in both wallets’ transaction statements.
