Retrieves a list of up to 100 services, given the provided paging, filtering, and sorting.
Query Services has the following default settings, which you can override:
createdDate in ascending order.paging.limit set to 100.paging.offset set to 0.When using filters for dates, you must use UTC time.
Use the conditionalFields request parameter to receive additional data in the response.
These fields are excluded from the response by default because retrieving them requires
additional calls to other services.
Supported values:
STAFF_MEMBER_DETAILS: Returns service.staffMemberDetails.RESOURCE_TYPE_DETAILS: Returns the name of each service resource's resource type. See service.serviceResources.resourceType.name.DISCOUNT_INFO_DETAILS: Returns service.payment.discountInfo.RESOURCE_DETAILS: Returns the name of each individual resource assigned to a service resource. See service.serviceResources.resourceDetails.To learn about working with Query methods, see API Query Language and Sorting and Paging.
| Property | Filters | Sort |
|---|---|---|
_id | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
appId | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
name | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
type | $eq, $ne, $exists, $in, $hasSome | Sort: ASC, DESC |
description | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
hidden | $eq, $ne, $exists, $in, $hasSome | Sort: ASC, DESC |
tagLine | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
staffMemberIds | $eq, $ne, $exists, $in, $hasSome, $hasAll | Sort: ASC, DESC |
form._id | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
category._id | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
category.name | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
locations.business._id | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
mainSlug.name | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
supportedSlugs.name | $eq, $ne, $exists, $in, $hasSome, $startsWith, $gt, $lt, $lte, $gte | Sort: ASC, DESC |
onlineBooking.enabled | $eq, $ne, $exists, $in, $hasSome | Sort: ASC, DESC |
payment.options.online | $eq, $ne, $exists, $in, $hasSome | Sort: ASC, DESC |
payment.options.inPerson | $eq, $ne, $exists, $in, $hasSome | Sort: ASC, DESC |
payment.options.pricingPlan | $eq, $ne, $exists, $in, $hasSome | Sort: ASC, DESC |
schedule.firstSessionStart | $eq, $ne, $exists, $in, $hasSome, $lt, $lte, $gt, $gte | Sort: ASC, DESC |
schedule.lastSessionEnd | $eq, $ne, $exists, $in, $hasSome, $lt, $lte, $gt, $gte | Sort: ASC, DESC |
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.