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 Onramp Exchange Rate
An integrator can use this endpoint to get the exchange rate between two currencies
POST
/
api
/
v3
/
rate
/
onramp
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 onramp transactions.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The fiat currency the customer pays in.
Example:
"KES"
The stablecoin to deliver.
Available options:
CUSD, USDC, USDT, USDGLO, CKES, CGHS, MSAT, ADA Example:
"USDT"
How much to convert. Holds the fiat amount by default; if you set source to crypto it holds the crypto amount instead.
Example:
1000
Which currency fiatAmount holds. Defaults to fiat, set crypto to pass a crypto amount.
Available options:
fiat, crypto Example:
"fiat"