Triggered when an inventory item is changed.
Inventory item ID.
Deprecated: use productId.
Product ID.
Whether inventory is being tracked.
Preorder information.
Date and time the inventory item was last updated.
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "com.wix.ecommerce.inventory.api.v1.InventoryItemChanged",
"instanceId": "<app-instance-id>",
"data": "<stringified-JSON>",
// The identity field is sent as a stringified JSON
"identity": {
"identityType": "<identityType>", // ANONYMOUS_VISITOR, MEMBER, WIX_USER, APP
"anonymousVisitorId": "<anonymousVisitorId>", // in case of ANONYMOUS_VISITOR
"memberId": "<memberId>", // in case of MEMBER
"wixUserId": "<wixUserId>", // in case of WIX_USER
"appId": "<appId>" // in case of APP
}
}
}
{
"inventoryItemId": "81b0fdc0-ac2d-8f25-cf44-ce99d4c3f6a0",
"externalId": "7e4f023f-53d2-70da-30bb-31662b3c095f",
"productId": "7e4f023f-53d2-70da-30bb-31662b3c095f",
"trackInventory": false
}