The action of creating the product does not send the number of the quantity, I have tried to set also other related fields such as the stock but “stock_quantity” null
In order for the WooCommerce API to recognize a stock quantity on product creation, you must also pass it the ‘Manage Stock’ parameter, as without it, the product’s inventory management is not enabled, and therefore it does not recognize the inventory quantity sent to it.