Eventjet GraphQL API documentation

ticket

Get a single ticket by its scan code (Ticket.scanCode).

The scan code is matched case-insensitively, so the value can be passed on exactly as it was scanned or typed. It is the same code that identifies the ticket at check-in, the value of CheckinTarget.scanCode.

Revoked tickets are resolved as well, so inspect Ticket.isRevoked before admitting the holder, and Ticket.checkin to see whether the ticket has already been used.

Authorization is required, and only tickets of a company you administer can be read. If the scan code belongs to no ticket, or to a ticket you are not allowed to see, the field resolves to null and the response contains an error.

query GetTicket($scanCode: TicketScanCode!) {
  ticket(scanCode: $scanCode) {
    scanCode
    isRevoked
    checkin {
      timestamp
    }
    ticketType {
      id
    }
    event {
      id
    }
  }
}
query GetTicket($scanCode: TicketScanCode!) {
  ticket(scanCode: $scanCode) {
    scanCode
    isRevoked
    checkin {
      timestamp
    }
    ticketType {
      id
    }
    event {
      id
    }
  }
}

To list tickets instead of looking one up, use tickets. To record a check-in, use Mutation.checkIn.

Arguments

ArgumentDescriptionType
scanCodeTicketScanCode!

Type

This field resolves to Ticket, which has the following fields:

FieldDescriptionType
checkinCheckin
eventEvent
isRevokedBoolean!
scanCodeTicketScanCode
ticketTypeTicketType