List termination packages
GET
/termination_packagesRead token is enoughManage employee offboarding
time_off/manage_offboardingRequires feature time_offAvailable in Claudetermination_packages.listReturns the end-of-service packages, newest first, with the employee, reason, dates, what they are owed, what is taken off and the net payout, and the payout once recorded. meta gives the count per status and whether confirmations go to an accountant in Qoyod (accounting_mode: approval). The full calculation is not included; read it with termination_packages.show.
When to use: to answer "who is leaving and what are we paying them?", or to find a package's id.
Prerequisites: none. The employee filters take a name or number; department_id and location_id come from employees.meta_data.
Side effects: none. Up to 50 per page.
Before you call this
You will need ids that come from these operations:
Parameters
| Name | In | Type | Description | Example |
|---|---|---|---|---|
q[status_eq] | query | string | Only this status. Allowed values: draft, pending_accounting, declined, paid, cancelled | draft |
q[employee_employee_name_cont] | query | string | Employee name contains. | Ahmed |
q[employee_employee_no_cont] | query | string | Employee number contains. | EMP-01 |
q[last_working_day_gteq] | query | string (date) | Last working day on or after. | 2026-12-01 |
q[last_working_day_lteq] | query | string (date) | Last working day on or before. | 2026-12-31 |
department_id | query | integer | Only this department. | 4 |
location_id | query | integer | Only this work location. | 2 |
page | query | integer | Page number, starting at 1. min 1 | 1 |
per_page | query | integer | Records per page. Each list states its maximum. min 1 | 20 |
Accept-Language | header | string | Language of messages and translated labels. English when omitted. Allowed values: ar, en | ar |
Response
200 A page of packages.
| Field | Type | Description |
|---|---|---|
recordsRequired | array<object> | The packages. |
records[].id | integer | Package id. |
records[].reference | string | Reference, e.g. EOS-0041. |
records[].status | string | draft (saved calculation, nothing happened yet), pending_accounting (confirmed, waiting for the accountant in Qoyod), declined (refused by accounting, editable again), paid (approved and the payout recorded) or cancelled.Allowed values: draft, pending_accounting, declined, paid, cancelled |
records[].status_label_en | string | Status in English. |
records[].status_label_ar | string | Status in Arabic. |
records[].include_last_payroll | boolean | True when the final partial month is paid in the package (and the employee is kept off the payroll run for it); false when payroll pays it. |
records[].employee | object | The leaving employee. |
records[].employee.id | integer | Employee id. |
records[].employee.employee_no | string | Employee number. |
records[].employee.name_en | string | Name in English. |
records[].employee.name_ar | string | Name in Arabic. |
records[].employee.department | string | Department. |
records[].employee.employment_status | string | Employment status key (active, notice_period, inactive). |
records[].last_working_day | string (date) | Last working day. |
records[].payment_date | string (date) | Date the package is paid. |
records[].compensation_total | string | What the employee is owed (HR's figure when overridden). |
records[].offsets_total | string | Loans, deductions and custody taken off. |
records[].net_payout | string | What is paid: compensation minus offsets. |
records[].currency | string | Currency, ISO code. |
records[].has_override | boolean | True when HR entered a total different from the calculated one. |
records[].payment_status | string | Whether the payout is recorded. |
records[].accounting | object | mode (legacy, or approval when an accountant must approve in Qoyod) and gate. |
records[].created_at | string | When it was created, UTC ISO 8601. |
records[].reason | object | The reason: id, code, name_en, name_ar. |
records[].payment | object | The recorded payout: reference, date, amount. |
records[].created_by | object | Who created it: id, name. |
meta | object | accounting_mode (legacy or approval) and counts per status. |
paginationRequired | object | |
pagination.current_pageRequired | integer | This page's number. |
pagination.per_pageRequired | integer | Records per page. |
pagination.total_entriesRequired | integer | Records across all pages. |
pagination.pagesRequired | integer | Number of pages. |
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. |
entitlement_blocked · 429 rate_limited · 500 internal_error