Skip to Content
API ReferenceTime Off

Search Time Off History

POST
/api/v1/time-off/logs/search

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
page_number?Page Number
Range0 < value
Default1
employee_id*Employee Id
Range0 < value
category_ids?array<>|null
action_types?array<>|null
request_statuses?array<>|null
date_from?|null
date_to?|null

Response Body

Successful Response

application/json
  1. response
items*array<>
metadata*
Example Request
curl -X POST 'https://api.skailer.com/api/v1/time-off/logs/search' \  -H 'Content-Type: application/json' \  -d '{  "employee_id": 1}'
Example Response
{  "items": [    {      "approval_request_details": {        "id": 1,        "datetime_created_at": "string",        "employee_id": 0,        "type": "time_off",        "status": "awaiting",        "confirmations": [          {            "created_at": "string",            "updated_at": "string",            "from_employee_id": 0,            "status": "queued",            "confirmed_at": "string",            "rejected_at": "string",            "is_bypass_approval_flow": true,            "approver_employee_id": 0,            "substitutor_employee_id": 0,            "comment": "string"          }        ],        "created_by_id": 0      },      "time_off_log": {        "id": 1,        "date_adjustment": "string",        "employee_id": 0,        "category": {          "id": 1,          "title": "string",          "description": "string",          "category_type": "accrues_time",          "paid_type": "not_working_paid",          "emoji": "string",          "color": "string",          "policies_count": 0,          "period_track_type": "days",          "sort": 0,          "is_archived": true,          "is_parental_leave": true        },        "balance": "string",        "action": "initial_balance",        "balance_type": "earnings",        "date_expire": "string",        "created_by_id": 0,        "date_created": "string",        "date_from": "string",        "date_to": "string",        "comment": "string",        "files": [          {            "name": "string",            "file_type": "string",            "size": 0,            "mime_type": "string",            "uuid": "string",            "url": "string"          }        ]      }    }  ],  "metadata": {    "page_number": 1,    "total_pages": 0,    "items": 0,    "items_per_page": 0,    "total_items": 0  }}