---
api: 'Crypto Ramp API'
---

# Retrieve a sell order quote

Use this endpoint for the sell (off-ramp) flow.
Retrieve the estimated fiat proceeds and fees for selling crypto.
Use it to display the estimated payout and fees to your customer before redirecting them via [`/sell`](https://developer.revolut.com/docs/api/crypto-ramp#retrieve-a-sell-redirect-url).

## Endpoint

GET `/sell-quote`

## Parameters

### header parameters

- `X-API-KEY` (any, optional)
  Your API key that you received during integration setup. 
  For more information, see the **Authorization** section.

### query parameters

- `fiat` (string, required)
  The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code of the fiat currency that the customer wants to receive.

- `amount` (number, required)
  The crypto amount that the customer wants to sell.

- `crypto` (string, required)
  The ID of the crypto token to sell, obtained from the [`/sell-config`](https://developer.revolut.com/docs/api/crypto-ramp#retrieve-sell-configuration) endpoint.

- `payment` (enum, required)
  The payout method used to receive the fiat proceeds.
  Possible enum values:

  - `revolut`

- `region` (string, required)
  The [ISO 3166 Alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) code of the country of residence of the customer selling the crypto.

## Returns

### 200

OK

#### Response attributes

- `service_fee` (object)
    The total service fee, including the partner fee when one applies.
    
    :::note
    The Partner fee is also provided separately in the `partner_fee` parameter.
    :::
  - `service_fee.amount` (number)
      The amount.
  - `service_fee.currency` (string)
      The fiat currency [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code.
- `partner_fee` (object, optional)
    Partner fee. Absent if no partner fee applies.
    Unlike the buy flow, the sell flow does not support a per-request fee percentage; the partner fee is determined by your partner configuration agreed with Revolut.
    
    :::note
    This Partner fee is also included in the `service_fee` value.
    :::
  - `partner_fee.amount` (number)
      The amount.
  - `partner_fee.currency` (string)
      The fiat currency [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code.
- `fiat` (object)
    The estimated fiat amount that the customer receives after fees.
  - `fiat.amount` (number)
      The amount.
  - `fiat.currency` (string)
      The fiat currency [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code.

## Error responses

| HTTP status code | Description |
| --- | --- |
| 400 | Bad request  A request parameter is invalid. |
| 401 | Unauthorized |
| 429 | Too Many Requests |
| 500 | Server error  An unexpected error occurred. |
| 503 | The endpoint is disabled by Kill Switch |
