Skip to main content

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)​

  1. Salary overview for the last months' net pay and the payslip list.
  2. For each month, is the salary paid?. Months not paid show "Processing" and are not tappable.
  3. Tap a month → monthly salary with fromMonth = toMonth = that month → render the payslip (decision D5: port the web new-salary-slip template and print it to PDF on the device).

Salary overview​

GET/api/EmployeeDashboard/GetEmployeeSalaryandDeduction
Bearer tokenEmployee and team leaderP1Screens: S10, S50

Per 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 -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeSalaryandDeduction" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of Employee_Dashboard_SalayAndDeduction objects

Field (JSON name)Type
salaryMonthstring (date-time) | null
deductioninteger
finalSalaryinteger
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​

GET/api/EmployeeDashboard/GetEmployeeNewDashboardDetails
Bearer tokenEmployee and team leaderP2Screens: S50

The four year-summary tiles: averageSalary, totalTDSAmount, totalInvestmentAmount (declared investments) and nextIncrementDate.

Request

No parameters and no body.

curl -X GET "$BASE_URL/EmployeeDashboard/GetEmployeeNewDashboardDetails" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is Employee_NewDashboard_BasicDetailDto.

Employee_NewDashboard_BasicDetailDto

Field (JSON name)Type
totalTDSAmountnumber | null
nextIncrementDatestring (date-time) | null
totalInvestmentAmountnumber | null
averageSalarynumber | 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)​

POST/api/Report/GetEmployeeMonthlySalary
Bearer tokenEmployee and team leaderP1Screens: S51

The 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:

TransactionApplicationDto

Field (JSON name)Type
tenantIdinteger | null
idinteger | null
employeeCodeinteger | null
employeeIdsinteger[]
companyIdsinteger[]
mobileNostring
fromDatestring (date-time) | null
toDatestring (date-time) | null
fromMonthstring
toMonthstring
genderstring
branchIdsinteger[]
departmentIdsinteger[]
designationIdsinteger[]
approverIdsinteger[]
employeeStatusinteger | null
applicationStatusinteger | null
locationIdsinteger[]
employee_Typeinteger | null
financialYearstring[]
slabTypeIdinteger[]
itMethodIdinteger[]
categoryIdinteger | null
locationstring | null
isAssignboolean | null
joinDatestring | null
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"
}'

Response

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

An array of EmployeeMonthlySalaryDto objects

