Process7 min read
Connecting biometric attendance devices to custom HR software: the three ways punches reach payroll
By Sannan MalikPublished
Short answerPunches reach payroll in one of three ways. The device pushes each punch to a server over HTTP or HTTPS, your software pulls logs from the device or the vendor's server, or someone exports a file or reads it from the vendor's own platform. Whichever route you pick, a raw punch is not a payroll day. The HR software still has to clean duplicates, pair punches to shifts, flag missed punches and keep the device's time zone straight.
Three routes from a fingerprint to a payslip
A fingerprint or face terminal records one thing: an employee ID and a timestamp, sometimes with a code for check-in or check-out. Payroll needs worked hours, late minutes and overtime per day. The integration is the road between the two, and there are three kinds of road.
| Route | How punches move | What it needs | Where it goes wrong |
|---|---|---|---|
| 1. Device pushes | The terminal sends punches to a server address set on the device | A server the devices can reach, with a fixed address and port | Devices that cannot reach the server queue punches or lose them, depending on the model |
| 2. Software pulls | Your software asks the device, or the vendor's server, for new logs | Network access to the device or vendor server, plus the vendor's SDK or API | A branch device behind another router is unreachable, so its punches arrive late |
| 3. File or vendor platform | Someone exports a file, or the vendor's attendance software holds the logs and your system reads from it | A person with a routine, or a second system to maintain | The export is skipped or imported twice, and nobody notices until payslips |
What the vendor documentation shows for each route
Push is how ZKTeco's newer terminals are set up. The ZKTeco ProRF user manual has a Cloud Server Setup screen that takes the IP address and port of the ADMS server, an HTTPS option, and a Communication Protocol setting that, in the manual's words, currently only supports PUSH Protocol. ZKTeco describes its ZKBio Time software as connecting to its standalone push communication devices.
The same manual carries a warning I would tell every buyer about. The device can be set as an access control terminal or an attendance terminal, and changing that type makes the device delete all its data and restart. Decide the type before anyone enrols a fingerprint.
Pull is how Suprema's BioStar 2 API works. Your software logs in to the BioStar 2 server, receives a bs-session-id, and searches events with POST /api/events/search, filtered by date range and device. The API documentation also has a CSV export of events, with a tna_key column for the time and attendance key. Note that this talks to the BioStar 2 server, not to each terminal.
Some vendors support more than one route on one device. ZKTeco's iClock680 page says it is compatible with USB flash disks, ADMS and the former SDK, with ADMS listed as an optional function. That is a question to ask about the exact model you are buying, not a feature to assume.
Then there is documentation you cannot read before you buy. Hikvision describes ISAPI as an application layer protocol based on HTTP, and its developer guide page says you must sign a Materials License Agreement to download the guides. I have not read those guides, so I make no claim here about how Hikvision devices deliver punches.
My preference, when the devices support it: push to a server you control, with the vendor's software kept out of the payroll path. One less system to patch, and punches land in your own database as the devices send them. Where a site has no reliable internet, I would pull on the local network and sync up, and treat USB export as the fallback, not the plan.
A worked example: five days of raw punches into a payroll week
Everything in this example is made up: the employee, the punches and the shift rules. The rules are the kind a company writes down for its own policy. Overtime and working hours also depend on your labour law and your contracts, which your HR adviser should confirm.
The made-up shift is 09:00 to 18:00 with a one-hour unpaid break, so eight paid hours. Lateness counts after a 10-minute grace period. Punches less than three minutes apart are treated as one. Overtime is a candidate only after 30 minutes past 18:00 and is paid only once a manager approves it. Where the employee punched out and in for a break, the actual break is used; otherwise one hour is deducted.
| Day | Raw punches | After cleaning | Result for payroll |
|---|---|---|---|
| 1 | 08:52, 18:05 | In 08:52, out 18:05 | Not late. 9h 13m on site minus 1h break = 8h 13m. 5 minutes past 18:00 is under the overtime threshold. Paid: 8h |
| 2 | 09:14, 09:15, 18:02 | 09:15 dropped as a duplicate. In 09:14, out 18:02 | Late 14 minutes (over the 10-minute grace). 8h 48m minus 1h = 7h 48m |
| 3 | 08:58 | In 08:58, no out | Exception: missed punch. No hours calculated until a manager enters the out time with a reason |
| 4 | 08:55, 13:01, 13:58, 19:10 | Two pairs: 08:55 to 13:01 and 13:58 to 19:10 | 4h 06m + 5h 12m = 9h 18m worked, break taken was 57 minutes. 70 minutes past 18:00: overtime candidate, waiting for approval |
| 5 | 08:59, 12:30 | In 08:59, out 12:30 | 3h 31m worked. An approved half-day leave covers the afternoon, so no exception |
The rules hidden in that table
Day 3 is the one that decides whether staff trust the system. Paying zero for that day is wrong, and quietly paying eight hours is also wrong. I would raise an exception, show it to the employee and the manager, and block that day from the payroll run until someone resolves it, with their name and the reason stored next to the corrected time.
Day 4 shows why I never let overtime flow straight from punches into pay. A punch says someone was in the building. It does not say the work was asked for.
Time zones are the quiet bug. Suprema's documentation notes that event times in BioStar 2 search responses are in UTC, so a device set to UTC+8 needs its local times converted before you query. For an office on UTC+4, a 08:52 punch is stored as 04:52 UTC. Get the conversion wrong and every employee is four hours late, or a night shift lands on the wrong date.
Night shifts need one more rule: a shift belongs to the date it started. A punch-out at 02:10 belongs to yesterday's 22:00 shift, not to today.
Keep the raw punches. Cleaning produces a second table, and the payroll run reads that one. When someone disputes a payslip, you can show the original timestamp from the device next to the rule that changed it.
Questions to ask before you buy the devices
Ask these of the device supplier, in writing, before the purchase order. A model that answers badly here costs more in integration than it saved on price.
- Which of the three routes does this exact model support: push to a server I choose, pull through an SDK or API, USB export?
- Is the push or SDK documentation available to my developer now, or only after signing an agreement?
- Can the device push to my own server, or only to the vendor's software?
- What happens to punches when the network is down: how many does the device hold, and does it send them later?
- Does the device record a check-in or check-out code, or only a timestamp?
- Is the device set as an attendance terminal or an access control terminal, and does changing that erase data?
- Does the device send its local time or UTC, and who sets its clock?
- Can employee enrolment (ID, name) be sent from the HR system, or is it typed on each device?
- How many devices, at how many sites, and does each site have reliable internet?
- Who supports the device after installation, and does a firmware update change the protocol?
Where attendance sits in an HR build
Attendance is one input to payroll. Leave, contracts and allowances are the others, and in the UAE the same records later feed the end-of-service calculation, which I cover in my post on gratuity in HR software. The cleaned attendance table is what both of them read.
I build HR and payroll systems as custom software, quoted at a fixed price after a written scope. Hardware integrations, including attendance devices, are quoted separately because the work depends on the model and the route. If you also want an employee app for leave requests and payslips, my packages start at $1,699 for Growth with its own Node.js backend and PostgreSQL database, or $2,500 for Scale with an admin dashboard. Send me the device model and the number of sites, and I can tell you which route I would use.
Questions
- Can we keep the vendor's attendance software and connect payroll to it?
- Yes, if it has an API or a reliable export. ZKTeco lists API integration for ZKBio Time, and Suprema documents an event search API for the BioStar 2 server. You then run two systems, so ask who maintains the vendor software and what happens when it is upgraded.
- Is USB export good enough for a small office?
- For one device and a monthly payroll it can work, if one named person does it on a fixed day and the import rejects punches it has already seen. I would still plan for push or pull, because a missed export shows up as a wrong payslip.
Sources
Platform rules and fees in this article were checked against these official pages on 16 November 2026. They change, so confirm before you rely on them.
Sannan Malik is a software architect and product builder with 8+ years in software, CEO of Alpha Notic FZE and a Certified Scrum Product Owner. He builds mobile apps and business software for companies in the UAE, the wider Gulf, the UK, the US, Canada and Australia.