onProductCreated( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Notes:
Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Manage Products
Read Products
Manage Restaurants - all permissions
Read v3 catalog
Manage v3 catalog
Read products in v3 catalog
Product v3 read admin
Learn more about app permissions.
Method Declaration
Copy
function onProductCreated(handler: function): void;
Method Parameters
handlerfunction

handler(event: ProductCreatedEnvelope): void | Promise<void>

JavaScript
import { productsV3 } from "@wix/stores"; productsV3.onProductCreated((event) => { // handle your event here });
Did this help?