> 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: getProductOptionsAvailability(_id: string, options: Record) # Method package: wixStoresV2 # Method menu location: wixStoresV2 --> products --> getProductOptionsAvailability # Method Link: https://dev.wix.com/docs/velo/apis/wix-stores-v2/products/get-product-options-availability.md # Method Description: Gets the availability of relevant product variants based on the product ID and selections provided. See [Use Cases](https://dev.wix.com/api/rest/wix-stores/catalog/use-cases) for an example. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## getProductOptionsAvailability example ```javascript import { products } from 'wix-stores.v2'; async function getProductOptionsAvailability(id, options) { try { const result = await products.getProductOptionsAvailability(id, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## getProductOptionsAvailability example for exporting from backend code ```javascript import { products } from 'wix-stores.v2'; import { webMethod, Permissions } from 'wix-web-module'; export const getProductOptionsAvailability = webMethod( Permissions.Anyone, async (id, options) => { try { const result = await products.getProductOptionsAvailability(id, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---