Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

Update oh hand quantity using API

Update oh hand quantity using API

arnab1
Shopify Partner
25 0 3

Hi,

 

I want to update Inventory On_hand quantity using shopify API,

I am using below API with the screenshot but i am unable to update on hand quantity

Please suggest me what i can change to get 

arnab1_0-1698834007038.png

 

 

Replies 2 (2)

Liam
Community Manager
3108 344 910

Hi Arnab1,

 

Just to confirm, when you run this API call are you seeing inventory updating but you want to specify that just on-hand inventory is updated? If so, you'll likely need to use the `inventory_levels` endpoint rather than `inventory_items`. Our dev docs here provide an example of how to use the the `inventory_levels` endpoint to adjust the inventory level of an inventory item at a specific location.

 

Hope this helps!

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

arnab1
Shopify Partner
25 0 3

Using Inventory Level i am able to update Inventory Avalable not its not update on hand .

Can you share me a example please?