reorderTicketDefinitions( )


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.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Events - all permissions
Manage Ticket Definitions
Manage Events
Learn more about app permissions.
Method Declaration
Copy
function reorderTicketDefinitions(
  eventId: string,
  options: ReorderTicketDefinitionsOptions,
): Promise<void>;
Method Parameters
eventIdstringRequired

Event ID.


optionsReorderTicketDefinitionsOptions

Optional fields.

JavaScript
import { ticketDefinitionsV2 } from "@wix/events"; async function reorderTicketDefinitions(eventId, options) { const response = await ticketDefinitionsV2.reorderTicketDefinitions( eventId, options, ); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?