We offer three integrations, Transak , Moonpay , and Ramp Network , that you can use to generate offramp URLs for your users by defining parameters like the fiat currency, fiat amount, destination wallet address, and the crypto currency.
HTTP
POST /fiat-ramp/transak/off
JSON
{
"fiatCurrency": "USD",
"cryptoAmount": "0.15",
"cryptoCurrency": {
"network": "mainnet",
"symbol": "BTC"
},
"redirectUrl": "https://www.venly.io/",
"email": "[email protected] "
}
Parameter Type Description Required fiatCurrencyString The code of the fiat currency you want the user to be paid in. ❌ cryptoAmountNumber The amount in crypto currency showing how much crypto your user wants to sell. If this is passed, the user can't change the crypto amount. ❌ cryptoCurrency.networkString The crypto network such as bitcoin or ethereum that you would allow your customers to buy/sell. Can be obtained from the response of the Get supported fiat and crypto currencies endpoint . ❌ cryptoCurrency.symbolString The code/symbol of the cryptocurrency you want the user to buy/sell. Can be obtained from the response of the Get supported fiat and crypto currencies endpoint . ❌ redirectUrlString Once the customer has completed the purchase/sell process, Transak will redirect back to this URL with additional order info appended to it as parameters. ❌ emailString The email that will be used to identify your user and their order. ❌ isFeeCalculationHiddenBoolean If this is set to true, your user won't see a detailed breakdown of fees—they'll only see the total fee ❌ hideMenuBoolean When true, then the user will not see the menu options. This will hide the menu completely ❌
HTTP
POST /fiat-ramp/moonpay/off
JSON
{
"fiatCurrency": "EUR",
"cryptoAmount": "3000",
"cryptoCurrency": {
"symbol": "usdc"
},
"redirectUrl": "https://www.venly.io/",
"email": "[email protected] ",
"refundWalletAddress": "0x3FE9a7D68C6a4a2d6575A6C803E4CDF9340E370E"
}
Parameter Type Description Required fiatCurrencyString The code of the fiat currency (e.g. USD, AUD, GBP) you want the user to be paid in. ❌ cryptoAmountNumber A positive number representing how much crypto the user wants to sell. This parameter will be skipped if cryptoCurrency.symbol is not passed. ❌ cryptoCurrency.symbolString The code/symbol of the cryptocurrency you want the user to buy/sell. Can be obtained from the response of the Get supported fiat and crypto currencies endpoint . ❌ redirectUrlString A URL you'd like to redirect the user to after they complete the sell flow. ❌ emailString The user's email address. ❌ refundWalletAddressString The cryptocurrency wallet address where the funds will be sent to in case of a refund. This parameter will be skipped if cryptoCurrency.symbol is not passed. ❌
JSON
{
"success": true,
"result": {
"url": "https://sell-sandbox.moonpay.com?apiKey=pk_test_uHJf0DO1w0yfpJxhh7xkLaejUmjeY0"eCurrencyCode=EUR&baseCurrencyAmount=3000&refundWalletAddress=0x3FE9a7D68C6a4a2d6575A6C803E4CDF9340E370E&redirectURL=https%3A%2F%2Fwww.venly.io%2F&email=abdullah.baig%40venly.io&baseCurrencyCode=usdc&signature=E6rrGWrGpf%2FTNyZRenULguG6lF4NacD%2F0PiaQk4WhzY%3D"
}
}
HTTP
POST /fiat-ramp/ramp-network/off
JSON
{
"fiatCurrency": "USD",
"fiatAmount": "1000",
"cryptoCurrency": {
"network": "MATIC",
"symbol": "MATIC"
},
"redirectUrl": "https://www.venly.io/",
"email": "[email protected] ",
"userAddress": "0x3FE9a7D68C6a4a2d6575A6C803E4CDF9340E370E",
"selectedCountryCode": "US"
}
Parameter Type Description Required fiatCurrencyString The code of the fiat currency (e.g. USD, AUD, GBP) you want the user to purchase with. Mandatory if fiatAmount is passed. ❌ fiatAmountNumber A positive integer representing how much fiat the user wants to spend ❌ cryptoCurrency.networkString The crypto network such as bitcoin or ethereum that you would allow your customers to buy/sell. Can be obtained from the response of the Get supported fiat and crypto currencies endpoint . ❌ cryptoCurrency.symbolString The code/symbol of the cryptocurrency you want the user to buy/sell. Can be obtained from the response of the Get supported fiat and crypto currencies endpoint . ❌ redirectUrlString The URL the user will be redirected to after completing the flow. ❌ emailString The email address for your user to make their onramping experience even quicker. ❌ userAddressString The wallet address of your user where crypto will be sent to. ❌ selectedCountryCodeString This param pre-selects the user's country. The value should be a two-letter country code (ISO 3166-1 alpha-2). ❌
JSON
{
"success": true,
"result": {
"url": "https://app.demo.ramp.network?hostApiKey=unkvxgqfdpbpzet33gqnpnf2at7p7rytq458avkc&enabledFlows=OFFRAMP&fiatValue=1000&fiatCurrency=USD&finalUrl=https%3A%2F%2Fwww.venly.io%2F&userEmailAddress=abdullah.baig%40venly.io&selectedCountryCode=US&swapAsset=MATIC_MATIC"
}
}