Generate a buy quote.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Generates a quote for a fiat to coin pair.
object
The currency pair that is used for the quote.
Example
BTC-EURThe payment method that the user wants to use to make the payment.
Example
creditCardThe amount at which the user wants to buy cryptos.
Example
50The amount of cryptos that the user wants to buy.
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.
Example
1.5Responses
Section titled “ Responses ”Returns a quote and appropriate data.
object
The quote that is generated based on the submitted data.
Example
eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJzdWIiOjEyMzQ1NjcsImV4cCI6MTU1NDU0NThe currency pair that is used for the quote.
Example
BTCEURThe amount that the user will have to pay.
Example
50The amount of cryptos that the user will receive.
Example
0.5The cost for using the selected payment method.
Example
2.5The cost for the on-chain network fees.
Example
1.5The fee charged by BTC Direct in fiat.
Example
0.75The fee charged in percentage by BTC Direct.
Example
0.75The fee earned by the partner in fiat.
Example
1.00The fee earned in percentage by the partner.
Example
1.00The amount that the user will have to pay.
Example
50The estimated value of a single coin.
Example
96779.04The payment method for the payment.
Example
creditCardThe date and time when this quote expires.
Example
2019-06-06T16:16:16ZReplaced by quoteUnconfirmableReasons.
Whether the user has exceeded their personal limit.
Replaced by quoteUnconfirmableReasons.
Whether the currency limit has been exceeded.
Replaced by quoteUnconfirmableReasons.
Whether the payment method limit has been exceeded.
Reasons why this quote can not be confirmed.
Example
[ "currencyLimitExceeded", "paymentMethodLimitExceeded", "paymentMethodDisabled", "userLimitExceeded", "userRegistrationNotCompleted"]object
The currency code.
Example
EURThe currency name.
Example
EuroThe precision.
Example
2A cryptocurrency representation
object
The currency code.
Example
BTCThe currency name.
Example
BitcoinThe precision.
Example
8Whether the currency supports a memo or a destination tag.
The currency ticker.
Example
BTCThe chain through which the currency is delivered.
Example
SolanaThe token smart contract address
Example
0x514910771af9ca656af840dff83e8264ecf986caA list of possible errors for this endpoint.
object
Example
{ "errors": { "ER010": { "code": "ER010", "message": "Unknown currency pair.", "solution": "Provide a supported currency pair." }, "ER011": { "code": "ER011", "message": "The provided fiatAmount is invalid.", "solution": "Provide a valid fiatAmount." }, "ER012": { "code": "ER012", "message": "The provided cryptoAmount is invalid.", "solution": "Provide a valid cryptoAmount with max 8 decimals." }, "ER013": { "code": "ER013", "message": "Unknown payment method.", "solution": "Provide a valid payment method." }, "ER042": { "code": "ER042", "message": "Neither fiatAmount nor cryptoAmount is provided.", "solution": "Provide a fiat amount or a crypto amount." }, "ER043": { "code": "ER043", "message": "Both fiatAmount and cryptoAmount are provided.", "solution": "Provide a fiat amount or a crypto amount, not both." }, "ER055": { "code": "ER055", "message": "Payment method not available at this time.", "solution": "Provide another payment method." }, "ER800": { "code": "ER800", "message": "Authorization token is invalid.", "solution": "Provide a valid authorization token." }, "ER801": { "code": "ER801", "message": "Authorization token has expired.", "solution": "Request a new authorization token." }, "ER802": { "code": "ER802", "message": "Authorization token not found.", "solution": "Provide an authorization token." }, "ER803": { "code": "ER803", "message": "Multiple authorization methods used.", "solution": "Use exactly one authorization method." }, "ER805": { "code": "ER805", "message": "API key is invalid.", "solution": "Provide a valid API key." }, "ER806": { "code": "ER806", "message": "API key not found.", "solution": "Provide an API key." }, "ER999": { "code": "ER999", "message": "A general error has occurred. Please contact our support team.", "solution": "Contact our support team." } }}