Returns tickets available to reserve.
function listAvailableTickets(
options: ListAvailableTicketsOptions,
): Promise<ListAvailableTicketsResponse>;
An object representing the available options for retrieving a list of tickets available for reservation.
import { orders } from "wix-events.v2";
async function listAvailableTickets(options) {
try {
const result = await orders.listAvailableTickets(options);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.