API ReferenceTime Off
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.
HttpBearerAuthheader
AuthorizationBearer <JWT>application/json- body
employee_id*Employee IdRange
0 < valuedate_balance*Date BalanceFormat
dateSuccessful Response
application/json- response
[index: integer]?curl -X POST 'https://api.skailer.com/api/v1/time-off/employee/balance' \ -H 'Content-Type: application/json' \ -d '{ "employee_id": 1, "date_balance": "2019-08-24"}'Example Response
[ { "id": 0, "title": "string", "description": "string", "emoji": "string", "color": "string", "balance": { "available_balance": "string", "total_booked_amount": "string" }, "period_track_type": "days", "category_type": "accrues_time", "is_archived": true, "can_request": true }]Search Time Off History POST
Previous Page
Search Employee Time Off Days POST
Returns only the dates a person is on time off, each with its `time_off_category_id`. Free days, weekends, public holidays and part-time schedules are not taken into account. Requires permission `access_to_leave_timeline=edit`.
