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

Stovents
Visitor
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
shopify.InventoryItem.find(ids=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"])

 

 

Thanks.

Replies 0 (0)