Hi,
Looking at your documentation, we are trying to understand what are the best practices for syncing data into our database. In order to avoid a full scan (and api rate limits) of the inventory items we were thinking to utilize (as per your recommendation):
1. Webhooks
2. modifiedTime
However, the problems we see are the following:
1. Webhooks are only for inventory items and not for modifier groups / modifiers. Which means that relying on webhooks will not be sufficient to make sure our database is up to date.
2. Similarly, calling the inventory items api with modifiedTime as the filter will give us items that were updated but possibly items that have not be modified have modifier groups / modifiers that have been updated.
3. Deleted objects are not returned in the apis.
For #1, I do think it makes sense not to rely on it completely but have the benefit of "real time" updates to our database.
For #2, It seems like we need to make separate "modified only" calls: one for inventory items, one for modifiers groups and one for modifiers This is the only way to make sure we know which objects have been modified since our last sync.
For #3, It seems like we need to get all objects by ids and ones that are not returned, deduct they are deleted. Similar to #2, it seems like we need to make separate "modified only" calls: one for inventory items, one for modifiers groups and one for modifiers.
Please let me know if you have any suggestions or best practices we can follow.
Thank you, Ofir