Search...
queryServiceOptionsAndVariants( )
Developer Preview
Retrieves a list of serviceOptionsAndVariants
, given the provided paging, filtering, and sorting.
Description
Query Service Options And Variants runs with these defaults, which you can override:
id
is sorted inASC
ordercursorPaging.limit
is100
For a detailed list of supported filtering operations see supported filters.
To learn about working with Query endpoints, see API Query Language, Sorting and Paging, and Field Projection.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
id | eq() ,in() ,ne() |
serviceId | eq() ,in() ,ne() |
options.values | exists() |
options.values.id | eq() ,in() ,ne() |
variants.values | exists() |
variants.values.choices.optionId | hasSome() |
variants.values.price | hasSome() |
Authorization
Request
This endpoint does not take any parameters
Response Object
Returns an empty object.
Status/Error Codes
Was this helpful?
queryServiceOptionsAndVariants example
Copy Code
1import { serviceOptionsAndVariants } from 'wix-bookings.v2';23 async function queryServiceOptionsAndVariants() {4 const { items } = serviceOptionsAndVariants.queryServiceOptionsAndVariants().find();5 }6