EntitlementController
The caller's organization's module access.
| Base path | — (paths declared per handler) |
| Module | Billing & Platform |
| Endpoints | 2 |
| OpenAPI tag | Entitlements |
| Source | backend/src/main/java/com/motorph/payroll/controller/EntitlementController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/entitlements | @platformAccess.erpTenantOf(authentication) != null — any authenticated user | getEntitlements() |
GET | /api/billing/subscription-changes | system.admin.billing.manage | getSubscriptionChanges() |
Notes
GET /api/billing/subscription-changes— Why module access changed: plan changes, add-ons, access mode.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: EntitlementService, EntitlementAdminService.
Tables reached
None through a Spring Data repository — this controller is stateless, or its work is delegated to a component that reaches storage another way.
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/.