POST api/Payroll/InsertEmployee?isOpen={isOpen}&userId={userId}&officeId={officeId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
isOpen

boolean

Required

userId

integer

Required

officeId

integer

Default value is 0

Body Parameters

EmployeeModel
NameDescriptionTypeAdditional information
EmployeeID

integer

None.

EmployeeName

string

None.

FatherName

string

None.

JoiningDate

date

None.

CNIC

string

None.

ContactNo

string

None.

Address

string

None.

IsSalesman

boolean

None.

BasicSalary

decimal number

None.

UserID

integer

None.

DepartmentID

integer

None.

DesignationID

integer

None.

ShiftID

integer

None.

InActive

boolean

None.

AccountNo

string

None.

RentAllowance

decimal number

None.

DearnessAllowance

decimal number

None.

TransportAllowance

decimal number

None.

OtherAllowance

decimal number

None.

GrossSalary

decimal number

None.

ITax

decimal number

None.

EOBI

decimal number

None.

SESSI

decimal number

None.

NestSalary

decimal number

None.

EmployeeShare

decimal number

None.

EmployerShare

decimal number

None.

MinWages

decimal number

None.

ResignDate

date

None.

OffDay

string

None.

DateOfBirth

date

None.

Request Formats

application/json, text/json

Sample:
{
  "EmployeeID": 1,
  "EmployeeName": "sample string 2",
  "FatherName": "sample string 3",
  "JoiningDate": "2025-07-04T18:54:01.6666007+05:00",
  "CNIC": "sample string 5",
  "ContactNo": "sample string 6",
  "Address": "sample string 7",
  "IsSalesman": true,
  "BasicSalary": 9.0,
  "UserID": 10,
  "DepartmentID": 11,
  "DesignationID": 12,
  "ShiftID": 13,
  "InActive": true,
  "AccountNo": "sample string 15",
  "RentAllowance": 16.0,
  "DearnessAllowance": 17.0,
  "TransportAllowance": 18.0,
  "OtherAllowance": 19.0,
  "GrossSalary": 20.0,
  "ITax": 21.0,
  "EOBI": 22.0,
  "SESSI": 23.0,
  "NestSalary": 24.0,
  "EmployeeShare": 25.0,
  "EmployerShare": 26.0,
  "MinWages": 27.0,
  "ResignDate": "2025-07-04T18:54:01.6666007+05:00",
  "OffDay": "sample string 29",
  "DateOfBirth": "2025-07-04T18:54:01.6666007+05:00"
}

application/xml, text/xml

Sample:
<EmployeeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ultrabiz_ERP_API.Models.Payroll">
  <AccountNo>sample string 15</AccountNo>
  <Address>sample string 7</Address>
  <BasicSalary>9</BasicSalary>
  <CNIC>sample string 5</CNIC>
  <ContactNo>sample string 6</ContactNo>
  <DateOfBirth>2025-07-04T18:54:01.6666007+05:00</DateOfBirth>
  <DearnessAllowance>17</DearnessAllowance>
  <DepartmentID>11</DepartmentID>
  <DesignationID>12</DesignationID>
  <EOBI>22</EOBI>
  <EmployeeID>1</EmployeeID>
  <EmployeeName>sample string 2</EmployeeName>
  <EmployeeShare>25</EmployeeShare>
  <EmployerShare>26</EmployerShare>
  <FatherName>sample string 3</FatherName>
  <GrossSalary>20</GrossSalary>
  <ITax>21</ITax>
  <InActive>true</InActive>
  <IsSalesman>true</IsSalesman>
  <JoiningDate>2025-07-04T18:54:01.6666007+05:00</JoiningDate>
  <MinWages>27</MinWages>
  <NestSalary>24</NestSalary>
  <OffDay>sample string 29</OffDay>
  <OtherAllowance>19</OtherAllowance>
  <RentAllowance>16</RentAllowance>
  <ResignDate>2025-07-04T18:54:01.6666007+05:00</ResignDate>
  <SESSI>23</SESSI>
  <ShiftID>13</ShiftID>
  <TransportAllowance>18</TransportAllowance>
  <UserID>10</UserID>
</EmployeeModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.