Collection Changed


Triggered when a collection is changed.

Permissions
Manage Stores - all permissions
Read Stores - all read permissions
Manage Orders
Manage Products
Read Products
Manage Restaurants - all permissions
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
collection_Idstring

Collection ID (generated automatically by the catalog).


changedFieldsArray <string>

List of collection fields that were changed.


originatedFromVersionstring

Information about the version of the catalog from where this event was triggered.

Event Body

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

JSON
{ "data": { "eventType": "com.wix.ecommerce.catalog.api.v1.CollectionChanged", "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 } } }

Collection Changed
JSON
{ "collectionId": "6547efe0-3dc4-bd30-3042-c71427ff2589", "changedFields": ["name"] }
Did this help?