BillingController
| Base path | /api/billing |
| Module | Billing & Platform |
| Endpoints | 2 |
| OpenAPI tag | Billing |
| Source | backend/src/main/java/com/motorph/payroll/controller/BillingController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/billing/subscription | system.admin.billing.manage | getSubscription() |
POST | /api/billing/checkout | system.admin.billing.manage | createCheckout() |
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
| Entity | Table | Tenant-scoped |
|---|---|---|
| BillingSubscription | billing_subscription | — |
| BillingWebhookEvent | billing_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/.