Off Ramp

Off-ramp

Get off-ramp order

get
/api/offramp/order/{id}

Returns a single order by its ID.

Authorizations
x-client-idstringRequired
Path parameters
idstringRequired
Responses
chevron-right
200

Successful response

application/json
_idstringOptional
offerIdstringOptional
paymentTypestring · enumOptional
  • CRYPTO_WALLET: User will pay with a crypto wallet
  • VIRTUAL_WALLET: Order will be paid from a merchant's virtual wallet
Possible values:
networkstring · enumOptionalPossible values:
assetstring · enumOptionalPossible values:
exchangeRatenumberOptional
fromAddressstringOptional
toAddressstringOptional
statusstring · enumOptional
  • initiated: The offramp order has been initiated
  • awaiting_transaction_confirmation: User sent the transaction hash and system is awaiting confirmation
  • transaction_confirmed: User transaction has been confirmed
  • transaction_failed: User transaction has failed
  • offramp_success: The offramp transaction has been successful
  • offramp_pending: The offramp transaction is pending
  • offramp_failed: The offramp transaction has failed
  • offramp_retry: The offramp transaction is being retried
  • refunding: The offramp transaction is being refunded
  • refunded: The offramp transaction has been refunded
  • refund_failed: The offramp transaction refund has failed
  • expired: The offramp order has expired
  • cancelled: The offramp order has been cancelled by the user
  • validating_transaction: The offramp transaction is being validated
  • transaction_invalid: The offramp transaction is invalid
Possible values:
createdAtstring · date-timeOptional
expiresAtstring · date-timeOptional
hashstringOptional
requiredFieldsobjectOptional

Fields that was required to be filled by the user

countryIsoCodestringOptional
userPhoneNumberstringOptional
userEmailstringOptional
currencyIsoCodestringOptional
orderParamsstringOptional
get
/api/offramp/order/{id}
200

Successful response

Get off-ramp orders

get
/api/offramp/orders

Returns a paginated list of orders. Filters can be applied to the list by providing query parameters.

Authorizations
x-client-idstringRequired
Query parameters
cursorstringOptional

this parameter should be provided in order to get a next page from the pagination, it should be taken from "nextCursor" response value

limitintegerRequired

number from 1 to 100, describes how many records should be in each pagination page

paymentTypestring · enumOptional
  • CRYPTO_WALLET: User will pay with a crypto wallet
  • VIRTUAL_WALLET: Order will be paid from a merchant's virtual wallet
Possible values:
networkstring · enumOptionalPossible values:
assetstring · enumOptionalPossible values:
fromAddressstringOptional

address of a user wallet

userPhoneNumberstringOptional

phone number of the client, should include country code

userEmailstringOptional

email of the client

hashstringOptional

hash of the user transaction

countryIsoCodestringOptional

country ISO code, e.g. NG

offrampTypestring · enumOptional

type of the offramp

Possible values:
orderParamsstringOptional

value of the orderParams query param during order creation

statusstring · enumOptional
  • initiated: The offramp order has been initiated
  • awaiting_transaction_confirmation: User sent the transaction hash and system is awaiting confirmation
  • transaction_confirmed: User transaction has been confirmed
  • transaction_failed: User transaction has failed
  • offramp_success: The offramp transaction has been successful
  • offramp_pending: The offramp transaction is pending
  • offramp_failed: The offramp transaction has failed
  • offramp_retry: The offramp transaction is being retried
  • refunding: The offramp transaction is being refunded
  • refunded: The offramp transaction has been refunded
  • refund_failed: The offramp transaction refund has failed
  • expired: The offramp order has expired
  • cancelled: The offramp order has been cancelled by the user
  • validating_transaction: The offramp transaction is being validated
  • transaction_invalid: The offramp transaction is invalid
Possible values:
Responses
chevron-right
200

Successful response

application/json
get
/api/offramp/orders
200

Successful response

Get best offer

get
/api/offramp/best-offer

Returns the best offer for the provided country, network, asset, amount and off-ramp type.

Authorizations
x-client-idstringRequired
Query parameters
amountnumberRequired

Amount of usd user wants to pay or amount of local currency user wants to receive depending on the currency param value

currencystring · enumRequired

Currency of the amount param

Possible values:
countrystringRequired

country ISO code, for example KE for Kenya, NG for Nigeria

typestring · enumRequiredPossible values:
networkstring · enumRequiredPossible values:
assetstring · enumRequiredPossible values:
Responses
chevron-right
200

Successful response

application/json
get
/api/offramp/best-offer
200

Successful response

Get off-ramp limits

get
/api/offramp/limits

Returns minimum and maximum amount of order in USD and local currency with applied fees.

Authorizations
x-client-idstringRequired
Query parameters
typestring · enumRequired

offramp type

Possible values:
countrystringRequired

country ISO code

networkstring · enumRequiredPossible values:
assetstring · enumRequiredPossible values:
Responses
chevron-right
200

Successful response

application/json
minUsdnumberOptional
maxUsdnumberOptional
minLocalCurrencynumberOptional
maxLocalCurrencynumberOptional
get
/api/offramp/limits
200

Successful response

Get supported countries

get
/api/offramp/countries

Returns a list of supported countries and their offramp types

Authorizations
x-client-idstringRequired
Responses
chevron-right
200

Successful response

application/json
countryIsoCodestringOptional
currencyIsoCodestringOptional
namestringOptional
get
/api/offramp/countries
200

