Start or estimate a subscription
Creates the first per-seat subscription (collection_method=charge_automatically). With no saved card, returns a Stripe Checkout redirect; with a saved card, creates the subscription and charges the first invoice immediately. The “estimate” action returns pricing only.
Authorizations
JWT authentication token
Body
estimate, checkout month, year Optional cancel redirect for the hosted checkout.
Optional return redirect for the hosted checkout.
Optional success redirect for the hosted checkout.
Checkout UI mode for action=checkout. "hosted" (default) returns a Stripe Checkout redirect url; "embedded" returns a client_secret for Stripe Embedded Checkout rendered inline; "elements" creates an incomplete subscription and returns the PaymentIntent client_secret for a Stripe Payment Element (Elements) rendered inline.
hosted, embedded, elements Response
Subscription estimate, redirect, or charged
estimate, redirect, embedded, elements, charged Client secret for inline payment UI. Embedded Checkout session secret (action=embedded) or the subscription PaymentIntent secret for the Payment Element (action=elements).
Stripe Invoice ID (action=charged)
Stripe Subscription ID (action=elements)
Stripe Checkout URL (action=redirect)

