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": {
    "id": "evt_mno345",
    "type": "product.availability_changed",
    "createdAt": "2025-01-15T14:40:00Z",
    "timezone": "America/Guayaquil"
  },
  "data": {
    "account": "1",
    "country": "6",
    "productId": "e925f6b0-15bf-dc39-2e3f-1a2b284310c6",
    "vendorId": "1350",
    "active": false,
    "targets": [
      {
        "storeId": "805",
        "channelId": "0E049503-85CF-E511-80C6-000D3A3261F3",
        "channelReferenceName": "iFood"
      },
      {
        "storeId": "806",
        "channelId": "0E049503-85CF-E511-80C6-000D3A3261F3",
        "channelReferenceName": "iFood"
      }
    ]
  }
}

Fields

data

FieldTypeDescription
accountstringAccount identifier — required by downstream systems
countrystringCountry identifier — required by downstream systems
productIdstringProduct identifier (UUID)
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
channelReferenceNamestringHuman-readable name of the sales channel (e.g. iFood, Rappi)

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.