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.

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

Solved

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

Volodya_pr
Shopify Partner
3 0 0

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

Volodya_pr_0-1710778661228.png

 

Accepted Solution (1)

ShopifyDevSup
Shopify Staff
1453 239 534

This is an accepted solution.

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-inven...

 

Hope that helps. 

 

- Kyle G. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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

View solution in original post

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 239 534

This is an accepted solution.

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-inven...

 

Hope that helps. 

 

- Kyle G. 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us 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