POST

Count Resources


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Counts resources according to given criteria.

Refer to the supported filters article (SDK | REST) for a complete list of supported filters and sorting options.

Permissions
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/bookings/v2/resources/count

Body Params
filterstruct

Filter to base the count on. Refer to the supported filters article (SDK | REST) for a complete list of supported filters.


searchSearchdeprecated

Free text to match in searchable fields. Field is deprecated due to decision to use query instead of search for performing the count.

Response Object
countinteger

Total number of resources matching the filter.

Request
cURL
Response
JSON
Errors

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

Did this help?