API — Payroll¶
The HTTP surface of the monthly pay run and everything that feeds it — timesheets and leave,
advances and loans, and overtime. TimesheetController is much larger than PayrollController
because the whole leave subsystem lives on it.
See Payroll module, Payroll flow and Leave Management.
97 actions across 4 controllers
Routing, the permission model, response kinds and error behaviour are described
once in the API Overview. Unless a row says otherwise the route is
/{Controller}/{Action}, id is a GUID string, and a Details page is a
full View while Manage* / Create fragments are PartialViews loaded into a modal.
PayrollController¶
The monthly payroll run — generation, the per-employee detail lines, the Allocator → Finance Manager → Country Director chain, and the bank-transfer exports.
Source: NKO.Main/NKO.Main/Controllers/PayrollController.cs · route prefix: /Payroll · 18 actions · 0 ungated
| Route | Verb | Parameters | Permission | Returns |
|---|---|---|---|---|
/ |
POST | string id, int operation, int user, string id, decimal? Exchange |
Payroll |
Redirect |
/ |
GET | — | Payroll |
View |
/ |
POST | Payroll model |
Payroll |
View / JSON |
/ |
GET | string id, int? filter, int? pdf, string msg, int? page, int? user, int? department, int? position, int? sub, int? project, string sort |
Payroll |
View |
/ |
GET | string id, int? pdf |
Payroll |
Redirect |
/ |
GET | string id, int? filter, int? user, int? department, int? position, int? sub, int? project, string sort |
Payroll |
Redirect |
/ |
GET | string id |
Payroll |
Redirect |
/ |
GET | — | Payroll |
View |
/ |
POST | int month, int year |
Payroll |
View |
/ |
GET | string search |
Get |
JSON |
/ |
GET | string sort, int? page, int? status |
Payroll |
View |
/ |
GET | string payroll, int user, string side, int month, int year |
Allocations |
JSON |
/ |
GET | string payroll, string search |
Payroll |
JSON |
/ |
GET | string id |
Payroll |
Redirect |
/ |
GET | — | Payroll |
View |
/ |
POST | Partners, IForm |
Payroll |
View |
/ |
GET | string id |
Payroll |
View |
/ |
POST | Payroll model, IForm |
Payroll |
View |
TimesheetController¶
Timesheets and the whole leave subsystem: leave requests, balances, the Manager → HR (→ GM) chain, and the attendance-linked exports.
Source: NKO.Main/NKO.Main/Controllers/TimesheetController.cs · route prefix: /Timesheet · 52 actions · 0 ungated
| Route | Verb | Parameters | Permission | Returns |
|---|---|---|---|---|
/ |
POST | int id, int type |
Timesheet |
JSON |
/ |
GET | List<, List< |
Timesheet |
View |
/ |
GET | string id, string msg |
Timesheet |
View / Redirect |
/ |
POST | Leave model |
Timesheet |
View / Redirect |
/ |
POST | string id, int operation, int user, string id, int? Cash |
Timesheet |
Redirect |
/ |
GET | — | Timesheet |
View |
/ |
POST | Timesheet model |
Timesheet |
View / Redirect |
/ |
GET | string id, int? file |
Timesheet |
PartialView |
/ |
POST | string attached, string Description, string id, int? File |
Timesheet |
JSON |
/ |
GET | int? absent, bool? Is, int? day, int? month, int? year, string From, string To, bool? all, int? delay |
Timesheet |
View |
/ |
POST | Leave model, Date, string from, string to |
Timesheet |
View / Redirect |
/ |
GET | — | User |
View |
/ |
POST | Leave |
User |
View / JSON |
/ |
GET | — | Timesheet |
PartialView |
/ |
POST | Partners |
Timesheet |
PartialView / JSON |
/ |
GET | string id |
Timesheet |
PartialView / Redirect |
/ |
POST | Timesheet timesheet |
Timesheet |
JSON / Redirect |
/ |
GET | string id |
Timesheet |
Redirect |
/ |
POST | int id |
Timesheet |
JSON |
/ |
GET | string id |
Timesheet |
PartialView / Redirect |
/ |
POST | Leave leave |
Timesheet |
JSON / Redirect |
/ |
GET | string id, int? pdf, string msg |
Timesheet |
View / Redirect |
/ |
POST | Timesheet model |
Timesheet |
Redirect |
/ |
POST | Timesheet model |
Timesheet |
Redirect |
/ |
GET | string id, string msg |
Timesheet |
View |
/ |
POST | Leave model, Date, string from, string to |
Timesheet |
View / Redirect |
/ |
GET | int? month, int? year, int? status |
User |
Redirect |
/ |
GET | — | Timesheet |
View |
/ |
POST | int month, int year |
Human |
View |
/ |
GET | int? id |
Timesheet |
View |
/ |
POST | int? project, int? month, bool is |
Timesheet |
View |
/ |
GET | — | User |
Redirect |
/ |
GET | int leave |
Timesheet |
JSON |
/ |
GET | int user, int leave, bool is, bool is |
Timesheet |
JSON |
/ |
GET | bool is |
Timesheet |
JSON |
/ |
GET | string start, int count |
Timesheet |
JSON |
/ |
GET | string search |
Project |
JSON |
/ |
GET | — | User |
View |
/ |
POST | Leave, bool replace, IForm |
User |
View |
/ |
GET | — | User |
View |
/ |
POST | Leave, bool replace, IForm |
User |
View |
/ |
GET | int? filter, int? filter, int? status, int? page, string sort, int? user |
Timesheet |
View |
/ |
POST | string id, int operation, int user, string id, string id, int substitute, string PIN |
Timesheet |
Redirect / Forbid |
/ |
GET | string id |
Timesheet |
Redirect |
/ |
GET | string id, string msg, int? pdf |
Timesheet |
View / Redirect |
/ |
GET | string search, string sort, int? filter, string search, string current, string Scurrent, int? filter, int? filter, Date, int? page, int? filter, int? user, int? waiting, int? filter |
Timesheet |
View |
/ |
GET | int? filter, int? filter, int? page |
Timesheet |
View |
/ |
GET | int? id |
Timesheet |
PartialView |
/ |
GET | — | Timesheet |
View |
/ |
POST | Partners, bool replace, IForm |
Timesheet |
View |
/ |
GET | — | Timesheet |
View |
/ |
POST | int id, string desc |
Timesheet |
JSON |
AdvanceController¶
Advance and loan requests, their repayment schedule, and the Ordinary / Emergency cash boxes.
Source: NKO.Main/NKO.Main/Controllers/AdvanceController .cs · route prefix: /Advance · 13 actions · 0 ungated
| Route | Verb | Parameters | Permission | Returns |
|---|---|---|---|---|
/ |
GET | string id |
Advance |
Redirect |
/ |
GET | int? page, int? filter, bool? is, string sort |
Advance |
View |
/ |
GET | string id |
Advance |
View / Redirect |
/ |
POST | App |
Advance |
View / Redirect |
/ |
POST | string id, int operation, int user, string id, string id, string PIN, List< |
Advance |
Redirect / Forbid |
/ |
GET | string id |
Advance |
PartialView / Redirect |
/ |
POST | App |
Advance |
JSON / Redirect |
/ |
GET | string id, int? filter, int? pdf, string msg, int? page |
Advance |
View |
/ |
GET | string search, string sort, int? filter, string search, string current, string Scurrent, int? filter, int? filter, int? page, bool? is, int? user, int? filter |
Advance |
View |
/ |
GET | string id |
Advance |
View |
/ |
POST | App |
Advance |
View / Redirect |
/ |
GET | string id |
Advance |
PartialView / Redirect |
/ |
POST | App |
Advance |
JSON |
OvertimeController¶
Overtime requests, the hour/amount calculation and the approval chain.
Source: NKO.Main/NKO.Main/Controllers/OvertimeController.cs · route prefix: /Overtime · 14 actions · 0 ungated
| Route | Verb | Parameters | Permission | Returns |
|---|---|---|---|---|
/ |
GET | string id |
Overtime |
View |
/ |
POST | App, bool Is |
Overtime |
View / Redirect |
/ |
POST | string id, int operation, int user, string id, string id, bool Is, decimal? Fin, string PIN |
Overtime |
Redirect / Forbid |
/ |
GET | string id |
Overtime |
View |
/ |
POST | App, List< |
Overtime |
View / Redirect |
/ |
GET | string id |
Overtime |
PartialView / Redirect |
/ |
POST | App |
Overtime |
JSON / Redirect |
/ |
GET | string id, int? filter, int? pdf, string msg, int? page |
Overtime |
View |
/ |
GET | string id |
Overtime |
View |
/ |
POST | App, bool Is |
Overtime |
View / Redirect |
/ |
GET | string id |
Overtime |
JSON |
/ |
GET | Overtime |
Overtime |
View |
/ |
GET | string id |
Overtime |
Redirect |
/ |
POST | int id, string desc |
Overtime |
JSON |
Related¶
- Payroll module
- Payroll flow
- Leave Management
- Payroll database
- API Overview — routing, auth, responses and error behaviour.