Communication
Plan section 2.7 · Screens S70, S10 bell. Push setup is on Push notifications.
Notifications
The inbox is the source of truth for push. All four calls take the user id from login. Send your own: another user's id is refused with You can only read your own notifications.
Notification list
/api/Notification/GetAllNotificationByUserId/{id}/active/{isActive}{id}: the user id.{isActive}:truereturns unread,falsereturns read. There is no "all": for the All tab call both and merge (gap G8).- Only the last 6 months, newest first.
- Unread count for the bell badge = length of the
truelist. - Tap a row → open the screen for
pageNamewith recordreferenceNo(mapping) and mark it read. categorydrives the icon colour (LEAVE,THUMB, …).iconis the server's icon file name for the type.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
isActive | path | boolean | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Notification/GetAllNotificationByUserId/87/active/true" \
-H "Authorization: Bearer $TOKEN"
const id = 87;
const isActive = true;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<AllNotificationDto[]>(`Notification/GetAllNotificationByUserId/${id}/active/${isActive}`);
Response
HTTP 200 with the standard envelope. responseData is AllNotificationDto[].
An array of AllNotificationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
body | string |
typeName | string |
category | string |
icon | string |
isRead | boolean |
createdOn | string (date-time) | null |
pageName | string |
referenceNo | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 9012,
"title": "Leave Approved",
"body": "Your Casual Leave for 09-Nov-2026 has been approved.",
"typeName": "Leave",
"category": "LEAVE",
"isRead": false,
"createdOn": "2026-11-23T11:02:00",
"pageName": "leave-application",
"referenceNo": "1045"
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can only read your own notifications.”
- isSuccess: false · errorCode 1 “No Data 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 null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/NotificationController.cs → UserClaimService.GetCurrentUserId, NotificationService.GetAllNotificationByUserId · returns AllNotificationDto[]
Mark one as read
/api/Notification/UpdateNotification/{id}{id} is the notification id. Marks it read and returns it. Unknown id: No Data Found.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X POST "$BASE_URL/Notification/UpdateNotification/9012" \
-H "Authorization: Bearer $TOKEN"
const id = 9012;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.post<AllNotificationDto>(`Notification/UpdateNotification/${id}`, undefined);
Response
HTTP 200 with the standard envelope. responseData is AllNotificationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
body | string |
typeName | string |
category | string |
icon | string |
isRead | boolean |
createdOn | string (date-time) | null |
pageName | string |
referenceNo | string |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"title": "Leave Approved",
"body": "Forgot to punch out, left at 6:45 PM",
"typeName": "string",
"category": "string",
"icon": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"isRead": true,
"createdOn": "2026-11-23T00:00:00",
"pageName": "leave-application",
"referenceNo": "1045"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “No Data 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 null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/NotificationController.cs → NotificationService.UpdateNotification · returns AllNotificationDto
Mark all as read
/api/Notification/ReadAllNotification/{id}{id} is the user id. Marks every unread notification of the last 6 months as read.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X POST "$BASE_URL/Notification/ReadAllNotification/87" \
-H "Authorization: Bearer $TOKEN"
const id = 87;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.post<boolean>(`Notification/ReadAllNotification/${id}`, undefined);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can only read your own notifications.”
- isSuccess: false · errorCode 1 “No Data 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/NotificationController.cs → UserClaimService.GetCurrentUserId, NotificationService.ReadAllNotification · returns boolean
Notification types
/api/Notification/GetAllNotificationTypeThe notification types (typeName, category, icon) whose isRequested flag is set (not filtered by tenant). The app needs it only if it wants a legend; the inbox rows already carry category and icon.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Notification/GetAllNotificationType" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<NotificationTypeDto[]>('Notification/GetAllNotificationType');
Response
HTTP 200 with the standard envelope. responseData is NotificationTypeDto[].
An array of NotificationTypeDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
typeName | string |
icon | string |
category | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"typeName": "string",
"icon": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"category": "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/NotificationController.cs → NotificationService.GetAllNotificationType · returns NotificationTypeDto[]
Instructions / announcements (P2)
All instructions
/api/Instruction/GetAllInstructionEvery instruction in the tenant, newest first: title, description, type, createdOn, pageLink. Home shows the latest from EmployeeDashboard/GetEmployeeInstructionDetail.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Instruction/GetAllInstruction" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<AllInstructionDto[]>('Instruction/GetAllInstruction');
Response
HTTP 200 with the standard envelope. responseData is AllInstructionDto[].
An array of AllInstructionDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
description | string |
type | NotificationTypeDto |
createdOn | string (date-time) | null |
pageLink | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"title": "Leave Approved",
"description": "Forgot to punch out, left at 6:45 PM",
"type": {
"id": 1045,
"typeName": "string",
"icon": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"category": "string"
},
"createdOn": "2026-11-23T00:00:00",
"pageLink": "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/InstructionController.cs → InstructionService.GetAllInstruction · returns AllInstructionDto[]
Helpdesk requests (P2)
A request has a title, description and status (RequestStatus: 0 Pending, 1 In progress, 2 Completed, 3 Cancelled) and a message thread.
My helpdesk requests
/api/Request/GetAllRequestRequests created by the signed-in user (Admin: everyone's), newest first. requestStatus (query, optional) filters by status; omit it for all.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
requestStatus | query string | RequestStatus (enum) | null0 = Pending1 = InProgress2 = Completed3 = Cancelled | no |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Request/GetAllRequest" \
-H "Authorization: Bearer $TOKEN"
const requestStatus = null;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<AllRequestDto[]>('Request/GetAllRequest', { params: { requestStatus } });
Response
HTTP 200 with the standard envelope. responseData is AllRequestDto[].
An array of AllRequestDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
description | string |
createdOn | string (date-time) | null |
status | RequestStatus (enum)0 = Pending1 = InProgress2 = Completed3 = Cancelled |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"title": "Leave Approved",
"description": "Forgot to punch out, left at 6:45 PM",
"createdOn": "2026-11-23T00:00:00",
"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/RequestController.cs → RequestService.GetAllRequest · returns AllRequestDto[]
Create or edit a helpdesk request
/api/Request/CreateOrUpdateRequestRequest
JSON body:
| Field (JSON name) | Type |
|---|---|
id | integer | null |
title | string |
description | string |
status | RequestStatus (enum)0 = Pending1 = InProgress2 = Completed3 = Cancelled |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/Request/CreateOrUpdateRequest" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"title": "Laptop battery not charging",
"description": "Dell Latitude assigned in June; battery stuck at 0%.",
"status": 0
}'
const body: CreateorUpdateRequestModule = {
"id": null,
"title": "Laptop battery not charging",
"description": "Dell Latitude assigned in June; battery stuck at 0%.",
"status": 0
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateorUpdateRequestModule } from './types'; // request DTO
const data = await api.post<AllRequestDto>('Request/CreateOrUpdateRequest', body);
{
"id": null,
"title": "Laptop battery not charging",
"description": "Dell Latitude assigned in June; battery stuck at 0%.",
"status": 0
}
Response
HTTP 200 with the standard envelope. responseData is AllRequestDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
description | string |
createdOn | string (date-time) | null |
status | RequestStatus (enum)0 = Pending1 = InProgress2 = Completed3 = Cancelled |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"title": "Leave Approved",
"description": "Forgot to punch out, left at 6:45 PM",
"createdOn": "2026-11-23T00:00:00",
"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/RequestController.cs → RequestService.CreateOrUpdateRequest · returns AllRequestDto
Thread of a request
/api/Request/GetAllRequestDescriptionThe request plus its messages (descriptionList). There is no websocket: refresh when the screen gains focus.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
requestId | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Request/GetAllRequestDescription?requestId=41" \
-H "Authorization: Bearer $TOKEN"
const requestId = 41;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<RequestDescriptionDto>('Request/GetAllRequestDescription', { params: { requestId } });
Response
HTTP 200 with the standard envelope. responseData is RequestDescriptionDto.
| Field (JSON name) | Type |
|---|---|
request | AllRequestDto |
descriptionList | RequestDecriptionClass[] |
Example response
{
"isSuccess": true,
"responseData": {
"request": {
"id": 1045,
"title": "Leave Approved",
"description": "Forgot to punch out, left at 6:45 PM",
"createdOn": "2026-11-23T00:00:00",
"status": 0
},
"descriptionList": [
{
"id": 1045,
"message": "Forgot to punch out, left at 6:45 PM",
"userId": 87,
"userName": "priya.sharma",
"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/RequestController.cs → RequestService.GetAllRequestDescription · returns RequestDescriptionDto
Reply in the thread
/api/Request/CreateorUpdateRequestDescriptionDtoAdds a message to the request's thread (note the unusual route name ending in Dto).
Request
JSON body:
CreateorUpdateRequestDescriptionDto
| Field (JSON name) | Type |
|---|---|
message | string |
requestId | integer |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/Request/CreateorUpdateRequestDescriptionDto" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"message": "Tried another charger, same issue.",
"requestId": 41
}'
const body: CreateorUpdateRequestDescriptionDto = {
"message": "Tried another charger, same issue.",
"requestId": 41
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateorUpdateRequestDescriptionDto } from './types'; // request DTO
const data = await api.post<boolean>('Request/CreateorUpdateRequestDescriptionDto', body);
{
"message": "Tried another charger, same issue.",
"requestId": 41
}
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
Source: HRMS.WebAPI/Controllers/RequestController.cs → RequestService.CreateRequestDescription · returns boolean
Change status (cancel)
/api/Request/UpdateRequestStausA GET that changes data: sets the request's status (route spelt Staus). In the app, use it only to cancel the user's own request (requestStatus: 3). The server allows it only for the request's creator (or Admin); otherwise Request Not Found.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
requestStatus | query string | RequestStatus (enum)0 = Pending1 = InProgress2 = Completed3 = Cancelled | yes |
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Request/UpdateRequestStaus?requestStatus=3&id=41" \
-H "Authorization: Bearer $TOKEN"
const requestStatus = 3;
const id = 41;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<boolean>('Request/UpdateRequestStaus', { params: { requestStatus, id } });
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 2 Request 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/RequestController.cs → RequestService.UpdateRequestStatus · returns boolean
Personal reminders (P3)
Reminders are private to the user who created them.
My reminders
/api/Reminder/GetAllRemindersisHashCompleted=false(or omitted): only due reminders: not completed andremindFromalready passed.isHashCompleted=true: all your reminders, completed ones included.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
isHashCompleted | query string | boolean | null | no |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Reminder/GetAllReminders?isHashCompleted=false" \
-H "Authorization: Bearer $TOKEN"
const isHashCompleted = false;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<ReminderDto[]>('Reminder/GetAllReminders', { params: { isHashCompleted } });
Response
HTTP 200 with the standard envelope. responseData is ReminderDto[].
An array of ReminderDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
description | string |
isCompleted | boolean | null |
remindFrom | string (date-time) | null |
reminderDate | string (date-time) | null |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"title": "Leave Approved",
"description": "Forgot to punch out, left at 6:45 PM",
"isCompleted": false,
"remindFrom": "2026-12-01T00:00:00",
"reminderDate": "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/ReminderController.cs → ReminderService.GetAllReminders · returns ReminderDto[]
Create or edit a reminder
/api/Reminder/CreateOrUpdateReminderid is a non-nullable integer here: send 0 to create.
Request
JSON body:
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
description | string |
isCompleted | boolean |
remindFrom | string (date-time) | null |
reminderDate | string (date-time) | null |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/Reminder/CreateOrUpdateReminder" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": 0,
"title": "Submit Form 16",
"description": "Upload investment proofs",
"isCompleted": false,
"remindFrom": "2027-01-05T09:00:00",
"reminderDate": "2027-01-10T09:00:00"
}'
const body: CreateOrUpdateReminderDto = {
"id": 0,
"title": "Submit Form 16",
"description": "Upload investment proofs",
"isCompleted": false,
"remindFrom": "2027-01-05T09:00:00",
"reminderDate": "2027-01-10T09:00:00"
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateReminderDto } from './types'; // request DTO
const data = await api.post<ReminderDto>('Reminder/CreateOrUpdateReminder', body);
{
"id": 0,
"title": "Submit Form 16",
"description": "Upload investment proofs",
"isCompleted": false,
"remindFrom": "2027-01-05T09:00:00",
"reminderDate": "2027-01-10T09:00:00"
}
Response
HTTP 200 with the standard envelope. responseData is ReminderDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
title | string |
description | string |
isCompleted | boolean | null |
remindFrom | string (date-time) | null |
reminderDate | string (date-time) | null |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"title": "Leave Approved",
"description": "Forgot to punch out, left at 6:45 PM",
"isCompleted": false,
"remindFrom": "2026-12-01T00:00:00",
"reminderDate": "2026-11-23T00:00:00"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “No reminder 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 null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/ReminderController.cs → ReminderService.CreateOrUpdateReminder · returns ReminderDto
Mark a reminder complete
/api/Reminder/MarkAsCompleteReminderRequest
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Reminder/MarkAsCompleteReminder?id=12" \
-H "Authorization: Bearer $TOKEN"
const id = 12;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<boolean>('Reminder/MarkAsCompleteReminder', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “No reminder found on this Id!”
- 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/ReminderController.cs → ReminderService.MarkAsCompleteReminder · returns boolean
Delete a reminder
/api/Reminder/DeleteReminderById/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/Reminder/DeleteReminderById/12" \
-H "Authorization: Bearer $TOKEN"
const id = 12;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`Reminder/DeleteReminderById/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “No reminder found on this Id!”
- 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/ReminderController.cs → ReminderService.DeleteReminderById · returns boolean