I am working on a project to integrate Jiwa with a webstore that to say the least is a fairly painful product but the customer chose it, one of the issues that exists is that to update inventory it's an all or nothing scenario and by that I mean to update an inventory item you have to update everything including the images, don't include the images and they get cleared.
Currently the inventory is being updated on a periodic basis based upon a stored last run date time and looking at when an inventory item was last updated and then the idea was to update all items at a given interval to sync the SOH, however then I thought of using the stock level webhook to avoid the update all for SOH, but the problem is both options could be fairly data intensive i.e. if an item goes on five orders one after the other that will send 5 updates one after the other and updating everything also will be a lot of data.
The idea I have is that is if I still go with update of inventory periodically but use the Stock Level Changed event to touch an inventory item and cause its last saved property to update, that way if the SOH update runs say once an hour for five sales orders with the same product it will be one update but it will also avoid the update all for SOH.
Could this be made to work?