🔵 POST - Billing Portal
Create Billing Portal
Create a Stripe Customer Portal session for subscription management
POST
Creates a Stripe Customer Portal session where users can manage their subscription, update payment methods, and view invoices.
Authentication Required: This endpoint requires a Clerk JWT token with
organization context. The organization is determined from the
org_id claim
in the token.Request Headers
Bearer token with organization context:
Bearer {clerk_jwt_token}Request Body
URL to redirect back to after leaving the portal
Response
The Stripe Customer Portal URL - redirect the user here
Errors
| Status | Description |
|---|---|
| 401 | Missing or invalid authentication token |
| 401 | No organization context in token |
| 400 | No Stripe customer linked to this organization |
| 404 | Organization not found |
| 500 | Stripe API error |