Other applications
Plan section 2.4 · Screen S31 types beyond leave/WFH/missed punch. All follow the same pattern and server rules as leave: list with the filter object, CreateOrUpdate… with id: null to create, status 0 from the app, get by id, delete while pending. Approve/reject is on Team approvals.
Holiday working / comp-off has no API (gap G7).
Overtime (P2)
My overtime requests
/api/OverTimeApplication/GetAllOvertimeApplicationsTeam leaders also get their team's requests; filter by employee.id for "My requests".
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/OverTimeApplication/GetAllOvertimeApplications" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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<OverTimeApplicationDto[]>('OverTimeApplication/GetAllOvertimeApplications', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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 OverTimeApplicationDto[].
An array of OverTimeApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
otDate | string (date-time) |
otHours | number |
approver | EmployeeSummaryDto |
approveHrs | number |
overtimeStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
overtimeStatusType | string |
otRemark | string |
thumbInTime | string (date-time) | null |
thumbOutTime | string (date-time) | null |
presentTime | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"otDate": "2026-11-23T00:00:00",
"otHours": 6,
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approveHrs": 6,
"overtimeStatus": 0,
"overtimeStatusType": "string",
"otRemark": "Forgot to punch out, left at 6:45 PM",
"thumbInTime": "2026-11-23T09:42:00",
"thumbOutTime": "2026-11-23T09:42:00",
"presentTime": "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/OverTimeApplicationController.cs → OvertimeApplicationService.GetAllOvertimeApplications · returns OverTimeApplicationDto[]
Overtime detail
/api/OverTimeApplication/GetOvertimeApplicationRequest
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/OverTimeApplication/GetOvertimeApplication?id=77" \
-H "Authorization: Bearer $TOKEN"
const id = 77;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<OverTimeApplicationDto>('OverTimeApplication/GetOvertimeApplication', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is OverTimeApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
otDate | string (date-time) |
otHours | number |
approver | EmployeeSummaryDto |
approveHrs | number |
overtimeStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
overtimeStatusType | string |
otRemark | string |
thumbInTime | string (date-time) | null |
thumbOutTime | string (date-time) | null |
presentTime | string |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"otDate": "2026-11-23T00:00:00",
"otHours": 6,
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approveHrs": 6,
"overtimeStatus": 0,
"overtimeStatusType": "string",
"otRemark": "Forgot to punch out, left at 6:45 PM",
"thumbInTime": "2026-11-23T09:42:00",
"thumbOutTime": "2026-11-23T09:42:00",
"presentTime": "string"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- 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/OverTimeApplicationController.cs → OvertimeApplicationService.GetOvertimeApplicationById · returns OverTimeApplicationDto
Request or edit overtime
/api/OverTimeApplication/CreateOrUpdateOvertimeApplicationotHours: hours requested (decimal).approveHrs: send0. On approval the server copiesotHoursinto it unless it is already above 0, so a non-zero value sent by the employee would be kept.overtimeStatus:0.- Refused ("Limit Days Exceeded" message) when the employee has approved leave on
otDate, or an approved overtime already exists for that date (GET_APPLICATION_ENTRY_ALLOWwith the overtime flag).
Request
JSON body:
CreateOrUpdateOverTimeApplicationDto
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
otDate | string (date-time) |
otHours | number |
approverId | integer | null |
approveHrs | number |
overtimeStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
otRemark | string |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/OverTimeApplication/CreateOrUpdateOvertimeApplication" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"employeeId": 142,
"otDate": "2026-11-21T00:00:00",
"otHours": 2.5,
"approverId": 96,
"approveHrs": 0,
"overtimeStatus": 0,
"otRemark": "Slab casting at GIFT City Tower B"
}'
const body: CreateOrUpdateOverTimeApplicationDto = {
"id": null,
"employeeId": 142,
"otDate": "2026-11-21T00:00:00",
"otHours": 2.5,
"approverId": 96,
"approveHrs": 0,
"overtimeStatus": 0,
"otRemark": "Slab casting at GIFT City Tower B"
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateOverTimeApplicationDto } from './types'; // request DTO
const data = await api.post<OverTimeApplicationDto>('OverTimeApplication/CreateOrUpdateOvertimeApplication', body);
{
"id": null,
"employeeId": 142,
"otDate": "2026-11-21T00:00:00",
"otHours": 2.5,
"approverId": 96,
"approveHrs": 0,
"overtimeStatus": 0,
"otRemark": "Slab casting at GIFT City Tower B"
}
Response
HTTP 200 with the standard envelope. responseData is OverTimeApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
otDate | string (date-time) |
otHours | number |
approver | EmployeeSummaryDto |
approveHrs | number |
overtimeStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
overtimeStatusType | string |
otRemark | string |
thumbInTime | string (date-time) | null |
thumbOutTime | string (date-time) | null |
presentTime | string |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"otDate": "2026-11-23T00:00:00",
"otHours": 6,
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approveHrs": 6,
"overtimeStatus": 0,
"overtimeStatusType": "string",
"otRemark": "Forgot to punch out, left at 6:45 PM",
"thumbInTime": "2026-11-23T09:42:00",
"thumbOutTime": "2026-11-23T09:42:00",
"presentTime": "string"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “This application is already approved or rejected. Only an approver can change it.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Overtime Not Found.”
- isSuccess: false · errorCode 1 “(computed: $"{isOTDateExist.Employee.EmpName}'s OverTime Already Exist )”
- isSuccess: false · errorCode 1 “Overtime Application Limit Days Exceeded, You Can't Add This Entry”
- 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/OverTimeApplicationController.cs → OvertimeApplicationService.CreateOrUpdateOvertimeApplication · returns OverTimeApplicationDto
Withdraw overtime
/api/OverTimeApplication/DeleteOvertimeApplication/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/OverTimeApplication/DeleteOvertimeApplication/77" \
-H "Authorization: Bearer $TOKEN"
const id = 77;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`OverTimeApplication/DeleteOvertimeApplication/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Overtime 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/OverTimeApplicationController.cs → OvertimeApplicationService.DeleteOvertimeApplicationById · returns boolean
Clarification (P2)
A clarification is an application the employee files for a specific date and time with a reason (for example explaining a late arrival). Offer it only when login's isClarify is true (a designation flag).
My clarifications
/api/Clarification/GetAllClarificationSelf-only for every non-admin.
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/Clarification/GetAllClarification" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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<ClarificationDto[]>('Clarification/GetAllClarification', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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 ClarificationDto[].
An array of ClarificationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
clarificationDate | string (date-time) |
clarificationTime | string (date-time) |
clarificationRequestDate | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"clarificationDate": "2026-11-23T00:00:00",
"clarificationTime": "2026-11-23T09:42:00",
"clarificationRequestDate": "2026-11-23T00:00:00",
"reason": "Forgot to punch out, left at 6:45 PM",
"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/ClarificationController.cs → ClarificationService.GetAllClarification · returns ClarificationDto[]
Clarification detail
/api/Clarification/GetClarificationByIdRequest
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Clarification/GetClarificationById?id=18" \
-H "Authorization: Bearer $TOKEN"
const id = 18;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<ClarificationDto>('Clarification/GetClarificationById', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is ClarificationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
clarificationDate | string (date-time) |
clarificationTime | string (date-time) |
clarificationRequestDate | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"clarificationDate": "2026-11-23T00:00:00",
"clarificationTime": "2026-11-23T09:42:00",
"clarificationRequestDate": "2026-11-23T00:00:00",
"reason": "Forgot to punch out, left at 6:45 PM",
"status": 0
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- 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/ClarificationController.cs → ClarificationService.GetClarificationById · returns ClarificationDto
File or edit a clarification
/api/Clarification/CreateOrUpdateClarificationRefused with Clarification Application Limit Days Exceeded… when the employee has approved leave on that date (same check as punches, see Server rules; not a day-count limit), and with Clarification Application already exist! when one already exists for that date.
Request
JSON body:
CreateOrUpdateClarificationDto
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
approverId | integer | null |
clarificationDate | string (date-time) |
clarificationTime | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/Clarification/CreateOrUpdateClarification" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"employeeId": 142,
"approverId": 96,
"clarificationDate": "2026-11-17T00:00:00",
"clarificationTime": "2026-11-17T09:47:00",
"reason": "Traffic diversion near Sabarmati bridge",
"status": 0
}'
const body: CreateOrUpdateClarificationDto = {
"id": null,
"employeeId": 142,
"approverId": 96,
"clarificationDate": "2026-11-17T00:00:00",
"clarificationTime": "2026-11-17T09:47:00",
"reason": "Traffic diversion near Sabarmati bridge",
"status": 0
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateClarificationDto } from './types'; // request DTO
const data = await api.post<ClarificationDto>('Clarification/CreateOrUpdateClarification', body);
{
"id": null,
"employeeId": 142,
"approverId": 96,
"clarificationDate": "2026-11-17T00:00:00",
"clarificationTime": "2026-11-17T09:47:00",
"reason": "Traffic diversion near Sabarmati bridge",
"status": 0
}
Response
HTTP 200 with the standard envelope. responseData is ClarificationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
clarificationDate | string (date-time) |
clarificationTime | string (date-time) |
clarificationRequestDate | string (date-time) |
reason | string |
status | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"clarificationDate": "2026-11-23T00:00:00",
"clarificationTime": "2026-11-23T09:42:00",
"clarificationRequestDate": "2026-11-23T00:00:00",
"reason": "Forgot to punch out, left at 6:45 PM",
"status": 0
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “This application is already approved or rejected. Only an approver can change it.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Clarification Application Limit Days Exceeded, You Can't Update This Entry”
- isSuccess: false · errorCode 1 “Clarification Data Not Found.”
- isSuccess: false · errorCode 1 “Clarification Application Limit Days Exceeded, You Can't Add This Entry”
- isSuccess: false · errorCode 1 “Clarification Application already exist!”
- 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/ClarificationController.cs → ClarificationService.CreateOrUpdateClarification · returns ClarificationDto
Withdraw a clarification
/api/Clarification/DeleteClarificationApplication/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/Clarification/DeleteClarificationApplication/18" \
-H "Authorization: Bearer $TOKEN"
const id = 18;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`Clarification/DeleteClarificationApplication/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Clarification 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/ClarificationController.cs → ClarificationService.DeleteClarificationApplication · returns boolean
Fuel allowance (P2)
Only for employees who have the benefit. Vehicle types come from CommonEnumValues/GetAllVehicleType.
My fuel allowance claims
/api/FuelAllowanceApplication/GetAllFuelAllowanceApplicationsTeam leaders also get their team's claims.
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/FuelAllowanceApplication/GetAllFuelAllowanceApplications" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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<FuelAllowanceApplicationDto[]>('FuelAllowanceApplication/GetAllFuelAllowanceApplications', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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 FuelAllowanceApplicationDto[].
An array of FuelAllowanceApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
transactionDate | string (date-time) |
vehicleTypeId | VehicleType (enum)1 = Bike2 = Car |
vehicleTypeName | string |
requestKM | number |
approver | EmployeeSummaryDto |
approveKM | number |
fuelAllowanceStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
fuelAllowanceStatusType | string |
remark | string |
company | CompanyDto |
project | ProjectDto |
vehicleNo | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"transactionDate": "2026-11-23T00:00:00",
"vehicleTypeId": 1,
"vehicleTypeName": "string",
"requestKM": 1,
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approveKM": 1,
"fuelAllowanceStatus": 0,
"fuelAllowanceStatusType": "string",
"remark": "Forgot to punch out, left at 6:45 PM",
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"project": {
"id": 1045,
"projectName": "GIFT City Tower B",
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"longitude": 72.5714,
"latitude": 23.0225,
"orderKey": "string",
"scope": "string",
"isActive": true,
"projectCompanyDistance": [
{
"id": 1045,
"projectId": 1,
"companyId": 1,
"company": {},
"distanceKM": 1,
"isActive": true
}
]
},
"vehicleNo": "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/FuelAllowanceApplicationController.cs → FuelAllowanceApplicationService.GetAllFuelAllowanceApplications · returns FuelAllowanceApplicationDto[]
Fuel allowance detail
/api/FuelAllowanceApplication/GetFuelAllowanceApplicationRequest
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/FuelAllowanceApplication/GetFuelAllowanceApplication?id=64" \
-H "Authorization: Bearer $TOKEN"
const id = 64;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<FuelAllowanceApplicationDto>('FuelAllowanceApplication/GetFuelAllowanceApplication', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is FuelAllowanceApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
transactionDate | string (date-time) |
vehicleTypeId | VehicleType (enum)1 = Bike2 = Car |
vehicleTypeName | string |
requestKM | number |
approver | EmployeeSummaryDto |
approveKM | number |
fuelAllowanceStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
fuelAllowanceStatusType | string |
remark | string |
company | CompanyDto |
project | ProjectDto |
vehicleNo | string |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"transactionDate": "2026-11-23T00:00:00",
"vehicleTypeId": 1,
"vehicleTypeName": "string",
"requestKM": 1,
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approveKM": 1,
"fuelAllowanceStatus": 0,
"fuelAllowanceStatusType": "string",
"remark": "Forgot to punch out, left at 6:45 PM",
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"project": {
"id": 1045,
"projectName": "GIFT City Tower B",
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"longitude": 72.5714,
"latitude": 23.0225,
"orderKey": "string",
"scope": "string",
"isActive": true,
"projectCompanyDistance": [
{
"id": 1045,
"projectId": 1,
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"distanceKM": 1,
"isActive": true
}
]
},
"vehicleNo": "string"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- 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/FuelAllowanceApplicationController.cs → FuelAllowanceApplicationService.GetFuelAllowanceApplicationById · returns FuelAllowanceApplicationDto
Claim or edit fuel allowance
/api/FuelAllowanceApplication/CreateOrUpdateFuelAllowanceApplicationrequestKM: kilometres claimed.approveKM: send0(same rule as overtimeapproveHrs).vehicleTypeIdis theVehicleTypeenum value.companyId/projectId: the site visited, if any.
Request
JSON body:
CreateOrUpdateFuelAllowanceApplicationDto
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
transactionDate | string (date-time) |
vehicleTypeId | VehicleType (enum)1 = Bike2 = Car |
requestKM | number |
approverId | integer | null |
approveKM | number |
fuelAllowanceStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
remark | string |
companyId | integer | null |
projectId | integer | null |
vehicleNo | string |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/FuelAllowanceApplication/CreateOrUpdateFuelAllowanceApplication" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"employeeId": 142,
"transactionDate": "2026-11-21T00:00:00",
"vehicleTypeId": 1,
"requestKM": 42,
"approverId": 96,
"approveKM": 0,
"fuelAllowanceStatus": 0,
"remark": "Site visit GIFT City Tower B",
"companyId": 1,
"projectId": 12,
"vehicleNo": "GJ01AB1234"
}'
const body: CreateOrUpdateFuelAllowanceApplicationDto = {
"id": null,
"employeeId": 142,
"transactionDate": "2026-11-21T00:00:00",
"vehicleTypeId": 1,
"requestKM": 42,
"approverId": 96,
"approveKM": 0,
"fuelAllowanceStatus": 0,
"remark": "Site visit GIFT City Tower B",
"companyId": 1,
"projectId": 12,
"vehicleNo": "GJ01AB1234"
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateFuelAllowanceApplicationDto } from './types'; // request DTO
const data = await api.post<FuelAllowanceApplicationDto>('FuelAllowanceApplication/CreateOrUpdateFuelAllowanceApplication', body);
{
"id": null,
"employeeId": 142,
"transactionDate": "2026-11-21T00:00:00",
"vehicleTypeId": 1,
"requestKM": 42,
"approverId": 96,
"approveKM": 0,
"fuelAllowanceStatus": 0,
"remark": "Site visit GIFT City Tower B",
"companyId": 1,
"projectId": 12,
"vehicleNo": "GJ01AB1234"
}
Response
HTTP 200 with the standard envelope. responseData is FuelAllowanceApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
transactionDate | string (date-time) |
vehicleTypeId | VehicleType (enum)1 = Bike2 = Car |
vehicleTypeName | string |
requestKM | number |
approver | EmployeeSummaryDto |
approveKM | number |
fuelAllowanceStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
fuelAllowanceStatusType | string |
remark | string |
company | CompanyDto |
project | ProjectDto |
vehicleNo | string |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"transactionDate": "2026-11-23T00:00:00",
"vehicleTypeId": 1,
"vehicleTypeName": "string",
"requestKM": 1,
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approveKM": 1,
"fuelAllowanceStatus": 0,
"fuelAllowanceStatusType": "string",
"remark": "Forgot to punch out, left at 6:45 PM",
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"project": {
"id": 1045,
"projectName": "GIFT City Tower B",
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"longitude": 72.5714,
"latitude": 23.0225,
"orderKey": "string",
"scope": "string",
"isActive": true,
"projectCompanyDistance": [
{
"id": 1045,
"projectId": 1,
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"distanceKM": 1,
"isActive": true
}
]
},
"vehicleNo": "string"
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “This application is already approved or rejected. Only an approver can change it.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Fuel Allowance Not Found.”
- isSuccess: false · errorCode 1 “(computed: $"{isTransactionDateExist.Employee.EmpName}'s Fuel Allowance)”
- 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/FuelAllowanceApplicationController.cs → FuelAllowanceApplicationService.CreateOrUpdateFuelAllowanceApplication · returns FuelAllowanceApplicationDto
Withdraw a fuel claim
/api/FuelAllowanceApplication/DeleteFuelAllowanceApplication/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/FuelAllowanceApplication/DeleteFuelAllowanceApplication/64" \
-H "Authorization: Bearer $TOKEN"
const id = 64;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`FuelAllowanceApplication/DeleteFuelAllowanceApplication/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “FuelAllowance 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/FuelAllowanceApplicationController.cs → FuelAllowanceApplicationService.DeleteFuelAllowanceApplicationById · returns boolean
Compensation (P3)
Compensation types
/api/Compensation/GetActiveCompensationActive compensation types for the type picker (compensationTypeId).
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Compensation/GetActiveCompensation" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<CompensationDto[]>('Compensation/GetActiveCompensation');
Response
HTTP 200 with the standard envelope. responseData is CompensationDto[].
An array of CompensationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
compensationName | string |
shortCode | string |
benefitType | BenefitType (enum)1 = Allowance2 = CompensatoryOff |
benefitTypeName | string |
benefitValue | number |
isActive | boolean |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"compensationName": "string",
"shortCode": "string",
"benefitType": 1,
"benefitTypeName": "string",
"benefitValue": 1,
"isActive": true
}
],
"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/CompensationController.cs → CompensationService.GetActiveCompensation · returns CompensationDto[]
My compensation claims
/api/CompensationApplication/GetAllCompensationApplicationsTeam leaders also get their team's claims.
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/CompensationApplication/GetAllCompensationApplications" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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<CompensationApplicationDto[]>('CompensationApplication/GetAllCompensationApplications', body);
{
"tenantId": 1,
"id": 1045,
"employeeCode": 1,
"employeeIds": null,
"companyIds": [
1
],
"mobileNo": "9876544821",
"fromDate": "2026-11-01T00:00:00",
"toDate": "2026-11-30T00:00:00",
"fromMonth": "202610",
"toMonth": "202610",
"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 CompensationApplicationDto[].
An array of CompensationApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
compensationRequestDate | string (date-time) |
compensationType | CompensationDto |
fromDate | string (date-time) |
toDate | string (date-time) |
compensationReason | string |
compensationStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
compensationStatusType | string |
company | CompanyDto |
project | ProjectDto |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"compensationRequestDate": "2026-11-23T00:00:00",
"compensationType": {
"id": 1045,
"compensationName": "string",
"shortCode": "string",
"benefitType": 1,
"benefitTypeName": "string",
"benefitValue": 1,
"isActive": true
},
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"compensationReason": "Forgot to punch out, left at 6:45 PM",
"compensationStatus": 0,
"compensationStatusType": "string",
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"project": {
"id": 1045,
"projectName": "GIFT City Tower B",
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"longitude": 72.5714,
"latitude": 23.0225,
"orderKey": "string",
"scope": "string",
"isActive": true,
"projectCompanyDistance": [
{
"id": 1045,
"projectId": 1,
"companyId": 1,
"company": {},
"distanceKM": 1,
"isActive": true
}
]
}
}
],
"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/CompensationApplicationController.cs → CompensationApplicationService.GetAllCompensationApplications · returns CompensationApplicationDto[]
Compensation detail
/api/CompensationApplication/GetCompensationApplicationRequest
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/CompensationApplication/GetCompensationApplication?id=9" \
-H "Authorization: Bearer $TOKEN"
const id = 9;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<CompensationApplicationDto>('CompensationApplication/GetCompensationApplication', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is CompensationApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
compensationRequestDate | string (date-time) |
compensationType | CompensationDto |
fromDate | string (date-time) |
toDate | string (date-time) |
compensationReason | string |
compensationStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
compensationStatusType | string |
company | CompanyDto |
project | ProjectDto |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"compensationRequestDate": "2026-11-23T00:00:00",
"compensationType": {
"id": 1045,
"compensationName": "string",
"shortCode": "string",
"benefitType": 1,
"benefitTypeName": "string",
"benefitValue": 1,
"isActive": true
},
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"compensationReason": "Forgot to punch out, left at 6:45 PM",
"compensationStatus": 0,
"compensationStatusType": "string",
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"project": {
"id": 1045,
"projectName": "GIFT City Tower B",
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"longitude": 72.5714,
"latitude": 23.0225,
"orderKey": "string",
"scope": "string",
"isActive": true,
"projectCompanyDistance": [
{
"id": 1045,
"projectId": 1,
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"distanceKM": 1,
"isActive": true
}
]
}
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- 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/CompensationApplicationController.cs → CompensationApplicationService.GetCompensationApplicationById · returns CompensationApplicationDto
Claim or edit compensation
/api/CompensationApplication/CreateOrUpdateCompensationApplicationRequest
JSON body:
CreateOrUpdateCompensationApplicationDto
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
approverId | integer | null |
compensationTypeId | integer |
fromDate | string (date-time) |
toDate | string (date-time) |
compensationReason | string |
compensationStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
companyId | integer | null |
projectId | integer | null |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/CompensationApplication/CreateOrUpdateCompensationApplication" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"employeeId": 142,
"approverId": 96,
"compensationTypeId": 2,
"fromDate": "2026-11-21T00:00:00",
"toDate": "2026-11-21T00:00:00",
"compensationReason": "Worked on Sunday for slab casting",
"compensationStatus": 0,
"companyId": 1,
"projectId": 12
}'
const body: CreateOrUpdateCompensationApplicationDto = {
"id": null,
"employeeId": 142,
"approverId": 96,
"compensationTypeId": 2,
"fromDate": "2026-11-21T00:00:00",
"toDate": "2026-11-21T00:00:00",
"compensationReason": "Worked on Sunday for slab casting",
"compensationStatus": 0,
"companyId": 1,
"projectId": 12
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateCompensationApplicationDto } from './types'; // request DTO
const data = await api.post<CompensationApplicationDto>('CompensationApplication/CreateOrUpdateCompensationApplication', body);
{
"id": null,
"employeeId": 142,
"approverId": 96,
"compensationTypeId": 2,
"fromDate": "2026-11-21T00:00:00",
"toDate": "2026-11-21T00:00:00",
"compensationReason": "Worked on Sunday for slab casting",
"compensationStatus": 0,
"companyId": 1,
"projectId": 12
}
Response
HTTP 200 with the standard envelope. responseData is CompensationApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
compensationRequestDate | string (date-time) |
compensationType | CompensationDto |
fromDate | string (date-time) |
toDate | string (date-time) |
compensationReason | string |
compensationStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
compensationStatusType | string |
company | CompanyDto |
project | ProjectDto |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"compensationRequestDate": "2026-11-23T00:00:00",
"compensationType": {
"id": 1045,
"compensationName": "string",
"shortCode": "string",
"benefitType": 1,
"benefitTypeName": "string",
"benefitValue": 1,
"isActive": true
},
"fromDate": "2026-12-01T00:00:00",
"toDate": "2026-12-02T00:00:00",
"compensationReason": "Forgot to punch out, left at 6:45 PM",
"compensationStatus": 0,
"compensationStatusType": "string",
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"project": {
"id": 1045,
"projectName": "GIFT City Tower B",
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"longitude": 72.5714,
"latitude": 23.0225,
"orderKey": "string",
"scope": "string",
"isActive": true,
"projectCompanyDistance": [
{
"id": 1045,
"projectId": 1,
"companyId": 1,
"company": {
"id": 1045,
"companyName": "Acme Infra Pvt Ltd",
"companyWebsite": "string",
"personName": "string",
"companyLegalName": "string",
"panCard": "string",
"tanCard": "string",
"address": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"contactNo": "9876544821",
"email": "priya.sharma@acmeinfra.in",
"isActive": true,
"pfNo": "string",
"pfGroup": "string",
"pfEstNo": "string",
"esicNo": "string",
"lwfNo": "string",
"ptNo": "string"
},
"distanceKM": 1,
"isActive": true
}
]
}
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “This application is already approved or rejected. Only an approver can change it.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Compensation Application Not Found.”
- isSuccess: false · errorCode 1 “Compensation Application already exist!”
- 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/CompensationApplicationController.cs → CompensationApplicationService.CreateOrUpdateCompensationApplication · returns CompensationApplicationDto
Withdraw a compensation claim
/api/CompensationApplication/DeleteCompensationApplication/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/CompensationApplication/DeleteCompensationApplication/9" \
-H "Authorization: Bearer $TOKEN"
const id = 9;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`CompensationApplication/DeleteCompensationApplication/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Compensation Application 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/CompensationApplicationController.cs → CompensationApplicationService.DeleteCompensationApplicationById · returns boolean
Extra pay (P3)
My extra pay
/api/ExtraPayApplication/GetAllExtraPayApplicationsSelf-only for non-admins. The stored procedure declares fromMonth/toMonth but does not use them, so the list always returns all your extra-pay entries; filter by payMonth on the device.
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/ExtraPayApplication/GetAllExtraPayApplications" \
-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": "202610",
"toMonth": "202610",
"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": "202610",
"toMonth": "202610",
"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<ExtraPayApplicationDto[]>('ExtraPayApplication/GetAllExtraPayApplications', 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": "202610",
"toMonth": "202610",
"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 ExtraPayApplicationDto[].
An array of ExtraPayApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
payDate | string (date-time) |
payAmount | number |
payMonth | string |
payRemark | string |
allowanceType | string |
payReferenceId | integer | null |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"payDate": "2026-11-23T00:00:00",
"payAmount": 58240,
"payMonth": "202610",
"payRemark": "Forgot to punch out, left at 6:45 PM",
"allowanceType": "string",
"payReferenceId": 58240
}
],
"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/ExtraPayApplicationController.cs → ExtraPayApplicationService.GetAllExtraPayApplications · returns ExtraPayApplicationDto[]
Extra pay detail
/api/ExtraPayApplication/GetExtraPayApplicationRequest
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/ExtraPayApplication/GetExtraPayApplication?id=5" \
-H "Authorization: Bearer $TOKEN"
const id = 5;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<ExtraPayApplicationDto>('ExtraPayApplication/GetExtraPayApplication', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is ExtraPayApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
payDate | string (date-time) |
payAmount | number |
payMonth | string |
payRemark | string |
allowanceType | string |
payReferenceId | integer | null |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"payDate": "2026-11-23T00:00:00",
"payAmount": 58240,
"payMonth": "202610",
"payRemark": "Forgot to punch out, left at 6:45 PM",
"allowanceType": "string",
"payReferenceId": 58240
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- 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/ExtraPayApplicationController.cs → ExtraPayApplicationService.GetExtraPayApplicationById · returns ExtraPayApplicationDto
Last extra pay entry
/api/ExtraPayApplication/GetLastExtraPayApplicationRequest
| Parameter | In | Type | Required |
|---|---|---|---|
currentMonth | query string | string | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/ExtraPayApplication/GetLastExtraPayApplication?currentMonth=string" \
-H "Authorization: Bearer $TOKEN"
const currentMonth = "string";
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<ExtraPayApplicationDto[]>('ExtraPayApplication/GetLastExtraPayApplication', { params: { currentMonth } });
Response
HTTP 200 with the standard envelope. responseData is ExtraPayApplicationDto[].
An array of ExtraPayApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
payDate | string (date-time) |
payAmount | number |
payMonth | string |
payRemark | string |
allowanceType | string |
payReferenceId | integer | null |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"payDate": "2026-11-23T00:00:00",
"payAmount": 58240,
"payMonth": "202610",
"payRemark": "Forgot to punch out, left at 6:45 PM",
"allowanceType": "string",
"payReferenceId": 58240
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “You Entered Month is 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 null. Show errorMessage to the user as-is.
Source: HRMS.WebAPI/Controllers/ExtraPayApplicationController.cs → ExtraPayApplicationService.GetLastExtraPayApplication · returns ExtraPayApplicationDto[]
Add or edit extra pay
/api/ExtraPayApplication/CreateOrUpdateExtraPayApplicationThe body is an array (several entries in one call). Every entry is checked against the server rules; one entry for an employee outside your team fails the whole call. Extra pay has no status field.
Request
JSON body:
An array of CreateOrUpdateExtraPayApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
approverId | integer | null |
payAmount | number |
payMonth | string |
payRemark | string |
allowanceType | string |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/ExtraPayApplication/CreateOrUpdateExtraPayApplication" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '[
{
"id": null,
"employeeId": 142,
"approverId": 96,
"payAmount": 3000,
"payMonth": "202610",
"payRemark": "Site allowance",
"allowanceType": "Site"
}
]'
const body: CreateOrUpdateExtraPayApplicationDto[] = [
{
"id": null,
"employeeId": 142,
"approverId": 96,
"payAmount": 3000,
"payMonth": "202610",
"payRemark": "Site allowance",
"allowanceType": "Site"
}
];
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateExtraPayApplicationDto } from './types'; // request DTO
const data = await api.post<ExtraPayApplicationDto[]>('ExtraPayApplication/CreateOrUpdateExtraPayApplication', body);
[
{
"id": null,
"employeeId": 142,
"approverId": 96,
"payAmount": 3000,
"payMonth": "202610",
"payRemark": "Site allowance",
"allowanceType": "Site"
}
]
Response
HTTP 200 with the standard envelope. responseData is ExtraPayApplicationDto[].
An array of ExtraPayApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
approver | EmployeeSummaryDto |
payDate | string (date-time) |
payAmount | number |
payMonth | string |
payRemark | string |
allowanceType | string |
payReferenceId | integer | null |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"payDate": "2026-11-23T00:00:00",
"payAmount": 58240,
"payMonth": "202610",
"payRemark": "Forgot to punch out, left at 6:45 PM",
"allowanceType": "string",
"payReferenceId": 58240
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “Extra Pay For Employee {EmpName } ({EmpCode}) In Month {month}-{year} Is Already Exist!”
- 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/ExtraPayApplicationController.cs → ExtraPayApplicationService.CreateOrUpdateExtraPayApplication · returns ExtraPayApplicationDto[]
Delete extra pay
/api/ExtraPayApplication/DeleteExtraPayApplication/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/ExtraPayApplication/DeleteExtraPayApplication/5" \
-H "Authorization: Bearer $TOKEN"
const id = 5;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`ExtraPayApplication/DeleteExtraPayApplication/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Extra Pay 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/ExtraPayApplicationController.cs → ExtraPayApplicationService.DeleteExtraPayApplicationById · returns boolean
Resignation (P3)
Low frequency; the plan suggests keeping it on the web. Documented for completeness.
My resignation
/api/ResignApplication/GetAllResignApplicationsSelf-only for non-admins.
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/ResignApplication/GetAllResignApplications" \
-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": "202610",
"toMonth": "202610",
"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": "202610",
"toMonth": "202610",
"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<ResignApplicationDto[]>('ResignApplication/GetAllResignApplications', 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": "202610",
"toMonth": "202610",
"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 ResignApplicationDto[].
An array of ResignApplicationDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
resignDate | string (date-time) | null |
approver | EmployeeSummaryDto |
reason | string |
resignStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
statusRemark | string |
resignStatusType | string |
noticePeriodStartDate | string (date-time) | null |
noticePeriodEndDate | string (date-time) | null |
calcRevivedPaidLeave | boolean |
calcRevivedIncreement | boolean |
topLeader | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"resignDate": "2026-11-23T00:00:00",
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"reason": "Forgot to punch out, left at 6:45 PM",
"resignStatus": 0,
"statusRemark": "Forgot to punch out, left at 6:45 PM",
"resignStatusType": "string",
"noticePeriodStartDate": "2026-11-23T00:00:00",
"noticePeriodEndDate": "2026-11-23T00:00:00",
"calcRevivedPaidLeave": false,
"calcRevivedIncreement": false,
"topLeader": 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/ResignApplicationController.cs → ResignApplicationService.GetAllResignApplications · returns ResignApplicationDto[]
Resignation detail
/api/ResignApplication/GetResignApplicationRequest
| Parameter | In | Type | Required |
|---|---|---|---|
id | query string | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/ResignApplication/GetResignApplication?id=3" \
-H "Authorization: Bearer $TOKEN"
const id = 3;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<ResignApplicationDto>('ResignApplication/GetResignApplication', { params: { id } });
Response
HTTP 200 with the standard envelope. responseData is ResignApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
resignDate | string (date-time) | null |
approver | EmployeeSummaryDto |
reason | string |
resignStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
statusRemark | string |
resignStatusType | string |
noticePeriodStartDate | string (date-time) | null |
noticePeriodEndDate | string (date-time) | null |
calcRevivedPaidLeave | boolean |
calcRevivedIncreement | boolean |
topLeader | integer |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"resignDate": "2026-11-23T00:00:00",
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"reason": "Forgot to punch out, left at 6:45 PM",
"resignStatus": 0,
"statusRemark": "Forgot to punch out, left at 6:45 PM",
"resignStatusType": "string",
"noticePeriodStartDate": "2026-11-23T00:00:00",
"noticePeriodEndDate": "2026-11-23T00:00:00",
"calcRevivedPaidLeave": false,
"calcRevivedIncreement": false,
"topLeader": 1
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- 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/ResignApplicationController.cs → ResignApplicationService.GetResignApplicationById · returns ResignApplicationDto
Submit or edit resignation
/api/ResignApplication/CreateOrUpdateResignApplicationnoticePeriodStartDate/noticePeriodEndDate, statusRemark and the two calcRevived… flags are shown and set by HR on the web; from the app send them as in the example (null / '' / false).
Request
JSON body:
CreateOrUpdateResignApplicationDto
| Field (JSON name) | Type |
|---|---|
id | integer | null |
employeeId | integer |
resignDate | string (date-time) | null |
approverId | integer | null |
reason | string |
resignStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
statusRemark | string |
noticePeriodStartDate | string (date-time) | null |
noticePeriodEndDate | string (date-time) | null |
calcRevivedPaidLeave | boolean |
calcRevivedIncreement | boolean |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/ResignApplication/CreateOrUpdateResignApplication" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"employeeId": 142,
"resignDate": "2026-12-31T00:00:00",
"approverId": 96,
"reason": "Relocating to Pune",
"resignStatus": 0,
"statusRemark": "",
"noticePeriodStartDate": null,
"noticePeriodEndDate": null,
"calcRevivedPaidLeave": false,
"calcRevivedIncreement": false
}'
const body: CreateOrUpdateResignApplicationDto = {
"id": null,
"employeeId": 142,
"resignDate": "2026-12-31T00:00:00",
"approverId": 96,
"reason": "Relocating to Pune",
"resignStatus": 0,
"statusRemark": "",
"noticePeriodStartDate": null,
"noticePeriodEndDate": null,
"calcRevivedPaidLeave": false,
"calcRevivedIncreement": false
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateResignApplicationDto } from './types'; // request DTO
const data = await api.post<ResignApplicationDto>('ResignApplication/CreateOrUpdateResignApplication', body);
{
"id": null,
"employeeId": 142,
"resignDate": "2026-12-31T00:00:00",
"approverId": 96,
"reason": "Relocating to Pune",
"resignStatus": 0,
"statusRemark": "",
"noticePeriodStartDate": null,
"noticePeriodEndDate": null,
"calcRevivedPaidLeave": false,
"calcRevivedIncreement": false
}
Response
HTTP 200 with the standard envelope. responseData is ResignApplicationDto.
| Field (JSON name) | Type |
|---|---|
id | integer |
employee | EmployeeSummaryDto |
resignDate | string (date-time) | null |
approver | EmployeeSummaryDto |
reason | string |
resignStatus | TransactionStatus (enum)0 = Pending1 = Approved2 = Rejected |
statusRemark | string |
resignStatusType | string |
noticePeriodStartDate | string (date-time) | null |
noticePeriodEndDate | string (date-time) | null |
calcRevivedPaidLeave | boolean |
calcRevivedIncreement | boolean |
topLeader | integer |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"resignDate": "2026-11-23T00:00:00",
"approver": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"reason": "Forgot to punch out, left at 6:45 PM",
"resignStatus": 0,
"statusRemark": "Forgot to punch out, left at 6:45 PM",
"resignStatusType": "string",
"noticePeriodStartDate": "2026-11-23T00:00:00",
"noticePeriodEndDate": "2026-11-23T00:00:00",
"calcRevivedPaidLeave": false,
"calcRevivedIncreement": false,
"topLeader": 1
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can't create or change applications for this employee.”
- isSuccess: false · errorCode 1 “This application is already approved or rejected. Only an approver can change it.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Resign Not Found.”
- isSuccess: false · errorCode 1 “Resign of {EmpName} ({EmpCode}) {ResignDate} for Is Already Exist!”
- 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/ResignApplicationController.cs → ResignApplicationService.CreateOrUpdateResignApplication · returns ResignApplicationDto
Withdraw resignation
/api/ResignApplication/DeleteResignApplication/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/ResignApplication/DeleteResignApplication/3" \
-H "Authorization: Bearer $TOKEN"
const id = 3;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`ResignApplication/DeleteResignApplication/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can't view or delete this application.”
- isSuccess: false · errorCode 1 “Request Forbidden, Can't access proper Company.”
- isSuccess: false · errorCode 1 “Resign Application 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/ResignApplicationController.cs → ResignApplicationService.DeleteResignApplicationById · returns boolean