This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Retrieves the combined availability of a list of fulfillment methods.
The combined availability is a list of times during which one or more of the given fulfillment methods is available, and the types of those fulfillment methods.
function getCombinedMethodAvailability(
fulfillmentMethodIds: Array<string>,
): Promise<GetCombinedMethodAvailabilityResponse>;
IDs of fulfillment methods used to determine the combined availability.
import { fulfillmentMethods } from "wix-restaurants.v2";
async function getCombinedMethodAvailability(fulfillmentMethodIds) {
try {
const result =
await fulfillmentMethods.getCombinedMethodAvailability(
fulfillmentMethodIds,
);
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.