To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

Bulk Update Item Inventory to absolute quantity

Cityon
New Member
2 0 1

We have 15K items and we would like to update absolute quantities for these items in bulk.

We looked at "inventoryBulkAdjustQuantityAtLocation" mutation method. But using this we can only increase and decrease the quantity.

Please can you provide solution on how we can bulk update item inventory with absolute quantities.

Reply 1 (1)
Josh
Shopify Staff
Shopify Staff
1134 84 226

Hey there, 

 

This decision was made some time ago, so admittedly I'm going off of memory here - but when creating the bulk inventory adjustment mutation that you've discovered we didn't add setting absolute values intentionally. 

 

There were several race conditions involved in bulk inventory setting, and it was very unfriendly to the platform as a whole as well. So we decided that it wasn't something that should be implemented.

Josh | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog