Create Workspace Org Checkout
Create a self-serve Stripe Checkout session to put THIS ORGANIZATION on a paid plan (card).
Workspace-**admin** only (403 otherwise), and only for an **org** workspace (400 for a personal
one — personal billing uses ``/billing/checkout``). The org's own Stripe Customer + subscription
are used; returns 409 if the org already has an active subscription OR a staff-assigned plan.
Enterprise (CUSTOM) plans are staff-assigned/invoice-billed, not self-serve — the two paths coexist.
``coupon_code`` is not supported for org checkout and is **rejected with 422** if supplied (never
silently dropped). Membership is existence-hidden: a non-member gets 404, not 403.
Authentication
AuthorizationBearer
Clerk JWT token
Path parameters
workspace_id
Request
This endpoint expects an object.
plan_price_id
return_url
coupon_code
Response
Successful Response
data
meta
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error

