Get a time off balance

Remaining balance of one employee for one time off type.

GET https://cotlet.dev/api/v1/personio/employees/{employee_id}/time-off-balance

read

Returns the balance Personio shows on the Time off page of the profile: entitlement, taken and remaining for the time off type. Needs permission to see that employee's time off. Use it before request_time_off to avoid a negative balance.

Parameters

Parameters: get_time_off_balance
NameTypeDescription
employee_id string required string Employee ID from list_employees.
time_off_type string required string Name from list_time_off_types.

Request

cURL
curl "https://cotlet.dev/api/v1/personio/employees/employee_8c41d2/time-off-balance?time_off_type=time+off+type" \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("personio", "get_time_off_balance", {"employee_id":"employee_8c41d2","time_off_type":"time off type"})
Node.js
const result = await cotlet.call('personio', 'get_time_off_balance', {"employee_id":"employee_8c41d2","time_off_type":"time off type"});
CLI
cotlet call personio get_time_off_balance --data '{"employee_id":"employee_8c41d2","time_off_type":"time off type"}'

Example response

JSON

{
  "employee_id": "emp_2041",
  "time_off_type": "Vacation",
  "entitled": 25,
  "taken": 7,
  "remaining": 18,
  "unit": "days"
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.