Stripe (public)

Create Website Checkout

Anonymous Stripe Checkout. No auth header required.

Returns a Stripe-hosted checkout URL the frontend redirects to. Stripe collects the email at the checkout form. On success the user lands on /thank-you?session_id=cs_xxx which decides whether to show a sign-in or a create-account flow.

post/api/billing/website/checkout

Request body

subscription_typeinteger required

1=PRO, 2=CREATOR, 4=PODCAST, 5=CREDITS

billingstring

'monthly' or 'annual'. Only applies to subscription_type 1 and 2.

prefill_emailstring email nullable
cancel_urlstring nullable

Where Stripe sends the visitor after a cancel.

success_urlstring nullable

Where Stripe sends the visitor after success. May contain {CHECKOUT_SESSION_ID}.

Response

Successful Response

urlstring required
session_idstring required

Changes

No recorded changes to this endpoint across all 1 revision of this API.