This article shares a possible use case your app could support, as well as an example flow. You're certainly not limited to this use case, but it can be a helpful jumping off point as you plan your app's implementation.
In order to enable site owners to sync their external POS with Wix Restaurants Orders data, your app will need to retrieve each new order that is placed in Wix Restaurants. Then you can create a mapping to keep the order statuses synced.
Sign up for the New Order Domain Event.
Create a mapping between Wix Restaurants and the external POS. Store the mapping on your servers.
Get notified when a new order has been placed on Wix Restaurants and add it to the mapping.
Add the order to the external POS.
Note: Make sure to include both Wix Restaurants orderId
and external order ID in the mapping.
Change the order status on Wix Restaurants according to events in the external POS. Use the Accept Order, Fulfill Order, and Cancel Order endpoints.