Get an employee's balance statement for one policy
/employees/{id}/time_off/balance_statements/{leave_policy_id}time_off/view_othersRequires feature time_offAvailable in Claudetime_off.balance_statementReturns 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
| Name | In | Type | Description | Example |
|---|---|---|---|---|
idRequired | path | integer | Employee id, from employees.list, employees.search or hr_leaves.employees. | 1203 |
leave_policy_idRequired | path | integer | Leave policy id, from time_off.policies or time_off.balances (id). | 7 |
fiscal_year | query | integer | The leave year (calendar year). This year when omitted. | 2026 |
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 The statement.
| Field | Type | Description |
|---|---|---|
fiscal_year | integer | The leave year (calendar year). |
policy | object | The policy. |
policy.id | integer | Leave policy id. |
policy.name | string | Leave policy name. |
unassigned_on | string (date) | When the policy was removed from the employee; null while it is assigned. |
summary | object | The year's totals, the same figures as time_off.balances. |
summary.accrued_days | number | Days earned. |
summary.carryover_days | number | Days carried over. |
summary.carryover_usable | boolean | False when carried days cannot be taken. |
summary.entitled_days | number | Days entitled. |
summary.taken_days | number | Days in approved requests. |
summary.pending_days | number | Days held by pending requests. |
summary.available_days | number | Days still available. |
entries | array<object> | Movements in date order; entitlement before use on the same day. |
entries[].event_type | string | assignment, carryover, accrual, hire_date_corrected, manual_adjustment (see time_off.adjust_balance), carryover_expiration or deduction (a leave request). |
entries[].effective_date | string (date) | When it counts. |
entries[].amount | number | Days added (positive) or taken (negative). |
entries[].counted | boolean | False when the row does not move the total (a rejected or cancelled request, unusable carry-over). |
entries[].description | string | What happened, in the requested language. |
entries[].actor | string | Who made a manual adjustment; null for automatic rows. |
entries[].leave_request_id | integer | The leave request, on deduction rows. |
entries[].status | string | The leave request's status, on deduction rows. |
entries[].running_total | number | Balance after this row. |
Errors
| HTTP | Code | Meaning | How to fix |
|---|---|---|---|
| 401 | token_missing | No Authorization: Bearer … header, or it is malformed. | Send Authorization: Bearer qhr_… with the full token. |
| 401 | token_invalid | The 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. |
| 401 | token_expired | The token is past its expiry date. | Create a new token. |
| 401 | token_revoked | The 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. |
| 401 | tenant_inactive | The company account is suspended. | Contact QHR support. |
| 403 | forbidden | The token owner's role lacks the permission this operation needs. | Ask an admin to grant the permission shown on this operation (x-permission). |
| 403 | employee_inactive | The token owner's employee record is not active. | HR must reactivate the employee record. |
| 403 | tenant_access_revoked | The 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. |
| 404 | not_found | The record does not exist, or you cannot see it. | Check the id. List the records first to get a valid one. |
| 422 | validation_failed | This employee has never held this leave policy. | Pick a policy from time_off.balances or time_off.policies (assigned). |
entitlement_blocked · 429 rate_limited · 500 internal_error