Skip to content
Hour Advantage
Search
Ctrl
K
Cancel
Try the live demo
Select theme
Dark
Light
Auto
Menu
Introduction
Quick start
Architecture
Overview
A punch's path
The ledger
Policy layers
Closed periods
Hour Advantage Connect
Overview
Tenants
Devices
Networking
MQTT
Actions
Jobs
Sync groups
Sync group reference
Policy packages
Policy recipes
Overview
A clock back from repair
A clock's life: put into service, back
Clocks shared by several staffing agencies
Enrolling at an agency's clock
Linking people by their PIN
Onboarding through HR first
Routing by work code
Biometric data
Protocol packages
Packages
Writing packages
Package reference
Host API
Scenario tests
Developing packages
ZKTeco PUSH
Hour Advantage Time and Attendance
Overview
Punches and segments
People and employment
Employers, organizations and locations
Unlinked people
Labor context
Schedules
Allocations and the ledger
Every minute explained
Labor entries and rates
Policies
Leave requests
Approvals
Period close
Payroll export
Accruals
Pay and bill
Exceptions
Break attestations
Shift cost estimates
Policy packages
Standard steps
Policy cookbook
Overview
Customization points
Pairing and shifts
A forgotten clock-out, closed at the longest shift
Attribution by most hours
Attribution by the scheduled shift
Double punches and stepping out a moment
Local time at each site
Matching work to the right shift
Overnight shifts: which workday the hours belong to
Punches of unknown direction
Punching only on the devices a person is set up for
Time zones in one day
Rounding
Exact time in decimal hours
Rounding that leaves meal punches alone
Rounding to the quarter hour (the 7-minute rule)
Rounding to the tenth of an hour
Snap early punches to the scheduled start
Overtime
A 9/80 schedule's workweek
A union contract for its members
Alternative workweek (four 10-hour days)
Brazil's working hours
Canada's provincial employment standards
Daily overtime in 24 hours from the start of work (Nevada style)
Daily overtime past 12 hours (Colorado style)
Daily overtime where the work location's law has it
Daily overtime, double time and the seventh day (California style)
Fluctuating workweek
France's 35-hour week
France's yearly overtime quota and compensatory rest
Japan's overtime premiums and the 36 agreement
Mexico's Federal Labour Law
No pyramiding of premiums
One person's own agreement
Overtime across a joint employment
Overtime at the regular rate
Overtime by jurisdiction, picked by where people work
Overtime cost spread over the branches worked at
Overtime only after scheduled hours
Overtime past the contract's hours, by where the hour fell
Paid leave and holidays do not count toward overtime
The 8 and 80 system (hospitals and residential care)
Weekly overtime over 40 hours
Work period overtime for fire and police
Meals and breaks
Automatic meal deduction
Meal and break attestation
Meal period premium (California style)
Missed rest break
Paid rest breaks
Rest period premium (California style)
Premiums
A remote site allowance set on the organization tree
Call-back pay
Night shift differential
Night, Sunday and public-holiday supplements (Germany)
On-call allowance and call-outs
Predictive scheduling (fair workweek)
Reporting time pay
Shift differentials by the shift worked
Split shift premium
Split shift premium at the minimum wage (California)
The Philippines' premium pay
Weekend night premium
Weekend premium
Holidays
A holiday entered after its day is flagged
A premium for hours worked on a holiday
Frontier workers
Holiday pay after a waiting period
Holiday pay for working the days around it
Holiday pay only when scheduled that day
Holidays on a weekend, observed on a weekday
Leave approved before a holiday was announced stays charged
Leave on a public holiday draws nothing
New Zealand's Holidays Act
Public holidays by location
Attendance
A limit each company sets in its app
Asking who an unlinked person is
Attendance points
Late arrival and early departure, with a grace period
No show
Too little rest between shifts
Leave
A front-loaded yearly grant of paid time off
A waiting period before leave is used
A yearly limit on what is earned
Bereavement leave by relationship
Comp time in place of overtime pay
Family and medical leave
Floating holidays
Holiday pay at average earnings
Jury duty make-up pay
Leave in whole increments
Leave requests checked before approval
Rolled-up holiday pay and vacation pay as a per cent of earnings
RTT days (France)
Sick leave with a cap and a yearly carryover limit
Sick leave, one hour for every 30 worked
Statutory Sick Pay waiting days
The balance below an amount once a year
The year's end, kind by kind
UK holiday entitlement from an April leave year
Vacation earned by years of service
Working time
A law that changes on a date
A lunch from an out and an in
A week worked in several countries
Days present in each country
Forfait jours (France)
Germany's working hours
Habitual work share
Hours limits for minors
The Netherlands' working hours
Two employments in two countries
Working time limits (EU Working Time Directive)
Working-time account
Pay
A productivity bonus over a target
A staffing agency's placements, pay and billing
An Australian modern award
Franchise pay rules, shared and locked
Full-time status for health coverage (look-back and monthly)
Minimum wage by location
Overtime equalization counts
Pay rising with hours worked (apprenticeship rungs, union steps)
Piece rate by job
Posted workers
Prevailing wage on public works
Tips as money, and the tip credit
UK National Minimum Wage over the pay reference period
When two rates tie, the higher one wins
Work with no assignment goes to the primary one
Periods and approvals
Closing pay periods on their own
Late changes to a closed period, within limits
What blocks approval, and who approves
Exports
Certified payroll for a covered project
Payroll exports with earning codes
Spain's daily record of working time
Write a policy step
Policy step reference
Scenarios
Scenario catalogue
Tenants
Punch deliveries
From a clock to a timecard
Running it
Storage
Shared platform
Overview
Sinks and webhooks
External ids
Packages and Lua
Selectors
Settings and policies
Environments, vars and secrets
Promoting the setup
Deploy and operate
Deploying
Sizing and scaling
Docker Compose
Kubernetes
Operations
Security
API and reference
Reference
Admin API
Endpoints
Overview
probes
Overview
Check health
GET
Check readiness
GET
Check liveness
GET
Get the metrics
GET
tenants
Overview
List tenants
GET
Add a tenant
POST
Get a tenant
GET
Delete a tenant
DELETE
Change a tenant
PATCH
Resume a tenant
POST
Stop a tenant
POST
Suspend a tenant
POST
setup
Overview
Read the audit trail
GET
Export the install's setup
GET
Get the log level
GET
Change the log level
PATCH
Get the API description
GET
Get the settings
GET
Change the settings
PATCH
List sinks
GET
Add a sink
POST
List sink deliveries
GET
Get a sink
GET
Remove a sink
DELETE
Change a sink
PATCH
Move a sink
POST
List endpoints
GET
Add an endpoint
POST
Get an endpoint
GET
Remove an endpoint
DELETE
Change an endpoint
PATCH
Start an endpoint
POST
Stop an endpoint
POST
Export the tenant's setup
GET
List listeners
GET
Add a listener
POST
Get a listener
GET
Remove a listener
DELETE
Change a listener
PATCH
Start a listener
POST
Stop a listener
POST
List secrets
GET
Set a secret
PUT
Delete a secret
DELETE
List sinks
GET
Add a sink
POST
List sink deliveries
GET
Get a sink
GET
Remove a sink
DELETE
Change a sink
PATCH
Move a sink
POST
List vars
GET
Set a var
PUT
Delete a var
DELETE
List API tokens
GET
Create an API token
POST
Revoke an API token
DELETE
packages
Overview
List package lines
GET
Push a package bundle
POST
List the shared packages
GET
Push a shared package
POST
Get a shared package
GET
Publish a revision of a shared package
POST
Download a revision's bundle of a shared package
GET
Get a package
GET
Activate a revision
POST
Download a revision's bundle
GET
List the tenant's packages
GET
Push a policy package bundle
POST
List the shared packages the tenant adopted
GET
Adopt a shared package
PUT
Drop a shared package
DELETE
Get one of the tenant's packages
GET
Activate a revision of the tenant's package
POST
Download a revision's bundle of the tenant's package
GET
devices
Overview
List the standard actions
GET
List devices
GET
Register a device
POST
Get a device
GET
Forget a device
DELETE
Change a device
PATCH
List a device's actions
GET
Queue an action
POST
Get an action
GET
Cancel an action
DELETE
Get a device's catalog
GET
List a device's commands
GET
Release a held device
POST
List failed device messages
GET
events
Overview
List events
GET
Post events
POST
sync
Overview
List sync groups
GET
Add a sync group
POST
Get a sync group
GET
Remove a sync group
DELETE
Change a sync group
PATCH
Get an access row
GET
Add or change an access row
PUT
Delete an access row
DELETE
Write many rows at once
POST
Read the change feed
GET
Get a list item
GET
Add or change a list item
PUT
Delete a list item
DELETE
List a group's members
GET
Forget a member that left
DELETE
Resume a paused member
POST
Send a member everything again
POST
Send a member's failed rows again
POST
List a member's rows
GET
List people
GET
Get a person
GET
Add or change a person
PUT
Delete a person
DELETE
Get a person's biometrics flag
GET
Allow or refuse a person biometrics
PUT
Change a person's user id
POST
Remove a person's credentials
DELETE
Remove a person's credentials of one kind
DELETE
Add or replace a credential
PUT
Remove a credential
DELETE
Retry a user id change
POST
Show where a person's punches can go
GET
Get a person's recent punches
GET
Get a settings class
GET
Set values for a settings class
PUT
List the group's unrouted punches
GET
Route the group's unrouted punches again
POST
Route an unrouted punch
POST
jobs
Overview
List jobs
GET
Create a job
POST
Get a job
GET
Advance a job
POST
Cancel a job
POST
Pause a job
POST
Resume a job
POST
Retry failed devices
POST
attendance
Overview
List the shared packages
GET
Push a shared package
POST
Get a shared package
GET
Publish a revision of a shared package
POST
Download a revision of a shared package
GET
List sinks
GET
Add a sink
POST
List sink deliveries
GET
Get a sink
GET
Remove a sink
DELETE
Change a sink
PATCH
Move a sink
POST
List the tenants
GET
Create a tenant
POST
Read a tenant
GET
Delete a tenant
DELETE
Change a tenant
PATCH
List the clocks
GET
Make or change clock records
PUT
Make a clock record
POST
Read a clock record
GET
Delete a clock record
DELETE
Change a clock record
PATCH
Preview a re-stamp
GET
Re-stamp a clock's punches
POST
Preview a shift of a clock's punches
GET
Shift a clock's punches
POST
Read people's days
GET
Deliver punches
POST
List a tenant's delivery keys
GET
Issue a delivery key
POST
Revoke a delivery key
DELETE
List the employers
GET
Make an employer
POST
Read an employer
GET
Change an employer
PATCH
List a tenant's events
GET
Post events into a tenant
POST
List exceptions to follow up
GET
Write a tenant out
GET
List exports
GET
Export a pay period
POST
Read an export
GET
List the hierarchies
GET
Make a hierarchy
POST
Rename a hierarchy
PATCH
List a hierarchy's organizations
GET
Make an organization
POST
Read an organization
GET
Change an organization
PATCH
Move an organization
POST
Load a tenant's document
POST
List who is in now
GET
List the policy layers
GET
Add a policy layer
POST
List the work locations
GET
Make a work location
POST
Read a work location
GET
Change a work location
PATCH
List the tenant's own packages
GET
Push one of the tenant's packages
POST
List the packages the tenant adopted
GET
Adopt a package
PUT
Drop a package
DELETE
Get one of the tenant's packages
GET
Activate a revision of the tenant's package
POST
Download a revision of the tenant's package
GET
List a person's pay periods
GET
List who waits to be worked out
GET
List the people
GET
Read a person's employment
GET
Read a person's days
GET
Note an exception
POST
List a person's facts
GET
Record facts
POST
List a person's leave
GET
Ask for leave
POST
Take leave back
DELETE
Decide on leave
POST
Read a ledger
GET
Read a person's record
GET
Make or change a person's record
PUT
Work people out again, keeping nothing
POST
Resume a tenant
POST
Read the setup
GET
Set a setup item
PUT
Remove a setup item
DELETE
Estimate what shifts would cost
POST
List sinks
GET
Add a sink
POST
List sink deliveries
GET
Get a sink
GET
Remove a sink
DELETE
Change a sink
PATCH
Move a sink
POST
Suspend a tenant
POST
List a pay period's timecards
GET
List the unlinked people
GET
Read an unlinked person
GET
Link an unlinked person
POST
List the punches that could not be read
GET
Forget a punch that could not be read
DELETE
Read a worker
GET
instance
Overview
Get the instance
GET
List the instances
GET
Run package scenarios
POST
Get this instance's sightings
POST
Stream this instance's events
GET
Capture this instance's wire
GET
List the requests in hand
GET
Watch the live stream
GET
List recent traffic
GET
Get a traffic entry
GET
Capture the wire, live
GET
Time and attendance API
Command line
Overview
hourd: the server
houradm: install and maintain
hourctl: setup and status
hourctl attend: Time and Attendance
hourctl: listeners, endpoints, sinks and routes
hourctl: packages
hourctl: devices
hourctl: actions and jobs
hourctl: sync groups
hourctl: watching
Events
Event schemas
Overview
envelope
access.changed
action.result
biometric.attestation
biometric.deleted
biometric
biometric.photo
biometric.refused
clock.restamped
clock.shifted
command.result
command.unanswered
device.back
device.blocked
device.clock_ahead
device.clock_behind
device.error
device.held
device.joined
device.log
device.moved
device.new
device.options
device.released
device.set_aside.expired
exception.raised
exception.resolved
id_card
inventory.extra_user
job.cancelled
job.completed
job.execution.cancelled
job.execution.failed
job.execution.started
job.execution.succeeded
job.execution.timed_out
job.paused
job.resumed
job.started
job.wave
leave.booked
leave.cancelled
leave.decided
leave.requested
list.changed
package.held
package.updated
period.adjusted
period.closed
person.changed
person.deleted
person.enrolled
person.linked
person.replaced
person.unlinked_seen
photo
policy.hook_failed
punch
punch.unrouted
recalculation.parked
setting.changed
sink.behind
sink.caught_up
sink.moved
sync.member
sync.paused
tenant.limit_reached
timecard.approved
unparsed
user.deleted
user.extended
user
user.photo
work_code
Appendix: business models
Overview
1. A single company
2. A multi-tenant service
3. A labor pool
4. A clock dealer
5. An embedded engine
6. A multinational
7. A franchise
8. A staffing agency
Try the live demo
Select theme
Dark
Light
Auto
Overview
sync
Section titled “sync”
Sync groups: their settings, members and the data they keep.
Operations
Section titled “Operations”
GET
/api/tenants/{tenant}/sync
POST
/api/tenants/{tenant}/sync
GET
/api/tenants/{tenant}/sync/{name}
DELETE
/api/tenants/{tenant}/sync/{name}
PATCH
/api/tenants/{tenant}/sync/{name}
GET
/api/tenants/{tenant}/sync/{name}/access/{kind}/{key}
PUT
/api/tenants/{tenant}/sync/{name}/access/{kind}/{key}
DELETE
/api/tenants/{tenant}/sync/{name}/access/{kind}/{key}
POST
/api/tenants/{tenant}/sync/{name}/batch
GET
/api/tenants/{tenant}/sync/{name}/changes
GET
/api/tenants/{tenant}/sync/{name}/lists/{kind}/{key}
PUT
/api/tenants/{tenant}/sync/{name}/lists/{kind}/{key}
DELETE
/api/tenants/{tenant}/sync/{name}/lists/{kind}/{key}
GET
/api/tenants/{tenant}/sync/{name}/members
DELETE
/api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}
POST
/api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}/resume
POST
/api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}/resync
POST
/api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}/retry
GET
/api/tenants/{tenant}/sync/{name}/members/{endpoint}/{device}/rows
GET
/api/tenants/{tenant}/sync/{name}/people
GET
/api/tenants/{tenant}/sync/{name}/people/{user_id}
PUT
/api/tenants/{tenant}/sync/{name}/people/{user_id}
DELETE
/api/tenants/{tenant}/sync/{name}/people/{user_id}
GET
/api/tenants/{tenant}/sync/{name}/people/{user_id}/biometrics
PUT
/api/tenants/{tenant}/sync/{name}/people/{user_id}/biometrics
POST
/api/tenants/{tenant}/sync/{name}/people/{user_id}/change-id
DELETE
/api/tenants/{tenant}/sync/{name}/people/{user_id}/credentials
DELETE
/api/tenants/{tenant}/sync/{name}/people/{user_id}/credentials/{kind}
PUT
/api/tenants/{tenant}/sync/{name}/people/{user_id}/credentials/{kind}/{slot}
DELETE
/api/tenants/{tenant}/sync/{name}/people/{user_id}/credentials/{kind}/{slot}
POST
/api/tenants/{tenant}/sync/{name}/people/{user_id}/retry-change-id
GET
/api/tenants/{tenant}/sync/{name}/people/{user_id}/routes
GET
/api/tenants/{tenant}/sync/{name}/punches/{user_id}
GET
/api/tenants/{tenant}/sync/{name}/settings/{class}
PUT
/api/tenants/{tenant}/sync/{name}/settings/{class}
GET
/api/tenants/{tenant}/sync/{name}/unrouted
POST
/api/tenants/{tenant}/sync/{name}/unrouted/route
POST
/api/tenants/{tenant}/sync/{name}/unrouted/{id}/route