Skip to main content
product.availability_changed is emitted when a product’s availability changes — for example, when a restaurant marks a product as out of stock or re-activates it. It controls whether the product appears in the menu and is available for purchase. When the change affects multiple stores, Fire emits a single event with all affected stores listed in targets.

Payload

{
  "event": "product.availability_changed",
  "id": "evt_mno345",
  "created_at": "2025-01-15T14:40:00Z",
  "data": {
    "account": "1",
    "country": "6",
    "productId": "1001",
    "vendorId": "1350",
    "active": false,
    "targets": [
      {
        "storeId": "805",
        "channelId": "0E049503-85CF-E511-80C6-000D3A3261F3"
      },
      {
        "storeId": "806",
        "channelId": "0E049503-85CF-E511-80C6-000D3A3261F3"
      }
    ]
  }
}

Fields

data

FieldTypeDescription
accountstringAccount identifier — required by downstream systems
countrystringCountry identifier — required by downstream systems
productIdstringProduct identifier
vendorIdstringBrand identifier
activebooleantrue to activate, false to deactivate
targetsobject[]Stores where the availability change must be applied

data.targets[n]

FieldTypeDescription
storeIdstringStore identifier
channelIdstringSales channel UUID

Behavior

Setting active: false hides the product from the menu and marks it as unavailable for purchase. Setting active: true restores it. This event does not modify any other product data — name, price, images, and modifiers remain unchanged.

Usage

See Product publication for the full handling guide.