Error
A valid request URL is required to generate request examples{
"success": true,
"message": "Available exchange rate.",
"data": {
"from": "USD",
"to": "KES",
"value": "130.5",
"id": "1234567890",
"fiatAmount": 1305,
"cryptoAmount": 10,
"transactionAmount": 1279,
"fee": 26,
"walletDebitAmount": 1331
}
}{
"success": false,
"message": "Invalid API Key",
"data": {}
}Exchange Rates
Get Offramp Exchange Rate
An integrator can use this endpoint to get the exchange rate between two currencies
POST
/
api
/
v3
/
rate
/
offramp
Error
A valid request URL is required to generate request examples{
"success": true,
"message": "Available exchange rate.",
"data": {
"from": "USD",
"to": "KES",
"value": "130.5",
"id": "1234567890",
"fiatAmount": 1305,
"cryptoAmount": 10,
"transactionAmount": 1279,
"fee": 26,
"walletDebitAmount": 1331
}
}{
"success": false,
"message": "Invalid API Key",
"data": {}
}An integrator can use this endpoint to get the exchange rate between two currencies for offramp transactions.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The stablecoin being sold.
Available options:
CUSD, USDC, USDT, USDGLO, CKES, CGHS, MSAT, ADA Example:
"USDC"
The fiat currency to pay out in.
Example:
"EUR"
How much to convert. Holds the crypto amount by default; if you set source to fiat it holds the net payout you want the recipient to receive, and we work backwards to the crypto needed.
Example:
10
Which currency cryptoAmount holds. Defaults to crypto, set fiat to pass the net payout.
Available options:
fiat, crypto Example:
"crypto"