Stripe (public)

Create Website Checkout

Changed on

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

  • Base URL
    https://api.premierecopilot.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.premierecopilot.com/api/billing/website/checkout
  • Auth
    none declared

Request body

subscription_typeinteger required

1=PRO, 2=CREATOR, 4=PODCAST, 5=CREDITS (coffee trial: authenticated /create-checkout-session only)

billingstring

'monthly', 'semester' (6-month commitment billed monthly) or 'annual'. Only applies to subscription_type 1 and 2.

langstring nullable

Interface language (en, fr, de, es, pt, ja, ko, hi).

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