getProductOptionsAvailability( )


Gets the availability of relevant product variants based on the product ID and selections provided. See Use Cases for an example.

Permissions
Read Products
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
_idstringRequired

Requested product ID.


optionsRecord<string, string>Required

Array containing the selected options. For example, ["color": "Blue", "size": "Large"].

Returns
Return Type:Promise<ProductOptionsAvailabilityResponse>
Errors

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

Did this help?