Triggered when inventory variants are changed.
Inventory item ID.
Deprecated: use productId.
Product ID.
Information about changed variants.
Date and time the inventory variant item was last updated.
The data payload will include the following as an encoded JWT:
{
"data": {
"eventType": "com.wix.ecommerce.inventory.api.v1.InventoryVariantsChanged",
"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",
"variants": [
{
"id": "00000000-0000-0001-0005-918e4641acb0",
"oldValue": { "inStock": true },
"newValue": { "inStock": false }
},
{
"id": "00000000-0000-0003-0005-918e4641acb0",
"oldValue": { "inStock": true },
"newValue": { "inStock": false }
}
]
}