---
title: Generate a buy quote
endpoint: POST /api/v1/buy/quote
description: Buy
---

`POST /api/v1/buy/quote`

## Request

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `currencyPair` | string | required | `BTC-EUR` | The currency pair that is used for the quote. |
| `paymentMethod` | string | required | `creditCard` | The payment method that the user wants to use to make the payment. |
| `fiatAmount` | number | optional |  | The amount at which the user wants to buy cryptos. |
| `cryptoAmount` | number | optional |  | The amount of cryptos that the user wants to buy. |
| `fee` | number | optional | `1.5` | The profit in terms of a percentage for this order. If not present or null, your default fee is used. The default fee is also used for DCA and the widgets and can be set by your accountmanager. |

## Responses

| Status | Meaning |
| --- | --- |
| 200 | Returns a quote and appropriate data. |
| 400 | A list of possible errors for this endpoint. |

| Field | Type | Required | Example | Description |
| --- | --- | --- | --- | --- |
| `quote` | string | required | `eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEyMzQ1NjcsImV4cCI6MTU1NDU0N` | The quote that is generated based on the submitted data. |
| `currencyPair` | string | required | `BTCEUR` | The currency pair that is used for the quote. |
| `fiatAmount` | number | optional |  | The amount that the user will have to pay. |
| `cryptoAmount` | number | optional | `0.5` | The amount of cryptos that the user will receive. |
| `paymentMethodCost` | number | required | `2.5` | The cost for using the selected payment method. |
| `networkFeeCost` | number | required | `1.5` | The cost for the on-chain network fees. |
| `btcdirectFee` | number | required | `0.75` | The fee charged by BTC Direct in fiat. |
| `btcdirectFeePercentage` | number | optional | `0.75` | The fee charged in percentage by BTC Direct. |
| `partnerFee` | number | required | `1.00` | The fee earned by the partner in fiat. |
| `partnerFeePercentage` | number | optional | `1.00` | The fee earned in percentage by the partner. |
| `totalCost` | number | required |  | The amount that the user will have to pay. |
| `singleCoinEstimate` | number | required | `96779.04` | The estimated value of a single coin. |
| `paymentMethod` | string | required | `creditCard` | The payment method for the payment. |
| `expiryDate` | string | required | `2019-06-06T16:16:16Z` | The date and time when this quote expires. |
| `userLimitExceeded` | boolean | required |  | Replaced by `quoteUnconfirmableReasons`. Whether the user has exceeded their personal limit. |
| `currencyLimitExceeded` | boolean | required |  | Replaced by `quoteUnconfirmableReasons`. Whether the currency limit has been exceeded. |
| `paymentMethodLimitExceeded` | boolean | required |  | Replaced by `quoteUnconfirmableReasons`. Whether the payment method limit has been exceeded. |
| `quoteUnconfirmableReasons` | string[] | required |  | Reasons why this quote can not be confirmed. |
| `sourceCurrency` | one of | optional |  | The source (fiat) currency with CAIP-19 identifier. |
| `targetCurrency` | one of | optional |  | The target (crypto) currency with CAIP-19 identifier. |
| `quote_token` | string | optional |  |  |
