Leave, work from home and holidays
Plan section 2.4 · Screens S30–S36. Missed-punch requests are on the Attendance page; overtime and the other types are on Other applications.
All application types work the same way: list (POST GetAll… with the filter object), create/edit (POST CreateOrUpdate…, id: null creates), view (GET …?id=), delete while pending. Create/edit/approve rules: Server rules.
Apply-leave flow (S32)
- Leave types and leave balance for the balance strip and the type picker.
- Approver: the employee's leader is
approverIdinEmployee/GetEmployeeWithCode. If the tenant settingisLockApproverSelectionis on, show it read-only; otherwise allow picking fromEmployee/GetAllApprovableEmployees. - Save the leave with status
0. - Refresh my leave list and the balance.
My leave applications
/api/LeaveApplication/GetAllLeaveApplicationsLeave applications in a date range. For a team leader the list includes the team's applications too (server rules); for "My requests" keep only rows where employee.id is the signed-in employee. Use the Approvals inbox for the team.
applicationStatus:-1/nullall,0Pending,1Approved,2Rejected.fromDate/toDatefilter by the leave dates (null= no limit). There is no paging, so always send a range.requestDaysis computed by the server (half days possible).leaveStatusTypeis the status as text;leaveStatusis the number.
Request
JSON body:
| Field (JSON name) | Type |
|---|---|
tenantId | integer | null |
id | integer | null |
employeeCode | integer | null |
employeeIds | integer[] |
companyIds | integer[] |
mobileNo | string |
fromDate | string (date-time) | null |
toDate | string (date-time) | null |
fromMonth | string |
toMonth | string |
gender | string |
branchIds | integer[] |
departmentIds | integer[] |
designationIds | integer[] |
approverIds | integer[] |
employeeStatus | integer | null |
applicationStatus | integer | null |
locationIds | integer[] |
employee_Type | integer | null |
financialYear | string[] |
slabTypeId | integer[] |
itMethodId | integer[] |
categoryId | integer | null |
location | string | null |
isAssign | boolean | null |
joinDate | string | null |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/LeaveApplication/GetAllLeaveApplications" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-10-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": -1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}'
const body: TransactionApplicationDto = {
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-10-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": -1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { TransactionApplicationDto } from './types'; // request DTO
const data = await api.post<LeaveApplicationDto[]>('LeaveApplication/GetAllLeaveApplications', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-10-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": -1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}
Response
HTTP 200 with the standard envelope. responseData is LeaveApplicationDto[].
An array of LeaveApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
leaveRequestDate | string (date-time) |
leaveType | LeaveDto |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
leaveReason | string |
requestDays | number |
leaveStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
leaveStatusType | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"leaveRequestDate": "2026-11-23T00:00:00",
"leaveType": {
"id": 1045,
"leaveName": "Casual Leave",
"shortCode": "string",
"leaveMaxMinutes": 1,
"isActive": true,
"isPaid": true,
"monthlyEarn": 1,
"isShowBalance": false,
"maxCarryForward": 1,
"isEncashLeave": false,
"yearlyEarn": 1,
"isForContract": false
},
"fromDateTime": "2026-12-01T00:00:00",
"toDateTime": "2026-12-02T00:00:00",
"leaveReason": "Forgot to punch out, left at 6:45 PM",
"requestDays": 2,
"leaveStatus": 0,
"leaveStatusType": "string"
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
Source: HRMS.WebAPI/Controllers/LeaveApplicationController.cs → LeaveApplicationService.GetAllLeaveApplications · returns LeaveApplicationDto[]
Leave detail
/api/LeaveApplication/GetLeaveApplicationOne leave application by id (query string). Own and team records only.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/LeaveApplication/GetLeaveApplication?id=1045" \
-H "Authorization: Bearer $TOKEN"
const id = 1045;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<LeaveApplicationDto>('LeaveApplication/GetLeaveApplication', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is LeaveApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
leaveRequestDate | string (date-time) |
leaveType | LeaveDto |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
leaveReason | string |
requestDays | number |
leaveStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
leaveStatusType | string |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"leaveRequestDate": "2026-11-23T00:00:00",
"leaveType": {
"id": 1045,
"leaveName": "Casual Leave",
"shortCode": "string",
"leaveMaxMinutes": 1,
"isActive": true,
"isPaid": true,
"monthlyEarn": 1,
"isShowBalance": false,
"maxCarryForward": 1,
"isEncashLeave": false,
"yearlyEarn": 1,
"isForContract": false
},
"fromDateTime": "2026-12-01T00:00:00",
"toDateTime": "2026-12-02T00:00:00",
"leaveReason": "Forgot to punch out, left at 6:45 PM",
"requestDays": 2,
"leaveStatus": 0,
"leaveStatusType": "string"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
On these errors responseData is null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/LeaveApplicationController.cs → LeaveApplicationService.GetLeaveApplicationById · returns LeaveApplicationDto
Apply or edit leave
/api/LeaveApplication/CreateOrUpdateLeaveApplicationid: nullapplies; an existingidedits (or resubmits) it.fromDateTime/toDateTimeare date-times, so half days are possible (for example 09:30 to 13:30). Send IST wall-clock time without an offset.leaveStatus: always0from the app.approverId: the approver's employee id (see the flow above).- The server computes
requestDaysand does not check the balance (that check is commented out in the service). Warn the user in the app when the request exceeds the balance (S32 "0.5 day will be unpaid"). - Overlapping a non-rejected leave:
Leave Application already exist!
Request
JSON body:
CreateOrUpdateLeaveApplicationDto
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
approverId | integer | null |
leaveTypeId | integer |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
leaveReason | string |
leaveStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/LeaveApplication/CreateOrUpdateLeaveApplication" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"employeeId": 142,
"approverId": 96,
"leaveTypeId": 3,
"fromDateTime": "2026-12-01T09:30:00",
"toDateTime": "2026-12-02T18:30:00",
"leaveReason": "Cousin'\''s engagement in Vadodara",
"leaveStatus": 0
}'
const body: CreateOrUpdateLeaveApplicationDto = {
"id": null,
"employeeId": 142,
"approverId": 96,
"leaveTypeId": 3,
"fromDateTime": "2026-12-01T09:30:00",
"toDateTime": "2026-12-02T18:30:00",
"leaveReason": "Cousin's engagement in Vadodara",
"leaveStatus": 0
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateLeaveApplicationDto } from './types'; // request DTO
const data = await api.post<LeaveApplicationDto>('LeaveApplication/CreateOrUpdateLeaveApplication', body);
{
"id": null,
"employeeId": 142,
"approverId": 96,
"leaveTypeId": 3,
"fromDateTime": "2026-12-01T09:30:00",
"toDateTime": "2026-12-02T18:30:00",
"leaveReason": "Cousin's engagement in Vadodara",
"leaveStatus": 0
}
Response
HTTP 200 with the standard envelope. responseData is LeaveApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
leaveRequestDate | string (date-time) |
leaveType | LeaveDto |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
leaveReason | string |
requestDays | number |
leaveStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
leaveStatusType | string |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1052,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"leaveRequestDate": "2026-11-23T00:00:00",
"leaveType": {
"id": 1045,
"leaveName": "Casual Leave",
"shortCode": "string",
"leaveMaxMinutes": 1,
"isActive": true,
"isPaid": true,
"monthlyEarn": 1,
"isShowBalance": false,
"maxCarryForward": 1,
"isEncashLeave": false,
"yearlyEarn": 1,
"isForContract": false
},
"fromDateTime": "2026-12-01T00:00:00",
"toDateTime": "2026-12-02T00:00:00",
"leaveReason": "Forgot to punch out, left at 6:45 PM",
"requestDays": 2,
"leaveStatus": 0,
"leaveStatusType": "Pending"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “This application is already approved or rejected. Only an approver can change it.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Leave Application Not Found.”
- isSuccess: false · errorCode 1 “You do not have sufficient balance to add this leave!”
- isSuccess: false · errorCode 1 “Leave Application already exist!”
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
On these errors responseData is null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/LeaveApplicationController.cs → LeaveApplicationService.CreateOrUpdateLeaveApplication · returns LeaveApplicationDto
Withdraw leave
/api/LeaveApplication/DeleteLeaveApplication/{id}Deletes the application. Offer Withdraw only while it is Pending (S35); the server allows deleting own and team records.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/LeaveApplication/DeleteLeaveApplication/1052" \
-H "Authorization: Bearer $TOKEN"
const id = 1052;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`LeaveApplication/DeleteLeaveApplication/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Leave Application Not Found.”
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
On these errors responseData is false. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/LeaveApplicationController.cs → LeaveApplicationService.DeleteLeaveApplicationById · returns boolean
Leave balance
/api/Report/GetLeaveBalanceDetailsThe signed-in employee's balance per leave type: openLeave (opening), earnLeave (earned), enjoyLeave (taken), encashLeave, lapseLeave, balanceLeave.
Request
JSON body:
| Field (JSON name) | Type |
|---|---|
tenantId | integer | null |
id | integer | null |
employeeCode | integer | null |
employeeIds | integer[] |
companyIds | integer[] |
mobileNo | string |
fromDate | string (date-time) | null |
toDate | string (date-time) | null |
fromMonth | string |
toMonth | string |
gender | string |
branchIds | integer[] |
departmentIds | integer[] |
designationIds | integer[] |
approverIds | integer[] |
employeeStatus | integer | null |
applicationStatus | integer | null |
locationIds | integer[] |
employee_Type | integer | null |
financialYear | string[] |
slabTypeId | integer[] |
itMethodId | integer[] |
categoryId | integer | null |
location | string | null |
isAssign | boolean | null |
joinDate | string | null |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/Report/GetLeaveBalanceDetails" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": 1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}'
const body: TransactionApplicationDto = {
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": 1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { TransactionApplicationDto } from './types'; // request DTO
const data = await api.post<LeaveBalanceDetailsDto[]>('Report/GetLeaveBalanceDetails', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": 1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}
Response
HTTP 200 with the standard envelope. responseData is LeaveBalanceDetailsDto[].
An array of LeaveBalanceDetailsDto objects
| Field (JSON name) | Type |
|---|---|
employee | EmployeeSummaryDto |
empLegalName | string |
calenderYear | string |
fromMonth | string (date-time) | null |
toMonth | string (date-time) | null |
leaveTypeId | integer |
leaveName | string |
openLeave | number |
earnLeave | number |
enjoyLeave | number |
encashLeave | number |
lapseLeave | number |
balanceLeave | number |
Example response
{
"isSuccess": true,
"responseData": [
{
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"empLegalName": "Priya Sharma",
"calenderYear": "string",
"fromMonth": "2026-12-01T00:00:00",
"toMonth": "2026-12-02T00:00:00",
"leaveTypeId": 1,
"leaveName": "Casual Leave",
"openLeave": 1,
"earnLeave": 1,
"enjoyLeave": 1,
"encashLeave": 4.5,
"lapseLeave": 4.5,
"balanceLeave": 4.5
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
Source: HRMS.WebAPI/Controllers/ReportController.cs → ReportService.GetLeaveBalanceDetails · returns LeaveBalanceDetailsDto[]
Holiday list
/api/HolidayApplication/GetAllHolidayApplicationsThe company holiday calendar (not "holiday working"): each row has fromDate, toDate, isPaid and holiday (holidayName). Use it for the Holidays screen (S36). It covers the user's companies; send the year as fromDate/toDate.
Request
JSON body:
| Field (JSON name) | Type |
|---|---|
tenantId | integer | null |
id | integer | null |
employeeCode | integer | null |
employeeIds | integer[] |
companyIds | integer[] |
mobileNo | string |
fromDate | string (date-time) | null |
toDate | string (date-time) | null |
fromMonth | string |
toMonth | string |
gender | string |
branchIds | integer[] |
departmentIds | integer[] |
designationIds | integer[] |
approverIds | integer[] |
employeeStatus | integer | null |
applicationStatus | integer | null |
locationIds | integer[] |
employee_Type | integer | null |
financialYear | string[] |
slabTypeId | integer[] |
itMethodId | integer[] |
categoryId | integer | null |
location | string | null |
isAssign | boolean | null |
joinDate | string | null |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/HolidayApplication/GetAllHolidayApplications" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": [
1
],
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-01-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": 1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}'
const body: TransactionApplicationDto = {
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": [
1
],
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-01-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": 1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { TransactionApplicationDto } from './types'; // request DTO
const data = await api.post<HolidayApplicationDto[]>('HolidayApplication/GetAllHolidayApplications', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": [
1
],
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-01-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": 1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}
Response
HTTP 200 with the standard envelope. responseData is HolidayApplicationDto[].
An array of HolidayApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
fromDate | string (date-time) |
toDate | string (date-time) |
holiday | HolidayDto |
isPaid | boolean |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"holiday": {
"id": 1045,
"holidayName": "Christmas",
"isActive": true
},
"isPaid": true
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “Request Forbidden,Cant Access Proper Company!”
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
On these errors responseData is null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/HolidayApplicationController.cs → HolidayApplicationService.GetAllHolidayApplications · returns HolidayApplicationDto[]
Holiday names
/api/HolidayName/GetActiveHolidayNamesThe list of holiday names only (no dates). The app normally does not need it: the holiday list already includes each name.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/HolidayName/GetActiveHolidayNames" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<HolidayDto[]>('HolidayName/GetActiveHolidayNames');
Response
HTTP 200 with the standard envelope. responseData is HolidayDto[].
An array of HolidayDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
holidayName | string |
isActive | boolean |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"holidayName": "Christmas",
"isActive": true
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
Source: HRMS.WebAPI/Controllers/HolidayNameController.cs → HolidayService.GetActiveHolidayNames · returns HolidayDto[]
My work-from-home requests
/api/WorkFromHome/GetAllWorkFromHomeDataSame rules as my leave list: team leaders also get their team's requests; filter by employee.id for "My requests".
Request
JSON body:
| Field (JSON name) | Type |
|---|---|
tenantId | integer | null |
id | integer | null |
employeeCode | integer | null |
employeeIds | integer[] |
companyIds | integer[] |
mobileNo | string |
fromDate | string (date-time) | null |
toDate | string (date-time) | null |
fromMonth | string |
toMonth | string |
gender | string |
branchIds | integer[] |
departmentIds | integer[] |
designationIds | integer[] |
approverIds | integer[] |
employeeStatus | integer | null |
applicationStatus | integer | null |
locationIds | integer[] |
employee_Type | integer | null |
financialYear | string[] |
slabTypeId | integer[] |
itMethodId | integer[] |
categoryId | integer | null |
location | string | null |
isAssign | boolean | null |
joinDate | string | null |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/WorkFromHome/GetAllWorkFromHomeData" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-10-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": -1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}'
const body: TransactionApplicationDto = {
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-10-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": -1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { TransactionApplicationDto } from './types'; // request DTO
const data = await api.post<WorkFromHomeDto[]>('WorkFromHome/GetAllWorkFromHomeData', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-10-01T00:00:00",
"toDate": "2026-12-31T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"gender": "string",
"branchIds": [
1
],
"departmentIds": [
1
],
"designationIds": [
1
],
"approverIds": [
1
],
"employeeStatus": 1,
"applicationStatus": -1,
"locationIds": [
1
],
"employee_Type": 1,
"financialYear": [
"2026-2027"
],
"slabTypeId": [
1
],
"itMethodId": [
1
],
"categoryId": 1,
"location": "string",
"isAssign": false,
"joinDate": "string"
}
Response
HTTP 200 with the standard envelope. responseData is WorkFromHomeDto[].
An array of WorkFromHomeDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
workFromHomeRequestDate | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"fromDateTime": "2026-12-01T00:00:00",
"toDateTime": "2026-12-02T00:00:00",
"workFromHomeRequestDate": "2026-12-01T00:00:00",
"reason": "Forgot to punch out, left at 6:45 PM",
"status": 0
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
Source: HRMS.WebAPI/Controllers/WorkFromHomeController.cs → WorkFromHomeService.GetAllWorkFromHomeData · returns WorkFromHomeDto[]
Work-from-home detail
/api/WorkFromHome/GetWorkFromHomeByIdOne request by id (query string).
Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/WorkFromHome/GetWorkFromHomeById?id=211" \
-H "Authorization: Bearer $TOKEN"
const id = 211;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<WorkFromHomeDto>('WorkFromHome/GetWorkFromHomeById', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is WorkFromHomeDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
workFromHomeRequestDate | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"fromDateTime": "2026-12-01T00:00:00",
"toDateTime": "2026-12-02T00:00:00",
"workFromHomeRequestDate": "2026-12-01T00:00:00",
"reason": "Forgot to punch out, left at 6:45 PM",
"status": 0
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
On these errors responseData is null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/WorkFromHomeController.cs → WorkFromHomeService.GetWorkFromHomeById · returns WorkFromHomeDto
Request or edit work from home
/api/WorkFromHome/CreateOrUpdateWorkFromHomestatus: always0from the app.approverId: as for leave.- Clocking in on a WFH day still uses clock in (the employee will usually be outside the office geofence, so the punch takes the tenant default status).
Request
JSON body:
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
approverId | integer | null |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/WorkFromHome/CreateOrUpdateWorkFromHome" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"employeeId": 142,
"approverId": 96,
"fromDateTime": "2026-11-26T09:30:00",
"toDateTime": "2026-11-27T18:30:00",
"reason": "Waiting for the broadband technician",
"status": 0
}'
const body: CreateOrUpdateWorkFromDto = {
"id": null,
"employeeId": 142,
"approverId": 96,
"fromDateTime": "2026-11-26T09:30:00",
"toDateTime": "2026-11-27T18:30:00",
"reason": "Waiting for the broadband technician",
"status": 0
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateWorkFromDto } from './types'; // request DTO
const data = await api.post<WorkFromHomeDto>('WorkFromHome/CreateOrUpdateWorkFromHome', body);
{
"id": null,
"employeeId": 142,
"approverId": 96,
"fromDateTime": "2026-11-26T09:30:00",
"toDateTime": "2026-11-27T18:30:00",
"reason": "Waiting for the broadband technician",
"status": 0
}
Response
HTTP 200 with the standard envelope. responseData is WorkFromHomeDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
fromDateTime | string (date-time) |
toDateTime | string (date-time) |
workFromHomeRequestDate | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
Example response
{
"isSuccess": true,
"responseData": {
"id": 212,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"fromDateTime": "2026-12-01T00:00:00",
"toDateTime": "2026-12-02T00:00:00",
"workFromHomeRequestDate": "2026-12-01T00:00:00",
"reason": "Forgot to punch out, left at 6:45 PM",
"status": 0
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “This application is already approved or rejected. Only an approver can change it.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Work From Home Data Not Found.”
- isSuccess: false · errorCode 1 “Work From Home Data already exist!”
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
On these errors responseData is null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/WorkFromHomeController.cs → WorkFromHomeService.CreateOrUpdateWorkFromHome · returns WorkFromHomeDto
Withdraw work from home
/api/WorkFromHome/DeleteWorkFromHomeById/{id}Deletes the request. Offer it only while Pending.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/WorkFromHome/DeleteWorkFromHomeById/212" \
-H "Authorization: Bearer $TOKEN"
const id = 212;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`WorkFromHome/DeleteWorkFromHomeById/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Work From Home Not Found.”
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
On these errors responseData is false. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/WorkFromHomeController.cs → WorkFromHomeService.DeleteWorkFromHomeById · returns boolean