Create organization billing portal session
Creates a Stripe billing portal session for the active lab organization so owners can update cards and manage subscription billing.
Creates a Stripe billing portal session for the active lab organization so owners can update cards and manage subscription billing.
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/organization/subscription/billing-portal" \ -H "Content-Type: application/json" \ -d '{}'{ "url": "http://example.com"}Create a new organization POST
Create a new lab or clinic organization. The current user becomes the owner. Labs get default treatment phases and steps. Sets the new org as the user's active organization.
Get current organization subscription GET
Returns the latest subscription record for the active lab organization. Read-only and available even when billing is past due.