<aside> 🔁 Synced from GitHub #c7ab8c94dab1. Edit in the paidhr-system-docs repository, not here: changes made in Notion are overwritten.
</aside>
Status: Built End-to-end proven on hardware in October 2026; PRs pending.
💡 In plain words
Terminals are wall-mounted devices for clocking in.
Instead of using their phones, staff can clock in by face, fingerprint or card at a device on site. The device asks PaidHR, which applies exactly the same rules as the phone app, and shows the answer on screen, such as "Clocked in 08:02" or why it wasn't recorded.
A modern clocking-in machine at the entrance, connected to the same rota as the phone app.
Who's involved: employees (scan), site admins (enrol people on the device), and time & attendance (decides if it counts).
Some workplaces want staff to clock in at a wall-mounted terminal rather than on their phones. PaidHR's terminal is an Android kiosk app (paidhr-terminal-app) running on HFSecurity RA08 devices. It recognises people by face, fingerprint or card, sends each scan to ewa-service, and shows PaidHR's answer on screen ("Clocked in 08:02, Morning shift" or "Not recorded: your shift starts at 08:00"). The scan goes through the same clock-in rules as the mobile app, so a terminal is just another way to create a timesheet.
| Term | Meaning |
|---|---|
| Terminal device | One registered terminal, in ewa-service's central MongoDB (TerminalDevice), with a hashed pairing code and device token |
| Pairing | An admin adds a terminal on the workplace's Terminals tab and gets a pairing code to type into the device |
| People sync | The terminal downloads the people it should recognise, with today's shift, then polls GET /v1/terminals/changes every 5 seconds |
| Credentials | Face (from the PaidHR profile photo), fingerprints (EmployeeFingerprints, ISO templates) and cards (EmployeeCards) |
| Scan | One recognised event, saved on the device first, sent once, recorded in TerminalScans with a client scan id so it is never counted twice |
| Actions | Auto, In, Out. There is no break tracking |
sequenceDiagram
participant T as Terminal
participant E as ewa-service /v1/terminals
participant TT as time-tracking service
T->>T: recognise face / finger / card<br/>(IR liveness check for faces)
T->>T: save scan locally
T->>E: send scan (one at a time)
E->>E: claim clientScanId (no duplicates)
E->>E: plan has linkHardwareDevice? else refuse
E->>TT: shiftClockIn / shiftClockOut with method "hardware-device"<br/>and the scan's own time
TT-->>E: timesheet created or closed (geofence status "device")
E-->>T: decision shown on screen
E-->>Employee: push/email if the scan was not recorded
On the workplace view: the Terminals tab (add, pairing code, list, remove), terminal settings, bulk enrolment (download a pre-filled employees.csv, add photos and fingerprints, upload), a Clock-in terminals section on each employee's page (fingerprints, cards, refused-photo warning), and "Face · Main gate" labels on timesheets.
Time & attendance (same rules, same timesheets) · Notifications (refusal notices via the signed channel) · People (profile photos become face templates)
"The terminal says ‘Not recorded’." The screen says why, for example your shift hasn't started. Same rules as the phone.