Crypto Ramp API
Retrieve a redirect URL
api
get
/buy

Retrieve a redirect URL

Retrieve a redirect URL to the Ramp app widget for provided buy parameters. Use it to redirect the customer to Revolut Ramp to make the purchase.

note

The fiatAmount in the Redirect URL is provided in minor currency units. For example, GBP 12.00 is represented as 1200.

For more information, see the guides: Leverage the Crypto Ramp API -> Get a Revolut Ramp Redirect URL.

Request

Query Parameters
Query Parameters
Header Parameters
Header Parameters

Response

The requested redirect URL

note

The fiatAmount in the Redirect URL is provided in minor currency units. For example, GBP 12.00 is represented as 1200.

Response body
Body object 
Was this page helpful?
GET
/buy . 
Parameters
curl -L -X GET 'https://ramp-partners.revolut.com/partners/api/2.0/buy' \
-H 'Accept: application/json' \
-H 'X-API-KEY: <API_KEY_VALUE>'
Response body samples
{
"ramp_redirect_url": "https://ramp.revolut.com?fiatCurrency=GBP&amount=12345&cryptoCurrency=ETH&walletAddress=0x96e2B7Bf479f84e7A0a94f0620290B7D3E08f5EF&countryCode=GB&partnerId=a01798bc-7f0b-14ed-a12b-0e3fac1209ad&externalOrderId=2d1769bc-7aab-92ed-a10b-0232ac12090d&disableFiatAmount=true&disableCryptoCurrency=true&disableWalletAddress=true&disableCountryCode=true&skipWalletAddress=true&partnerRedirectUrl=https%3A%2F%2Fcrypto.partner.com%2Forder%3ForderId%3D2d1769bc-7aab-92ed-a10b-0232ac12090d"
}