ulamna pass

UlamnaPass Technical details

Points worth money, well kept.

What the server guarantees you, in plain words, then the life of a scan. The routes and the infrastructure are at the very bottom, for technical teams: none of it is needed to use UlamnaPass.

Get a quote

What you get

The real risk: the double scan and abuse at the till.

The customer isn't the problem. So everything is checked by the server, never by the card or the app.

A history nobody can rewrite

Every stamp, point or reward is a line written once. The balance follows from it; a correction is added, nothing is erased.

A double tap never counts twice

Even on a shaky 4G line, a repeated scan is recognised as the same one: the card is credited once.

Limits against misuse

A maximum of points per scan, and 15 minutes between two stamps on the same card (adjustable). Only the owner can override them.

A new card starts at 0

A card is only made by a real tap, with a limit per connection. The welcome bonus waits for the first scan at the till.

Copying a card: what is slowed, and what is not

Google Wallet: the QR changes every few seconds, so a screenshot soon stops working. Apple Wallet: sharing the card is blocked, but its QR stays the same, so a screenshot can still be scanned. Either way, the delay between two stamps and the once-only reward limit what a copy can earn.

Nothing personal on the card

No name, phone or e-mail. The detail is written once, in the privacy notice.

The life of a scan

The server owns the balance.

Cards and apps show it; they never compute it.

  1. 1

    The customer scans the counter QR

    A fixed QR, printed once. An optional NFC stand opens the same page.

  2. 2

    The card goes into their Wallet

    Apple Wallet, Google Wallet, or the web card without a Wallet. It is born at 0.

  3. 3

    Your till scans the card

    With the UlamnaPass app, on iPhone or Android. The server checks who is scanning, the limit and the delay.

  4. 4

    The balance changes, even on a locked screen

    The server writes the line, then tells the phone in the background: the till never waits for an outside service.

For developers

The routes, and everything goes through pass.ulamna.com.

The customer page, the Wallet cards and the apps' API live under one domain, served by one Rust server (Axum) and a backed-up SQLite database. Calls to Apple and Google go out in the background: the till never waits on an outside service. Keys stay on the server, never in the apps.

  1. Counter QRGET /c/{shop}
  2. Apple Wallet or Google WalletPOST /c/{shop}/join
  3. Native till appPOST /api/v1/shops/{shop}/cards/{card_id}/events
  4. Append-only ledgerBEGIN IMMEDIATE · INSERT ledger
  5. Lock screen up to dateAPNs · PATCH loyaltyObject
GET/c/{shop}
Customer page: the shop's colours, iPhone / Android detection, one button.
POST/c/{shop}/join
Makes the card at 0 on a real tap. A cookie avoids duplicates.
GET/c/{shop}/card/{token}
Fallback web card: live balance and QR.
GET/c/{shop}/pass/{card_id}.pkpass
Signed Apple Wallet pass, always at the latest balance.
POST/api/v1/shops/{shop}/cards/{card_id}/events
A scan at the till: stamp, points or reward, with an idempotency key.
API/api/v1/apple/v1/*
PassKit web service (five routes under this prefix): iPhone registrations and updates.