I’m trying to update Stock Qty for a Magento Product. I either create a new product or update an existing product with the same call. I do it like this: if ($product->getQty() !== ($productData['inventory'] ?? 0)) { $stockItem = $product->getStockItem(); $stockItem->assignProduct($product)->setData([ 'qty' => $productData['inventory'] ?? 0, 'is_in_stock' => 1, 'use_config_manage_stock' […]