Storefront API - Checking if product inventory is tracked

psongpin
Visitor
2 0 0

I have some products in the store that I am building using React and Shopify Storefront API. Some of them are being generated from external sources like Printify. Their inventory is not set on purpose how do we check through the storefront api if a product has "Inventory not tracked"? I checked the totalInventory field and it always returns zero. And once I make a test order it becomes negative. its value should be null right? I need help. thank you

Screen Shot 2021-01-05 at 11.00.16 AM.png

Reply 1 (1)

originmaster
Shopify Partner
42 2 17

I would also love to know if this is possible. For now I need to set up a backend route and use the Admin API which seems like overkill just to get this data.