question

andyslater99 avatar image
andyslater99 asked andyslater99 commented

Web Hook for Stock Movement?

Hey all, I was wondering if the Product web hook gets triggered when the stock level changes in Clover? e.g. someone makes a sale in in store, stock goes from say 10 to 9, does the web hook trigger so that we can update that stock level on the external system?

Thanks!?

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

andyslater99 avatar image andyslater99 commented ·

Does anyone monitor this? On the Google group things were answered, but on this new DevAsk forum things seem to be ignored?

0 Likes 0 ·

1 Answer

Jacob Abrams avatar image
Jacob Abrams answered andyslater99 commented

Hi Andy, we do monitor this forum, you are at the right place! We don't have a web hook for item stock unfortunately. I will create a ticket with our server team to investigate creating one, but it might be a while before it is implemented. In the mean time your best bet is to implement a sync mechanism where your server periodically calls the GET /v3/merchants/{mId}/item_stocks endpoint. If you want to optimize this operation so it doesn't get every single item-stock entry every time you can filter by modifiedTime to just get those entries that have changed since the last time you checked.

UPDATE: We do actually use the inventory webhook when inventory changes due to orders being processed. However there is bug that it is not invoked when the v3 item_stock endpoint is updated. That is being fixed and should be rolled out in the next month or so. You will still probably want to implement some kind of mechanism using the modifiedTime to just retrieve changes rather than everything.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

andyslater99 avatar image andyslater99 commented ·

Hey Jacob, thanks for the info! Sorry for the comment earlier, had mounting pressure at this end to make some updates.

0 Likes 0 ·

Welcome to the
Clover Developer Community