QHR Developers

List each finalised payroll run and its Qoyod posting

GET/accounting_connection/posting_by_run
Read token is enoughView the accounting integration and what was sent to it accounting/viewRequires feature accountingAvailable in Claudeaccounting_connection.posting_by_run

Returns every payroll run finalised in the range, newest first, with its totals (gross, deductions, net, and by cost type when sent) and what it became in Qoyod: posted with the journal entry, held, failed, reversed… or not_sent with the reason (not connected, finalised before the connection, sync off). Totals come from what Qoyod received when the run was sent.

When to use: month-end and audit: "which runs are in the books, and under which journal entries?".

Prerequisites: none. period=YYYY-MM for one month, or from/to (YYYY-MM); this calendar year to date by default.

Side effects: none.

Parameters

NameInTypeDescriptionExample
periodquerystringOne month, YYYY-MM.2026-09
fromquerystringFirst month, YYYY-MM.2026-01
toquerystringLast month, YYYY-MM.2026-09
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 The runs and their postings.

FieldTypeDescription
periodstringThe month, when the range is one month.
fromstringFirst month.
tostringLast month.
runsarray<object>One entry per finalised run.
runs[].referencestringRun reference.
runs[].periodstringMonth, YYYY-MM.
runs[].finalized_atstringWhen it was finalised, UTC.
runs[].netstringNet pay, decimal string.
runs[].totalsobjectGross, deductions and net per currency.
runs[].statestringposted, held, failed, reversed, not_sent…
runs[].reasonstringWhy it was not sent (not_sent only).
runs[].journal_entrystringQoyod journal entry reference.
runs[].historyarray<string>What happened to it, in order.
paymentsarray<object>Reserved; empty for now.
off_cyclearray<object>Reserved; empty for now.

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.
422validation_failedperiod, from or to is not a month in YYYY-MM form.Send months as YYYY-MM, e.g. 2026-09.
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 →