This service allows you to query and modify the inventory for your store's products.
A variant can override the following values from the parent product:
Functions in the Inventory API are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.
Inventory API events are fired on your site’s backend when certain events occur with Inventory.
See wix-stores-backend
events
for more information related to these events.
To use the Inventory API,
import inventory
from wix-stores.v2: