Webhook/Subscription for Retail API

rickyeckhardtrickyeckhardt Member Posts: 2

Does the Retail API support a webhook or have a subscription to watch for inventory changes?


I have a third-party app, Fitted Retail, that needs to watch for changes in inventory and then push those changes to a 3rd party app.


Is this interaction possible using the Retail API?

Tags:

2 comments

  • Ali_MasoumieAli_Masoumie Moderator, Lightspeed Staff Posts: 109 moderator

    Unfortunately, webhooks are not available for Retail yet.

    You can use the Item endpoint and load the ItemShops as a relation to get the inventory levels. To find items whose inventory has changed you can check the ItemShop's timestamp. Example:

    /Item.json?load_relations=["ItemShops"]&ItemShops.timeStamp=>,2021-05-01T00:00:00
    


  • rickyeckhardtrickyeckhardt Member Posts: 2

    Thank you for the reply.

    I'll work with that.

Sign In or Register to comment.