API ReferenceEmployees
Employment history of many employees
POST
Paged by employees ordered by id; each item holds the full history of one employee. Employees without employee_employments_history=view are skipped
HttpBearerAuthheader
AuthorizationBearer <JWT>application/json- body
page_number?Page NumberRange
0 < valueDefault
1page_size?Page SizeRange
1 <= value <= 200Default
20employee_ids?array<integer>|nullemployee_lifecycle_statuses?array<>|nullSuccessful Response
application/json- response
items*array<>metadata*curl -X POST 'https://api.skailer.com/api/v1/employees/employments/search' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "items": [ { "employee_id": 0, "employments": [ { "id": 0, "custom_fields": [], "date_effective_from": "string", "date_effective_to": "string", "employment_type": { "id": 0, "title": "string", "is_archived": true, "employees_count": 0 }, "employment_contract": { "id": 0, "title": "string", "is_archived": true, "employees_count": 0 }, "work_pattern": { "id": 0, "title": "string", "monday": "string", "tuesday": "string", "wednesday": "string", "thursday": "string", "friday": "string", "saturday": "string", "sunday": "string", "is_archived": true }, "probation_ends_date": "2019-08-24", "legal_entity": { "id": 0, "title": "string", "tax_id": "string", "currency": { "code": "string", "name": "string", "name_plural": "string", "symbol": "string", "symbol_native": "string", "decimal_digits": 0, "rounding": 0 }, "location": { "id": 0, "title": "string", "address_1": "string", "address_2": "string", "city": "string", "state": "string", "zip": "string", "country": { "id": 0, "title": "string" }, "timezone": "string", "employees_count": 0, "is_archived": true }, "employees_count": 0, "is_archived": true }, "comment": "string", "changed_by": { "id": 0, "first_name": "string", "last_name": "string", "email": "string", "is_archived": false }, "contractual_fte": "string" } ] } ], "metadata": { "page_number": 1, "total_pages": 0, "items": 0, "items_per_page": 0, "total_items": 0 }}Create employee POST
Previous Page
Terminations of many employees POST
All terminations including past employment periods of rehired employees, ordered by `date_effective_from`. Requires `employee_employments_history`, `employee_termination_date` and `employee_termination_eligible_for_rehire` on view; other employees are skipped
