Stock number issues with Rest API and webhooks
-
Hi,
We use a service that syncs the stock between the webshop and a physics store.
When a stock number is changed in this service, the Rest API is used to update the product’s stock status in the webshop.
We use Webhooks to update stock status in this service when a product is updated.Unfortunately, we find that webhook sends the old stock number over to the service when a product is updated using the Rest API.
We have been in contact with WooCommerce support and unfortunately they could not help us.
Are there any who have experienced something similar and possibly have a solution to the problem or how we can supress the webhook?
Or are there some who know if it is possible to stop a webhook to be run if a product has been updated through the Rest API, and possibly have a guide on how to do this?
- The topic ‘Stock number issues with Rest API and webhooks’ is closed to new replies.