Search...
checkInTickets( )
Checks in 1 or more tickets.
Admin Method
This function requires elevated permissions to run. This function is not universal and runs only on the backend.
Syntax
function checkInTickets(eventId: string, options: CheckInTicketsOptions): Promise<CheckInTicketResponse>
checkInTickets Parameters
NAME
TYPE
DESCRIPTION
eventId
string
Event ID to which the ticket belongs.
options
Optional
CheckInTicketsOptions
Options for tickets to check-in.
Returns
Return Type:
Promise<
CheckInTicketResponse
>NAME
TYPE
DESCRIPTION
tickets
Array<
TicketingTicket
>Updated tickets.
Was this helpful?
checkInTickets example
Copy Code
1import { tickets } from 'wix-events.v2';23 async function checkInTickets(eventId, options) {4 try {5 const result = await tickets.checkInTickets(eventId, options);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13