Leave Balances
Check Leave Balance
Check current user’s available leave balance
GET
Check the available leave balance for the authenticated employee for a specific leave type and year. This endpoint returns the number of available days that can be requested.
Authentication
Requires authentication with Bearer token. Available to:- Employee
- Manager
This endpoint automatically uses the employee ID from the JWT token, so employees can only check their own balance.
Query Parameters
string
required
UUID of the leave type to check balance forExample:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"integer
required
The year to check balance for (between 2020 and 2100)Example:
2025Response
boolean
Indicates if the request was successful
number
Available leave days remaining (can include decimal values for half days)Example:
15.5Understanding the Balance
The returned balance represents:- Total allocated days for the year
- Minus days already taken (approved leave)
- Minus days pending approval
- Plus any carried forward days from the previous year
Half-day leave is supported, so the balance can include decimal values like
15.5 (15 and a half days remaining).Use Cases
This endpoint is typically used:- Before submitting a leave request to verify sufficient balance
- In employee self-service portals to display available leave
- In mobile apps for quick balance checks
- When planning future leave requests
Related Endpoints
- Get Balance by Type - Get detailed balance breakdown
- Get Employee Balances - Get all leave balances for an employee
- Request Leave - Submit a new leave request