POST

Count Services


Counts services according to given criteria. Use WQL filter to define the criteria.

Permissions
Manage Bookings Services and Settings
Manage Bookings - all permissions
Read Bookings - all read permissions
Manage Bookings
Read Bookings - Public Data
Read Bookings - Including Participants
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/_api/bookings/v2/services/count

Body Params
filterstruct

The filters for performing the count.

Response Object
countinteger

The number of services matching the given filter.

Count services based on a filter
Request
cURL
curl -X POST 'https://www.wixapis.com/bookings/v2/services/count' \ -H 'Authorization: <AUTH>' \ -d '{ "query": { "filter": { "hidden": { "$eq": "false" } } } }'
Response
JSON
{ "count": 2 }
Errors

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

Did this help?