Happening now | Office Hours: Customizing Your Theme With Moeed | Ask your questions now!
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.

Even though I am updating without setting the inventory_quantity, the existing value is rewritten.

Even though I am updating without setting the inventory_quantity, the existing value is rewritten.

aoao
Tourist
10 0 2

This matter seems it has yet to been resolved.
https://community.shopify.com/c/shopify-apis-and-sdks/why-inventory-quantity-is-still-writable-in-pr...

 

If you don't set that field, "inventory_quantity", the quantity is initialized by 0 that means default value. I also tried to set Null.
This must be a bug only for API because if you upload any product via CSV file and set blank that field(Variant Inventory Qty), the quantity remains.
I'd like to keep the quantity as well in case of API. I need your further investigation.

Replies 0 (0)