POST/organizations/{organizationId}/billing/stripe/checkout
Create a Stripe checkout
Operation organizations.billing.stripe.checkout.create
Description
Starts or resumes an inline Stripe checkout and returns the client secret for Stripe's Payment Element. Only organization administrators may call it, and the seat count comes from the roster, not the client. Identical retries reuse the same attempt; a different buyer, mode, or seat count while one is open returns 409.
Authentication
Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.
Parameters
| Name | In | Type | Details |
|---|---|---|---|
organizationId | path | string | required
|
Responses
200 OK
application/jsonStripeCheckoutIntentResponse
What Stripe's Payment Element needs to confirm one subscription purchase.
2 fields
subscriptionIdstringrequired- not empty
clientSecretstringrequired- not empty
Stripe PaymentIntent client secret; pass it only to Stripe.js.
Other fields are allowed.
Other responses
| Status | Meaning | Body |
|---|---|---|
| 400 | Bad Request |
|
| 401 | Unauthorized |
|
| 403 | Forbidden |
|
| 404 | Not Found |
|
| 409 | Conflict |
|
| 500 | Internal Server Error |
|
| 502 | Bad Gateway |
|
| 503 | Service Unavailable |
|