Capacity (Seats)
Proration Checkout
Create a checkout session for a mid-cycle seat upgrade with proration.
POST
When a tenant needs more seats mid-billing cycle, this endpoint calculates the prorated charge for the remaining days and creates a Stripe checkout session for that amount.
The actual capacity upgrade happens after payment confirmation via the Stripe webhook (
event_type: seat_proration). For non-Stripe providers (Khalti, eSewa), an invoice is generated instead.
Request Body
The external tenant/workspace ID from your application
The new total seat count (must be greater than current
capacityUnits)The plan ID to upgrade. Defaults to the tenant’s current active plan.
URL to redirect to after payment. Defaults to the org’s configured success URL.
URL to redirect to if the user cancels. Defaults to the org’s configured cancel URL.
Authentication
Requires a secret key (Authorization: Bearer sk_live_...) or service key (x-service-key + ?orgId=).