Skip to main content

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​

GET/api/Setting/GetAllSettings
Bearer tokenEmployee and team leaderP1Screens: S10, S30, S40

A list with one settings row for the user's tenant (use [0]). Fields the app uses:

FieldUse
isLeadersCanApproveApplicationShow Approvals (together with login isApprover). See Server rules.
thumbApplicationDefaultStatusStatus a punch gets when not auto-approved (outside the geofence, missed-punch requests).
applicationLimitDays, otApplicationLimitDaysStored, but not enforced by any API code in the repository. Do not rely on them.
isLockApproverSelectionWhen true, the approver on leave/WFH forms is fixed to the employee's leader (read-only).
showProjectInThumbApplicationWhether the missed-punch form asks for company/project.
androidAppLink, iosAppLinkStore links, usable for an "Update required" screen (S83).
logoPath, logoUriCompany 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 -X GET "$BASE_URL/Setting/GetAllSettings" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is SettingListDto[].

An array of SettingListDto objects

Field (JSON name)Type
idinteger
allowLongLatDistinteger
applicationLimitDaysinteger
salaryCalcTypeinteger
salaryCalcDayinteger
showProjectInThumbApplicationboolean
thumbApplicationDefaultStatusTransactionStatus (enum)0 = Pending1 = Approved2 = Rejected
thumbApplicationDefaultStatusNamestring
isSandwichLeaveApplicableboolean
incrementWaiveDaysinteger
isLeadersCanApproveApplicationboolean
isEnableCrossCompanyEmployeeListingboolean
isAvoidLeaveCalcOnHolidaysboolean
isCalcOTAccordingToAttendanceboolean
androidAppLinkstring
iosAppLinkstring
otApplicationLimitDaysinteger
isLockApproverSelectionboolean
salarySlipTypeinteger
logoUristring
logoTypestring
logoPathstring
countWeeklyOffInSalaryCalcboolean | null
disableTimeEditingForTAboolean | null
letterLogoUristring
letterLogoTypestring
letterLogoPathstring
lastBioDataSyncTimestring (date-time) | null
dashboardFilterDistanceinteger | null
leaderCanSeeMembersApplicationboolean | null
headerSectionImageUristring
headerSectionImageTypestring
headerSectionImagestring
footerSectionImageUristring
footerSectionImageTypestring
footerSectionImagestring
isEnableAutomatedNotificationboolean | 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​

GET/api/LeaveType/GetActiveLeaveTypes
Bearer tokenEmployee and team leaderP1Screens: S32

Active 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 -X GET "$BASE_URL/LeaveType/GetActiveLeaveTypes" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is LeaveDto[].

An array of LeaveDto objects

Field (JSON name)Type
idinteger
leaveNamestring
shortCodestring
leaveMaxMinutesinteger
isActiveboolean
isPaidboolean
monthlyEarnnumber
isShowBalanceboolean
maxCarryForwardnumber
isEncashLeaveboolean
yearlyEarnnumber
isForContractboolean
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)​

GET/api/Employee/GetEmployeeWithCode
Bearer tokenEmployee and team leaderP1Screens: S32, S34

For 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: 0 all, 1 active, 2 inactive. Send 1.
  • employeeType: 0 for all types.

Request

ParameterInTypeRequired
statusquery stringintegeryes
employeeTypequery stringEmployeeType (enum) | null0 = All1 = Employee2 = PermanantEmployeeno
curl -X GET "$BASE_URL/Employee/GetEmployeeWithCode?status=1&employeeType=0" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EmpNameWithCode[].

An array of EmpNameWithCode objects

Field (JSON name)Type
idinteger
approverIdinteger | null
employeeNamestring
employeeNameOnlystring
isActiveboolean
branchIdinteger
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​

GET/api/Employee/GetAllApprovableEmployees
Bearer tokenEmployee and team leaderP1Screens: S32, S34

Every 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 -X GET "$BASE_URL/Employee/GetAllApprovableEmployees" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EmpNameWithCode[].

An array of EmpNameWithCode objects

Field (JSON name)Type
idinteger
approverIdinteger | null
employeeNamestring
employeeNameOnlystring
isActiveboolean
branchIdinteger
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​

GET/api/CommonEnumValues/GetAllTransactionStatus
Bearer tokenEmployee and team leaderP1

Request

No parameters and no body.

curl -X GET "$BASE_URL/CommonEnumValues/GetAllTransactionStatus" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EnumValues[].

An array of EnumValues objects

Field (JSON name)Type
namestring
valueinteger
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)​

GET/api/CommonEnumValues/GetAllThumbTypes
Bearer tokenEmployee and team leaderP1

Request

No parameters and no body.

curl -X GET "$BASE_URL/CommonEnumValues/GetAllThumbTypes" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EnumValues[].

An array of EnumValues objects

Field (JSON name)Type
namestring
valueinteger
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)​

GET/api/CommonEnumValues/GetAllThumbApplicationFromType
Bearer tokenEmployee and team leaderP1

Request

No parameters and no body.

curl -X GET "$BASE_URL/CommonEnumValues/GetAllThumbApplicationFromType" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EnumValues[].

An array of EnumValues objects

Field (JSON name)Type
namestring
valueinteger
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)​

GET/api/CommonEnumValues/GetAllVehicleType
Bearer tokenEmployee and team leaderP2

Request

No parameters and no body.

curl -X GET "$BASE_URL/CommonEnumValues/GetAllVehicleType" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EnumValues[].

An array of EnumValues objects

Field (JSON name)Type
namestring
valueinteger
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)​

GET/api/CommonEnumValues/GetRelationType
Bearer tokenEmployee and team leaderP3

Request

No parameters and no body.

curl -X GET "$BASE_URL/CommonEnumValues/GetRelationType" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EnumDescriptionValues[].

An array of EnumDescriptionValues objects

Field (JSON name)Type
namestring
valuestring
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​

GET/api/CommonEnumValues/GetMaritalStatusTypeType
Bearer tokenEmployee and team leaderP3

Request

No parameters and no body.

curl -X GET "$BASE_URL/CommonEnumValues/GetMaritalStatusTypeType" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is EnumDescriptionValues[].

An array of EnumDescriptionValues objects

Field (JSON name)Type
namestring
valuestring
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[]