Product Availability
There are certain indicators of a product's availability which are communicated to ordering platforms.
Snooze Webhooks
A customer can choose to set real-time availability from Deliverect and choose to have a product made available / unavailable online.
Snoozed Status
Each product in the menu payload includes a boolean property "snoozed"
which specifies if at the point of the menu being published, if the item is snoozed or not.
If you require information about the snooze period, you can reference the product.snoozeId and cross-reference this ID in the menu.snoozeProducts to retrieve additional details such as the start and end dates of the snooze period.
"products": {
"65*******************73c": {
"_id": "65*******************3c",
"name": "Toasted Bagel",
..
"plu": "P-BA-9PxS-2",
..
"snoozed": true,
"snoozeId": "65*******************de",
..
},
"snoozedProducts": {
"65*******************b7": {
"location": "61*******************af",
"name": "Toasted Bagel",
"plu": "P-BA-9PxS-2",
"snoozeEnd": "yyyy-MM-dd HH:mm:ss.SSSSSSZ",
"snoozeStart": "yyyy-MM-dd HH:mm:ss.SSSSSSZ"
},
If you use multiple menus in one location (for different channels etc.) It's possible that a product snoozed on one menu is available on another menu in the same location.
Visibility
A product will show a "visible"
boolean, but when false
the item is disabled and would not appear in the menu, as such this attribute can be disregarded.