API Reference

widget configuration

The following parameters can be used to customize the user journey in the widget.

ParameterDescription
apiKey requiredYour publishable API key. This is used to assign customers and transactions to your BlockATM account.
custNoYour customer code, when orderNo is empty, custNo cannot be empty. Note '.' cannot be included.
orderNoYour order code,Your orderNo and custNo cannot be empty at the same time. Note that "." cannot be included.
chainIdWhen a chainId is specified, customers will not be able to view or switch to other chains at the Cashier web.
defaultChainIdYou can specify the chain displayed by default at the Cashier web, but customers can still choose other chains. Note: This field will be invalid when the chainId is specified.
langThe BCP 47 standard language code representing the language the widget should use.

If you pass a code for a language we do not support, the widget will remain in the current default language. This is usually the language of the customer's browser; if we do not offer that language, the widget will use English (en-US).
currencyThe code of the cryptocurrency (e.g., USDT, USDC, DAI,supported-cryptocurrencies ) you want the customer to pay. The customer will not be able to select another currency. To differentiate between networks, use the currency codes listed in the BlockATM Dashboard.
defaultCurrencyThe code of the cryptocurrency you would prefer the customer to pay. The customer can still select another currency.
If both currencyCode and defaultCurrencyCode are passed, currencyCode will take precedence.
You can change the list of stablecoins displayed on the checkout page by accessing the "TOKENS" option in your admin dashboard settings.
amountA positive num representing how much cryptocurrency the customer wants to pay. Best used together with the currency parameters.
redirectURLA URL you'd like to redirect the customer to after they complete the pay flow in the widget. We will append the transaction's ID and status as query parameters to your URL.

BlockATM will add txId={{transactionId}}&status=pending to the redirectURL.
signatureAll query parameter values (not the entire query string) need to be URL encoded before generating the signature in order for it to be valid.you need to enable it in the backend control panel.
minAmountThe minimum payment amount allowed for user input.
This only applies when the amount field is not specified.
maxAmountThe maximum payment amount allowed for user input.
This only applies when the amount field is not specified.