Skip to main content

What is a ticket?

A ticket in TMT represents a single attendee’s right of entry to a specific event zone or seat. Tickets are generated from orders using the tickets_generate Firebase Cloud Function and stored in Firestore, linked to the event they belong to.

Viewing tickets

Tickets for a specific event are listed at /tickets?id=<event_id> (requires the ViewTickets permission). The list is populated by the tickets_list_event Cloud Function, which returns all tickets associated with the given event ID.Individual ticket details — including the holder’s information, zone, seat, price, and current status — are accessible at /tickets-detalles (requires ViewTicketsDetail).

Ticket properties

Each ticket record holds:
PropertyDescription
Event IDThe Firestore document ID of the parent event
Zone / seatThe seating zone or specific seat number
HolderCustomer name and contact information
Order referenceThe order that generated this ticket
StatusCurrent state (e.g., active, used, cancelled)
QR codeUnique code used for entry validation

QR code validation

Every ticket carries a QR code that encodes its unique identifier. At the venue, staff can validate tickets using the ticket search and ticket query screens:
  • /buscar-ticket (TicketSearchView) — scan or enter a ticket identifier to look up a ticket across all events.
  • /ticket-consultado (QueryTicketDisplay) — displays the full detail of the looked-up ticket, confirming whether it is valid for entry.
The tickets_individual Cloud Function retrieves the specific ticket record for the queried identifier.
The TicketSearchView and QueryTicketDisplay permissions are granted to Administrador, Coordinador, Contador, and Soporte roles. This allows multiple staff types to assist with entry validation at the door.

Customer ticket view

Staff can also view all tickets belonging to a specific customer. From the customer detail screen, navigate to /lista-tickets-customer (requires ViewCustomerTickets) to see the customer’s full ticket history across events.

Offline tickets

Ticketing offices can sell tickets offline (at the box office window). Offline tickets are tracked separately:
  • /lista-tickets-offline — lists offline tickets issued by a specific office session.
  • The offline_office_tickets and offline_office_tickets_unassign Cloud Functions manage assignment and reassignment of offline ticket inventory.

Build docs developers (and LLMs) love