checkTicketPassword
Checks whether a ticket password exists for an event.
CheckTicketPasswordResult.exists is true when the event given by the eventId argument has a password matching the
password argument. Matching ignores case. An unknown event ID, or a password that matches none of the event's
passwords, yields false rather than an error.
Use this to validate an entered password before passing it on to the fields that reveal password-protected ticket
types — ShopEvent.items, SeatmapSeat.ticketTypes and SeatmapVolume.ticketTypes — or to the mutations that accept
passwords, such as Mutation.setCartItemQuantity, Mutation.addSeatToCart and Mutation.setCartVolumeQuantities.
A password can exist without being assigned to any ticket type, so true does not guarantee that additional ticket
types become visible.
query CheckTicketPassword($eventId: ID!, $password: String!) { checkTicketPassword(eventId: $eventId, password: $password) { exists } }query CheckTicketPassword($eventId: ID!, $password: String!) { checkTicketPassword(eventId: $eventId, password: $password) { exists } }
Arguments
| Argument | Description | Type |
|---|---|---|
| eventId | ID! | |
| password | String! |
Type
This field resolves to CheckTicketPasswordResult, which has the following fields: