getCombinedMethodAvailability( )


Developer Preview

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.

Permissions
Manage Restaurants - all permissions
Learn more about app permissions.
Method Declaration
Copy
function getCombinedMethodAvailability(
  fulfillmentMethodIds: Array<string>,
): Promise<GetCombinedMethodAvailabilityResponse>;
Method Parameters
fulfillmentMethodIdsArray<string>Required

IDs of fulfillment methods used to determine the combined availability.

Returns
Return Type:Promise<GetCombinedMethodAvailabilityResponse>
JavaScript
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 } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?