POST api/Employees
Terminates the list of employees passed in and optionally you can set the following attributes: Termination Date, Eligible for Rehire, Termination Type and Termination Reason. The attribute, Eligible for Rehire, defaults to false. If you choose to pass in the Termination Type, you must pass either VOL or INVOL meaning Voluntary or Involuntary. If you choose to pass a Termination Reason, then you must call api/company/terminationreasons?companycode={companycode} to get the valid termination reason list.
Request Information
Parameters
Name | Description |
---|---|
employees
(param in the body) |
The list of employees to terminate. The only required attribute is EmployeeCode and the rest are optional. |
Request body formats
application/json, text/json
Sample:
[ { "EmployeeCode": "", "TerminationDate": "2000-01-01T00:00:00", "TerminationCode": "", "TerminationReason": "", "Rehire": false }, { "EmployeeCode": "", "TerminationDate": "2000-01-01T00:00:00", "TerminationCode": "", "TerminationReason": "", "Rehire": false }, { "EmployeeCode": "", "TerminationDate": "2000-01-01T00:00:00", "TerminationCode": "", "TerminationReason": "", "Rehire": false } ]
application/xml, text/xml
Sample:
<ArrayOfTerminateEmployeeDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Netchex.API.External.Areas.Employees.Models"> <TerminateEmployeeDto> <EmployeeCode></EmployeeCode> <Rehire>false</Rehire> <TerminationCode></TerminationCode> <TerminationDate>2000-01-01T00:00:00</TerminationDate> <TerminationReason></TerminationReason> </TerminateEmployeeDto> <TerminateEmployeeDto> <EmployeeCode></EmployeeCode> <Rehire>false</Rehire> <TerminationCode></TerminationCode> <TerminationDate>2000-01-01T00:00:00</TerminationDate> <TerminationReason></TerminationReason> </TerminateEmployeeDto> <TerminateEmployeeDto> <EmployeeCode></EmployeeCode> <Rehire>false</Rehire> <TerminationCode></TerminationCode> <TerminationDate>2000-01-01T00:00:00</TerminationDate> <TerminationReason></TerminationReason> </TerminateEmployeeDto> </ArrayOfTerminateEmployeeDto>
Response Information
Response body formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.