SubscriptionStatusController
The organization's subscription status for the header badge.
| Base path | /api/billing |
| Module | Billing & Platform |
| Endpoints | 1 |
| OpenAPI tag | Billing |
| Source | backend/src/main/java/com/motorph/payroll/controller/SubscriptionStatusController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/billing/status | @platformAccess.erpTenantOf(authentication) != null — any authenticated user | getStatus() |
Notes
GET /api/billing/status— Any tenant member; never a platform operator or a portal customer, who belong to no tenant.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: SubscriptionStatusService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| BillingSubscription | billing_subscription | — |
| Tenant | tenant | — |
Generated page
This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.