POST api/Employee/CalculateSalary

Request Information

URI Parameters

None.

Body Parameters

StaffPayrollInfoModel
NameDescriptionTypeAdditional information
JobType

string

None.

BirthDate

string

None.

AppointmentDate

string

None.

BasicPayAmount

decimal number

None.

HRAAmount

decimal number

None.

DAAmount

decimal number

None.

TAAmount

decimal number

None.

MiscAdditionsAmount

decimal number

None.

PfEmployeeAmount

decimal number

None.

PfEmployerAmount

decimal number

None.

EmployeePPFAmount

decimal number

None.

IncomeTaxAmount

decimal number

None.

TDSAmount

decimal number

None.

PFLoanAmount

decimal number

None.

LICAmount

decimal number

None.

ProfessionTaxAmount

decimal number

None.

LessMiscAmount

decimal number

None.

GrossSalary

decimal number

None.

IsHRAApplicable

boolean

None.

IsPensionApplicable

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "JobType": "sample string 1",
  "BirthDate": "sample string 2",
  "AppointmentDate": "sample string 3",
  "BasicPayAmount": 4.1,
  "HRAAmount": 5.1,
  "DAAmount": 6.1,
  "TAAmount": 7.1,
  "MiscAdditionsAmount": 8.1,
  "PfEmployeeAmount": 9.1,
  "PfEmployerAmount": 10.1,
  "EmployeePPFAmount": 11.1,
  "IncomeTaxAmount": 12.1,
  "TDSAmount": 13.1,
  "PFLoanAmount": 14.1,
  "LICAmount": 15.1,
  "ProfessionTaxAmount": 16.1,
  "LessMiscAmount": 17.1,
  "GrossSalary": 18.1,
  "IsHRAApplicable": true,
  "IsPensionApplicable": true
}

application/xml, text/xml

Sample:
<StaffPayrollInfoModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/OnlineSchoolManagement.Models.Employee">
  <AppointmentDate>sample string 3</AppointmentDate>
  <BasicPayAmount>4.1</BasicPayAmount>
  <BirthDate>sample string 2</BirthDate>
  <DAAmount>6.1</DAAmount>
  <EmployeePPFAmount>11.1</EmployeePPFAmount>
  <GrossSalary>18.1</GrossSalary>
  <HRAAmount>5.1</HRAAmount>
  <IncomeTaxAmount>12.1</IncomeTaxAmount>
  <IsHRAApplicable>true</IsHRAApplicable>
  <IsPensionApplicable>true</IsPensionApplicable>
  <JobType>sample string 1</JobType>
  <LICAmount>15.1</LICAmount>
  <LessMiscAmount>17.1</LessMiscAmount>
  <MiscAdditionsAmount>8.1</MiscAdditionsAmount>
  <PFLoanAmount>14.1</PFLoanAmount>
  <PfEmployeeAmount>9.1</PfEmployeeAmount>
  <PfEmployerAmount>10.1</PfEmployerAmount>
  <ProfessionTaxAmount>16.1</ProfessionTaxAmount>
  <TAAmount>7.1</TAAmount>
  <TDSAmount>13.1</TDSAmount>
</StaffPayrollInfoModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.