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

Authorizations

Authorization
string
header
required

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

Body

application/json
from
enum<string>
required

The stablecoin being sold.

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

"USDC"

to
string
required

The fiat currency to pay out in.

Example:

"EUR"

cryptoAmount
number
required

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

source
enum<string>

Which currency cryptoAmount holds. Defaults to crypto, set fiat to pass the net payout.

Available options:
fiat,
crypto
Example:

"crypto"

Response

success
boolean
Example:

true

message
string
Example:

"Available exchange rate."

data
object