QHR Developers

Get an employee's balance statement for one policy

GET/employees/{id}/time_off/balance_statements/{leave_policy_id}
Read token is enoughView others' time off time_off/view_othersRequires feature time_offAvailable in Claudetime_off.balance_statement

Returns every movement on one policy's balance for one year, like a bank statement: the assignment, yearly or monthly accruals, carry-over and its expiry, manual adjustments (with who made them and why) and each leave request as a deduction, in date order with a running total that ends at the balance. Rejected and cancelled requests are listed but do not move the total (counted: false).

When to use: to explain a balance ("why does Sara have 18 days?") or to check a manual adjustment. For just the totals, time_off.balances is lighter. Works for a policy that was removed from the employee too (unassigned_on).

Prerequisites: the employee's id from employees.list; leave_policy_id from time_off.balances or time_off.policies. Needs "View others' time off".

Side effects: none.

Before you call this

You will need ids that come from these operations:

Parameters

NameInTypeDescriptionExample
idRequiredpathintegerEmployee id, from employees.list, employees.search or hr_leaves.employees.1203
leave_policy_idRequiredpathintegerLeave policy id, from time_off.policies or time_off.balances (id).7
fiscal_yearqueryintegerThe leave year (calendar year). This year when omitted.2026
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 The statement.

FieldTypeDescription
fiscal_yearintegerThe leave year (calendar year).
policyobjectThe policy.
policy.idintegerLeave policy id.
policy.namestringLeave policy name.
unassigned_onstring (date)When the policy was removed from the employee; null while it is assigned.
summaryobjectThe year's totals, the same figures as time_off.balances.
summary.accrued_daysnumberDays earned.
summary.carryover_daysnumberDays carried over.
summary.carryover_usablebooleanFalse when carried days cannot be taken.
summary.entitled_daysnumberDays entitled.
summary.taken_daysnumberDays in approved requests.
summary.pending_daysnumberDays held by pending requests.
summary.available_daysnumberDays still available.
entriesarray<object>Movements in date order; entitlement before use on the same day.
entries[].event_typestringassignment, carryover, accrual, hire_date_corrected, manual_adjustment (see time_off.adjust_balance), carryover_expiration or deduction (a leave request).
entries[].effective_datestring (date)When it counts.
entries[].amountnumberDays added (positive) or taken (negative).
entries[].countedbooleanFalse when the row does not move the total (a rejected or cancelled request, unusable carry-over).
entries[].descriptionstringWhat happened, in the requested language.
entries[].actorstringWho made a manual adjustment; null for automatic rows.
entries[].leave_request_idintegerThe leave request, on deduction rows.
entries[].statusstringThe leave request's status, on deduction rows.
entries[].running_totalnumberBalance after this row.

Errors

HTTPCodeMeaningHow to fix
401token_missingNo Authorization: Bearer … header, or it is malformed.Send Authorization: Bearer qhr_… with the full token.
401token_invalidThe token is unknown or wrong, or its owner's account is locked.Check the token was copied in full, or create a new one in QHR › Settings › API & Integrations.
401token_expiredThe token is past its expiry date.Create a new token.
401token_revokedThe token was revoked by its owner or an admin, or the owner was removed from the company (which revokes all their tokens).Create a new token, or ask your admin. If the owner was removed, they must be re-invited to the company first.
401tenant_inactiveThe company account is suspended.Contact QHR support.
403forbiddenThe token owner's role lacks the permission this operation needs.Ask an admin to grant the permission shown on this operation (x-permission).
403employee_inactiveThe token owner's employee record is not active.HR must reactivate the employee record.
403tenant_access_revokedThe token's owner is no longer an active member of this company. Rare: removing a member normally revokes their tokens, which answers 401 token_revoked instead.The owner must be re-invited to the company, then create a new token. If the owner is still a member, contact QHR support.
404not_foundThe record does not exist, or you cannot see it.Check the id. List the records first to get a valid one.
422validation_failedThis employee has never held this leave policy.Pick a policy from time_off.balances or time_off.policies (assigned).
This endpoint can also return the errors that can happen on any endpoint →402 / 412 / 425 entitlement_blocked · 429 rate_limited · 500 internal_error

See the full error catalogue →