This API allows you to find existing employees within Ascentis HR.
Resource URL| Example Request | |
| GET | https://serverurl/api/v1.1/employees |
| Request Content |
| lastname: Employee last name. The search will operate like an "ILIKE/LIKE" operator. |
| firstname: Employee first name. The search will operate like an "ILIKE/LIKE" operator. |
| middlename: Employee middle name. The search will operate like an "ILIKE/LIKE" operator. |
| empid: Employee ID/Number to search. |
| status: Employee status. The list of available status can be extracted from /fields (field name = EmpStatus) |
| divisionid: Employee division. The list of available disivions can be extracted from /fields (field name = DivisionID) |
| departmentid: Employee department. The list of available departments can be extracted from /fields (field name = DptID) |
| locationid: Employee location. The list of available locations can be extracted from /fields (field name = LocationID) |
| salarytype: Employee salary type. The list of available salary types can be extracted from /fields (field name = SalaryType) |
| jobtitleid: Employee job title. The list of available status can be extracted from /fields (field name = JobTitleID) |
| terminatedSince: Last X days if value is integer, or since date if value is date (availabe in v1.1 and higher) |
| hiredSince: same as terminatedSince (availabe in v1.1 and higher) |
| supervisor: true/false to limit search to supervisors or non-supervisors (available in v1.1 and higher) |
| Return Value | ||
| Http header "Accept" value -- "text/xml" or "application/xml" will return XML, otherwise JSON will be returned. | ||
| XML | ||
JSON |
|
|
| |
| Resource Information | |
| Requires Authentication? | Yes |
| Response Formats | json xml |
| HTTP Methods | GET |
| Return Code | 200: Response Completed 403: Incorrect Authorization 400: Bad Data |