Ticket Check In

Once tickets have been purchased and delivered to the customer, you'll likely need a way to validate their ticket purchase at the venue on the day of the event. This is where the "Check In" functionality comes in handy.

Events provides a simple controller action endpoint for you to trigger. This will also check if a customer has already checked in, preventing ticket re-use.

Additionally, if producing a PDF template using our example, a QR code will be generated. This code is the full URL to this action endpoint.

Simply trigger the following action URL in your templates:

actions/events/ticket/checkin?sku=<sku>

Parameter #

  • <sku>: This is the ticket SKU which gets generated automatically at the purchase of the ticket. This SKU is unique.

Return #

The controller returns a JSON response. On an error the response contains a simple error message. On success the response contains following:

  • success: Contains the string "Ticket checked in.".
  • checkedInDate: The check in date in DATE_ATOM format.

Simple Example Form #

There are a number of ways you could setup this mechanism, but commonly you could setup a simple form on your website to allow staff at the door to check a customer in. Something similar to the below:

<form method="post" accept-charset="UTF-8">
    <input type="hidden" name="action" value="events/ticket/checkin">
    
    <input type="text" name="sku">
    <input type="submit" value="Check in to event">
</form>

Advanced Example #

The QR code that the ticket generates is a fully qualified URL to check in for this event. Simple scan this code with an QR code reader, and the URL will trigger the check-in for this ticket. This could be built as a simple mobile application, or mobile-enabled web page.

Example coming soon.

Get started with Events

Available for Craft 2 for $149, trial locally for as long as you need.