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.

API call to list tracked inventory items

API call to list tracked inventory items

hanvari
Shopify Partner
2 0 0

Hi,

 

I'm looking to get the list of all the inventory items with "tracked" flag set to true through the API.

I could use the following GQL query to get the list of inventory items including "tracked" property, but if I'm looking for a way to provide it as a filter upfront to only get what I need, rather than retrieving all unneeded data and filtering locally:

```

{
  inventoryItems(first:100) {
    nodes {
      id
      sku
      tracked
    }
  }
}
```
 
Is there any GQL or REST API options for what I'm looking for?
Replies 0 (0)