Skip to main content
POST
Get Onramp Exchange rate
An integrator can use this endpoint to get the exchange rate between two currencies for onramp transactions.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
from
string
required

The fiat currency the customer pays in.

Example:

"KES"

to
enum<string>
required

The stablecoin to deliver.

Available options:
CUSD,
USDC,
USDT,
USDGLO,
CKES,
CGHS,
MSAT,
ADA
Example:

"USDT"

fiatAmount
number
required

How much to convert. Holds the fiat amount by default; if you set source to crypto it holds the crypto amount instead.

Example:

1000

source
enum<string>

Which currency fiatAmount holds. Defaults to fiat, set crypto to pass a crypto amount.

Available options:
fiat,
crypto
Example:

"fiat"

Response

success
boolean
Example:

true

message
string
Example:

"Available exchange rate."

data
object