GET /api/v1/admin/super/orgs/:slug/billing
This page is auto-generated from
src/admin/routes.ts. Do not edit by hand — seedocs/dev/docs-auto-sync.md.
:warning: Heuristic extraction — not a contract. Response shapes below are mined from
c.json(...)literals in the handler via an AST walker. Computed fields, ternaries, and non-literal returns are shown as placeholders. Refer to the linked source file for the authoritative behaviour.
GET /api/v1/admin/super/orgs/:slug/billing
Section titled “GET /api/v1/admin/super/orgs/:slug/billing”Authentication
Section titled “Authentication”No requireCapability middleware detected on this route. Surface-level auth (admin token, dashboard session, org API key, anonymous proxy) is enforced by the parent router — see Source below.
Middleware
Section titled “Middleware”Other middleware observed on this route (heuristic):
requireSuperAdmingetSuperOrgBilling
Description
Section titled “Description”#414 — Super-admin per-org BILLING DETAIL. Stitches tier + seats + 12-month scan-usage history + the last 50 billing events (tier_changed today; seat_addon_* / suspension_* envelopes are forward-compat). Slug → tenant.id resolution inside the handler is the cross-tenant fence — the audit / scan queries are scoped on the resolved id, not the slug.
Responses
Section titled “Responses”No c.json(...) calls detected in the handler. The route may return a non-JSON response (HTML, file stream, redirect), delegate to a named handler defined elsewhere, or build the response object dynamically. Refer to the source file.
Source
Section titled “Source”- File:
src/admin/routes.ts - Line: 366