Search.../

listAvailableTickets( )

Developer Preview

Returns tickets available to reserve.

Note: This function is restricted and only runs if you elevate permissions using the wix-auth.elevate() function.

Syntax

function listAvailableTickets(options: ListAvailableTicketsOptions): Promise<ListAvailableTicketsResponse>

listAvailableTickets Parameters

NAME
TYPE
DESCRIPTION
options
Optional
ListAvailableTicketsOptions

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

Returns

Return Type:

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

Ticket definitions.

metaData
ResponseMetaData

Ticket definitions meta data.

Was this helpful?

listAvailableTickets example

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