PublicSignupController
Lets a company create its own workspace, with no operator involved -- in two calls, with proof of the email address in between.
| Base path | /api/public/signup |
| Module | Billing & Platform |
| Endpoints | 2 |
| OpenAPI tag | Self-serve signup |
| Source | backend/src/main/java/com/motorph/payroll/controller/PublicSignupController.java |
Endpoints
| Method | Path | Requires | Handler |
|---|---|---|---|
POST | /api/public/signup | Public — no authentication | signUp() |
POST | /api/public/signup/verify | Public — no authentication | verify() |
Notes
POST /api/public/signup— 202, not 201: nothing has been created, something is now pending -- which is exactly what accepted-for-processing means.POST /api/public/signup/verify— Provisioning runs inline and takes a few seconds: it seeds roles, settings, reference data and two years of holidays across three transactions.
Call chain
10 of 15 reachable repositories shown.
Dependencies
Constructor-injected by Lombok's @RequiredArgsConstructor: SelfServeSignupService.
Tables reached
| Entity | Table | Tenant-scoped |
|---|---|---|
| CompanyProfile | company_profile | Yes |
| CrmPicklistItem | crm_picklist_item | Yes |
| CrmSettings | crm_settings | Yes |
| DeductionType | deduction_types | Yes |
| DeMinimisBenefitType | de_minimis_benefit_types | Yes |
| Department | department | Yes |
| LeaveRequestType | leave_request_type | Yes |
| PayrollSettings | payroll_settings | Yes |
| Permission | permission | — |
| PhHoliday | ph_holidays | Yes |
| Position | position | Yes |
| Role | role | — |
| Tenant | tenant | — |
| User | users | — |
| UserLog | user_log | — |
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/.