Inventory Variants Changed


Triggered when inventory variants are changed.

Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Products
Read Products
Learn more about app permissions.
Event BodyEvent Body Event data is received as a JSON Web Token (JWT). It may be delayed. Be sure to verify the data was sent by Wix.
Event Data
inventoryItemIdstring

Inventory item ID.


externalIdstringdeprecated

Deprecated: use productId.


productIdstring

Product ID.


variantsArray <ChangedInventoryVariant>

Information about changed variants.


updatedDatestringformat date-time

Date and time the inventory variant item was last updated.

Event Body

The data payload will include the following as an encoded JWT:

JSON
{ "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 } } }

Inventory Variants Changed
JSON
{ "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 } } ] }
Did this help?