This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves a list of a menu's availability statuses for a given time slot and restaurant operation. Returns the availability status for the given time slot per menu.
function listMenusAvailabilityStatus(
timeSlot: TimeSlot,
options: ListMenusAvailabilityStatusOptions,
): Promise<ListMenusAvailabilityStatusResponse>;
The time slot for which to check the availability of menus.
import { menuOrderingSettings } from "wix-restaurants.v2";
async function listMenusAvailabilityStatus(timeSlot, options) {
try {
const result = await menuOrderingSettings.listMenusAvailabilityStatus(
timeSlot,
options,
);
return result;
} catch (error) {
console.error(error);
// Handle the error
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.