Create subscription widget token

Server-side endpoint that mints a short-lived single-use widget token for a subscription: the shopper pays amount now and then every period. Call this from your backend; never from the browser. Subscriptions need a Stripe merchant; any other merchant gets a 400.

customer_phone, customer_email and recurring are all required. A missing or blank one is a 422; a malformed phone or invalid recurring terms are a 400. No token is created in either case. The token accepts only this email.

This endpoint takes no customer_registered flag; sending it is a 422.

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

Amount in minor units charged every period, the first included.

string
required
length ≥ 1

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

string
required

The shopper's email. Required: the token accepts only this email, the renewals are billed to it, and renewal emails are sent to it.

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.

recurring
object
required

How often the shopper is charged amount. Stripe merchants only.

Responses

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