Skip to main content

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
ModuleBilling & Platform
Endpoints2
OpenAPI tagSelf-serve signup
Sourcebackend/src/main/java/com/motorph/payroll/controller/PublicSignupController.java

Endpoints​

MethodPathRequiresHandler
POST/api/public/signupPublic — no authenticationsignUp()
POST/api/public/signup/verifyPublic — no authenticationverify()

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​

EntityTableTenant-scoped
CompanyProfilecompany_profileYes
CrmPicklistItemcrm_picklist_itemYes
CrmSettingscrm_settingsYes
DeductionTypededuction_typesYes
DeMinimisBenefitTypede_minimis_benefit_typesYes
DepartmentdepartmentYes
LeaveRequestTypeleave_request_typeYes
PayrollSettingspayroll_settingsYes
Permissionpermission—
PhHolidayph_holidaysYes
PositionpositionYes
Rolerole—
Tenanttenant—
Userusers—
UserLoguser_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/.