Skip to main content

BillingController

Base path/api/billing
ModuleBilling & Platform
Endpoints2
OpenAPI tagBilling
Sourcebackend/src/main/java/com/motorph/payroll/controller/BillingController.java

Endpoints​

MethodPathRequiresHandler
GET/api/billing/subscriptionsystem.admin.billing.managegetSubscription()
POST/api/billing/checkoutsystem.admin.billing.managecreateCheckout()

Notes​

  • POST /api/billing/checkout — Returns a checkout URL only.
note

This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 2 of its 2 endpoints inherit it rather than declaring their own.

Call chain​

Dependencies​

Constructor-injected by Lombok's @RequiredArgsConstructor: BillingService.

Tables reached​

EntityTableTenant-scoped
BillingSubscriptionbilling_subscription—
BillingWebhookEventbilling_webhook_event—

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