PublicBillingController
Unauthenticated billing endpoints: whether paid plans are on sale, and token-authorised renewal checkouts for expired trials.
| Base path | /api/public/billing |
| Module | Billing & Platform |
| Endpoints | 1 |
| OpenAPI tag | Billing |
| Source | backend/src/main/java/com/motorph/payroll/controller/PublicBillingController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/public/billing/availability | Public — no authentication | getAvailability() |
Notes
GET /api/public/billing/availability— Whether paid plans can be bought right now; the frontend's Early Access copy keys off it.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: BillingProperties, TrialRenewalService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| BillingSubscription | billing_subscription | — |
| BillingWebhookEvent | billing_webhook_event | — |
| Employee | employee | Yes |
| 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/.