lastUpdated of inventory item

I want to use Wix Stores API to periodically get updates on inventory changes. There’s a lastUpdated field on the inventory item, but unfortunately, it doesn’t seem to update when the inventory count is changed manually. What exactly lastUpdated of inventory item means? Is it updated when a product is purchased?

Thanks!

Hello.

I don’t know what lastUpdated field you are referring to. However, you can track your store product inventory using onInventoryItemUpdated . Using this function in events.js will allow you to get updates on inventory when you update inventory manually or an item is purchased from your store.

Good luck!