Skip to Content
API ReferenceEmployees

Terminations of many employees

POST
/api/v1/employees/terminations/search

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

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
page_number?Page Number
Range0 < value
Default1
page_size?Page Size
Range1 <= value <= 200
Default20
employee_ids?array<integer>|null
date_effective_from_from?|null
date_effective_from_to?|null

Response Body

Successful Response

application/json
  1. response
items*array<>
metadata*
Example Request
curl -X POST 'https://api.skailer.com/api/v1/employees/terminations/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "items": [    {      "id": 0,      "employee_id": 0,      "date_effective_from": "string",      "date_last_working": "string",      "termination_leave_type": {        "id": 0,        "title": "string",        "is_archived": true,        "is_voluntary": true      },      "termination_reason": {        "id": 0,        "title": "string",        "is_archived": true,        "is_voluntary": true      },      "replacement_employee": {        "id": 0,        "first_name": "string",        "last_name": "string",        "email": "string",        "is_archived": false      },      "eligible_for_rehire": true,      "comment": "string",      "changed_by": {        "id": 0,        "first_name": "string",        "last_name": "string",        "email": "string",        "is_archived": false      }    }  ],  "metadata": {    "page_number": 1,    "total_pages": 0,    "items": 0,    "items_per_page": 0,    "total_items": 0  }}