Currently the webhook system for Products handles only one type of event:

  • products-availability-update

Event products-availability-update


Sent to know that the availability of an item or a modifier is changed.

APP SCOPE
ChannelPosRidersLoyalty
✔️✖️✖️✖️
WEBHOOK FORMAT
{
  "eventType": "products-availability-update",
  "storeId": "string",
  "data": {
    "suspendInfoList": [
      {
        "innerId": "string",
        "posRef": "string",
        "type": "string",
        "untilDate": "string"
      }
    ]
  }
}
FIELDS SPECIFICATION
FieldDescription
eventTypeThe type of event
storeIdThe storeId where the event occurred
data.suspendInfoListThe list of products whose availability has changed
data.suspendInfoList.innerIdThe innerId of the product whose availability has changed
data.suspendInfoList.posRefThe posRef of the product whose availability has changed
data.suspendInfoList.typeThe type of product. The values of this field can be:
- item
- modifier
data.suspendInfoList.untilDateThe date until this product is unavailable. The meaning of this field is:
- if untilDate < now the product is available
- if untilDate > now the product is unavailable