shop-category-tree-updated
The webhook only informs about that the shop category tree has changed.
{
"key": "string",
"meta": {
"tenantKey": "string",
"xRequestId": "string"
},
"occurredAt": "datetime",
"type": "shop-category-tree-update",
"payload": {
"shop": {
"id": "integer",
"key": "string"
}
}
}
The tree needs to be fetched via the GET /shops/{shopKey}/categories
Admin API endpoint.
Get notified when:
- Categories are added/removed
- Categories are moved
- The state (active/visible) of the shop country-specific category changes to shop category
- Custom data on shop category or shop country category changes
- Background jobs that applied category changes are finished (e.g. recalculation of paths)\
Attaching/detaching of products to the categories won't trigger this event. The ID of the affected shop is added to a debouncer set, the processor will take the ID out of the debouncer only after a configured timeout which is by default 60 sec, and then a shop-category-tree-updated
webhook is triggered.p