Create widget token (v2)

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

customer_phone is required and identifies the shopper's wallet. A missing or blank phone is a 422, and a malformed one is a 400; no token is created either way. customer_email is optional: when you send it, the token accepts only this email.

This endpoint takes no recurring terms and no customer_registered flag; sending either is a 422. For a subscription, use Create subscription widget token, POST /api/v2/checkout/subscription/init. Registered customers still mint with the deprecated POST /api/v1/checkout/init.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
integer
required

Amount in minor units, e.g. 4999 for £49.99.

string
required
length ≥ 1

3-letter ISO currency code, e.g. gbp. Any casing is accepted.

The shopper's email. When sent, the token accepts only this email. When omitted, POST /api/v1/checkout/lookup binds the first email it receives; POST /api/v2/checkout/lookup binds none.

string
required

The shopper's mobile number in E.164 (or UK 07…), normalised and bound to the token. Required. For a mobile in a supported country, the checkout lets the shopper unlock and save cards after an SMS one-time code sent to this number; any other well-formed number gives a guest checkout. The shopper cannot change it in the widget. A malformed number is rejected with 400.

string
required
length ≥ 1

Your order identifier, bound to the token.

Responses

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