Successful response

Get supported blockchain assets

get
/api/offramp/wallets

Returns a list of supported wallet networks and their assets for crypto wallet orders

Authorizations
x-client-idstringRequired
Responses
chevron-right
200

A list of supported wallet networks and their assets

application/json
networkstring · enumOptionalPossible values:
assetstring · enumOptionalPossible values:
get
/api/offramp/wallets
200

A list of supported wallet networks and their assets

Validate user required fields

post
/api/offramp/validate-fields

The get best offer endpoint returns the required fields that need to be provided by a user. This endpoint allows you to validate the fields provided by a user. Endpoint might return a list of user information that can help a user to verify the correctness of the provided information.

Authorizations
x-client-idstringRequired
Body
offerIdstringRequired

ID of the offer returned from get best offer endpoint

Responses
chevron-right
200

Validation successful

application/json
post
/api/offramp/validate-fields
200

Validation successful

Create order

post
/api/offramp/create-order

Creates an order for a provided user details.

Authorizations
x-client-idstringRequired
Body
offerIdstringRequired

ID of the offer returned from get best offer endpoint

paymentTypestring · enumRequired
  • CRYPTO_WALLET: User will pay with a crypto wallet
  • VIRTUAL_WALLET: Order will be paid from a merchant's virtual wallet
Possible values:
networkstring · enumRequiredPossible values:
assetstring · enumRequiredPossible values:
addressstringRequired

Address of the wallet from which funds will be sent

currencystring · enumRequiredPossible values:
amountnumberRequired

Amount of usd user wants to pay or amount of local currency user wants to receive depending on the currency param value

ipstringOptional

IP address of a user

orderParamsstringOptional

OrderParams that need to be associated with an order

Responses
chevron-right
200

Order created successfully

application/json
_idstringOptional
offerIdstringOptional
paymentTypestring · enumOptional
  • CRYPTO_WALLET: User will pay with a crypto wallet
  • VIRTUAL_WALLET: Order will be paid from a merchant's virtual wallet
Possible values:
networkstring · enumOptionalPossible values:
assetstring · enumOptionalPossible values:
exchangeRatenumberOptional
fromAddressstringOptional
toAddressstringOptional
statusstring · enumOptional
  • initiated: The offramp order has been initiated
  • awaiting_transaction_confirmation: User sent the transaction hash and system is awaiting confirmation
  • transaction_confirmed: User transaction has been confirmed
  • transaction_failed: User transaction has failed
  • offramp_success: The offramp transaction has been successful
  • offramp_pending: The offramp transaction is pending
  • offramp_failed: The offramp transaction has failed
  • offramp_retry: The offramp transaction is being retried
  • refunding: The offramp transaction is being refunded
  • refunded: The offramp transaction has been refunded
  • refund_failed: The offramp transaction refund has failed
  • expired: The offramp order has expired
  • cancelled: The offramp order has been cancelled by the user
  • validating_transaction: The offramp transaction is being validated
  • transaction_invalid: The offramp transaction is invalid
Possible values:
createdAtstring · date-timeOptional
expiresAtstring · date-timeOptional
hashstringOptional
requiredFieldsobjectOptional

Fields that was required to be filled by the user

countryIsoCodestringOptional
userPhoneNumberstringOptional
userEmailstringOptional
currencyIsoCodestringOptional
orderParamsstringOptional
post
/api/offramp/create-order
200

Order created successfully

Confirm order

post
/api/offramp/confirm-order

Confirms an order by providing a transaction hash for crypto orders and order ID returned from the create order endpoint.

Authorizations
x-client-idstringRequired
Body
orderIdstringRequired

ID of the order returned from create order endpoint

hashstringRequired

Transaction hash for crypto orders

Responses
chevron-right
200

Order confirmed successfully

application/json
_idstringOptional
offerIdstringOptional
paymentTypestring · enumOptional
  • CRYPTO_WALLET: User will pay with a crypto wallet
  • VIRTUAL_WALLET: Order will be paid from a merchant's virtual wallet
Possible values:
networkstring · enumOptionalPossible values:
assetstring · enumOptionalPossible values:
exchangeRatenumberOptional
fromAddressstringOptional
toAddressstringOptional
statusstring · enumOptional
  • initiated: The offramp order has been initiated
  • awaiting_transaction_confirmation: User sent the transaction hash and system is awaiting confirmation
  • transaction_confirmed: User transaction has been confirmed
  • transaction_failed: User transaction has failed
  • offramp_success: The offramp transaction has been successful
  • offramp_pending: The offramp transaction is pending
  • offramp_failed: The offramp transaction has failed
  • offramp_retry: The offramp transaction is being retried
  • refunding: The offramp transaction is being refunded
  • refunded: The offramp transaction has been refunded
  • refund_failed: The offramp transaction refund has failed
  • expired: The offramp order has expired
  • cancelled: The offramp order has been cancelled by the user
  • validating_transaction: The offramp transaction is being validated
  • transaction_invalid: The offramp transaction is invalid
Possible values:
createdAtstring · date-timeOptional
expiresAtstring · date-timeOptional
hashstringOptional
requiredFieldsobjectOptional

Fields that was required to be filled by the user

countryIsoCodestringOptional
userPhoneNumberstringOptional
userEmailstringOptional
currencyIsoCodestringOptional
orderParamsstringOptional
post
/api/offramp/confirm-order
200

Order confirmed successfully

Last updated