Do Shopify products have to be marked as "tracked by shopify" for api changes to reflect?

Topic summary

Whether products must be “Tracked by Shopify” for API updates, specifically inventory updates. Initial reply said tracking is unrelated to API changes. However, when attempting to update stock via API, an error occurred: “Inventory item does not have inventory tracking enabled.”

Key clarification:

  • Inventory updates through the API require inventory tracking to be enabled per variant via the inventory_management field.
  • Valid values: null (not tracked) or shopify (tracked by Shopify). Updates to inventory levels work only when inventory_management = “shopify”.

How to fix:

  • Send a PUT request to the product endpoint (e.g., /admin/api/2023-07/products/{product_id}.json) setting variants.inventory_management = “shopify”. A JSON example was provided in the thread.

Outcome: Issue resolved after enabling tracking for the relevant variants. The thread confirms the requirement for “Tracked by Shopify” when updating inventory via API; no broader documentation link was provided.

Summarized with AI on January 12. AI used: gpt-5.

Many thanks for the reply Topnewyork, that was the answer I was hoping for.

Do you have a link to any Shopify API documentation that specifies this? As I couldn’t seem to find this mentioned anywhere when I looked.