docs
  1. Events
  2. Product Events
  3. Product-variant-availability-updated

product-variant-availability-updated

A product-variant-availability-updated event is triggered when availability of a variant change due to:

  • Product state changes
  • Out of stock / back in 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).

Filters applicable for Webhook.

Filter TypeField used in payload for filter
Merchant includes/excludesmerchantReferenceKey

Example:

Properties:

  • key string
  • occurredAt datetime
  • meta object
    • tenantKey string
  • version integer
  • payload object
    • productVariant object
      • id integer
      • referenceKey string
    • product object
      • id integer
      • referenceKey string
    • availabilities object
      • shopCountry object
        • id integer
        • shopKey string
        • countryCode string
      • available boolean
    • createdAt datetime
    • merchantReferenceKey string
  • type enum (product-variant-availability-updated)