Note: This module is universal. Functions in this module can run on both the backend and frontend, unless specified otherwise.
The eCommerce Products API allows you to manage products to sell.
With the Products API, you can:
See Managing Products for more information.
To use the Products API, import { products }
from the wix-ecom.v2
module:
The following functions in the Products 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.
Products API events are fired on your site’s backend when certain events occur with products.
See wix-stores-backend
events
for more information related to these events.