Get Subscription
An org’s per-product entitlement state plus month-to-date usage.
Entitlement state is dunning-ladder normalized (_normalize_entitlement_state, app/core/deps.py) rather than the raw DB value, so this endpoint can never show a stale trial/grace row that the sweep job (entitlement_sweep.py) hasn’t persisted yet — same posture as RequireEntitlement.
Usage covers every (product, meter) with at least one
organization_usage_counters row this UTC calendar month; limit is the
trial monthly ceiling (app/config.py’s billing_trial_* settings, via
ingest_gate._trial_limit — the exact function the ingest gate itself
enforces against) when the product is currently in trial state, and
None/omitted otherwise — a paid org has no hard ceiling on that meter,
only a billed overage.
Authorizations
Parameters
Query Parameters
Responses
200
Successful Response
GET /api/billing/subscription — org-scoped entitlement + usage summary.
object
422
Validation Error