Developers

Purchased Ticket

Whenever you’re dealing with a purchased ticket in your template, you’re actually working with a PurchasedTicket object.

Attributes

AttributeDescription
idThe ID of the purchased ticket in the system.
eventThe Event the purchased ticket is generated for.
eventIdThe ID of the event the purchased ticket is generated for.
sessionThe Session the purchased ticket is generated for.
sessionIdThe ID of the session the purchased ticket is generated for.
ticketThe Ticket the purchased ticket is generated for.
ticketIdThe ID of the ticket the purchased ticket is generated for.
orderThe Order (opens new window) where the ticket was originally purchased from.
orderIdThe ID of the order where the ticket was originally purchased from.
lineItemThe Line Item (opens new window) in the order where the ticket was originally purchased from.
lineItemIdThe ID of the line item where the ticket was originally purchased from.
eventTypeThe event’s type the purchased ticket is generated for.
ticketTypeThe ticket’s type the purchased ticket is generated for.
eventNameThe name of the event the purchased ticket is generated for.
ticketNameThe name of the ticket the purchased ticket is generated for.
qrCodeA QR code with a URL to the controller, including the ticket SKU, to easily check in a ticket for the event.
checkedInTrue or false depending on whether the ticket has been checked in for the event.
checkedInDateThe date this ticket was checked in.
reservationStatusThe reservation status: active or cancelled.
cancelledAtWhen the reservation was cancelled.
cancelledReasonWhy the reservation was cancelled.
isActiveWhether the purchased ticket is an active reservation.
isCancelledWhether the purchased ticket has been cancelled.

Cancelling Tickets and Releasing Capacity

Purchased tickets represent seat reservations. To return seats to available capacity, cancel the reservation rather than deleting the record.

Manual cancellation

Use Cancel tickets from Events → Purchased Tickets in the control panel. This marks the reservation as cancelled, releases capacity, blocks check-in, and keeps the record for reporting.

Use Restore tickets to make a cancelled reservation active again.

Order cancellations and refunds

Commerce order refunds do not remove purchased tickets by themselves. Events listens for:

  • Order status changes to configured release-capacity statuses
  • Commerce refunds, when enabled in Settings → Events → Tickets

See Capacity for more detail on how capacity is calculated.

Deleting purchased tickets

Deletion is for mistaken records or GDPR cleanup only. Cancel tickets first, then delete permanently if needed.

./craft events/purchased-tickets/purge-trashed --dry-run=0
Last updated: July 15, 2026, 11:14:30 AM