Changes ticket definitions order in an event dashboard and the list of available tickets in the ticket picker.
Note: It is possible to use both beforeTicketDefinitionId
and afterTicketDefinitionId
at the same time but only the last one defined will be executed.
You can only call this method when authenticated as a Wix app or Wix user identity.
function reorderTicketDefinitions(
eventId: string,
options: ReorderTicketDefinitionsOptions,
): Promise<void>;
Event ID.
Optional fields.
import { ticketDefinitionsV2 } from "@wix/events";
async function reorderTicketDefinitions(eventId, options) {
const response = await ticketDefinitionsV2.reorderTicketDefinitions(
eventId,
options,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.