Re: inventoryActivate in Bulk mode?

inventoryActivate in Bulk mode?

DanubioBlu
Shopify Partner
13 0 6

Hi

 

I have multiple products imported in another way, in some case i need to activate a differente StorageLevel at different location.

i see the function https://shopify.dev/docs/api/admin-graphql/2023-04/mutations/inventoryActivate

 

but is only for single ItemStorage!!

 

There is a way to  ActivateInventory in a bulk way or massive?

 

thanks

Replies 5 (5)

ShopifyDevSup
Shopify Staff
1453 238 509

Hi @DanubioBlu 👋

 

The `inventoryBulkToggleActivation` mutation should modify the activation status of an inventory item at locations.

 

Hope that helps!

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

DanubioBlu
Shopify Partner
13 0 6

This Mutation can only alter one ItemStorage at time for multiple ItemStorageLevel. I don't need this. I need to active on different  (a lot ) of ItemStorage only one ItemLevel

AlexMinza
Shopify Partner
10 0 4

Another major oversight from the Shopify DEV team. ALL APIs should have their bulk counterpart to optimise integrations and avoid abusing resources and API calls budget.

 

Reference:

TheFlyingCoder
Shopify Partner
8 0 9

Also like to bump this and point out the solution doesn't help at all.

If I create a new Product with 100 variants and want to stock them at a specific location I have to make 101 API calls.

Why is there not a way to do this in bulk yet?

AlexMinza
Shopify Partner
10 0 4

The irony is that you can activate/inactivate in bulk via manual import stock CSV https://help.shopify.com/en/manual/products/inventory/getting-started-with-inventory/inventory-csv

 

  • activate - set numeric stock level
  • inactivate - set stock level to literal string "not stocked"

The number that you enter in each row can be positive, negative, or 0. You can also enter not stocked to indicate that the product is never stocked at the location.