Skip to main content

QR codes and barcodes

Members can unlock doors by showing a QR code or barcode in your app and scanning it at a Kisi Terminal Pro. Your app creates and displays the code, and Kisi checks it at the reader. Members never need the Kisi app.

This flow fits membership, CRM, and booking platforms that already show members a code, or want to.

info

QR codes and barcodes are scanned at a Kisi Terminal Pro with the scanner module. QR codes must use QR Code Model 2, and barcodes must use Code 39 or Code 128. For the product overview, see Third-party optical credentials.

Choose a code type​

Your app can show a fixed code or a rotating code. Choose a rotating code when a screenshot or a shared code must stop working after a short time.

Fixed codeRotating code
What the code containsThe credential's UID, unchangedThe UID and the current time, e.g. MEMBER42:1791361800
Card typesthird_party_qr_code or third_party_barcodethird_party_qr_code_rotating_timestamp or third_party_barcode_rotating_timestamp
A screenshot or copied codeKeeps workingStops working once the validity window has passed
What your app doesShows the same code every timeBuilds a new code at least once per validity window

How it works​

  1. Create a Kisi user for each member. We suggest managed users, so members don't receive emails from Kisi. See Add or remove users
  2. Create a QR code or barcode credential and assign it to the user. See Provision optical credentials
  3. Add the user to a group with access to the doors. See Assign access rights
  4. Display the code in your app. For a fixed code, display the UID. For a rotating code, display the UID and the current time, as described below

When a member's membership ends, remove their access the same way as for any Kisi user. See Remove access rights.

Display a rotating code​

A rotating code is the credential's UID, a colon, and the current Unix time in seconds:

<uid>:<unix seconds>

For example, MEMBER42:1791361800. The timestamp must be exactly 10 digits: seconds, not milliseconds.

When the code is scanned, Kisi accepts it if its timestamp is no older than the credential's validity window and no more than 30 seconds in the future. Kisi also allows 30 seconds of clock difference on the old side. You set the validity window when you create the credential: PT5S, PT10S, PT30S, PT1M, PT5M, PT1H or P1D. The default is PT5M (five minutes).

To show a rotating code in your app:

  1. Build the code from the UID and the current time when you display it. The timestamp doesn't need to be rounded
  2. Build a new code and redraw it at least once per validity window, while the code is on screen
  3. Use network time on the device. A clock that runs behind shortens how long each code works, and a clock that runs ahead by more than 30 seconds makes codes fail
warning

The timestamp stops an old code, such as a screenshot, from being reused, but it is not a cryptographic signature. Anyone who knows a credential's UID can build a valid code, so keep UIDs private and don't display them on their own.

Use a marketplace integration​

Some marketplace integrations sync members' codes to Kisi automatically, for example ABC Ignite and ClubOS. If your platform shows codes in another rotating format, contact our support team to ask whether Kisi can read it.