onInventoryItemUpdatedWithReason( )


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:

Triggered when an inventory item is updated.

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 inventory in v3 catalog
Learn more about app permissions.
Method Declaration
Copy
function onInventoryItemUpdatedWithReason(handler: function): void;
Method Parameters
handlerfunction

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

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