Update oh hand quantity using API

Topic summary

Main issue: A user needs to update the “On_hand” inventory quantity via the Shopify API but their current approach (shown in a screenshot) doesn’t change On_hand.

Suggestion provided: Use the inventory_levels endpoint (not inventory_items) to adjust inventory for a specific location. A link to Shopify’s REST Admin docs for inventory level adjustments was shared.

Latest update: After trying inventory_levels, the user can update “Available” quantity but On_hand still does not change. They requested a concrete example showing how to update On_hand specifically.

Open questions: It remains unclear whether On_hand can be directly updated via the API or if only Available can be adjusted. The thread lacks a working example demonstrating an On_hand change.

Status: Unresolved. Awaiting an example or clarification on the correct method/endpoint to modify On_hand.

Summarized with AI on January 14. AI used: gpt-5.

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

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!

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

Can you share me a example please?