getServiceOptionsAndVariants( )
Retrieves a serviceOptionsAndVariants
object by service_options_and_variants_id
.
Syntax
function getServiceOptionsAndVariants(serviceOptionsAndVariantsId: string): Promise<ServiceOptionsAndVariants>
getServiceOptionsAndVariants Parameters
NAME
TYPE
DESCRIPTION
ID of the serviceOptionsAndVariants
object to retrieve.
Returns
Retrieved serviceOptionsAndVariants
object.
Return Type:
NAME
TYPE
DESCRIPTION
ID of the serviceOptionsAndVariants
object.
Price of the most expensive service variant.
Price of the cheapest service variant.
Service options. Note that currently only a single option is supported per service.
Revision number, which increments by 1 each time the serviceOptionsAndVariants
object is updated.
To prevent conflicting changes,
the current revision must be passed when updating and deleting the serviceOptionsAndVariants
object.
Ignored when creating a serviceOptionsAndVariants
object.
ID of the service related to these options and variants.
Information about the service's variants.
Was this helpful?
getServiceOptionsAndVariants example
1import { serviceOptionsAndVariants } from 'wix-bookings.v2';23 async function getServiceOptionsAndVariants(serviceOptionsAndVariantsId) {4 try {5 const result = await serviceOptionsAndVariants.getServiceOptionsAndVariants(serviceOptionsAndVariantsId);67 return result;8 } catch (error) {9 console.error(error);10 // Handle the error11 }12 }13