Skip to Content
API ReferenceEmployees

Compensation history

POST
/api/v1/employees/{employee_id}/compensations/search

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Path Parameters

employee_id*Employee Id

Request Body

application/json
  1. body
page_number?Page Number
Range0 < value
Default1
page_size?Page Size
Range1 <= value <= 500
Default20

Response Body

Successful Response

application/json
  1. response
items*array<>
metadata*
Example Request
curl -X POST 'https://api.skailer.com/api/v1/employees/0/compensations/search' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "items": [    {      "id": 0,      "date_effective_from": "string",      "date_effective_to": "string",      "change_reason": {        "id": 0,        "title": "string"      },      "base_salary_gross": "string",      "base_salary_net": "string",      "currency": "string",      "comment": "string",      "per_type": "hourly",      "changed_by": {        "id": 0,        "first_name": "string",        "last_name": "string",        "email": "string",        "is_archived": false      },      "lines": [        {          "id": 0,          "compensation_type": {            "id": 0,            "title": "string",            "is_archived": true          },          "amount_gross": "string",          "amount_net": "string",          "currency": "string",          "per_type": "hourly",          "description": "string",          "kind": "earning",          "is_included_in_gross": true,          "is_payable_to_employee": true,          "is_included_in_total_cost": true,          "rate_type": "fixed_amount",          "percent": "string",          "is_off_payroll": true        }      ],      "rollups": {        "currency_code": "string",        "per_type": "hourly",        "date_fx_rate": "string",        "gross_amount": "string",        "net_official_amount": "string",        "net_actual_amount": "string",        "total_cost_official_amount": "string",        "total_cost_actual_amount": "string",        "implied_deductions": "string"      }    }  ],  "metadata": {    "page_number": 1,    "total_pages": 0,    "items": 0,    "items_per_page": 0,    "total_items": 0  }}