Replacement for variant inventory_management field?

Hi there,

In the latest REST doc, it says this field should be the same as the fulfillment_service field:

However, it seems this is no longer the case as I’m only getting either “shopify” or “null” for the value. As you can see below fulfillment_service is a custom fulfillment location but inventory_management is “shopify”:

Would it be safe to assume that this field would always be either “shopify” or “null” based on whether InventoryItem.tracked is True or False?

We’re basically trying to re-create this field with thew new GraphQL APIs as the default Shopify product CSV export still includes this field (“Variant Inventory Tracker” column): https://help.shopify.com/en/manual/products/import-export/using-csv#csv-file-description

That doc mentions other valid values which aren’t mentioned in the REST API doc:

Anyone know if those docs are just outdated?

Thanks!

1 Like

If inventory_management is null then tracked field is false. If it’s not null then it’s tracked. But in 2024-07 inventory_management field will be removed under Variant resource.

2 Likes

@Merchbees Thanks for that!

That’s what I figured and it does look like the 2024-10 REST API doc is just outdated.

1 Like

Three Question:

  1. So is it save to assume that there is no exact parallel for inventory_management from REST API in GraphQL API?
  2. Can we use tracked inside ProductVariant.inventoryItem to check if the variant is managed right? Link
  3. Is there an alternative way to know if inventory is tracked or not, given that the app doesn’t have the read_inventory scope which is needed for InventoryItem?