product-variant-availability-updated
Get notified when availability of a variant change due to:
- Product state changes
- Out of stock / back to stock
- Blocking/unblocking of variants
- Product updates (e.g. attributes, master categories) affecting the availability
- Product deletion/restoration
- Price updates that may result in activating/deactivating the variant
Assortment (base query) changes are only reflected via full availability calculation (once a day). The ID of the created/updated product variant 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 30 sec, and then a product-variant-availability-updated
webhook is triggered.
{
"key": "string",
"meta": {
"tenantKey": "string",
"xRequestId": "string"
},
"occurredAt": "datetime",
"type": "product-variant-availability-updated",
"version": "integer",
"payload": {
"productVariant": {
"id": "integer",
"referenceKey": "string"
},
"product": {
"id": "integer",
"referenceKey": "string"
},
"availabilities": [
{
"shopCountry": {
"id": "integer",
"shopKey": "string",
"countryCode": "string"
},
"available": "boolean"
}
],
"merchantReferenceKey": "string"
}
}