Using the REST API, I’ve been able to get my product variant to use ‘track inventory’ by setting the variant’s inventory_management to “shopify”, and I’ve been able to set the inventory using the confusing InventoryLevel API.
However, I am unable to perform the equivalent of unchecking the “track quantity” checkbox via the REST API. If I try to set the variant’s inventory_management to “”, the API response indicates that inventory_management is still “shopify”
I figure I need to do something with InventoryItem and/or InventoryLevel, but the documentation for InventoryLevel “DELETE” command suggests that every InventoryItem needs to have at least one InventoryLevel, which I assume means I can’t just delete the applicable InventoryLevel object.
Does anyone know how to do this?
(Usage scenario: removing the sales limit on a product)