Skip to navigation

Get Quote

View as Markdown

The Get Quote is a public API call that allows you to fetch a temporary price quote for a cryptocurrency transaction based on the selected fiat currency, cryptocurrency, payment method, and transaction amount. Since cryptocurrency prices are volatile, the returned quote is refreshed every minute to reflect the latest market price.

After fetching the supported cryptocurrencies and fiat currencies, you must call getQuote to get the latest exchange rate. This quote is critical for KYC verification and order placement:

KYC Process:

  • The quote ID must be passed when calling Get KYC Requirement .

  • Based on the order amount, the user may be required to complete different KYC tiers (Simple KYC, Standard KYC).

Order Placement:

  • The quote ID is also required when calling createOrder()

  • At the time of payment settlement, Transak sends the exact amount of cryptocurrency based on the latest exchange rate at that moment.

Terms and disclaimers (US users):

To receive termsIds for US users, pass the user’s authentication headers for your flow:

  • Non-Auth Reliance flow: pass authorization with the user’s access token from the Verify User OTP API.
  • Auth Reliance flow: pass x-access-token with your partner access token and x-user-identifier with the user’s email address.
  • Without these headers, Transak can’t identify the user, and termsIds is returned empty for US quotes.

Show the disclaimer for each ID in termsIds before the user places the order. See How to Display US Disclaimers.

Thus, getQuote plays a vital role in the entire order flow, from KYC verification to order execution.

Additional Postman request: Get KYC Reliance Quote

Headers

x-user-ipstringRequired

End user’s originating IP. More details here

x-api-keystringRequired
Partner API Key present in Transak Dashboard.
authorizationstringOptional

Authorization token is the accessToken received from the API - api/v2/auth/verify. Pass it to receive termsIds for US users. See How to Display US Disclaimer.

Note: This is not applicable for Auth Reliance Flows

x-user-identifierstringOptional

Your authenticated user Email Id address. Pass it with x-access-token to receive termsIds for US users. See How to Display US Disclaimer.

Note: This is applicable only for Auth Reliance Flows

x-access-tokenstringOptional

Your Partner Access Token. Please refer here for a tutorial on generating your access token. Pass it with x-user-identifier to receive termsIds for US users. See How to Display US Disclaimer.

Note: This is applicable only for Auth Reliance Flows

Query parameters

apiKeystringRequired
Your Api Key which you can get it from Transak Partner Dashboard for respective environment
fiatCurrencystringRequired

Supported fiat currency symbol from /fiat/public/v1/currencies/fiat-currencies

cryptoCurrencystringRequired

Supported crypto currency symbol from /cryptocoverage/api/v1/public/crypto-currencies

isBuyOrSellstringRequired
Value should be 'BUY' or 'SELL'
networkstringRequired

Supported crypto currency network from /cryptocoverage/api/v1/public/crypto-currencies

paymentMethodstringRequired

Supported payment method from /fiat/public/v1/currencies/fiat-currencies

fiatAmountdoubleOptional
Amount in fiat currency. For BUY, pass at least one of fiatAmount or cryptoAmount.
cryptoAmountdoubleOptional
Amount in crypto currency. For SELL, this parameter is required.
partnerCustomerIdstringOptional
Unique id for user provided by partner
partnerOrderIdstringOptional
Unique id for order provided by partner

Response

200 - Success

dataobject

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error