Field (JSON name)Type
idinteger
employeeIdinteger
empNamestring
empCodestring
salaryMonthstring (date-time) | null
basicSalarynumber | null
absentDaysnumber | null
absentSalarynumber | null
professionalTaxnumber | null
netSalarynumber | null
extraDaynumber | null
extraDaySalarynumber | null
overtimeHoursnumber | null
overtimeSalarynumber | null
extraPaynumber | null
finalSalarynumber | null
displayNamestring
designationNamestring
departmentNamestring
joinDatestring (date-time) | null
payDatestring (date-time) | null
workingDayinteger
employeeSalaryTypeinteger
paidLeaveCountnumber | null
paidLeaveAmountnumber | null
incrementAmountnumber | null
presentDaysnumber | null
totalTDSAmountnumber | null
payableSalarynumber | null
additionalSalarynumber | null
empLegalNamestring
companyLegalNamestring
companyAddressstring
basicAlwnumber | null
dearnessAlwnumber | null
houseRentAlwnumber | null
medicalAlwnumber | null
dailyTravellingAlwnumber | null
performanceAlwnumber | null
otherAlwnumber | null
productionAlwnumber | null
fuelAlwnumber | null
pfDetectableboolean
esicDetectableboolean
lwfDetectableboolean
ptDetectableboolean
pfGrossnumber | null
esicGrossnumber | null
ptGrossnumber | null
lwfGrossnumber | null
employeeEPFAmountnumber | null
employeeFPFAmountnumber | null
companyEPFAmountnumber | null
companyFPFAmountnumber | null
employeeESICAmountnumber | null
companyESICAmountnumber | null
employeeLWFAmountnumber | null
companyLWFAmountnumber | null
pfNostring
pfuanstring
esicNostring
aadharNostring
panstring
paymentTypestring
bankNamestring
bankAccNostring
ifscCodestring
advancePaynumber | null
isSalaryPaidboolean
paidAmountnumber | null
salaryCalcDaysinteger | null
usedPaidLeaveCountinteger | null
birthDatestring (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?​

GET/api/Payroll/GetMonthSalaryIsPaid/{salaryMonth}
Bearer tokenEmployee and team leaderP1Screens: S50

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

ParameterInTypeRequired
salaryMonthpathstringyes
curl -X GET "$BASE_URL/Payroll/GetMonthSalaryIsPaid/202610" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is boolean.

Type: boolean

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

Errors

  • 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​

GET/api/DocumentVault/GetActiveDocumentsVault
Bearer tokenEmployee and team leaderP2Screens: S50

Active 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 -X GET "$BASE_URL/DocumentVault/GetActiveDocumentsVault" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of DocumentVaultDtos objects

Field (JSON name)Type
idinteger
documentNamestring
companyIdinteger
companyCompanyDto
designationIdinteger | null
designationDesignationDto
documentPathstring
isActiveboolean
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​

GET/api/FinancialYear/GetFinancialYears
Bearer tokenEmployee and team leaderP3

Request

No parameters and no body.

curl -X GET "$BASE_URL/FinancialYear/GetFinancialYears" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of FinancialYearDto objects

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

GET/api/InvestmentSchema/GetUnderSectionGroup/{financialYear}
Bearer tokenEmployee and team leaderP3

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

ParameterInTypeRequired
financialYearpathstringyes
curl -X GET "$BASE_URL/InvestmentSchema/GetUnderSectionGroup/2026-2027" \
-H "Authorization: Bearer $TOKEN"

Response

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

An array of UnderSectionGroupDto objects

Field (JSON name)Type
idinteger | null
groupNamestring
fromAmountnumber
toAmountnumber
maxAllowAmountnumber
shortCodestring
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​

POST/api/InvestmentDetail/GetAllInvestment
Bearer tokenEmployee and team leaderP3

Request

JSON body:

TransactionApplicationDto

Field (JSON name)Type
tenantIdinteger | null
idinteger | null
employeeCodeinteger | null
employeeIdsinteger[]
companyIdsinteger[]
mobileNostring
fromDatestring (date-time) | null
toDatestring (date-time) | null
fromMonthstring
toMonthstring
genderstring
branchIdsinteger[]
departmentIdsinteger[]
designationIdsinteger[]
approverIdsinteger[]
employeeStatusinteger | null
applicationStatusinteger | null
locationIdsinteger[]
employee_Typeinteger | null
financialYearstring[]
slabTypeIdinteger[]
itMethodIdinteger[]
categoryIdinteger | null
locationstring | null
isAssignboolean | null
joinDatestring | null
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"
}'

Response

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

An array of InvestmentDetailDto objects

Field (JSON name)Type
idinteger | null
financialYearstring
employeeEmployeeSummaryDto
investmentSchemaInvestmentSchemaDto
investmentAmountnumber
investmentDatestring (date-time)
underSectionIdinteger | null
underSectionGroupIdinteger | null
ispaidboolean
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​

GET/api/InvestmentDetail/GetInvestmentById/{id}
Bearer tokenEmployee and team leaderP3

Request

ParameterInTypeRequired
idpathintegeryes
curl -X GET "$BASE_URL/InvestmentDetail/GetInvestmentById/14" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is InvestmentDetailDto.

InvestmentDetailDto

Field (JSON name)Type
idinteger | null
financialYearstring
employeeEmployeeSummaryDto
investmentSchemaInvestmentSchemaDto
investmentAmountnumber
investmentDatestring (date-time)
underSectionIdinteger | null
underSectionGroupIdinteger | null
ispaidboolean
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​

POST/api/InvestmentDetail/CreateOrUpdateInvestment
Bearer tokenEmployee and team leaderP3

Request

JSON body:

CreateOrUpdateInvestmentDetailDto

Field (JSON name)Type
idinteger | null
financialYearstring
employeeIdinteger | null
investmentIdinteger | null
investmentAmountnumber
investmentDatestring (date-time)
ispaidboolean
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
}'

Response

HTTP 200 with the standard envelope. responseData is InvestmentDetailDto.

InvestmentDetailDto

Field (JSON name)Type
idinteger | null
financialYearstring
employeeEmployeeSummaryDto
investmentSchemaInvestmentSchemaDto
investmentAmountnumber
investmentDatestring (date-time)
underSectionIdinteger | null
underSectionGroupIdinteger | null
ispaidboolean
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​

DELETE/api/InvestmentDetail/DeleteInvestmentById/{id}
Bearer tokenEmployee and team leaderP3

Request

ParameterInTypeRequired
idpathintegeryes
curl -X DELETE "$BASE_URL/InvestmentDetail/DeleteInvestmentById/14" \
-H "Authorization: Bearer $TOKEN"

Response

HTTP 200 with the standard envelope. responseData is boolean.

Type: boolean

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

Errors

  • isSuccess: false · errorCode 1 “You can only 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