View the current tenant’s active subscription plan and billing details.
admin
Bearer <your-jwt>.200 OK.
| Field | Type | Description |
|---|---|---|
subscriptionId | string | Unique subscription identifier |
planId | string | Active plan ID |
status | string | One of: active, past_due, canceled, trialing |
currentPeriodStart | string | Start of the current billing period |
currentPeriodEnd | string | End of the current billing period |
cancelAtPeriodEnd | boolean | true if subscription will not renew |
usage.investigationsUsed | integer | Investigations consumed this period |
usage.investigationsLimit | integer | Monthly investigation quota |
PATCH to /v1/billing/subscription:
| Status | Error code | Description |
|---|---|---|
401 | unauthorized | Missing or invalid JWT |
403 | forbidden | Caller lacks admin role |
404 | no_subscription | Tenant has no active subscription |