Skip to main content
POST
Onramp and Offramp

Authorizations

x-api-key
string
header
required
x-api-user
string
header
required

Body

application/json
fromCurrency
enum<string>
required
Available options:
BNB,
BTC,
CUSD,
ETH,
KES,
NGN,
USDC,
USDT
fromNetwork
enum<string>
required
Available options:
avalanche,
base,
binance,
bitcoin,
celo,
ethereum,
kenyanshilling,
naira,
polygon,
solana,
tron
rateKey
string
required
toCurrency
enum<string>
required
Available options:
BNB,
BTC,
CUSD,
ETH,
KES,
NGN,
USDC,
USDT
toNetwork
enum<string>
required
Available options:
avalanche,
base,
binance,
bitcoin,
celo,
ethereum,
kenyanshilling,
naira,
polygon,
solana,
tron
accountName
string

accountname of the user (not bank account name)

accountNumber
string
autoComplete
boolean

allows you to suspend the ramp request to be completed later

bankCode
string
cancelPendingRampRequest
boolean

users can only have one pending RampRequest at a time; if you have a pending RampRequest, set CancelPendingRampRequest as true; defaults to false

cryptoAddress
string
expireAction
enum<string>

allows you to choose what should happen to your ramp request if the current rate is no longer applicable; default is useCurrentRate

Available options:
useCurrentRate,
deposit
fromAmount
number
mobileNetwork
enum<string>

mobile network of the payout recipient; required for mobile currencies

Available options:
Airtel,
Safaricom,
Telkom
paymentNetwork
enum<string>

payment network of the payout recipient; required for mobile currencies

Available options:
BUY_GOODS,
MOBILE,
PAYBILL
phoneID
string
rampExpTime
number

allows you to set when you need the ramp to expire or cancel; default is 1 hour

rampReference
string
sendingAddress
string

Address from which the user will be sending or receiving funds

shortcode
string

shortcode, required for mobile currencies

toAmount
number
type
enum<string>

initiate offramp with cryptoToFiat type and onramp with fiatToCrypto type

Available options:
fiatToCrypto,
cryptoToFiat

Response

post ramp ok

data
object
message
string