POST

Reorder Ticket Definitions


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
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/events-ticket-definitions/v3/ticket-definitions/reorder

Body Params
eventIdstringRequiredformat GUID

Event ID.


ticketDefinitionIdstringRequiredformat GUID

Ticket definition ID.


ONE OF:

beforeDefinitionIdstringformat GUID

Move the given definitionId before the referenced ticket definition.


afterDefinitionIdstringformat GUID

Move the given definitionId after the referenced ticket definition.

Response Object
Returns an empty object.
Reorder ticket definitions
Request
cURL
curl -X POST 'https://www.wixapis.com/events-ticket-definitions/events-ticket-definitions/v3/ticket-definitions/reorder' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH TOKEN>' \ -d '{ "eventId": "9d720f99-1b5a-4141-9877-d32985391e18", "ticketDefinitionId": "625115fd-31cb-4f64-b7bd-06c3137486c0", "beforeTicketDefinitionId": "7ffbabb4-708c-449b-a956-78d153cd1faa" }'
Response
JSON
{}
Errors
400Invalid Argument

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?