This article shares a possible use case your app could support, along with sample flows that could support that use case. This can be a helpful jumping-off point as you plan your app's implementation.
A restaurant owner wants to manage its fulfillment method availability through an external app. Any changes made on the app must be synced to their Wix site and vice versa.
The site owner must do the following:
The following flows require a mapping from the fulfillment methods on Wix to the fulfillment methods in the external app. Create this mapping and store it on your app's server. According to this mapping, you can sync the data between the app and the site using webhooks and API calls.
>Note: Make sure to ignore webhooks resulting from calls you have triggered so that you don't create an endless loop of updates.
After creating the mapping, you can follow these two flows to create the two-way sync:
id
of the corresponding fulfillment method in Wix according to the mapping.id
from step 1 to get the current revision of the corresponding fulfillment method object using Get Fulfillment Method. This is required when calling the Update fulfillment method endpoint on Wix.id
from step 1, call the appropriate endpoint in the Fulfillment Methods API to update the information in Wix. The endpoints are: