QHR Developers

List termination packages

GET/termination_packages
Read token is enoughManage employee offboarding time_off/manage_offboardingRequires feature time_offAvailable in Claudetermination_packages.list

Returns 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

NameInTypeDescriptionExample
q[status_eq]querystringOnly this status.
Allowed values: draft, pending_accounting, declined, paid, cancelled
draft
q[employee_employee_name_cont]querystringEmployee name contains.Ahmed
q[employee_employee_no_cont]querystringEmployee number contains.EMP-01
q[last_working_day_gteq]querystring (date)Last working day on or after.2026-12-01
q[last_working_day_lteq]querystring (date)Last working day on or before.2026-12-31
department_idqueryintegerOnly this department.4
location_idqueryintegerOnly this work location.2
pagequeryintegerPage number, starting at 1.
min 1
1
per_pagequeryintegerRecords per page. Each list states its maximum.
min 1
20
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 A page of packages.

FieldTypeDescription
recordsRequiredarray<object>The packages.
records[].idintegerPackage id.
records[].referencestringReference, e.g. EOS-0041.
records[].statusstringdraft (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_enstringStatus in English.
records[].status_label_arstringStatus in Arabic.
records[].include_last_payrollbooleanTrue 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[].employeeobjectThe leaving employee.
records[].employee.idintegerEmployee id.
records[].employee.employee_nostringEmployee number.
records[].employee.name_enstringName in English.
records[].employee.name_arstringName in Arabic.
records[].employee.departmentstringDepartment.
records[].employee.employment_statusstringEmployment status key (active, notice_period, inactive).
records[].last_working_daystring (date)Last working day.
records[].payment_datestring (date)Date the package is paid.
records[].compensation_totalstringWhat the employee is owed (HR's figure when overridden).
records[].offsets_totalstringLoans, deductions and custody taken off.
records[].net_payoutstringWhat is paid: compensation minus offsets.
records[].currencystringCurrency, ISO code.
records[].has_overridebooleanTrue when HR entered a total different from the calculated one.
records[].payment_statusstringWhether the payout is recorded.
records[].accountingobjectmode (legacy, or approval when an accountant must approve in Qoyod) and gate.
records[].created_atstringWhen it was created, UTC ISO 8601.
records[].reasonobjectThe reason: id, code, name_en, name_ar.
records[].paymentobjectThe recorded payout: reference, date, amount.
records[].created_byobjectWho created it: id, name.
metaobjectaccounting_mode (legacy or approval) and counts per status.
paginationRequiredobject
pagination.current_pageRequiredintegerThis page's number.
pagination.per_pageRequiredintegerRecords per page.
pagination.total_entriesRequiredintegerRecords across all pages.
pagination.pagesRequiredintegerNumber of pages.

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.
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 →