This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Updates a fulfillment method.
Each time the fulfillment method is updated, its revision increments by 1. The existing revision must be included when updating the fulfillment method. This ensures you're working with the latest fulfillment method information, and it prevents unintended overwrites.
function updateFulfillmentMethod(
_id: string,
fulfillmentMethod: UpdateFulfillmentMethod,
): Promise<FulfillmentMethod>;
Fulfillment method ID.
Fulfillment method information to update.
import { fulfillmentMethods } from "@wix/restaurants";
async function updateFulfillmentMethod(id, fulfillmentMethod) {
const response = await fulfillmentMethods.updateFulfillmentMethod(
id,
fulfillmentMethod,
);
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.