> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: getServiceOptionsAndVariants(serviceOptionsAndVariantsId: string) # Method package: wixBookingsV2 # Method menu location: wixBookingsV2 --> serviceOptionsAndVariants --> getServiceOptionsAndVariants # Method Link: https://dev.wix.com/docs/velo/apis/wix-bookings-v2/service-options-and-variants/get-service-options-and-variants.md # Method Description: Retrieves a `serviceOptionsAndVariants` object by `service_options_and_variants_id`. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## getServiceOptionsAndVariants example ```javascript import { serviceOptionsAndVariants } from 'wix-bookings.v2'; async function getServiceOptionsAndVariants(serviceOptionsAndVariantsId) { try { const result = await serviceOptionsAndVariants.getServiceOptionsAndVariants(serviceOptionsAndVariantsId); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## getServiceOptionsAndVariants example for exporting from backend code ```javascript import { serviceOptionsAndVariants } from 'wix-bookings.v2'; import { webMethod, Permissions } from 'wix-web-module'; export const getServiceOptionsAndVariants = webMethod( Permissions.Anyone, async (serviceOptionsAndVariantsId) => { try { const result = await serviceOptionsAndVariants.getServiceOptionsAndVariants(serviceOptionsAndVariantsId); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---