timeStamp not getting updated on a sale
Hello,
I've noticed that an item's <timeStamp> tag is not getting updated whenever a sale is completed in Lightspeed (and the inventory get decremented). I believe this used to be the case but now I see that there are <timeStamp> tags on the ItemShop relation and that those tags get updated whenever a sale completes and the inventory gets decrement.
I think the inconsistency comes from when I manually decrement or increment inventory of an item using the UI and that seems to update the Item's <timeStamp> tag, but this does not happen when a sale is completed.
This is somewhat inconvenient for integrations since querying via the API seems like it's limited to an item's <timeStamp> field. Is there a way to change the query so it looks at the <timeStamp> fields of the related ItemShops?
Also, is this the behavior that's going to exist moving forward? Is there a way we can also update the Item's <timeStamp> tag to reflect a change in its inventory?
1 comment
Nevermind, I found this: https://developers.lightspeedhq.com/retail/tutorials/inventory/
However I feel like that's not always been there and it would still be nice if the Item.timeStamp was updated as well as the ItemShops.timeStamp.