Lookups and settings
Small reference lists and tenant settings. Load them once after login and cache them (they rarely change). Office locations, projects and companies are on the Attendance page.
Tenant settings
/api/Setting/GetAllSettingsA list with one settings row for the user's tenant (use [0]). Fields the app uses:
| Field | Use |
|---|---|
isLeadersCanApproveApplication | Show Approvals (together with login isApprover). See Server rules. |
thumbApplicationDefaultStatus | Status a punch gets when not auto-approved (outside the geofence, missed-punch requests). |
applicationLimitDays, otApplicationLimitDays | Stored, but not enforced by any API code in the repository. Do not rely on them. |
isLockApproverSelection | When true, the approver on leave/WFH forms is fixed to the employee's leader (read-only). |
showProjectInThumbApplication | Whether the missed-punch form asks for company/project. |
androidAppLink, iosAppLink | Store links, usable for an "Update required" screen (S83). |
logoPath, logoUri | Company logo URL for branding. |
The other fields are payroll/admin settings. GetSettingByTenantId/{id} exists but is Admin-only; employees must use this endpoint.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Setting/GetAllSettings" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<SettingListDto[]>('Setting/GetAllSettings');
Response
HTTP 200 with the standard envelope. responseData is SettingListDto[].
An array of SettingListDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
allowLongLatDist | integer |
applicationLimitDays | integer |
salaryCalcType | integer |
salaryCalcDay | integer |
showProjectInThumbApplication | boolean |
thumbApplicationDefaultStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
thumbApplicationDefaultStatusName | string |
isSandwichLeaveApplicable | boolean |
incrementWaiveDays | integer |
isLeadersCanApproveApplication | boolean |
isEnableCrossCompanyEmployeeListing | boolean |
isAvoidLeaveCalcOnHolidays | boolean |
isCalcOTAccordingToAttendance | boolean |
androidAppLink | string |
iosAppLink | string |
otApplicationLimitDays | integer |
isLockApproverSelection | boolean |
salarySlipType | integer |
logoUri | string |
logoType | string |
logoPath | string |
countWeeklyOffInSalaryCalc | boolean | null |
disableTimeEditingForTA | boolean | null |
letterLogoUri | string |
letterLogoType | string |
letterLogoPath | string |
lastBioDataSyncTime | string (date-time) | null |
dashboardFilterDistance | integer | null |
leaderCanSeeMembersApplication | boolean | null |
headerSectionImageUri | string |
headerSectionImageType | string |
headerSectionImage | string |
footerSectionImageUri | string |
footerSectionImageType | string |
footerSectionImage | string |
isEnableAutomatedNotification | boolean | null |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"allowLongLatDist": 1,
"applicationLimitDays": 2,
"salaryCalcType": 58240,
"salaryCalcDay": 58240,
"showProjectInThumbApplication": false,
"thumbApplicationDefaultStatus": 0,
"thumbApplicationDefaultStatusName": "string",
"isSandwichLeaveApplicable": false,
"incrementWaiveDays": 2,
"isLeadersCanApproveApplication": false,
"isEnableCrossCompanyEmployeeListing": false,
"isAvoidLeaveCalcOnHolidays": false,
"isCalcOTAccordingToAttendance": false,
"androidAppLink": "string",
"iosAppLink": "string",
"otApplicationLimitDays": 2,
"isLockApproverSelection": false,
"salarySlipType": 58240,
"logoUri": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"logoType": "string",
"logoPath": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"countWeeklyOffInSalaryCalc": false,
"disableTimeEditingForTA": false,
"letterLogoUri": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"letterLogoType": "string",
"letterLogoPath": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"lastBioDataSyncTime": "2026-11-23T09:42:00",
"dashboardFilterDistance": 1,
"leaderCanSeeMembersApplication": false,
"headerSectionImageUri": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"headerSectionImageType": "string",
"headerSectionImage": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"footerSectionImageUri": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"footerSectionImageType": "string",
"footerSectionImage": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"isEnableAutomatedNotification": false
}
],
"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/SettingController.cs → SettingService.GetAllSettings · returns SettingListDto[]
Leave types
/api/LeaveType/GetActiveLeaveTypesActive leave types for the picker: id (send as leaveTypeId), leaveName, shortCode, isPaid, isShowBalance, … Show the balance next to each from leave balance (matched by leaveTypeId).
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/LeaveType/GetActiveLeaveTypes" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<LeaveDto[]>('LeaveType/GetActiveLeaveTypes');
Response
HTTP 200 with the standard envelope. responseData is LeaveDto[].
An array of LeaveDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
leaveName | string |
shortCode | string |
leaveMaxMinutes | integer |
isActive | boolean |
isPaid | boolean |
monthlyEarn | number |
isShowBalance | boolean |
maxCarryForward | number |
isEncashLeave | boolean |
yearlyEarn | number |
isForContract | boolean |
Example response
{
"isSuccess": true,
"responseData": [
{
"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
}
],
"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/LeaveTypeController.cs → LeaveTypesService.GetActiveLeaveTypes · returns LeaveDto[]
Employee picker (self)
/api/Employee/GetEmployeeWithCodeFor non-admins this returns only the signed-in employee. Its approverId is the employee's leader: use it as the default approverId on leave/WFH/overtime forms.
status:0all,1active,2inactive. Send1.employeeType:0for all types.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
status | query string | integer | yes |
employeeType | query string | EmployeeType (enum) | null0 = All1 = Employee2 = PermanantEmployee | no |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Employee/GetEmployeeWithCode?status=1&employeeType=0" \
-H "Authorization: Bearer $TOKEN"
const status = 1;
const employeeType = 0;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EmpNameWithCode[]>('Employee/GetEmployeeWithCode', { params: { status, employeeType } });
Response
HTTP 200 with the standard envelope. responseData is EmpNameWithCode[].
An array of EmpNameWithCode objects
| Field (JSON name) | Type |
|---|---|
id | integer |
approverId | integer | null |
employeeName | string |
employeeNameOnly | string |
isActive | boolean |
branchId | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"approverId": 142,
"employeeName": "Priya Sharma",
"employeeNameOnly": "string",
"isActive": true,
"branchId": 1
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- 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/EmployeeController.cs → EmployeeService.GetAllEmployeeWithCode · returns EmpNameWithCode[]
Approver picker
/api/Employee/GetAllApprovableEmployeesEvery active employee whose designation can approve, in the user's companies. Use it for the approver dropdown when isLockApproverSelection is off. It is not the leader's team (gap G5).
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Employee/GetAllApprovableEmployees" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EmpNameWithCode[]>('Employee/GetAllApprovableEmployees');
Response
HTTP 200 with the standard envelope. responseData is EmpNameWithCode[].
An array of EmpNameWithCode objects
| Field (JSON name) | Type |
|---|---|
id | integer |
approverId | integer | null |
employeeName | string |
employeeNameOnly | string |
isActive | boolean |
branchId | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"approverId": 142,
"employeeName": "Priya Sharma",
"employeeNameOnly": "string",
"isActive": true,
"branchId": 1
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- 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/EmployeeController.cs → EmployeeService.GetAllApprovableEmployees · returns EmpNameWithCode[]
Enum lists (CommonEnumValues)
Each returns [{ name, value }] for an enum. The values are fixed in code, so the app may also hard-code them (see Conventions → Enums and Types and enums).
Application statuses
/api/CommonEnumValues/GetAllTransactionStatusRequest
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/CommonEnumValues/GetAllTransactionStatus" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EnumValues[]>('CommonEnumValues/GetAllTransactionStatus');
Response
HTTP 200 with the standard envelope. responseData is EnumValues[].
An array of EnumValues objects
| Field (JSON name) | Type |
|---|---|
name | string |
value | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"name": "Priya Sharma",
"value": 1
}
],
"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/CommonEnumValuesController.cs · returns EnumValues[]
Punch types (In / Out)
/api/CommonEnumValues/GetAllThumbTypesRequest
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/CommonEnumValues/GetAllThumbTypes" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EnumValues[]>('CommonEnumValues/GetAllThumbTypes');
Response
HTTP 200 with the standard envelope. responseData is EnumValues[].
An array of EnumValues objects
| Field (JSON name) | Type |
|---|---|
name | string |
value | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"name": "Priya Sharma",
"value": 1
}
],
"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/CommonEnumValuesController.cs · returns EnumValues[]
Where working (Office / Project site / Other site)
/api/CommonEnumValues/GetAllThumbApplicationFromTypeRequest
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/CommonEnumValues/GetAllThumbApplicationFromType" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EnumValues[]>('CommonEnumValues/GetAllThumbApplicationFromType');
Response
HTTP 200 with the standard envelope. responseData is EnumValues[].
An array of EnumValues objects
| Field (JSON name) | Type |
|---|---|
name | string |
value | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"name": "Priya Sharma",
"value": 1
}
],
"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/CommonEnumValuesController.cs · returns EnumValues[]
Vehicle types (fuel allowance)
/api/CommonEnumValues/GetAllVehicleTypeRequest
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/CommonEnumValues/GetAllVehicleType" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EnumValues[]>('CommonEnumValues/GetAllVehicleType');
Response
HTTP 200 with the standard envelope. responseData is EnumValues[].
An array of EnumValues objects
| Field (JSON name) | Type |
|---|---|
name | string |
value | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"name": "Priya Sharma",
"value": 1
}
],
"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/CommonEnumValuesController.cs · returns EnumValues[]
Relation types (family)
/api/CommonEnumValues/GetRelationTypeRequest
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/CommonEnumValues/GetRelationType" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EnumDescriptionValues[]>('CommonEnumValues/GetRelationType');
Response
HTTP 200 with the standard envelope. responseData is EnumDescriptionValues[].
An array of EnumDescriptionValues objects
| Field (JSON name) | Type |
|---|---|
name | string |
value | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"name": "Priya Sharma",
"value": "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/CommonEnumValuesController.cs · returns EnumDescriptionValues[]
Marital statuses
/api/CommonEnumValues/GetMaritalStatusTypeTypeRequest
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/CommonEnumValues/GetMaritalStatusTypeType" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<EnumDescriptionValues[]>('CommonEnumValues/GetMaritalStatusTypeType');
Response
HTTP 200 with the standard envelope. responseData is EnumDescriptionValues[].
An array of EnumDescriptionValues objects
| Field (JSON name) | Type |
|---|---|
name | string |
value | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"name": "Priya Sharma",
"value": "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/CommonEnumValuesController.cs · returns EnumDescriptionValues[]