Hi,
Correct, it’s the stock levels on product variations.
I am sending this body:
{
"manage_stock": true,
"stock_quantity": 78
}
As PUT to this endpoint: …wp-json/wc/v3/products/2214/variations/2217/
Getting nice response:
…
"manage_stock": true,
"stock_quantity": 78,
"stock_status": "instock",
"backorders": "no",
"backorders_allowed": false,
"backordered": false,
"low_stock_amount": null,
…
But when doing get against same endpoint 5 sec later (or instantly) i see old stock:
…
"manage_stock": true,
"stock_quantity": 58,
"stock_status": "instock",
"backorders": "no",
"backorders_allowed": false,
"backordered": false,
"low_stock_amount": null,
…
I am able to update the parent item. I have played around with parent item setup (setting stock to 100, setting to nothing, setting manage stock to false/true) nothing works.