New Shopify Certification now available: Liquid Storefronts for Theme Developers

InventoryItem.find() returning an empty list - Python Shopify API

2 0 0

In my python script, I get the first product in my store and then I use the product id to get the inventory information:


id = shopify.Product.find(limit=1)[0].id



The returned id is valid but when I attempt to call InventoryItem, an empty list is returned. Why is this happening? I have the access_scopes set to 'read_inventory'


shopify.Session(shop_url='url', version="2023-01", token='my_token', access_scopes=["read_inventory"])




Replies 0 (0)