API ReferenceTime Off
Search Time Off History
POST
HttpBearerAuthheader
AuthorizationBearer <JWT>application/json- body
page_number?Page NumberRange
0 < valueDefault
1employee_id*Employee IdRange
0 < valuecategory_ids?array<>|nullaction_types?array<>|nullrequest_statuses?array<>|nulldate_from?|nulldate_to?|nullSuccessful Response
application/json- response
items*array<>metadata*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 }}Get All Time Off Categories GET
Requires one of: `employee_time_off=view` or `access_to_leave_timeline=edit` for at least one employee, or `manage_leave_policies`, `reporting_leave_balance`, `reporting_leave_used`, `workflow_module`, `manage_approval_policy` set to edit.
Get Time Off Categories With Balance For Employee POST
For a terminated employee, if `date_balance` is after the termination date, the balance is calculated on the termination date under the policy assigned on that date.
