Session tickets, admission checks and retail pickup
Session tickets connect Commerce inventory to agenda enrollment. Retail pickup connects a purchased unit's credential to its collection record. This guide follows platform commit 7d7becc8f4317fe5949ff9f8b5ed97535c318b79 (PR #4490); confirm deployment and resolve the acceptance gaps below before a live event.
Complete payment/project settings, catalog configuration and the intended shop or ticketed registration flow. Review Agenda and Enrollment (repository reference: ../../../developer-tools/getting-started/agenda-and-enrollment.md) and the Access Point Scan API (repository reference: ../../../developer-tools/getting-started/access-point-scan-api.md). A paid order, confirmed seat, credential, admitted scan and physical item handoff are different outcomes. A booking line stores an item’s purchased quantity/price; its inventory bucket tracks allocated capacity. Active quantity here means units not refunded. Passive scans are background observations, separate from the active reader scan flow.
Configure session ticketing
Open the agenda item detail and find Ticketing alongside its enrollment controls. Choose Sell tickets for this session, or Edit for current ticketing.
- Enter Price in the displayed project currency. The card converts display units to minor units; for USD,
19.99becomes1999. Blank/zero price submits zero, so enter the intended price deliberately. - Set Seats, or leave it blank for unlimited inventory. A supplied capacity must be an integer from 1 through 1,000,000; unlike the general catalog capacity rule, this request rejects zero.
- Optionally set Sales open and Sales close. Inputs use browser-local time and are submitted as ISO timestamps; closing must follow opening. Verify the intended timezone and attendee availability.
- Choose Start selling tickets or Save. Inspect validation errors, reopen the same agenda item and verify stored configuration and the actual catalog item.
The controller requires both agenda-item update authority (manage_agenda_items mapping) and BookingService create authority (manage_commerce). The card's presence does not prove either action is permitted. Test allowed/denied users and project membership in the deployed dashboard.
Saving creates/updates a session_ticket catalog item linked to the agenda item, enables enrollment and sets its enrollment type to ticketed. The ticket inventory pool is the capacity authority; agenda max_capacity mirrors its capacity for display. Fixed limits are one per order and one per attendee; buying seats for other people is not this flow. Saving does not reconcile existing purchases/holds or reset allocated stock.
The On sale badge means the card's ticketing configuration is enabled; it does not independently verify sales-window, stock or provider readiness. Likewise, its payment warning checks whether a project setting has a payment-account ID, not current charge capability. Verify the explicit account and actual checkout separately.
The card configures price, capacity and sales dates. It does not select a credential-type grant. Proof issuance requires the item's grants.attendee_credential_type_id; without it, this fulfillment service can issue no per-unit QR credential. After saving Ticketing, open Commerce → Tickets & products, locate the matching item under Session tickets, and open its editor. Under What buying it does → Issue credential, choose this project’s intended credential type and Save. Reopen and verify the same item ID and grant before testing a new purchase. See catalog grants. Editing this configuration does not retroactively issue credentials for previously fulfilled orders. Confirm actual credentials before promising a My Tickets QR. A purchase enrollment and a credential are not interchangeable.
Offer tickets and verify fulfillment
The attendee shop includes session-ticket service items. Registration includes session tickets only when explicitly selected in its ticket selector; All admission tickets does not include them. Use the returned item ID and ordinary Commerce checkout; do not call enrollment with a fabricated source: purchase to bypass buying.
On fulfillment, the bridge requests a confirmed purchase enrollment with booking_line_id metadata and the line's oldest credential ID when present. The existing-enrollment early return described below can prevent that requested linkage. Capacity, enrollment-window and conflict checks are bypassed here because the ticket workflow is intended to have reserved inventory; this is not proof that legacy seats or concurrent capacity transitions were reconciled. Session time conflicts therefore need explicit acceptance; this does not preserve a general conflict-blocking guarantee for purchased seats.
For ticketed sessions, the shared enrollment guard refuses a new confirmation from non-purchase sources. Attendee enrollment can return 409 ticket_required and session_ticket_item_ids; clients should offer the supported purchase path. Waitlist promotion and ordinary admin confirmation also encounter the guard. Bulk preview marks ticketed sessions and offers zero new enrollments; verify the actual queued run's result separately. This is not a way to allocate tickets through a normal bulk enrollment job.
Existing-enrollment gap: the shared enroll method returns an existing non-cancelled enrollment before the ticket guard or new purchase metadata is applied. A prior self/admin/waitlisted enrollment can therefore remain unchanged even when purchase fulfillment calls the service. An isolated actual-method check reproduces this early return. Converting a session to ticketed does not automatically migrate existing seats or charge them. Have the owner reconcile old enrollments, source/status/line linkage and inventory before opening sales; a fulfilled order alone does not establish a valid purchase enrollment in this case.
If speaker auto-enrollment is enabled for a speaker-add event and enrollment is enabled, the queued speaker listener uses a complimentary ticket order for a ticketed session. It skips creating one when a non-cancelled enrollment already exists, and cannot seat a speaker when no ticket item exists. Verify the resulting order and seat; adding a speaker or queuing its listener is not completion evidence.
Refund, move and stop selling
Confirmed line refunds release inventory and void selected credentials. When no active ticket quantity remains, the bridge cancels the non-cancelled purchase enrollment linked by booking-line metadata. Money-only external refunds lack that mapping; unrelated/legacy enrollment sources may not be canceled by this branch. Verify the seat and scanner outcome, not just refunded money.
Canceling an enrollment directly is not a Commerce refund or inventory release in the selected cancellation method. Do not substitute it for a paid ticket refund or assume it safely revokes a comp ticket's entire lifecycle. For complimentary issuance, use Issue complimentary tickets or products. Free/comp entitlement removal has no verified general workflow in this reviewed UI; the owner must establish and test one before relying on it.
For an organizer move of a purchase-source enrollment, the enrollment service delegates to the ticket bridge. The target must be ticketed and have an active ticket item. The bridge moves the line's inventory to the target bucket, changes its item ID, updates credential labels, cancels the old enrollment and requests a new purchase enrollment. Prices are not recharged/refunded by this move; the original amount remains. Capacity can refuse the move, and existing target enrollments need particular care because of the early-return behavior above. Confirm both sessions, allocations, credential labels, line attribution and payment expectations in an approved test before using it operationally.
Choose Turn off ticketing, then confirm Turn off, to archive the current active ticket item and change enrollment type to open. This is not an enrollment-disabled state and does not delete/refund previous purchases or remove existing holders' seats. Re-enabling can create a new ticket item because archived items are excluded from active lookup; old allocations/orders/enrollments do not become a verified migrated stock pool automatically. Plan transitions with the owner rather than toggling as a reset.
The enrollment overview's ticket figures are confirmed line quantities minus refunds, bucket remaining stock and line-price revenue. They are not the ledger-based Sales report, bank payout or exact attendance count. An uncapped bucket makes available tickets null/unlimited; inspect actual audience and capacity before using it as a room limit.
Configure and test the session-ticket rule
The access-point rule engine registers the condition source session_ticket, field holds_ticket, with is_true / is_false. This is a condition shape, not a complete admission rule or a command to send to a live access point:
{"source": "session_ticket", "field": "holds_ticket", "operator": "is_true"}
Without a numeric value, the evaluator uses the scan context's agenda item ID. A numeric value overrides that context to check a specific session. Ensure the intended session is supplied; this evaluator does not automatically resolve a session from a room schedule when its context ID is absent. Configure the whole rule/status/action through the supported access-point editor/API and verify its actual evaluation result; adding a condition does not itself create a door response.
The positive check requires an attendee, a session and an enrollment for that attendee/session with source=purchase and status=confirmed. It evaluates the attendee's seat, not whether the presented credential is the exact ticket-line credential. A different recognized credential belonging to that attendee can satisfy this particular condition. Legacy/admin-only, pending or cancelled enrollments do not satisfy it.
is_false inverts the result and matches when attendee or session context is missing. Do not use that negative condition as proof of a known ticket holder. Unknown fields/operators fail the evaluator check. Rule priority, parent/child logic, fallback status and other conditions still affect the final scan result. Verify a holder, nonholder, missing/wrong session, refunded holder, different-project identity and replay under the full ruleset. Online evaluator source review does not establish offline bundle/device parity.
Retail pickup and its current boundary
Pickup-scope gap: this method does not check counts_as_admitted, the scan's rule outcome, access point or a designated pickup booth. The active scan path dispatches the credential event for recognized scans after evaluation, including unmatched/non-admitted results. An isolated actual-method case with a denied active scan at an arbitrary access point still records pickup. Do not deploy this as a verified booth-only/approved-scan collection workflow until the platform owner verifies it against the event’s requirements. Acceptance of unrestricted recognized-scan pickup is appropriate only if that is the intended behavior; a booth-only/admitted-scan requirement needs a platform repair and passing tests. These checks did not submit a real scan.
A retail item needs a credential-type grant to issue a credential for each purchased unit. Treat returned QR values as credentials. At the intended collection point, staff should scan the appropriate unit credential and verify the order/remaining units before handing over goods; a badge display or generic admitted status is not proof of physical collection.
The registered scan-created listener calls PickupService. Its selected method ignores missing credential IDs and passive scans, locks the credential/line, and requires a confirmed retail line that has not already marked that credential picked_up_at. It writes the pickup timestamp/scan ID and recomputes the line's picked-up quantity from its active credentials. A repeated call for that marked unit returns false; this is local idempotence, not proof of end-to-end exactly-once delivery.
Physical handoff, picked-up metadata, refund revocation and offline replay must be reconciled separately. A receipt, ticket list or pending scan event does not establish the product was collected. Detailed device/outbox/recovery operations remain private.
Troubleshooting and launch acceptance
| Symptom | Check / next step |
|---|---|
| Ticketing save denied | Agenda update plus Commerce create permissions, selected team/project and actual response |
| On sale badge but checkout unavailable | Window, stock, explicit payment account/charge readiness, item currency and buyer eligibility |
| Order fulfilled but ticket rule fails | Confirmed purchase-source enrollment, correct session/attendee and line metadata; inspect pre-existing enrollment gap |
| No ticket QR | Item credential-type grant and actual issuance; the Ticketing card does not configure it |
| Waitlist/admin/bulk enrollment refused | Ticketed guard; use supported purchase/comp flow rather than a source override |
| Refund does not release seat | Specific succeeded line refund, active quantity and purchase enrollment linkage; money-only/legacy cases need reconciliation |
| Move/toggle produces unexpected stock | Target item, existing enrollments, old allocations/orders and unchanged price snapshot; stop retries for owner review |
| Pickup changes after an unexpected scan | Current pickup-scope gap; preserve sanitized scan/line IDs and time, avoid more scans as diagnostics |
Have the commerce/event owner coordinate representative organizers, attendees and provisioned readers in an approved test environment. Verify new and pre-existing enrollments, capacity/hold/payment races, comp speaker fulfillment, registration/shop sales, refund/move/toggle transitions, credential grants, positive/negative rule evaluation, wrong-session denial and actual pickup scope/replay. Source and selected-method/UI checks do not establish these durable or hardware outcomes. No ticket, enrollment, credential, scan, payment or physical handoff was created by this review.
The designated event/commerce owner should record named reviewers and evidence for these launch decisions:
| Required outcome | Evidence to retain |
|---|---|
| Purchase-linked seats, including existing enrollment cases | Order/item/line and enrollment IDs, source/status/linkage, old/new stock totals |
| QR issuance and revocation | Configured grant, issued unit credentials, allowed/denied scan results without exposing QR values |
| Correct session admission | Full ruleset/context plus holder/nonholder/wrong-session results |
| Booth-only approved pickup, when required | Authorized booth scan succeeds; denied and unrelated-point scans do not collect; current counterexample requires repair before this can pass |
| Refund/move/toggle/free-comp removal, for workflows the event will use | Monetary, inventory, enrollment and access state before/after, with an approved recovery procedure |
| Online/offline/replay behavior | Supported device/bundle versions, expected results and synchronized records |
A documentation sign-off cannot substitute for these outcomes. Where a requirement conflicts with a reproduced gap, repair the platform and rerun acceptance; record unresolved results as open. Detailed operational evidence stays private.