Skip to main content

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​

GET/api/Notification/GetAllNotificationByUserId/{id}/active/{isActive}
Bearer tokenEmployee and team leaderP1Screens: S70, bell badge
  • {id}: the user id. {isActive}: true returns unread, false returns 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 true list.
  • Tap a row → open the screen for pageName with record referenceNo (mapping) and mark it read.
  • category drives the icon colour (LEAVE, THUMB, …). icon is the server's icon file name for the type.

Request

ParameterInTypeRequired
idpathintegeryes
isActivepathbooleanyes
curl -X GET "$BASE_URL/Notification/GetAllNotificationByUserId/87/active/true" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of AllNotificationDto objects

Field (JSON name)Type
idinteger
titlestring
bodystring
typeNamestring
categorystring
iconstring
isReadboolean
createdOnstring (date-time) | null
pageNamestring
referenceNostring
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​

POST/api/Notification/UpdateNotification/{id}
Bearer tokenEmployee and team leaderP1Screens: S70

{id} is the notification id. Marks it read and returns it. Unknown id: No Data Found.

Request

ParameterInTypeRequired
idpathintegeryes
curl -X POST "$BASE_URL/Notification/UpdateNotification/9012" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is AllNotificationDto.

AllNotificationDto

Field (JSON name)Type
idinteger
titlestring
bodystring
typeNamestring
categorystring
iconstring
isReadboolean
createdOnstring (date-time) | null
pageNamestring
referenceNostring
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​

POST/api/Notification/ReadAllNotification/{id}
Bearer tokenEmployee and team leaderP1Screens: S70

{id} is the user id. Marks every unread notification of the last 6 months as read.

Request

ParameterInTypeRequired
idpathintegeryes
curl -X POST "$BASE_URL/Notification/ReadAllNotification/87" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is boolean.

Type: boolean

Example response
{
"isSuccess": true,
"responseData": false,
"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 false. Show errorMessage to the user as-is.

Source: HRMS.WebAPI/Controllers/NotificationController.cs → UserClaimService.GetCurrentUserId, NotificationService.ReadAllNotification · returns boolean

Notification types​

GET/api/Notification/GetAllNotificationType
Bearer tokenEmployee and team leaderP3

The 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 -X GET "$BASE_URL/Notification/GetAllNotificationType" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of NotificationTypeDto objects

Field (JSON name)Type
idinteger
typeNamestring
iconstring
categorystring
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​

GET/api/Instruction/GetAllInstruction
Bearer tokenEmployee and team leaderP2Screens: S10 See all, S70

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

Response

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

An array of AllInstructionDto objects

Field (JSON name)Type
idinteger
titlestring
descriptionstring
typeNotificationTypeDto
createdOnstring (date-time) | null
pageLinkstring
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​

GET/api/Request/GetAllRequest
Bearer tokenEmployee and team leaderP2

Requests created by the signed-in user (Admin: everyone's), newest first. requestStatus (query, optional) filters by status; omit it for all.

Request

ParameterInTypeRequired
requestStatusquery stringRequestStatus (enum) | null0 = Pending1 = InProgress2 = Completed3 = Cancelledno
curl -X GET "$BASE_URL/Request/GetAllRequest" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of AllRequestDto objects

Field (JSON name)Type
idinteger
titlestring
descriptionstring
createdOnstring (date-time) | null
statusRequestStatus (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​

POST/api/Request/CreateOrUpdateRequest
Bearer tokenEmployee and team leaderP2

Request

JSON body:

CreateorUpdateRequestModule

Field (JSON name)Type
idinteger | null
titlestring
descriptionstring
statusRequestStatus (enum)0 = Pending1 = InProgress2 = Completed3 = Cancelled
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
}'

Response

HTTP 200 with the standard envelope. responseData is AllRequestDto.

AllRequestDto

Field (JSON name)Type
idinteger
titlestring
descriptionstring
createdOnstring (date-time) | null
statusRequestStatus (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​

GET/api/Request/GetAllRequestDescription
Bearer tokenEmployee and team leaderP2

The request plus its messages (descriptionList). There is no websocket: refresh when the screen gains focus.

Request

ParameterInTypeRequired
requestIdquery stringintegeryes
curl -X GET "$BASE_URL/Request/GetAllRequestDescription?requestId=41" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is RequestDescriptionDto.

RequestDescriptionDto

Field (JSON name)Type
requestAllRequestDto
descriptionListRequestDecriptionClass[]
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​

POST/api/Request/CreateorUpdateRequestDescriptionDto
Bearer tokenEmployee and team leaderP2

Adds a message to the request's thread (note the unusual route name ending in Dto).

Request

JSON body:

CreateorUpdateRequestDescriptionDto

Field (JSON name)Type
messagestring
requestIdinteger
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
}'

Response

HTTP 200 with the standard envelope. responseData is boolean.

Type: boolean

Example response
{
"isSuccess": true,
"responseData": 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/RequestController.cs → RequestService.CreateRequestDescription · returns boolean

Change status (cancel)​

GET/api/Request/UpdateRequestStaus
Bearer tokenEmployee and team leaderP2

A 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

ParameterInTypeRequired
requestStatusquery stringRequestStatus (enum)0 = Pending1 = InProgress2 = Completed3 = Cancelledyes
idquery stringintegeryes
curl -X GET "$BASE_URL/Request/UpdateRequestStaus?requestStatus=3&id=41" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is boolean.

Type: boolean

Example response
{
"isSuccess": true,
"responseData": false,
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}

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​

GET/api/Reminder/GetAllReminders
Bearer tokenEmployee and team leaderP3
  • isHashCompleted=false (or omitted): only due reminders: not completed and remindFrom already passed.
  • isHashCompleted=true: all your reminders, completed ones included.

Request

ParameterInTypeRequired
isHashCompletedquery stringboolean | nullno
curl -X GET "$BASE_URL/Reminder/GetAllReminders?isHashCompleted=false" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of ReminderDto objects

Field (JSON name)Type
idinteger
titlestring
descriptionstring
isCompletedboolean | null
remindFromstring (date-time) | null
reminderDatestring (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​

POST/api/Reminder/CreateOrUpdateReminder
Bearer tokenEmployee and team leaderP3

id is a non-nullable integer here: send 0 to create.

Request

JSON body:

CreateOrUpdateReminderDto

Field (JSON name)Type
idinteger
titlestring
descriptionstring
isCompletedboolean
remindFromstring (date-time) | null
reminderDatestring (date-time) | null
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"
}'

Response

HTTP 200 with the standard envelope. responseData is ReminderDto.

ReminderDto

Field (JSON name)Type
idinteger
titlestring
descriptionstring
isCompletedboolean | null
remindFromstring (date-time) | null
reminderDatestring (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​

GET/api/Reminder/MarkAsCompleteReminder
Bearer tokenEmployee and team leaderP3

Request

ParameterInTypeRequired
idquery stringintegeryes
curl -X GET "$BASE_URL/Reminder/MarkAsCompleteReminder?id=12" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is boolean.

Type: boolean

Example response
{
"isSuccess": true,
"responseData": false,
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}

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​

DELETE/api/Reminder/DeleteReminderById/{id}
Bearer tokenEmployee and team leaderP3

Request

ParameterInTypeRequired
idpathintegeryes
curl -X DELETE "$BASE_URL/Reminder/DeleteReminderById/12" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is boolean.

Type: boolean

Example response
{
"isSuccess": true,
"responseData": false,
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}

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