Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

Updating Quantities in Multiple Location in Bulk

Updating Quantities in Multiple Location in Bulk

Notified
Shopify Partner
11 1 0

Background

============

We have a large number of products which makes the use of REST impossible to create or update, so looks like using GraphQL is the only option for us.

 

We have multiple warehouses  across North America which fulfill our orders.

 

To create or update some aspects of our products and variants we used productCreate or productUpdate mutations , both of which are white listed for Bulk Operations .

 

The Problem 

=============

The immediate problem I have is that inventoryQuantities , a member of ProductVariantInput is only an input while creating variants. This means we can supply values for all warehouses at the time of creation , but since we sell on other marketplaces, we need to update these values , which according to the document , and in practice we cant due to the limitation that input is only used at the time of creation of variant.

 

Through inventoryItem, we can find Objects like InventoryQuantity, but I cant see a way to update these using a bulk operation in 2024-01 version of the GraphQL API.

 

 

Another problem is that even the above method  will be deprecated in [2024-04] and I don't see another method to do it via bulk operation .

 

Any help in the regard is greatly appreciated.

 

 

Replies 0 (0)