Search.../

queryAvailableTickets( )

Developer Preview

Returns tickets available to reserve.

Note: The fieldsets in this function are restricted and only run if you elevate permissions using the wix-auth.elevate() function.

Syntax

function queryAvailableTickets(options: QueryAvailableTicketsOptions): Promise<QueryAvailableTicketsResponse>

queryAvailableTickets Parameters

NAME
TYPE
DESCRIPTION
options
Optional
QueryAvailableTicketsOptions

An object representing the available options for retrieving a list of tickets available for reservation.

Returns

Return Type:

Promise<
QueryAvailableTicketsResponse
>
NAME
TYPE
DESCRIPTION
definitions
Array<
TicketDefinition
>

Ticket definitions.

metaData
ResponseMetaData

Ticket definitions meta data.

Was this helpful?

queryAvailableTickets example

Copy Code
1import { checkout } from 'wix-events.v2';
2
3 async function queryAvailableTickets(options) {
4 try {
5 const result = await checkout.queryAvailableTickets(options);
6
7 return result;
8 } catch (error) {
9 console.error(error);
10 // Handle the error
11 }
12 }
13