Contract 4d1e0ad · updated 2026-11-11
Lissen Ticketing
GuidesCheck-in

Check-in & door passes

Scan admissions live, keep the door moving offline, and reconcile the result later.

The door pass is a bearer credential for a scanner. It is scoped to one organizer and one or more events, expires automatically, and can be revoked. Creation returns the token from POST /v1/door_passes; show it as text or a QR code and store it only on the scanner.

Create one with an organizer API key (the organizer header is required for keyed callers):

POST /v1/door_passes
Ticketing-Organizer: org_…
Content-Type: application/json

{"name":"Front door","event_ids":["evt_…"],"expires_at":null}

All event ids must belong to the organizer. With no expiry, the pass expires six hours after the latest event end (or 30 hours after an event with no end). POST /v1/door_passes/{id}/revoke stops a pass on its next request. The first authenticated request by a pass sets its enrollment time and emits the enrollment activity; there is no separate enrollment call.

For a door opening that your client may retry, send an Idempotency-Key on POST /v1/door_passes. Matching retries return the same pass and token; a changed request or another caller with that key conflicts. Retries can replay for one hour. Without a key, each call creates an independent pass. The engine stores the authenticator hash and seals the replay body using its existing encryption key, pruning expired encrypted responses on later keyed writes.

Live scans

Send the pass as Authorization: Bearer dp_test_… or dp_live_…:

POST /v1/checkins
Content-Type: application/json

{"client_scan_id":"device-42-0001","code":"ADMISSION-CODE","scanned_at":"2026-09-04T18:30:00Z","manual":false}

An admitted response is a checkin object with the event, position, buyer name, order id, client scan id, client timestamp, receipt timestamp, and outcome: "admitted". client_scan_id is idempotent per pass: retrying the same scan returns the original result. Rejected scans are recorded as well. Check-in endpoints reject Idempotency-Key with a 400 because client_scan_id is the check-in replay key.

The stable rejection codes are already_checked_in, position_revoked, admission_disabled, code_not_found, and wrong_event. Each response includes a detail object: the duplicate includes the prior check-in and door, a revoked admission includes its revocation time and reason, and a wrong-event response names the position's event. checkin_not_admitted applies when a void request targets anything other than an admitted check-in. A revoked or expired pass is an authentication failure; a pass presented to an event it does not cover is wrong_event.

The duplicate detail is stable across retries and contains prior_checkin_id, scanned_at, door_pass_id, and door_pass_name. code_not_found has an empty detail object; position_revoked has revoked_at and revocation_reason; admission_disabled has event_id and admission_disabled_at; wrong_event has event_id. The organizer's keyed API can use GET /v1/checkins (with event, outcome, door pass, and position filters) and GET /v1/checkins/{id} for post-show reporting. Door passes cannot read that reporting surface.

When the event is cancelled

An event whose cancellation policy disables admission admits nobody from the moment it was cancelled: a live scan of any of its tickets is rejected with admission_disabled, and its manifest comes back empty. The tickets are not revoked and no money moves; refunding is a separate switch of the policy. A scanner learns of the cancellation on its next live scan or manifest refresh. One that is offline keeps its last manifest and cannot be told, so its scans are judged by when they were taken when they sync: a scan taken before the cancellation is still recorded as admitted, and one taken after it is recorded as rejected and reported in the sync response as revoked_since_manifest.

Who the scan admits

A scan proves that a live admission code was presented, not who presented it. The code belongs to the position, and a transfer keeps it: when a ticket moves to another holder, its QR does not change, so a copy the buyer kept or forwarded still scans, once. The manifest and the check-in's position.buyer_name name the order's buyer, not the current holder; the customer the admission credits is credited_customer_id (see Attendance). Once a position is admitted, ordinary transfers of it stop; an organizer can still correct its holder, and that correction leaves the check-in and its attendance credit untouched.

Attendance

