Create widget token

Server-side endpoint that mints a short-lived single-use widget token bound to one merchant, order, amount, and currency. Call this from your backend; never from the browser.

FieldTypeRequiredDescription
amountnumberYesAmount in minor units.
currencystringYes3-letter ISO currency code, shown lowercase for consistency. The API normalizes casing.
order_idstringYesMerchant order identifier bound to this token.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required
string
required
length ≥ 1
string
required
length ≥ 1
Responses

Language
Credentials
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json