Counts ticket definitions by the saleStatus
field, including those with the hidden
status.
You can only call this method when authenticated as a Wix app or Wix user identity.
Filter object in the following format:
"filter" : { "fieldName1": "value1" }
.
Parameters to count ticket definitions by.
Metadata for the paginated results.
Filter facets.
curl -X POST 'https://www.wixapis.com/events-ticket-definitions/events-ticket-definitions/v3/ticket-definitions/count' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
"filter": {
"saleStatus": {
"$eq": "SALE_STARTED"
}
},
"facet": ["saleStatus"]
}'
{
"metadata": {
"total": 4
},
"facets": {
"saleStatus": {
"counts": {
"SALE_STARTED": 4
}
}
}
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.