Legacy subscription model, replaced by POST /billing/setup-session. Creates a Stripe customer session for the pricing table, creating the organization's Stripe customer first when needed, and returns its client secret and expiry. Requires an org admin, owner or billing role; returns 409 when the organization is billed per case and 400 when it already has an active subscription.
POST
/payments/customer-session
curl \
--request POST 'http://api.example.com/payments/customer-session' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "organization: string"
Response examples (201)
{
"data": {
"clientSecret": "cuss_secret_Example",
"createdAt": "2026-01-15T10:15:00.000Z",
"expiresAt": "2026-01-15T10:45:00.000Z"
},
"statusCode": 201,
"timestamp": "2026-01-15T10:15:00.000Z"
}