How to add product quantity using API

Hello, I am trying to add products to my Shopify store. I am able to add them using a python script. But I don’t know how to add product quantity for each product. It will be highly appreciated if someone can help me with this.

Thanks

Hey @NF99 , to add quantities to products, you’d want to use the Inventory API. A product’s inventory is also connected to the location Shopify considers the “stocked” at, which is why it can’t be edited or update through the Product API itself. This is partly because of the way product inventory interacts with a few different components across a merchant’s store (products, fulfillment, local pickup/delivery, etc.).

There’s a bit more information on how the Inventory API works here in our docs. Let us know if we can clarify anything further - hope this helps!