queryPolicies( )


Retrieves a list of up to 100 booking policies, and information about the services that are connected to them, given the provided filtering, paging, and sorting.

Defaults

Query Policies has the following default settings, which you can override:

  • Sorted by id in ascending order.
  • cursorPaging.limit set to 100.

Filters

When using date filters, you must use UTC time.

Returned services

If a booking policy is connected to more than 5 services, only a subset of those services is returned. The bookingPolicies.totalServiceCount values indicate the total number of services linked to each policy. You can call Search Services and specify the relevant policy ID in the filter to retrieve all services connected to the booking policy.

See also

To learn about working with Query methods, see API Query Language and Sorting and Paging.

Permissions
Read Bookings - Public Data
Wix Multilingual - Nile Wrapper Domain Events Read
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
queryCursorQueryRequired

Information about filters, paging, and sorting.

Returns
Return Type:Promise<QueryPoliciesResponse>
Errors

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

Did this help?