Is it possible to get inventory Level id using location id?

Topic summary

  • Issue: The OP needs the inventory level ID to deactivate a product at a specific location and asks how to obtain it.

  • Answer/Update: A Shopify staff member advises retrieving it via the Admin GraphQL API by querying productVariant.inventoryItem (documentation link provided). This field leads to the inventory data needed to identify the relevant inventory level.

  • Outcome: No further debate or alternative approaches were presented; the guidance implies a straightforward solution through productVariant → inventoryItem.

  • Notes: An image was included, but the key information is in the linked API documentation. The thread appears resolved or nearing resolution.

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

to deactivate a certain location in the product, you need to have an inventory level id. How to get?

Hey @Volodya_pr ,

That’s a great question. You can get that through the productVariant.InventoryItem field.

https://shopify.dev/docs/api/admin-graphql/2024-01/objects/ProductVariant#field-productvariant-inventoryitem

Hope that helps.

  • Kyle G.