qr-tracking

Track Scan

Record a QR code scan - upserts qr_code_analytics.

No authentication required. Called from /start and /joinclinic landing pages. Auto-creates the analytics row on first scan.

Two-step: ensure row exists (idempotent upsert), then increment scans_count. The read-then-write increment can lose a count under heavy concurrency on the same QR code, but that's acceptable for analytics - no business logic depends on exact counts.

post/qr-tracking/scan

Request

  • Base URL
    https://api.projectindi.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

qr_codestring required

Response

Successful Response

qr_codestring required
scans_countinteger required

Changes

No recorded changes to this operation across all 2 revisions of this API.