Audience: frontend + integration engineers. Companion: technical.md, requests/api-reference.md.
All
[Authorize]. Leave requests share the Requests controllers; this page maps the leave/holiday/absence surface.
| Base route | Owns |
|---|---|
Employee/Requests (24) |
Raise/list own leave requests |
Admin/Requests (81) |
Leave policies + admin leave actions + review; per-type selects (SelectLeaveRequests, leave balances) |
Admin/Paid_Holidays |
Paid/public holidays CRUD |
Raise/approve via the Requests engine — ReviewEmployeeRequest finalises and deducts balance. See requests/api-reference §2–3.
Leave-policy CRUD (+ per-member items, perks) via Admin/Requests policy endpoints. Concrete surface used by the frontend:
| Endpoint | Verb | Purpose |
|---|---|---|
admin/requests/add_leavepolicy |
POST | Create a policy. Body = array of items (one per payband/paygrade/group), each with entitlement fields + starting_balances: [{ person_id, starting_balance, leave_perk_id? }]. |
admin/requests/update_leavepolicy?id=<leave_policy_id> |
POST | Edit a policy (same body shape). starting_balances values are pre-filled from current balances, so an untouched save round-trips; a changed value overwrites that employee's EmployeeLeaveBalance. |
admin/requests/view/leaves?id=edit&x=<key> |
GET | Load a policy for editing (id=policy for the read view). |
admin/employees/getleavepolicyitememployees |
POST | Employees in the selected members (feeds the Balances step). Body: `policy_type_id, leave_policy_id, gender_id, policy_group_id_list \ |
admin/employees/selectleavebalances?person_id=<id> |
GET | An employee's per-policy balances (profile Leave Balances tab). |
admin/requests/update_leavebalance |
POST | Ad-hoc single-employee adjust. Body: [{ employee_leave_balance_id, current_balance }]. |
admin/requests/getLeaveBalance?person_id=&leave_policy_id= |
GET | Live balance/waiting/notice/perk check when raising a request. |
commonutils/getpaybands |
GET | Paybands list for the Members step. |
Balances also read from EmployeeLeaveBalance / views; the Leave Balance Report via the reporting endpoints (report/leave-balances, admin/reports/view/generate?id=leave_balances, Summaries/LeaveBalances).
Admin/Paid_Holidays + holiday reads (HolidayService, Paid_HolidaysService, PublicHoliday).
Absence review via the approval endpoints (approval/absence); EmployeeAbsence(+Review, +Batch).
Integration/Leave/RequestNotification — inbound leave from external HRIS (people/hris-integrations).
For exact signatures, open
Api/Controllers/{Admin,Employee}/RequestsController.csandAdmin/Paid_HolidaysController.cs.