We are currently reimplementing the stock syncing, since now we can get data from our b2b seller about their availability. When updating stock, I send "stock_quantity", "stock_status" and "backorders" (when needed). While the "stock_quantity" is updated, the other two parameters aren't.
This is an example of data, that gets sent via PUT request.
{"stock_quantity": 25, "stock_status": "instock"}{"stock_quantity": 0, "stock_status": "onbackorder", "backorders": "notify"}{"stock_quantity": 0, "stock_status": "outofstock", "backorders": "no"}
It connects to the store without a problem, since fetching the products or updating the price works. We are not using any plugins that would interact with WooCommerce stocks. The version we are using is "wc/v3".
We are currently reimplementing the stock syncing, since now we can get data from our b2b seller about their availability. When updating stock, I send "stock_quantity", "stock_status" and "backorders" (when needed). While the "stock_quantity" is updated, the other two parameters aren't.
This is an example of data, that gets sent via PUT request.
{"stock_quantity": 25, "stock_status": "instock"}
{"stock_quantity": 0, "stock_status": "onbackorder", "backorders": "notify"}
{"stock_quantity": 0, "stock_status": "outofstock", "backorders": "no"}
It connects to the store without a problem, since fetching the products or updating the price works. We are not using any plugins that would interact with WooCommerce stocks. The version we are using is "wc/v3".