Syncing stock levels via webhook

mootpointmootpoint Member Posts: 10

We currently have an integration between LightSpeed eCom and our website where we are polling eCom for stock levels at key points (view product page, add to cart, checking out etc.) We are using some caching to reduce the number of API calls.

It seems to me that it would be much more efficient to use webhooks to keep the stock levels of the website in sync with eCom.

Which actions would be necessary to monitor to keep both inventories in sync?

Is variants/updated always triggered when a variant's stock levels change, for example if an order is made, or inventory is brought in? Or do we need to monitor other actions like orders or shipments?

1 comment

  • Ali_MasoumieAli_Masoumie Moderator, Lightspeed Staff Posts: 140 moderator


    You should be able to use the variant/updated as this will send an update on every change (so also when an order is placed or inventory is changed via the back-office).

Sign In or Register to comment.