Create a Stripe subscription for the organization's customer
POST/stripe/subscriptions
Creates a Stripe Subscription for the supplied customerId against one or more prices, tagging it with metadata.organization_id. Requires the manageBilling ability.
NOTE ON BODY SHAPE: the platform validator (subscription_creation) expects { customerId, items: [{ priceId, discounts? }], allowDoubleSubscriptions? }. The LDS client (lib/platform/client.ts createStripeSubscription) currently sends the flattened { customerId, priceId }. Both forms are documented below — items[] is the platform-authoritative shape; the flat priceId is shown as the LDS convenience form. When allowDoubleSubscriptions is false, the platform rejects a price already present on an active subscription (STRIPE_DUPLICATE_SUBSCRIPTION_ITEM).
Request
Responses
- 200
- 401
- 404
- 409
- 422
The created Stripe subscription.
Authentication required
Resource not found
A subscription item with the same price already exists and allowDoubleSubscriptions is false (STRIPE_DUPLICATE_SUBSCRIPTION_ITEM).
Validation failed