I would like to be able to update my inventory via the Shopify API. All the docs I see only mention using the product ID. This leads me to ask the following...
- How can I get a list of the Product ID's for my all my products? Or can I look up using a SKU or other identifier to get these ID's?
- Can I not just update the inventory using the SKU, or other identifier?
Any pointers would be much appreciated thanks.
I would start by reading through this document here to get an idea of the relationship between inventory, locations, products etc. https://help.shopify.com/en/api/reference/inventory/inventorylevel
You will need the variant ID - this is a unique identifier. You can query your products for their ID such as https://help.shopify.com/en/api/reference/products/product#index-2020-01
Vix | Developer Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution