Start a checkout session
Billing
Start a checkout session
Starts a subscription upgrade by creating a checkout session for the named plan and returns a hosted checkout URL to redirect the customer to. Workspace admin only. The plan_slug must reference an active plan that has a configured price (otherwise 400); the actual plan provisioning happens asynchronously once payment completes. Returns 503 if billing is not configured.
POST
Start a checkout session
Returns a Stripe redirect URL
This doesn’t change the subscription directly — it creates a Stripe Checkout session and returns{ "url": "https://checkout.stripe.com/..." }. Redirect the customer to that URL to complete payment. The new plan is provisioned asynchronously after Stripe confirms payment, so it appears shortly afterward, not in this response. Admin only; returns 503 if billing isn’t configured.