Query Parameters

Customize On-Ramp, Off-Ramp, and NFT Checkout experiences with query parameters

View as Markdown

Query Parameters help partners customize the Transak experience across On-Ramp, Off-Ramp, and NFT Checkout flows.

Pass the supported parameters in the widgetParams of the Create Widget URL API to customize the user flow.

apiKey and referrerDomain are mandatory for all products.

$curl --request POST \
> --url https://api-gateway-stg.transak.com/api/v2/auth/session \
> --header 'access-token: YOUR_ACCESS_TOKEN' \
> --header 'content-type: application/json' \
> --data '{
> "widgetParams": {
> "apiKey": "YOUR_API_KEY",
> "referrerDomain": "yourdomain.com",
> // Add any other supported parameters here
> }
> }'

Controls the visual look, layout, and product mode of the widget.

environment
Defaults to PRODUCTION JS SDK

Switches between STAGING and PRODUCTION environments.

widgetHeight
stringDefaults to 100% JS SDK

Height of the widget iFrame.

widgetWidth
stringDefaults to 100% JS SDK

Width of the widget iFrame.

themeColor
stringDefaults to BUY SELL

Widget primary color in hex (e.g. #000000). Used for buttons, links, and highlights.

colorMode
'LIGHT' | 'DARK'Defaults to system BUY SELL

Defaults to the user’s system theme when not set.

hideMenu
booleanDefaults to false BUY SELL

When true, hides the menu options completely.

productsAvailed
stringDefaults to BUY,SELL BUY SELL

Services to display: BUY (on-ramp only), SELL (off-ramp only), or BUY,SELL (both). Order controls which tab appears first. SELL must be enabled in the partner portal.

Controls everything visible on the exchange screen — title, currencies, amounts, networks, payment methods, and fee display.

General

exchangeScreenTitle
stringDefaults to BUY SELL

Custom title for the exchange screen. Cannot be changed when both BUY and SELL are active simultaneously.

hideExchangeScreen
booleanDefaults to false BUY SELL

When true, skips the exchange screen entirely. Requires fiatCurrency, network, paymentMethod, and cryptoCurrencyCode for BUY; additionally cryptoAmount for SELL.

isFeeCalculationHidden
booleanDefaults to false BUY SELL

When true, hides the fee breakdown and shows only the total fee. Ignored if your fee exceeds 1%.

Fiat Currency

fiatCurrency
stringDefaults to BUY SELL

Fiat currency code (e.g. GBP). Customer cannot change.

defaultFiatCurrency
stringDefaults to BUY SELL

Default fiat currency; customer can change. Skipped if fiatCurrency or countryCode is passed. Use alongside defaultFiatAmount, not fiatAmount.

fiatAmount
numberDefaults to BUY

Fixed fiat amount. Customer cannot change. Skipped if fiatCurrency or countryCode is not passed.

defaultFiatAmount
numberDefaults to BUY

Default fiat amount; customer can change. Skipped if fiatCurrency/countryCode not passed, or if fiatAmount is set.

countryCode
stringDefaults to BUY SELL

ISO 3166-1 alpha-2 country code (e.g. IN). Sets fiat currency based on country. Skipped if fiatCurrency is passed.

excludeFiatCurrencies
stringDefaults to BUY SELL

Comma-separated fiat currencies to hide from the dropdown (e.g. GBP,EUR). Skipped if fiatCurrency or countryCode is passed.

Crypto Currency

cryptoCurrencyCode
stringDefaults to ETH BUY SELL

Crypto currency code (e.g. DAI). Customer cannot change. See supported cryptocurrencies.

defaultCryptoCurrency
stringDefaults to BUY SELL

Default cryptocurrency; customer can change. Skipped if cryptoCurrencyCode is passed.

cryptoCurrencyList
stringDefaults to BUY SELL

Comma-separated allowed cryptos (e.g. ETH,DAI,USDT). Skipped if cryptoCurrencyCode is passed.

defaultCryptoAmount
numberDefaults to BUY SELL

Default crypto amount. Skipped if cryptoCurrencyCode is not set, or if fiatCurrency + fiatAmount/defaultFiatAmount are passed. Must be within min/max limits.

cryptoAmount
numberDefaults to SELL

Fixed crypto amount to sell (e.g. 0.5678). Customer cannot change.

Networks

network
stringDefaults to BUY SELL

Single allowed network (e.g. ethereum). Skipped if networks is passed.

networks
stringDefaults to BUY SELL

Comma-separated list of allowed networks (e.g. ethereum,polygon).

defaultNetwork
stringDefaults to BUY SELL

Default network (e.g. polygon). Customer can still select another.

Payment Methods

paymentMethod
stringDefaults to BUY SELL

Payment method to lock in. Customer cannot select another. See payment method list in .

defaultPaymentMethod
stringDefaults to BUY SELL

Default payment method; customer can change. Skipped if paymentMethod is passed. See payment method list.

disablePaymentMethods
stringDefaults to BUY SELL

Comma-separated payment methods to hide (e.g. gbp_bank_transfer,sepa_bank_transfer).

Controls the destination wallet address for purchased crypto.

walletAddress
stringDefaults to BUY

Destination wallet address (e.g. 0x8634...). Customer can edit. Pass cryptoCurrencyCode or network alongside.

walletAddressesData
objectDefaults to BUY

Multiple wallet addresses keyed by network/coin in JSON format. Skipped if walletAddress is passed. See example.

disableWalletAddressForm
booleanDefaults to false BUY

When true, customer cannot edit the destination address. Requires walletAddress or walletAddressesData.

walletRedirection
booleanDefaults to false SELL

Enables wallet redirection for off-ramp flows. See details.

Pre-fills customer identity data to streamline or skip the KYC form.

email
stringDefaults to BUY SELL

Customer email (e.g. user@mail.com). URL-encode if it contains special characters.

userData
objectDefaults to BUY SELL

User details (name, address, date of birth). If all fields are provided, the customer won’t be prompted to enter them. See example.

isAutoFillUserData
booleanDefaults to false BUY SELL

When true, auto-fills the email field without skipping the KYC screen. Ignored if email or userData is not passed.

Session control, partner tracking IDs, and post-transaction redirects.

referrerDomain
stringDefaults to BUY SELLRequired

Your domain URL. Used with apiKey to identify and track your project.

widgetUrl
stringDefaults to JS SDK

One-time signed URL from the Create Widget URL API. Encapsulates all other parameters securely.

partnerOrderId
stringDefaults to BUY SELL

Your internal order ID returned in webhook callbacks (e.g. 5e2f559511a9de).

partnerCustomerId
stringDefaults to BUY SELL

Your internal customer ID returned in webhook callbacks (e.g. 23487492).

redirectURL
stringDefaults to BUY SELL

URL to redirect to after the transaction completes. Must be a valid https:// URL. See details.