Pay and documents
Plan section 2.5 · Screens S50, S51. Amounts are masked by default in the app (₹ ••,•••). Everything here is the signed-in employee's own data.
Payslip flow (S50 → S51)
- Salary overview for the last months' net pay and the payslip list.
- For each month, is the salary paid?. Months not paid show "Processing" and are not tappable.
- Tap a month → monthly salary with
fromMonth=toMonth= that month → render the payslip (decision D5: port the webnew-salary-sliptemplate and print it to PDF on the device).
Salary overview
/api/EmployeeDashboard/GetEmployeeSalaryandDeductionPer month: salaryMonth ("YYYYMM"), total deduction and finalSalary (net pay). Use it for the "Latest salary" card, the last-6-months chart and the Home salary snippet.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeSalaryandDeduction" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_Dashboard_SalayAndDeduction[]>('EmployeeDashboard/GetEmployeeSalaryandDeduction');
Response
HTTP 200 with the standard envelope. responseData is Employee_Dashboard_SalayAndDeduction[].
An array of Employee_Dashboard_SalayAndDeduction objects
| Field (JSON name) | Type |
|---|---|
salaryMonth | string (date-time) | null |
deduction | integer |
finalSalary | integer |
Example response
{
"isSuccess": true,
"responseData": [
{
"salaryMonth": "202610",
"deduction": 2000,
"finalSalary": 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/EmployeeDashboardController.cs → EmployeeDashboardService.GetEmployeeSalaryandDeduction · returns Employee_Dashboard_SalayAndDeduction[]
Year summary
/api/EmployeeDashboard/GetEmployeeNewDashboardDetailsThe four year-summary tiles: averageSalary, totalTDSAmount, totalInvestmentAmount (declared investments) and nextIncrementDate.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeNewDashboardDetails" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<Employee_NewDashboard_BasicDetailDto>('EmployeeDashboard/GetEmployeeNewDashboardDetails');
Response
HTTP 200 with the standard envelope. responseData is Employee_NewDashboard_BasicDetailDto.
Employee_NewDashboard_BasicDetailDto
| Field (JSON name) | Type |
|---|---|
totalTDSAmount | number | null |
nextIncrementDate | string (date-time) | null |
totalInvestmentAmount | number | null |
averageSalary | number | null |
Example response
{
"isSuccess": true,
"responseData": {
"totalTDSAmount": 58240,
"nextIncrementDate": "2026-11-23T00:00:00",
"totalInvestmentAmount": 58240,
"averageSalary": 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/EmployeeDashboardController.cs → EmployeeDashboardService.GetEmployeeNewDashboardBasicDetail · returns Employee_NewDashboard_BasicDetailDto
Payslip (monthly salary)
/api/Report/GetEmployeeMonthlySalaryThe full salary breakdown for one month: the stored procedure matches fromMonth = toMonth = SalaryMonth, so always send the same "YYYYMM" in both. Self-only for non-admins. The response is a list (one row for the employee) with earnings, deductions, attendance counts and bank details. Render the payslip from it.
It contains pan, aadharNo, bankAccNo, pfuan and esicNo: mask them on screen (for example ••••••7731) and never log the response.
Request
JSON body:
| Field (JSON name) | Type |
|---|---|
tenantId | integer | null |
id | integer | null |
employeeCode | integer | null |
employeeIds | integer[] |
companyIds | integer[] |
mobileNo | string |
fromDate | string (date-time) | null |
toDate | string (date-time) | null |
fromMonth | string |
toMonth | string |
gender | string |
branchIds | integer[] |
departmentIds | integer[] |
designationIds | integer[] |
approverIds | integer[] |
employeeStatus | integer | null |
applicationStatus | integer | null |
locationIds | integer[] |
employee_Type | integer | null |
financialYear | string[] |
slabTypeId | integer[] |
itMethodId | integer[] |
categoryId | integer | null |
location | string | null |
isAssign | boolean | null |
joinDate | string | null |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/Report/GetEmployeeMonthlySalary" \
-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<EmployeeMonthlySalaryDto[]>('Report/GetEmployeeMonthlySalary', 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 EmployeeMonthlySalaryDto[].
An array of EmployeeMonthlySalaryDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
employeeId | integer |
empName | string |
empCode | string |
salaryMonth | string (date-time) | null |
basicSalary | number | null |
absentDays | number | null |
absentSalary | number | null |
professionalTax | number | null |
netSalary | number | null |
extraDay | number | null |
extraDaySalary | number | null |
overtimeHours | number | null |
overtimeSalary | number | null |
extraPay | number | null |
finalSalary | number | null |
displayName | string |
designationName | string |
departmentName | string |
joinDate | string (date-time) | null |
payDate | string (date-time) | null |
workingDay | integer |
employeeSalaryType | integer |
paidLeaveCount | number | null |
paidLeaveAmount | number | null |
incrementAmount | number | null |
presentDays | number | null |
totalTDSAmount | number | null |
payableSalary | number | null |
additionalSalary | number | null |
empLegalName | string |
companyLegalName | string |
companyAddress | string |
basicAlw | number | null |
dearnessAlw | number | null |
houseRentAlw | number | null |
medicalAlw | number | null |
dailyTravellingAlw | number | null |
performanceAlw | number | null |
otherAlw | number | null |
productionAlw | number | null |
fuelAlw | number | null |
pfDetectable | boolean |
esicDetectable | boolean |
lwfDetectable | boolean |
ptDetectable | boolean |
pfGross | number | null |
esicGross | number | null |
ptGross | number | null |
lwfGross | number | null |
employeeEPFAmount | number | null |
employeeFPFAmount | number | null |
companyEPFAmount | number | null |
companyFPFAmount | number | null |
employeeESICAmount | number | null |
companyESICAmount | number | null |
employeeLWFAmount | number | null |
companyLWFAmount | number | null |
pfNo | string |
pfuan | string |
esicNo | string |
aadharNo | string |
pan | string |
paymentType | string |
bankName | string |
bankAccNo | string |
ifscCode | string |
advancePay | number | null |
isSalaryPaid | boolean |
paidAmount | number | null |
salaryCalcDays | integer | null |
usedPaidLeaveCount | integer | null |
birthDate | string (date-time) |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"employeeId": 142,
"empName": "Priya Sharma",
"empCode": "ACM-0142",
"salaryMonth": "2026-11-23T00:00:00",
"basicSalary": 58240,
"absentDays": 2,
"absentSalary": 58240,
"professionalTax": 58240,
"netSalary": 58240,
"extraDay": 1,
"extraDaySalary": 58240,
"overtimeHours": 6,
"overtimeSalary": 58240,
"extraPay": 58240,
"finalSalary": 58240,
"displayName": "Priya Sharma",
"designationName": "Senior Site Engineer",
"departmentName": "Projects",
"joinDate": "2026-11-23T00:00:00",
"payDate": "2026-11-23T00:00:00",
"workingDay": 1,
"employeeSalaryType": 58240,
"paidLeaveCount": 3,
"paidLeaveAmount": 58240,
"incrementAmount": 58240,
"presentDays": 2,
"totalTDSAmount": 58240,
"payableSalary": 58240,
"additionalSalary": 58240,
"empLegalName": "Priya Sharma",
"companyLegalName": "string",
"companyAddress": "B-402, Shaligram Heights, Satellite, Ahmedabad 380015",
"basicAlw": 58240,
"dearnessAlw": 1,
"houseRentAlw": 1,
"medicalAlw": 1,
"dailyTravellingAlw": 1,
"performanceAlw": 1,
"otherAlw": 1,
"productionAlw": 1,
"fuelAlw": 1,
"pfDetectable": false,
"esicDetectable": false,
"lwfDetectable": false,
"ptDetectable": false,
"pfGross": 58240,
"esicGross": 58240,
"ptGross": 58240,
"lwfGross": 58240,
"employeeEPFAmount": 58240,
"employeeFPFAmount": 58240,
"companyEPFAmount": 58240,
"companyFPFAmount": 58240,
"employeeESICAmount": 58240,
"companyESICAmount": 58240,
"employeeLWFAmount": 58240,
"companyLWFAmount": 58240,
"pfNo": "string",
"pfuan": "string",
"esicNo": "string",
"aadharNo": "string",
"pan": "ABCDE1234F",
"paymentType": "string",
"bankName": "string",
"bankAccNo": "string",
"ifscCode": "HDFC0001234",
"advancePay": 58240,
"isSalaryPaid": false,
"paidAmount": 58240,
"salaryCalcDays": 2,
"usedPaidLeaveCount": 3,
"birthDate": "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/ReportController.cs → ReportService.GetEmployeeMonthlySalary · returns EmployeeMonthlySalaryDto[]
Is the salary paid for a month?
/api/Payroll/GetMonthSalaryIsPaid/{salaryMonth}true when salary for salaryMonth ("YYYYMM", in the path) is marked paid. Tenant-wide: it is true when any employee's salary for that month is paid, not specifically this employee's. Use it only to hide months still being processed.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
salaryMonth | path | string | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/Payroll/GetMonthSalaryIsPaid/202610" \
-H "Authorization: Bearer $TOKEN"
const salaryMonth = "202610";
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<boolean>(`Payroll/GetMonthSalaryIsPaid/${salaryMonth}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- HTTP 401 missing or expired token (see token expiry).
- HTTP 500 unhandled server exception (HTML/text body, not JSON).
Source: HRMS.WebAPI/Controllers/PayrollController.cs → PayrollService.GetMonthSalaryIsPaid · returns boolean
Company documents
/api/DocumentVault/GetActiveDocumentsVaultActive policy documents of the user's companies that apply to everyone or to the employee's designation (see gap G17 for a lookup bug). documentPath is the file to open in an in-app PDF viewer.
Request
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/DocumentVault/GetActiveDocumentsVault" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<DocumentVaultDtos[]>('DocumentVault/GetActiveDocumentsVault');
Response
HTTP 200 with the standard envelope. responseData is DocumentVaultDtos[].
An array of DocumentVaultDtos objects
| Field (JSON name) | Type |
|---|---|
id | integer |
documentName | string |
companyId | integer |
company | CompanyDto |
designationId | integer | null |
designation | DesignationDto |
documentPath | string |
isActive | boolean |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"documentName": "string",
"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"
},
"designationId": 1,
"designation": {
"id": 1045,
"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"
},
"designationName": "Senior Site Engineer",
"isClarify": false,
"isJobSeeker": false,
"canApprove": false,
"extraDay": 1,
"isActive": true,
"isDirector": false,
"isHR": false
},
"documentPath": "https://api-hrms.weblancertechnologies.com/Images/profile.jpg",
"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/DocumentVaultController.cs → DocumentVaultService.GetActiveDocumentVaults · returns DocumentVaultDtos[]
Tax investments (P3)
The plan suggests a web link for this form-heavy feature. For non-admins the server limits create, edit, delete and view to the caller's own declarations (employeeId may be left null).
Financial years
/api/FinancialYear/GetFinancialYearsRequest
No parameters and no body.
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/FinancialYear/GetFinancialYears" \
-H "Authorization: Bearer $TOKEN"
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<FinancialYearDto[]>('FinancialYear/GetFinancialYears');
Response
HTTP 200 with the standard envelope. responseData is FinancialYearDto[].
An array of FinancialYearDto objects
| Field (JSON name) | Type |
|---|---|
id | integer |
financialYear | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"financialYear": "2026-2027"
}
],
"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/FinancialYearController.cs → FinancialYearService.GetFinancialYears · returns FinancialYearDto[]
Investment sections for a year
/api/InvestmentSchema/GetUnderSectionGroup/{financialYear}Section groups (for example 80C) with their limits, for the year in the path. Use the year text exactly as returned by financial years.
Request
| Parameter | In | Type | Required |
|---|---|---|---|
financialYear | path | string | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/InvestmentSchema/GetUnderSectionGroup/2026-2027" \
-H "Authorization: Bearer $TOKEN"
const financialYear = "2026-2027";
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<UnderSectionGroupDto[]>(`InvestmentSchema/GetUnderSectionGroup/${financialYear}`);
Response
HTTP 200 with the standard envelope. responseData is UnderSectionGroupDto[].
An array of UnderSectionGroupDto objects
| Field (JSON name) | Type |
|---|---|
id | integer | null |
groupName | string |
fromAmount | number |
toAmount | number |
maxAllowAmount | number |
shortCode | string |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"groupName": "string",
"fromAmount": 58240,
"toAmount": 58240,
"maxAllowAmount": 58240,
"shortCode": "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/InvestmentSchemaController.cs → InvestmentSchemaService.GetAllUnderSectionGroup · returns UnderSectionGroupDto[]
My investment declarations
/api/InvestmentDetail/GetAllInvestmentRequest
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/InvestmentDetail/GetAllInvestment" \
-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<InvestmentDetailDto[]>('InvestmentDetail/GetAllInvestment', 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 InvestmentDetailDto[].
An array of InvestmentDetailDto objects
| Field (JSON name) | Type |
|---|---|
id | integer | null |
financialYear | string |
employee | EmployeeSummaryDto |
investmentSchema | InvestmentSchemaDto |
investmentAmount | number |
investmentDate | string (date-time) |
underSectionId | integer | null |
underSectionGroupId | integer | null |
ispaid | boolean |
Example response
{
"isSuccess": true,
"responseData": [
{
"id": 1045,
"financialYear": "2026-2027",
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"investmentSchema": {
"id": 1045,
"financialYear": "2026-2027",
"underSection": {
"id": 1045,
"financialYear": "2026-2027",
"underSectionGroup": {
"id": 1045,
"groupName": "string",
"fromAmount": 58240,
"toAmount": 58240,
"maxAllowAmount": 58240,
"shortCode": "string"
},
"name": "Priya Sharma",
"isActive": true
},
"schemaName": "string",
"fromAmount": 58240,
"toAmount": 58240,
"maxAllowAmount": 58240,
"allowPercentage": 1,
"isActive": true
},
"investmentAmount": 58240,
"investmentDate": "2026-11-23T00:00:00",
"underSectionId": 1,
"underSectionGroupId": 1,
"ispaid": true
}
],
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “Request Forbidden,Cant 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/InvestmentDetailController.cs → InvestmentDetailService.GetAllInvestment · returns InvestmentDetailDto[]
Investment detail
/api/InvestmentDetail/GetInvestmentById/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X GET "$BASE_URL/InvestmentDetail/GetInvestmentById/14" \
-H "Authorization: Bearer $TOKEN"
const id = 14;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.get<InvestmentDetailDto>(`InvestmentDetail/GetInvestmentById/${id}`);
Response
HTTP 200 with the standard envelope. responseData is InvestmentDetailDto.
| Field (JSON name) | Type |
|---|---|
id | integer | null |
financialYear | string |
employee | EmployeeSummaryDto |
investmentSchema | InvestmentSchemaDto |
investmentAmount | number |
investmentDate | string (date-time) |
underSectionId | integer | null |
underSectionGroupId | integer | null |
ispaid | boolean |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"financialYear": "2026-2027",
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"investmentSchema": {
"id": 1045,
"financialYear": "2026-2027",
"underSection": {
"id": 1045,
"financialYear": "2026-2027",
"underSectionGroup": {
"id": 1045,
"groupName": "string",
"fromAmount": 58240,
"toAmount": 58240,
"maxAllowAmount": 58240,
"shortCode": "string"
},
"name": "Priya Sharma",
"isActive": true
},
"schemaName": "string",
"fromAmount": 58240,
"toAmount": 58240,
"maxAllowAmount": 58240,
"allowPercentage": 1,
"isActive": true
},
"investmentAmount": 58240,
"investmentDate": "2026-11-23T00:00:00",
"underSectionId": 1,
"underSectionGroupId": 1,
"ispaid": true
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can only view or change your own investment declarations.”
- 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/InvestmentDetailController.cs → InvestmentDetailService.GetInvestmentById · returns InvestmentDetailDto
Declare or edit an investment
/api/InvestmentDetail/CreateOrUpdateInvestmentRequest
JSON body:
CreateOrUpdateInvestmentDetailDto
| Field (JSON name) | Type |
|---|---|
id | integer | null |
financialYear | string |
employeeId | integer | null |
investmentId | integer | null |
investmentAmount | number |
investmentDate | string (date-time) |
ispaid | boolean |
- curl
- TypeScript (HRMS.Mobile)
- Body only
curl -X POST "$BASE_URL/InvestmentDetail/CreateOrUpdateInvestment" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"id": null,
"financialYear": "2026-2027",
"employeeId": 142,
"investmentId": 4,
"investmentAmount": 150000,
"investmentDate": "2026-07-15T00:00:00",
"ispaid": true
}'
const body: CreateOrUpdateInvestmentDetailDto = {
"id": null,
"financialYear": "2026-2027",
"employeeId": 142,
"investmentId": 4,
"investmentAmount": 150000,
"investmentDate": "2026-07-15T00:00:00",
"ispaid": true
};
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
import type { CreateOrUpdateInvestmentDetailDto } from './types'; // request DTO
const data = await api.post<InvestmentDetailDto>('InvestmentDetail/CreateOrUpdateInvestment', body);
{
"id": null,
"financialYear": "2026-2027",
"employeeId": 142,
"investmentId": 4,
"investmentAmount": 150000,
"investmentDate": "2026-07-15T00:00:00",
"ispaid": true
}
Response
HTTP 200 with the standard envelope. responseData is InvestmentDetailDto.
| Field (JSON name) | Type |
|---|---|
id | integer | null |
financialYear | string |
employee | EmployeeSummaryDto |
investmentSchema | InvestmentSchemaDto |
investmentAmount | number |
investmentDate | string (date-time) |
underSectionId | integer | null |
underSectionGroupId | integer | null |
ispaid | boolean |
Example response
{
"isSuccess": true,
"responseData": {
"id": 1045,
"financialYear": "2026-2027",
"employee": {
"id": 1045,
"empName": "Priya Sharma",
"empCode": 1,
"userId": 87,
"displayName": "Priya Sharma"
},
"investmentSchema": {
"id": 1045,
"financialYear": "2026-2027",
"underSection": {
"id": 1045,
"financialYear": "2026-2027",
"underSectionGroup": {
"id": 1045,
"groupName": "string",
"fromAmount": 58240,
"toAmount": 58240,
"maxAllowAmount": 58240,
"shortCode": "string"
},
"name": "Priya Sharma",
"isActive": true
},
"schemaName": "string",
"fromAmount": 58240,
"toAmount": 58240,
"maxAllowAmount": 58240,
"allowPercentage": 1,
"isActive": true
},
"investmentAmount": 58240,
"investmentDate": "2026-11-23T00:00:00",
"underSectionId": 1,
"underSectionGroupId": 1,
"ispaid": true
},
"errorCode": 0,
"errorMessage": null,
"errorTitle": ""
}
Errors
- isSuccess: false · errorCode 1 “You can only change your own investment declarations.”
- isSuccess: false · errorCode 1 “Investment 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/InvestmentDetailController.cs → InvestmentDetailService.CreateOrUpdateInvestment · returns InvestmentDetailDto
Delete an investment
/api/InvestmentDetail/DeleteInvestmentById/{id}Request
| Parameter | In | Type | Required |
|---|---|---|---|
id | path | integer | yes |
- curl
- TypeScript (HRMS.Mobile)
curl -X DELETE "$BASE_URL/InvestmentDetail/DeleteInvestmentById/14" \
-H "Authorization: Bearer $TOKEN"
const id = 14;
import { api } from '@/services/api'; // HRMS.Mobile: unwraps ApiResponse<T>, throws ApiError
const data = await api.delete<boolean>(`InvestmentDetail/DeleteInvestmentById/${id}`);
Response
HTTP 200 with the standard envelope. responseData is boolean.
Type: boolean Example response
Errors
- isSuccess: false · errorCode 1 “You can only view or change your own investment declarations.”
- isSuccess: false · errorCode 1 “IT Slat 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/InvestmentDetailController.cs → InvestmentDetailService.DeleteInvestmentById · returns boolean