Leave Balances
Get Employee Leave Balances
Get all leave balances for a specific employee
GET
Retrieve all leave balances for an employee across all leave types for a specific year. This provides a comprehensive view of an employee’s leave allocation and usage.
Authentication
Requires authentication with Bearer token. Available to:- Super Admin
- HR Manager
- Employee (can view their own balances)
- Manager (can view their team members’ balances)
Path Parameters
string
required
The unique identifier of the employee (UUID format)Example:
"987e6543-e21b-12d3-a456-426614174000"Query Parameters
integer
required
The year to retrieve balances for (between 2020 and 2100)Example:
2025Response
boolean
Indicates if the request was successful
array
Array of leave balance objects for each leave type
Understanding Balance Fields
Balance Calculation:
available_days = total_days - used_days - pending_daysWhere total_days includes any carried forward days from the previous year.Use Cases
This endpoint is useful for:- HR dashboards: View comprehensive leave status for any employee
- Manager views: Check team member leave balances before approving requests
- Employee portals: Display personal leave overview
- Year-end reporting: Generate annual leave usage reports
- Leave planning: Help employees plan their leave across different types
Related Endpoints
- Check Balance - Quick balance check for current user
- Get Balance by Type - Detailed balance for specific leave type
- List Leave Types - View all available leave types