Get current organization subscription
Returns the latest subscription record for the active lab organization. Read-only and available even when billing is past due.
Returns the latest subscription record for the active lab organization. Read-only and available even when billing is past due.
__Secure-guidelab-prod.session_token<token>
Production session cookie set for the guidelab.co domain by Better Auth
In: cookie
Response Body
application/json
curl -X GET "https://example.com/organization/subscription"{ "subscription": { "id": "string", "plan": "string", "status": "string", "periodStart": "string", "periodEnd": "string", "cancelAtPeriodEnd": true, "seats": 0, "trialStart": "string", "trialEnd": "string", "hasBillingCustomer": true, "billingInterval": "string", "billingCurrency": "string", "catalogVersion": "string", "storageAddOnUnits": 0, "pastDueAt": "string", "pastDueGraceEndsAt": "string", "pendingStorageAddOnUnits": 0, "pendingStorageAddOnAt": "string", "pendingPlan": "base", "pendingPlanBillingInterval": "month", "pendingPlanAt": "string", "usage": { "cases": { "windowStart": "string", "windowEnd": "string", "used": 0, "included": 0, "alert": "normal", "nonBlocking": true }, "storage": { "usedBytes": 0, "includedBytes": 0, "addOnBytes": 0, "alert": "normal", "nonBlocking": true } } }}Empty
Empty
Create organization billing portal session POST
Creates a Stripe billing portal session for the active lab organization so owners can update cards and manage subscription billing.
Get the organization's active join code GET
Returns the current active shareable join code for the organization, or null if none exists. Owners and admins only.