About the Wix Bookings Service Options and Variants API

With the Wix Bookings Service Options and Variants API, you can manage custom options and variants for services. This allows site owners to offer different prices for the same service based on their customers' choices.

You can read more about using the:

Checking for Existing Pricing Options

You can check whether a service has existing pricing options, and what they are, by retrieving the rate object of the service's active schedule. Check this flow for more details.

There are 3 different possible rates:

  • labeledPriceOptions: For services with the standard Wix Bookings pricing.
  • priceText: For services with prices manually set by the business.
  • defaultPrice: For services with varied pricing.

If any of these 3 rates are defined in the service's active schedule, pricing options have already been defined.

Terminology

For a comprehensive glossary of Wix Bookings terms, see Terminology.

Before you begin

It's important to note the following points before starting to code:

  • Only a single serviceOptionsAndVariants object is supported per service.

  • Currently, only a single option is supported per serviceOptionsAndVariants object.

  • You need to manually calculate and then pass all variants in the request of Create Service Options And Variants. Variants aren't automatically calculated from the specified options.

  • New variants are automatically created for services with staff member-based options whenever a new staff member is added to the service. The new variant gets the default price specified in the service's schedule.rate.default_varied_price.

  • Variants are automatically deleted for services with staff member based options whenever a staff member is removed from the service or the business.

Was this helpful?
Yes
No