Swap parameters
🔧 Swap widget configuration
The following parameters can be used to customize the user journey in the widget.
Parameter | Description |
---|---|
apiKey required | Your publishable API key. This is used to assign customers and transactions to your MoonPay account. |
amount required | The amount the customer wishes to swap - in fiat. You can get this amount by multiplying the amounts you get back from the Swap quote endpoint: baseCurrencyPriceInUsd * baseCurrencyAmount . |
amountCurrencyCode required | The fiat currency code of the amount parameter, usually usd. |
externalCustomerId | An identifier you would like to associate with the customer. This identifier will be present whenever we pass you customer data, allowing you to match our data with your own existing customer data. |
theme | Enable dark mode or light mode as the default appearance for the widget. Possible values are dark, light. |
themeId | ID of the theme created for your application or website. See Themes page. |
Updated 11 months ago