Skip to Content
API ReferenceTime Off

Get Time Off Categories With Balance For Employee

POST
/api/v1/time-off/employee/balance

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.

Authorization

HttpBearerAuth
headerAuthorizationBearer <JWT>

Request Body

application/json
  1. body
employee_id*Employee Id
Range0 < value
date_balance*Date Balance
Formatdate

Response Body

Successful Response

application/json
  1. response
[index: integer]?
Example Request
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  }]