An admitted check-in credits one customer with attendance: the holder of the position when the scan happened. It is recorded on the check-in as credited_customer_id and is evidence, not a live join: moving the ticket or correcting its holder afterwards does not change who the admission credited.

  • A live scan credits the holder at the moment of the scan.
  • An offline scan credits the holder at its own scanned_at, read from the position's holder history, not the holder when the scanner synced. The engine cannot know about a transfer it has not been told of, so a scan is only credited from what the history says. When an earlier scan takes over an admission, the credit follows the earlier scan.
  • Rejected, superseded and voided scans credit nobody going forward; a superseded or voided check-in keeps the credit it had as evidence but supports nothing.
  • Alex buys two tickets and passes one to Sam before the door: Alex's admitted ticket credits Alex, Sam's credits Sam. If Alex scans Sam's retained QR, Sam is still credited as the assigned holder. The scan does not prove who stood at the door; correct the credit if you know better.
  • An email-only recipient is a customer like any other and is credited without accepting anything. When a verified recipient later claims what was sent to their address, an admission credited to the anonymous customer moves to them (a claim credit change).

A visit is one customer's attendance at one event, derived from the event's admitted, non-voided check-ins that credit the customer. It counts once however many tickets or scans support it: voiding one of two admissions keeps it, voiding the last removes it. Buying a ticket is not attendance, and neither is the reverse: attendance is a fact of admission. Refunding and revoking a ticket after it was admitted, or losing a dispute over it, does not remove the visit; only the causes listed below do.

GET /v1/attendances reads visits: customer_id for the events a customer attended, event_id for the customers credited with an event, or both. Each visit has customer_id, event_id, first_admitted_at and the supporting checkin_ids. Page by passing the last visit's event_id (listing a customer's events) or customer_id (listing an event's attendees) as starting_after. GET /v1/checkins also filters by credited_customer_id. The feed publishes each change as attendance.recorded or attendance.removed (with the cause: admitted, voided, superseded, credit_corrected or holder_claimed), so a consumer such as a membership evaluation can react to the change instead of polling.

To change who an admission credits, an organizer (API key, owner or Lissen staff) calls POST /v1/checkins/{id}/credit_correction with a customer (id, external_ref or email) and a reason, and an Idempotency-Key. Only the credit moves: the scan, door and outcome are unchanged. The previous and new customer, the actor and the reason are kept in an append-only history and published as checkin.credit_changed, followed by attendance.removed and attendance.recorded for the visits that moved. Only an admitted check-in can be corrected (checkin_not_admitted), and crediting the customer it already credits is credit_unchanged. Attendance for scans admitted before this feature was backfilled from the holder history at the scan's time.

Manifest mode

GET /v1/events/{event_id}/manifest returns the live positions for an event. Each entry contains a lower-case SHA-256 code_hash, position_id, description, checked_in_at, buyer_name, masked email, and order_id. The manifest is a snapshot: it is allowed to age so the door still works when the network disappears. Respect refresh_after and refresh when connected.

At enrollment, download it before opening the door. When connected, re-poll after the refresh_after hint and show the manifest age to the operator once that hint has passed. Staleness is a warning, not a hard refusal: the pass's expiry and revocation remain the hard device bounds.

The response includes an ETag, calculated from the canonical content {event_id, entries} (not its timestamps). Send If-None-Match on the next request; 304 means the cached manifest is still current. A manifest download appears in the activity feed without exposing its entries.

Offline sync

Queue scans locally and send at most 500 in their original order:

{"scans":[{"client_scan_id":"device-42-0001","code_hash":"…","scanned_at":"2026-09-04T18:30:00Z","manual":true}]}

The request is validated as a whole before processing. A malformed scan makes the whole request return 400 with no result array; valid scans before it are not recorded. Once the request shape is valid, the server processes each scan independently and returns one result for each. Possible outcomes are recorded, already_recorded, superseded, revoked_since_manifest, unknown_code, and wrong_event, with a checkin_id when the server recorded a row. When two offline devices saw the same position, the earliest scanned_at wins. A later scan is superseded; if an older scan arrives later it becomes the admission and supersedes the previous winner. A hash-only scan must be marked manual so an operator has confirmed the manifest entry.

Voids and the door guarantee

POST /v1/checkins/{checkin_id}/void corrects an admitted record. It does not model exit or re-entry. Once voided, the position may be scanned again. The door always works: use live lookup when connected, use the manifest without a signal, then sync the recorded scans when connectivity returns.

For the complete request and response shapes, use the generated client and the published OpenAPI document. Keep the token private: it is a credential, not a ticket identifier.

On this page