function getServiceOptionsAndVariantsByServiceId(
serviceId: string,
): Promise<GetServiceOptionsAndVariantsByServiceIdResponse>;
ID of the service to retrieve options and variants for.
import { serviceOptionsAndVariants } from "@wix/bookings";
async function getServiceOptionsAndVariantsByServiceId(serviceId) {
const response =
await serviceOptionsAndVariants.getServiceOptionsAndVariantsByServiceId(
serviceId,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.