QHR Developers

Get my overtime totals

GET/overtime_requests/stat_cards
Read token is enoughCheck in/out and view own attendance history attendance/view_ownRequires feature attendanceAvailable in Claudeovertime_requests.stat_cards

Counts the token owner's overtime requests for dates in a period (the current month by default), with their hours: pending, approved, rejected, and approved ones already paid by a payroll run. Adds the approved hours not paid yet and estimated_amount, an estimate of the pay for the approved hours at today's salary and the company's overtime multiplier (hourly rate with benefits, plus the basic hourly rate times the multiplier above 1).

When to use: to answer "how much overtime do I have this month, and roughly what will it pay?". For the requests themselves use overtime_requests.list.

Prerequisites: the token owner must be an employee, with "View own attendance".

Side effects: none. estimated_amount is an estimate; the payroll run computes the real amount.

Parameters

NameInTypeDescriptionExample
fromquerystring (date)First date counted (YYYY-MM-DD). First day of the current month when omitted.2026-11-01
toquerystring (date)Last date counted. Last day of the current month when omitted.2026-11-30
Accept-LanguageheaderstringLanguage of messages and translated labels. English when omitted.
Allowed values: ar, en
ar

Response

200 My overtime totals for the period.

FieldTypeDescription
periodobjectThe dates counted.
period.fromstring (date)First day.
period.tostring (date)Last day.
pendingobjectWaiting for the manager or HR.
pending.countintegerNumber of requests.
pending.hoursnumberTheir hours.
approvedobjectApproved, paid or not.
approved.countintegerNumber of requests.
approved.hoursnumberTheir hours.
rejectedobjectRejected.
rejected.countintegerNumber of requests.
rejected.hoursnumberTheir hours.
paidobjectApproved and already taken by a payroll run.
paid.countintegerNumber of requests.
paid.hoursnumberTheir hours.
unpaid_approved_hoursnumberApproved hours no payroll run has taken yet.
estimated_amountnumberEstimated pay for the approved hours at today's salary and overtime rate; null without a salary or approved hours.

Errors

HTTPCodeMeaningHow to fix
400bad_requestA parameter is missing or malformed.Check the parameters against this operation's documentation.
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.
422employee_requiredThe token owner is a system user with no employee record, and overtime belongs to employees.Use a token created by a user linked to an employee, or ask HR to link your user to your employee record.
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 →