countServices( )


Counts how many services match the given filter.

Refer to the supported filters article (REST) for more details.

To learn about working with filters in general, see API Query Language

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.
Method Declaration
Copy
function countServices(
  options: CountServicesOptions,
): Promise<CountServicesResponse>;
Method Parameters
optionsCountServicesOptions
Returns
Return Type:Promise<CountServicesResponse>
JavaScript
import { services } from "@wix/bookings"; async function countServices(options) { const response = await services.countServices(options); }
Errors

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

Did this help?