woocommerce / woocommerce-rest-api

This is the WooCommerce core REST API Package. It runs standalone as a feature plugin too.
71 stars 46 forks source link

Problem with updating backorders and stock_status #255

Closed LjuAdmir closed 3 years ago

LjuAdmir commented 3 years ago

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".

LjuAdmir commented 3 years ago

I'm closing this, since it looks like it's connected to Python WooCommerce module. And posting the problem there.