Skip to main content

PublicBillingController

Unauthenticated billing endpoints: whether paid plans are on sale, and token-authorised renewal checkouts for expired trials.

Base path/api/public/billing
ModuleBilling & Platform
Endpoints1
OpenAPI tagBilling
Sourcebackend/src/main/java/com/motorph/payroll/controller/PublicBillingController.java

Endpoints​

MethodPathRequiresHandler
GET/api/public/billing/availabilityPublic — no authenticationgetAvailability()

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​

EntityTableTenant-scoped
BillingSubscriptionbilling_subscription—
BillingWebhookEventbilling_webhook_event—
EmployeeemployeeYes
Tenanttenant—

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/.