WithholdingTaxBracketController
The withholding tax rate tables.
| Base path | /api/withholding-tax-brackets |
| Module | PH Statutory |
| Endpoints | 8 |
| OpenAPI tag | Withholding Tax Brackets |
| Source | backend/src/main/java/com/motorph/payroll/controller/WithholdingTaxBracketController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
GET | /api/withholding-tax-brackets | payroll.withholdingtax.rates.manage | list() |
GET | /api/withholding-tax-brackets/{id} | payroll.withholdingtax.rates.manage | getById() |
POST | /api/withholding-tax-brackets | Any authenticated user | create() |
PUT | /api/withholding-tax-brackets/{id} | Any authenticated user | update() |
DELETE | /api/withholding-tax-brackets/{id} | Any authenticated user | delete() |
GET | /api/withholding-tax-brackets/effective-dates | payroll.withholdingtax.rates.manage | listEffectiveDates() |
POST | /api/withholding-tax-brackets/cohorts/duplicate | Any authenticated user | duplicateCohort() |
PUT | /api/withholding-tax-brackets/cohorts | Any authenticated user | replaceCohort() |
note
This controller carries one @PreAuthorize on the class, which Spring applies to every handler. 3 of its 8 endpoints inherit it rather than declaring their own.
Call chain
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: WithholdingTaxBracketService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| WithholdingTaxBracket | withholding_tax_brackets | — |
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/.