For channels configured to handle menu publish requests asynchronously, this endpoint is used to provide the final menu update status. Channel partners should POST to the provided "callback" endpoint with the final menu update status, giving customers full visibility on menu publish events and their success, particularly where bulk operations across multiple locations are actioned.
| Parameters | Description | Type |
|---|---|---|
channelName | Represents the case-sensitive Scope provided. If a channelname used is invalid the request is considered unauthorised. | string |
_id | This id shown in the callback url is a unique identifier of the menu publish request | string |
Response Time
Please ensure that the menu is published successfully within a maximum of 30 minutes. If the process exceeds this time limit, Deliverect will automatically set the operation as "Failed"
Stores (multiple channel IDs)
Currently we support menu publishing for one store/channelLinkId. In the payload you will find "stores" array where in the future you may receive more channelLinkIds.
"stores": [
"649a**********9ea9"
]Synchronous vs Asynchronous
Partners switching to an asynchronous flow should note the differences from the synchronous flow. These are shown in the JSON example belows, can be summarized as follows;
- Asynchronous: Has
"menus","stores"and"callback"as keys within a"body" - Synchronous: Shows an array of properties e.g.
"availabilities","categories","modifierGroups"etc.
{
"body": {
"menus": [
{
"availabilities": [],
"modifierGroups": {},
"categories": []
// ... other properties
}
],
"stores": [
"64*******************a9"
],
"callback": "https://api.staging.deliverect.com/{channelName}/menuStatus/64*******************2d"
}
}[
{
"availabilities": [],
"modifierGroups": {},
"categories": [],
// ... other properties
}
]