Home
Plan section 2.2 · Screen S10. Every call on this page works on the signed-in employee only (from the token) and takes no employee id.
Suggested load order
- Today's punches and today in/out → Today card.
- Month present/absent, late/early, missing punches → "This month" tiles.
- Instructions, upcoming holidays, birthdays, anniversaries → lower cards (load lazily).
- Salary snippet →
EmployeeDashboard/GetEmployeeSalaryandDeductionon the Pay page.
The year-summary figures (average salary, TDS, investments, next increment) come from EmployeeDashboard/GetEmployeeNewDashboardDetails, documented on the Pay page.
Today's punches and clock-in state
/api/ClockInOut/ClockInOutInfoReturns the employee's approved punches for a month, paired into in/out sessions, and whether they are currently clocked in.
month,yearare optional; without them the current month is used. Pass them for Punch history (S22).isClockIn: truewhen the last approved punch is an In without a later Out → Today card state B (Clock out button).clockInOutTimeDtois newest day first.clockOut: nullmeans still working (today) or a missing out-punch (past day).totalTimeis a .NET TimeSpan serialised as a string,"hh:mm:ss"or"hh:mm:ss.fffffff"(more than a day:"d.hh:mm:ss"). For an open session today it is "now − clock-in".statusis the status name as text ("Approved"), not a number.- Only Approved punches count. A clock-in that came back Pending (outside the geofence) is not included; see gap G16.
To clock in or out, see Attendance → Clock in / clock out.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
month | query string | integer | null | no |
year | query string | integer | null | no |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/ClockInOut/ClockInOutInfo?month=11&year=2026" \
-H "Authorization: Bearer $TOKEN"
const month = 11;
const year = 2026;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<ClockInOutInfoDto>('ClockInOut/ClockInOutInfo', { params: { month, year } });
Response
HTTP 200 with the standard envelope. responseData is ClockInOutInfoDto.
| Field (JSON name) | Type |
|---|---|
isClockIn | boolean |
clockInOutTimeDto | ClockInOutTimeDto[] |
Example response
{
"isSuccess": true,
"responseData": {
"isClockIn": false,
"clockInOutTimeDto": [
{
"clockIn": "2026-11-23T00:00:00",
"clockOut": "2026-11-23T00:00:00",
"totalTime": "09:30:00",
"thumbDate": "2026-11-23T00:00:00",
"status": "string",
"thumbRemark": "Forgot to punch out, left at 6:45 PM"
}
]
},
"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/ClockInOutController.cs → ClockInOutService.ClockInOutInfo · returns ClockInOutInfoDto
Today's first in and last out
/api/EmployeeDashboard/GetEmployeeDailyInOutToday's in/out summary for the employee (stored procedure USP_GET_EMPLOYEE_DAILY_INOUT, today's date on the server).
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeDailyInOut" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_Dashboard_Daily_InOut_Dto>('EmployeeDashboard/GetEmployeeDailyInOut');
Response
HTTP 200 with the standard envelope. responseData is Employee_Dashboard_Daily_InOut_Dto.
Employee_Dashboard_Daily_InOut_Dto
| Field (JSON name) | Type |
|---|---|
thumbIn | string (date-time) | null |
thumbOut | string (date-time) | null |
presentTime | string (date-time) | null |
Example response
{
"isSuccess": true,
"responseData": {
"thumbIn": "2026-11-23T00:00:00",
"thumbOut": "2026-11-23T00:00:00",
"presentTime": "2026-11-23T09:42:00"
},
"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/EmployeeDashboardController.cs → EmployeeDashboardService.GetEmployeeDailyInOut · returns Employee_Dashboard_Daily_InOut_Dto
Dashboard basics (profile header)
/api/EmployeeDashboard/GetEmployeeDashboardBasicDetailThe employee's basic details for Home: name, photo, designation, department, shift name, join date, experience. It also contains basicSalary, mobileNo and birthDate: keep the salary masked like other amounts.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeDashboardBasicDetail" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_Dashboard_BasicDetailDto>('EmployeeDashboard/GetEmployeeDashboardBasicDetail');
Response
HTTP 200 with the standard envelope. responseData is Employee_Dashboard_BasicDetailDto.
Employee_Dashboard_BasicDetailDto
| Field (JSON name) | Type |
|---|---|
employee | EmployeeSummaryDto |
profileImageUrl | string |
mobileNo | string |
email | string |
joinDate | string (date-time) | null |
birthDate | string (date-time) | null |
basicSalary | number |
departmentName | string |
gender | string |
experience | string |
designationName | string |
shiftName | string |
employeeTotalExperience | string |
Example response
{
"isSuccess": true,
"responseData": {
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"profileImageUrl": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"mobileNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"joinDate": "2026-11-23T00:00:00",
"birthDate": "2026-11-23T00:00:00",
"basicSalary": 58240,
"departmentName": "Projects",
"gender": "string",
"experience": "string",
"designationName": "Senior Site Engineer",
"shiftName": "string",
"employeeTotalExperience": "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/EmployeeDashboardController.cs → EmployeeDashboardService.GetEmployeeDashboardBasicDetail · returns Employee_Dashboard_BasicDetailDto
Mobile dashboard summary
/api/Report/GetMobileAppDahshboardThumbDetailsA punch and attendance summary the API exposes for a mobile dashboard (note the misspelt route Dahshboard). Scoped to the signed-in employee; employeeIds is ignored for non-admins.
:::caution Verify on staging before using
The stored procedure behind it (USP_REPORT_MOBILE_APP_DASHBOARD_DETAILS) is not in the HRMS.WebAPI repository (it exists only in the database), and the web app never calls this endpoint. Which filter fields it reads, and what each field means, cannot be confirmed from code. The example sends the month like the other reports; check the real response on staging first, or use the dashboard calls on this page instead.
:::
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/GetMobileAppDahshboardThumbDetails" \
-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": "202611",
"toMonth": "202611",
"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": "202611",
"toMonth": "202611",
"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<MobileAppDashboard>('Report/GetMobileAppDahshboardThumbDetails', 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": "202611",
"toMonth": "202611",
"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 MobileAppDashboard.
| Field (JSON name) | Type |
|---|---|
mobileAppDashboardThumbDetails | MobileAppDashboardThumbDetails[] |
employeeWorkingDays | EmployeeWorkingDays[] |
attendanceSummary | AttendanceSummary[] |
Example response
{
"isSuccess": true,
"responseData": {
"mobileAppDashboardThumbDetails": [
{
"entryDate": "2026-11-23T00:00:00",
"inThumb": "2026-11-23T00:00:00",
"outThumb": "2026-11-23T00:00:00",
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
}
}
],
"employeeWorkingDays": [
{
"employeeId": 142,
"workingDay": 1,
"presentDay": 1,
"absentDay": 1
}
],
"attendanceSummary": [
{
"employeeId": 142,
"rankBy": 1,
"dayCount": 3,
"displayName": "Priya Sharma",
"totalTime": "string",
"shortCode": "string",
"showDayCount": false,
"showTime": 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/ReportController.cs → ReportService.GetMobileAppDashboardThumbDetails · returns MobileAppDashboard
This month: present and absent
/api/EmployeeDashboard/GetMonthlyPresentAbsentCounts for the current calendar month (server date). Feeds the Present / Absent / Leave tiles.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetMonthlyPresentAbsent" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_Dashboard_Monthly_Present_Absent>('EmployeeDashboard/GetMonthlyPresentAbsent');
Response
HTTP 200 with the standard envelope. responseData is Employee_Dashboard_Monthly_Present_Absent.
Employee_Dashboard_Monthly_Present_Absent
| Field (JSON name) | Type |
|---|---|
employeeId | integer | null |
absentDay | number | null |
presentPercentage | number | null |
absentPercentage | number | null |
leavePercentage | number | null |
workingDay | number | null |
presentDay | number | null |
leaveDay | integer | null |
Example response
{
"isSuccess": true,
"responseData": {
"employeeId": 142,
"absentDay": 1,
"presentPercentage": 1,
"absentPercentage": 1,
"leavePercentage": 1,
"workingDay": 1,
"presentDay": 1,
"leaveDay": 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/EmployeeDashboardController.cs → EmployeeDashboardService.GetMonthlyPresentAbsent · returns Employee_Dashboard_Monthly_Present_Absent
This month: late and early
/api/EmployeeDashboard/GetEmployeeMonthlyLateEarlyLate arrivals and early departures for each day of the current calendar month, compared with the employee's shift. The count of rows is the "Late marks" tile.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeMonthlyLateEarly" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_Dashboard_Monthly_Late_Early[]>('EmployeeDashboard/GetEmployeeMonthlyLateEarly');
Response
HTTP 200 with the standard envelope. responseData is Employee_Dashboard_Monthly_Late_Early[].
An array of Employee_Dashboard_Monthly_Late_Early objects
| Field (JSON name) | Type |
|---|---|
entryDate | string (date-time) | null |
earlyTime | string |
lateTime | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"entryDate": "2026-11-23T00:00:00",
"earlyTime": "string",
"lateTime": "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/EmployeeDashboardController.cs → EmployeeDashboardService.GetEmployeeMonthlyLateEarly · returns Employee_Dashboard_Monthly_Late_Early[]
This month: missing punches
/api/EmployeeDashboard/GetMonthlyMissingThumbDays in the current calendar month with an in-punch but no out-punch. Drives "Missing punches: 1 · Fix now ›", which opens the missed-punch request.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetMonthlyMissingThumb" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_Dashboard_Monthly_Missing_Thumb[]>('EmployeeDashboard/GetMonthlyMissingThumb');
Response
HTTP 200 with the standard envelope. responseData is Employee_Dashboard_Monthly_Missing_Thumb[].
An array of Employee_Dashboard_Monthly_Missing_Thumb objects
| Field (JSON name) | Type |
|---|---|
employeeId | integer | null |
eventDate | string (date-time) | null |
inDateTime | string (date-time) | null |
outDateTime | string (date-time) | null |
Example response
{
"isSuccess": true,
"responseData": [
{
"employeeId": 142,
"eventDate": "2026-11-23T00:00:00",
"inDateTime": "2026-11-23T09:42:00",
"outDateTime": "2026-11-23T09:42:00"
}
],
"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/EmployeeDashboardController.cs → EmployeeDashboardService.GetMonthlyMissingThumb · returns Employee_Dashboard_Monthly_Missing_Thumb[]
Instructions (announcements on Home)
/api/EmployeeDashboard/GetEmployeeInstructionDetailThe tenant's instructions/announcements. Show the latest two on Home; "See all" opens Instruction/GetAllInstruction.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeInstructionDetail" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_Dashboard_Instruction_Detail[]>('EmployeeDashboard/GetEmployeeInstructionDetail');
Response
HTTP 200 with the standard envelope. responseData is Employee_Dashboard_Instruction_Detail[].
An array of Employee_Dashboard_Instruction_Detail objects
| Field (JSON name) | Type |
|---|---|
title | string |
description | string |
createdOn | string (date-time) | null |
Example response
{
"isSuccess": true,
"responseData": [
{
"title": "Leave Approved",
"description": "Forgot to punch out, left at 6:45 PM",
"createdOn": "2026-11-23T00:00:00"
}
],
"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/EmployeeDashboardController.cs → EmployeeDashboardService.GetEmployeeInstructionDetail · returns Employee_Dashboard_Instruction_Detail[]
Upcoming holidays
/api/AdminDashboard/getUpCommingHolidayNext holidays for the Home chips. Despite the AdminDashboard controller name, it needs only a normal token.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/AdminDashboard/getUpCommingHoliday" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Admin_Dashboard_Upcomming_Holiday[]>('AdminDashboard/getUpCommingHoliday');
Response
HTTP 200 with the standard envelope. responseData is Admin_Dashboard_Upcomming_Holiday[].
An array of Admin_Dashboard_Upcomming_Holiday objects
| Field (JSON name) | Type |
|---|---|
fromDate | string (date-time) |
holidaydate | string |
holidayName | string |
holidayDateDayName | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"fromDate": "2026-12-01T00:00:00",
"holidaydate": "string",
"holidayName": "Christmas",
"holidayDateDayName": "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/AdminDashboardController.cs → AdminDashboardService.GetUpCommingHoliday · returns Admin_Dashboard_Upcomming_Holiday[]
Upcoming birthdays
/api/AdminDashboard/GetUpCommingBirthDayColleagues with upcoming birthdays. The response includes the full birthDate (with year): show day and month only (gap G15).
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/AdminDashboard/GetUpCommingBirthDay" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Admin_Dashboard_Upcomming_Birthday[]>('AdminDashboard/GetUpCommingBirthDay');
Response
HTTP 200 with the standard envelope. responseData is Admin_Dashboard_Upcomming_Birthday[].
An array of Admin_Dashboard_Upcomming_Birthday objects
| Field (JSON name) | Type |
|---|---|
employee | EmployeeSummaryDto |
profileImageUrl | string |
birthDate | string (date-time) | null |
eventDate | string (date-time) | null |
eventDay | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"profileImageUrl": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"birthDate": "2026-11-23T00:00:00",
"eventDate": "2026-11-23T00:00:00",
"eventDay": "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/AdminDashboardController.cs → AdminDashboardService.GetUpCommingBirthDay · returns Admin_Dashboard_Upcomming_Birthday[]
Upcoming work anniversaries
/api/AdminDashboard/getUpCommingAnniversaryColleagues with upcoming work anniversaries (anniversary = number of years).
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/AdminDashboard/getUpCommingAnniversary" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Admin_Dashboard_Upcomming_Anniversary[]>('AdminDashboard/getUpCommingAnniversary');
Response
HTTP 200 with the standard envelope. responseData is Admin_Dashboard_Upcomming_Anniversary[].
An array of Admin_Dashboard_Upcomming_Anniversary objects
| Field (JSON name) | Type |
|---|---|
employee | EmployeeSummaryDto |
profileImageUrl | string |
joinDate | string (date-time) | null |
eventDate | string (date-time) | null |
anniversary | string |
eventDay | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"profileImageUrl": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"joinDate": "2026-11-23T00:00:00",
"eventDate": "2026-11-23T00:00:00",
"anniversary": "string",
"eventDay": "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/AdminDashboardController.cs → AdminDashboardService.getUpCommingAnniversary · returns Admin_Dashboard_Upcomming_Anniversary[]
My leave applications (dashboard feed)
/api/EmployeeDashboard/GetTeamLeaveApplicationDespite the name, this returns the signed-in employee's own leave applications (all dates and statuses), not the team's. Do not use it for a "team on leave" card (gap G5). For the employee's own leave list use LeaveApplication/GetAllLeaveApplications, which supports filters.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetTeamLeaveApplication" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Admin_Dashboard_Daily_Leave_Application[]>('EmployeeDashboard/GetTeamLeaveApplication');
Response
HTTP 200 with the standard envelope. responseData is Admin_Dashboard_Daily_Leave_Application[].
An array of Admin_Dashboard_Daily_Leave_Application objects
| Field (JSON name) | Type |
|---|---|
employee | EmployeeSummaryDto |
leaveName | string |
reason | string |
leaveRequestDate | string (date-time) | null |
approver | EmployeeSummaryDto |
fromDate | string (date-time) | null |
toDate | string (date-time) | null |
leaveStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
Example response
{
"isSuccess": true,
"responseData": [
{
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"leaveName": "Casual Leave",
"reason": "Forgot to punch out, left at 6:45 PM",
"leaveRequestDate": "2026-11-23T00:00:00",
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"leaveStatus": 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/EmployeeDashboardController.cs → EmployeeDashboardService.getTeamLeaveApplication · returns Admin_Dashboard_Daily_Leave_Application[]