POST api/employee/insert
Request Information
URI Parameters
None.
Body Parameters
InsertEmployeeRequestModel| Name | Description | Type | Additional information |
|---|---|---|---|
| EmployeeID | integer |
None. |
|
| BranchID | integer |
None. |
|
| FinancialYearID | integer |
None. |
|
| DesignationID | integer |
None. |
|
| EmployeeName | string |
None. |
|
| Address | string |
None. |
|
| Gender | string |
None. |
|
| State | string |
None. |
|
| City | string |
None. |
|
| PIN | string |
None. |
|
| TIN | string |
None. |
|
| Country | string |
None. |
|
| Phone | string |
None. |
|
| string |
None. |
||
| BloodGroup | string |
None. |
|
| DOB | date |
None. |
|
| DOJ | date |
None. |
|
| Salary | decimal number |
None. |
|
| Qualification | string |
None. |
|
| Remarks | string |
None. |
|
| OpBalance | decimal number |
None. |
|
| UserID | integer |
None. |
|
| SalaryType | string |
None. |
|
| Image | string |
None. |
|
| PayableLedgerID | integer |
None. |
|
| ExpenseLedgerID | integer |
None. |
|
| OBDrCr | string |
None. |
|
| OBDate | date |
None. |
|
| TransactionNumberID | integer |
None. |
|
| OpeningLedgerID | integer |
None. |
|
| IsHourlyBased | boolean |
None. |
|
| DailyWorkingHours | decimal number |
None. |
|
| EnableLunchBreak | boolean |
None. |
|
| OvertimeHourlyRate | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"EmployeeID": 1,
"BranchID": 2,
"FinancialYearID": 3,
"DesignationID": 4,
"EmployeeName": "sample string 5",
"Address": "sample string 6",
"Gender": "sample string 7",
"State": "sample string 8",
"City": "sample string 9",
"PIN": "sample string 10",
"TIN": "sample string 11",
"Country": "sample string 12",
"Phone": "sample string 13",
"Email": "sample string 14",
"BloodGroup": "sample string 15",
"DOB": "2026-10-15T11:12:14.3521506-07:00",
"DOJ": "2026-10-15T11:12:14.3521506-07:00",
"Salary": 18.0,
"Qualification": "sample string 19",
"Remarks": "sample string 20",
"OpBalance": 21.0,
"UserID": 22,
"SalaryType": "sample string 23",
"Image": "sample string 24",
"PayableLedgerID": 25,
"ExpenseLedgerID": 26,
"OBDrCr": "sample string 27",
"OBDate": "2026-10-15T11:12:14.3521506-07:00",
"TransactionNumberID": 29,
"OpeningLedgerID": 30,
"IsHourlyBased": true,
"DailyWorkingHours": 32.0,
"EnableLunchBreak": true,
"OvertimeHourlyRate": 34.0
}
application/xml, text/xml
Sample:
<InsertEmployeeRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CrushMateBackendAPI.Controllers"> <Address>sample string 6</Address> <BloodGroup>sample string 15</BloodGroup> <BranchID>2</BranchID> <City>sample string 9</City> <Country>sample string 12</Country> <DOB>2026-10-15T11:12:14.3521506-07:00</DOB> <DOJ>2026-10-15T11:12:14.3521506-07:00</DOJ> <DailyWorkingHours>32</DailyWorkingHours> <DesignationID>4</DesignationID> <Email>sample string 14</Email> <EmployeeID>1</EmployeeID> <EmployeeName>sample string 5</EmployeeName> <EnableLunchBreak>true</EnableLunchBreak> <ExpenseLedgerID>26</ExpenseLedgerID> <FinancialYearID>3</FinancialYearID> <Gender>sample string 7</Gender> <Image>sample string 24</Image> <IsHourlyBased>true</IsHourlyBased> <OBDate>2026-10-15T11:12:14.3521506-07:00</OBDate> <OBDrCr>sample string 27</OBDrCr> <OpBalance>21</OpBalance> <OpeningLedgerID>30</OpeningLedgerID> <OvertimeHourlyRate>34</OvertimeHourlyRate> <PIN>sample string 10</PIN> <PayableLedgerID>25</PayableLedgerID> <Phone>sample string 13</Phone> <Qualification>sample string 19</Qualification> <Remarks>sample string 20</Remarks> <Salary>18</Salary> <SalaryType>sample string 23</SalaryType> <State>sample string 8</State> <TIN>sample string 11</TIN> <TransactionNumberID>29</TransactionNumberID> <UserID>22</UserID> </InsertEmployeeRequestModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.