getInventoryVariants( )


Gets inventory variant information based on the specified option choices.

The getInventoryVariants() function returns a Promise that resolves to the specified inventory variant information.

Permission Scopes
Read Products
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
inventoryIdstringRequired

Inventory item ID.


optionsGetInventoryVariantsOptions
Returns
Return Type:Promise<GetInventoryVariantsResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?