queryTicketDefinitions( )


Note: This function replaces the deprecated listTicketDefinition() and queryTicketDefinitions functions. The deprecated functions will continue to work until November 8, 2024, but it will not receive updates. To keep any existing code compatible with future changes, see the migration instructions.

Retrieves a list of ticket definitions, given the provided paging, filtering, and sorting. Query Ticket Definitions runs with these defaults, which you can override:

  • createdDate is sorted in ASC order
  • paging.limit is 100
  • paging.offset is 0
PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),in(),exists(),ascending(),descending()
eventIdeq(),ne(),in(),exists(),ascending(),descending()
revisioneq(),ne(),in(),lt(),le(),gt(),ge(),exists(),ascending(),descending()
_createdDateeq(),ne(),in(),lt(),le(),gt(),ge(),exists(),ascending(),descending()
_updatedDateeq(),ne(),in(),lt(),le(),gt(),ge(),exists(),ascending(),descending()
nameeq(),ne(),in(),exists(),ascending(),descending()
descriptioneq(),ne(),in(),exists(),ascending(),descending()
hiddeneq(),ne(),in(),exists(),ascending(),descending()
initialLimiteq(),ne(),in(),lt(),le(),gt(),ge(),exists(),ascending(),descending()
pricingMethod.fixedPrice.valueeq(),ne(),in(),exists(),ascending(),descending()
pricingMethod.fixedPrice.currencyeq(),ne(),in(),exists(),ascending(),descending()
pricingMethod.pricingTypeeq(),ne(),in(),exists(),ascending(),descending()
pricingMethod.freeeq(),ne(),in(),exists(),ascending(),descending()
feeTypeeq(),ne(),in(),exists(),ascending(),descending()
saleStatuseq(),ne(),in(),exists(),ascending(),descending()
Authentication
  • When developing websites or building an app with Blocks, this method may require elevated permissions, depending on the identity of the user calling it and the calling user’s permissions.
  • When building apps without Blocks or for headless projects, you can only call this method directly when authenticated as a Wix app or Wix user identity. When authenticated as a different identity, you can call this method using elevation.
  • Elevation permits users to call methods they typically cannot access. Therefore, you should only use it intentionally and securely.
Permissions
Manage Events - all permissions
Manage Orders
Manage Ticket Definitions
Manage Events
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
optionsQueryTicketDefinitionsOptions

Optional fields.

Errors

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

Did this help?