Pure liveness ping. The register calls this on a regular schedule
(every 30–60 seconds). OpenFiskal derives the register’s operational
status from heartbeat recency and the reported status field.
The response carries server_time so the register can detect local
clock drift — accurate timestamps are a fiscal requirement in many
jurisdictions.
Register devices authenticate using X-Register-Api-Key rather than
a platform API key, suitable for resource-constrained hardware.
Platform API key sent as Authorization: Bearer ofk_platform_....
Platform integrators also pass OpenFiskal-Organization: org_xxx
to act on behalf of a merchant.
Heartbeat acknowledged
Minimal acknowledgment. The register uses server_time to detect
local clock drift — compare against the device's own clock and flag
significant deviations in the next heartbeat's metrics.
"heartbeat_response"Server timestamp when this heartbeat was received
Current server time. Compare against the register's local clock to detect drift. Drift beyond ~5 seconds is a fiscal risk in jurisdictions that require accurate event timestamps.