Revolut’s Crypto Ramp API allows you to integrate with Revolut and redirect users directly to our checkout page, providing a smooth onramping experience for your users. The API endpoints are organised into thematic groups and let you leverage the following features:
- Partners - poll different exchange rates, display them on your website and compare with other providers
- Webhooks - track order and payment lifecycle with webhooks
For more information, see the guides: Leverage the Crypto Ramp API and Work with Webhooks -> Track order and payment lifecycle
Authentication
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Partners
The Partners endpoints let you poll different exchange rates, display them on your website and compare them with other providers.
For more details, see the guides: Leverage the Crypto Ramp API.
Retrieve configuration
Retrieve Revolut Ramp configuration, such as available fiat currencies and crypto tokens with corresponding limits and supported countries.
For more information, see the guides: Leverage the Crypto Ramp API -> Get your configuration details.
Request
Response
OK
curl -X GET "https://ramp-partners.revolut.com/partners/api/2.0/config" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "X-API-KEY: <X-API-KEY>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
{
"$ref": "#/components/schemas/Config/example"
}Retrieve an order quote
Retrieve an order quote representing current exchange rate, total crypto amount and fees. Use it to display potential exchange rate to your customer.
For more information, see the guides: Leverage the Crypto Ramp API -> Get an order quote.
Request
Response
OK
curl -X GET "https://ramp-partners.revolut.com/partners/api/2.0/quote?fiat=string&amount=123&crypto=string&payment=google-pay®ion=string&feePercentage=123&walletAddress=string" \
-H "Authorization: Bearer <yourSecretApiKey>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
{
"$ref": "#/components/schemas/Quote/example"
}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.
The amount 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
Response
The requested redirect URL
The amount in the Redirect URL is provided in minor currency units.
For example, GBP 12.00 is represented as 1200.
curl -X GET "https://ramp-partners.revolut.com/partners/api/2.0/buy?fiat=string&amount=123&crypto=string&payment=google-pay®ion=string&wallet=string&orderId=uuid%20%7C%20ulid&feePercentage=123&partnerRedirectUrl=string&additionalProperties=string" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "X-API-KEY: <X-API-KEY>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
{
"$ref": "#/components/schemas/RampRedirectUrl/example"
}Retrieve an order
Retrieve an order by order_id provided in the path and the wallet address provided as a query parameter.
For more information, see the guides: Leverage the Crypto Ramp API -> Get an order.
Request
Response
OK
curl -X GET "https://ramp-partners.revolut.com/partners/api/2.0/orders/uuid | ulid?wallet=string" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "X-API-KEY: <X-API-KEY>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
{
"$ref": "#/components/schemas/Order/example"
}Retrieve all orders
Retrieve all orders by date range.
The results are sorted chronologically by the created_at date (i.e. oldest first).
For more information, see the guides: Leverage the Crypto Ramp API -> Get all orders.
Request
Response
OK
curl -X GET "https://ramp-partners.revolut.com/partners/api/2.0/orders?start=2024-01-01&end=2024-01-01&skip=0&limit=100" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "X-API-KEY: <X-API-KEY>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
{
"$ref": "#/components/schemas/Orders/example"
}Webhooks
A webhook (also called a web callback) allows your system to receive an event from Ramp immediately after it happens. With the Webhooks endpoints, you can create, update, delete, and retrieve webhooks, as well as retrieve webhooks that you have created.
For more details, see the guides: Work with Webhooks -> Track order and payment lifecycle and -> Verify the payload signature.
Retrieve a webhook
Get the details of a specific webhook.
For more information, see the guides: Work with webhooks -> Track order and payment lifecycle.
Request
Response
The information about the webhook
curl -X GET "https://ramp-partners.revolut.com/partners/api/2.0/webhooks/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "X-API-KEY: <X-API-KEY>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
{
"$ref": "#/components/schemas/Webhook/example"
}Update a webhook
Update the details of a specific webhook.
For more information, see the guides: Work with webhooks -> Track order and payment lifecycle.
Request
Response
The successfully updated webhook
curl -X PATCH "https://ramp-partners.revolut.com/partners/api/2.0/webhooks/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "Content-Type: application/json" \
-H "X-API-KEY: <X-API-KEY>" \
-d '{
"url": "https://example.com",
"events": [
"ORDER_CREATED"
]
}'Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Request body samples
{
"url": "https://example.com",
"events": [
"ORDER_CREATED"
]
}Response body samples
{
"$ref": "#/components/schemas/Webhook/example"
}Delete a webhook
Delete a webhook so that events are not sent to the specified URL any more.
For more information, see the guides: Work with webhooks -> Track order and payment lifecycle.
Request
Response
The webhook has been deleted
curl -X DELETE "https://ramp-partners.revolut.com/partners/api/2.0/webhooks/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "X-API-KEY: <X-API-KEY>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
Retrieve a list of webhooks
Get a list of webhooks that the partner is currently subscribed to.
For more information, see the guides: Work with webhooks -> Track order and payment lifecycle.
Request
Response
The list of all your existing webhooks
curl -X GET "https://ramp-partners.revolut.com/partners/api/2.0/webhooks" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "X-API-KEY: <X-API-KEY>"Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Response body samples
{
"$ref": "#/components/schemas/Webhooks/example"
}Create a webhook
Create a webhook so that Ramp can push event notifications to the specified URL.
For more information, see the guides: Work with webhooks -> Track order and payment lifecycle.
Request
Response
The successfully created webhook
curl -X POST "https://ramp-partners.revolut.com/partners/api/2.0/webhooks" \
-H "Authorization: Bearer <yourSecretApiKey>" \
-H "Content-Type: application/json" \
-H "X-API-KEY: <X-API-KEY>" \
-d '{
"url": "https://example.com",
"events": [
"ORDER_CREATED"
]
}'Authorization
apiKeyX-API-KEYEach Crypto Ramp API request must contain an authorization header in the following format to make a call: X-API-KEY: {your_API_key}.
Before you start, make sure that you have the correct API key. For more information, see the Get started guides: Integrate with Revolut Ramp -> 2. Get Partner keys.
Request body samples
{
"url": "https://example.com",
"events": [
"ORDER_CREATED"
]
}Response body samples
{
"$ref": "#/components/schemas/Webhook/example"
}