Bulk update inventory quantities using inventorySetQuantities

AI-generated summary

Using the inventorySetQuantities mutation (Admin GraphQL 2024-07) to update large numbers of inventory items. The original questions: 1) how many quantity updates can be sent per request, and 2) whether it’s supported by Shopify’s Bulk Operation import.

Latest findings:

  • Bulk Operation: Not supported. A test confirmed inventorySetQuantities cannot run as a bulk mutation via the bulk operations/imports API.
  • Per-request limit: Not documented in public docs. A community reply indicates a practical limit of 250 quantity updates per request.
  • Performance report: One implementer updates ~10,000 items by batching 100 per call in about 20 seconds.

Implications/notes:

  • Large-scale updates are feasible by batching standard mutations (e.g., 100–250 per call) rather than using bulk operations.
  • There is no official confirmation on the exact maximum batch size; 250 is community guidance.

Status: Partially answered. Bulk support is ruled out; the precise, officially documented per-request limit remains unclear. The original poster may test and share results later.

Hello there,

My app requires to update inventory quantities for (potentially) thousands of inventory items at a time.

I am looking at the mutation inventorySetQuantities which is available in the GraphQL API version 2024-07 and I have a couple of questions that I can’t answer by looking at the public docs:

Thanks in advance!

Update:

For those interested, I tried to the inventorySetQuantities in a bulk mutation and it does not work. The only question to answer now is, how many quantities can I update with a single inventorySetQuantities mutation?

I may try that later and will post it.

Cheers.

I’m using inventorySetQuantities as well, the limit per request should be 250. Wish it was supported in bulk mutation though.

For anyone interested we’re able to update ~10k using this API in batches of 100 in about 20 seconds.