# Query parameters

Here is a full list of query parameters for the SwapinWidget API. Customize and enhance your API integration with these parameters to deliver a tailored user experience.

<table data-full-width="false"><thead><tr><th width="224.33333333333331">Query Name</th><th width="101">Type</th><th width="139">Default value</th><th>Description</th></tr></thead><tbody><tr><td>apiKey</td><td>string</td><td></td><td>Your Swapin API Key. <strong>Required</strong></td></tr><tr><td>services</td><td>string</td><td>BUY,SELL</td><td>Comma separated list on available services</td></tr><tr><td>defaultService</td><td>string</td><td>BUY</td><td>The service that is opened by default</td></tr><tr><td>cryptoCurrencyCode</td><td>string</td><td></td><td>The code of the cryptocurrency you want the customer to sell or buy. If you pass a <code>cryptoCurrencyCode</code>, the crypto currency will be selected by default and the customer won't be able to select another crypto currency. The list of <a href="../end-customers-experience/fees-supported-currencies-and-payment-processing-times">supported crypto currencies</a></td></tr><tr><td>defaultCryptoCurrencyCode</td><td>string</td><td>ETH</td><td>The default cryptocurrency will be selected, but the customer will be able to select another crypto currency. The list of <a href="../end-customers-experience/fees-supported-currencies-and-payment-processing-times">supported crypto currencies</a></td></tr><tr><td>cryptoCurrencyList</td><td>string</td><td></td><td>A comma-seperated list of crypto currency codes that are available for customer. <em>Example: USDT.TRC20, USDT.ERC20, ETH, BTC. The list of</em> <a href="../end-customers-experience/fees-supported-currencies-and-payment-processing-times"><em>supported crypto currencies</em></a></td></tr><tr><td>fiatCurrencyCode</td><td>string</td><td></td><td>The code of the fiat currency that is available to receive. The list of <a href="../end-customers-experience/fees-supported-currencies-and-payment-processing-times">supported fiat currencies</a></td></tr><tr><td>fiatAmount</td><td>number</td><td></td><td>A numeric amount customer wants to receive. The customer can't change the fiat amount if this is passed. </td></tr><tr><td>defaultFiatAmount</td><td>number</td><td>500</td><td>A numeric amount customer wants to receive. The customer can change the fiat amount if needed.</td></tr><tr><td>cryptoAmount</td><td>number</td><td></td><td>An amount customer wants to buy or sell. Customers cannot change the crypto amount if this is passed. This parameter will be skipped if <code>cryptoCurrencyCode</code> is not passed.</td></tr><tr><td>defaultCryptoAmount</td><td>Number</td><td></td><td>A numeric amount customer wants to sell or buy. The customer can change the crypto amount if needed. This parameter is ignored if <code>defaultFiatAmount</code> is passed.</td></tr><tr><td>network</td><td>string</td><td></td><td>Blockchain network for service. The customer can not change the network.</td></tr><tr><td>defaultNetwork</td><td>string</td><td></td><td>Default blockchain network for service. The customer can change the network.</td></tr><tr><td>walletAddress</td><td>string</td><td></td><td>The blockchain address where bought crypto is sent. The customer can not change the address.</td></tr><tr><td>defaultWalletAddress</td><td>string</td><td></td><td>Default wallet address that customer can change.</td></tr><tr><td>email</td><td>string</td><td></td><td>The email will be used to identify your customer and their order (usually the email they registered with your app).</td></tr><tr><td>partnerOrderId</td><td>string</td><td></td><td>An order ID will identify the transaction once a webhook is called back to your app. This can be your identifier to track your customers.</td></tr><tr><td>partnerCustomerId</td><td>string</td><td></td><td>A customer ID will identify the customer who made the transaction once a webhook is called back to your app.</td></tr><tr><td>redirectURL</td><td>string</td><td></td><td>Swapin will redirect to this URL once the customer completes their purchase/sell process. Please pass the valid URL or it will not work.</td></tr><tr><td>buyButtonTitle</td><td>string</td><td>Buy crypto</td><td>Title of the buy button</td></tr><tr><td>sellButtonTitle</td><td>string</td><td>Sell crypto</td><td>Title of the sell button</td></tr><tr><td>themeColor</td><td>string</td><td></td><td>The theme color code for the widget main color. It is used for buttons, links and highlighted text. Only hexadecimal codes are accepted. // <strong>Coming soon</strong></td></tr><tr><td>widgetHeight</td><td>number</td><td></td><td>Height of the widget in px // <strong>Coming soon</strong></td></tr><tr><td>widgetWidth</td><td>number</td><td></td><td>Width of the widget in px // <strong>Coming soon</strong></td></tr><tr><td>isFeeCalculationHidden</td><td>boolean</td><td>False</td><td>If the parameter is set to True, the widget calculator will display only the You pay and You get values, without showing the exchange rate or fees.</td></tr></tbody></table>
