We’re currently using API version 2024-01, I know old, but are in the process of testing all our API calls that we’ve switched to graphQL. That said, our bulk inventory update, which runs multiple times per day on the same inventory items, uses the 2024-01 inventoryActivate mutation e.g.
mutation MultipleInventoryUpdates( $locationId: ID! ) { inventoryUpdateResult_1: inventoryActivate ( locationId:$locationId ,inventoryItemId:"gid://shopify/InventoryItem/48822742778075" ,available:462 ) { ...inventoryFields } inventoryUpdateResult_2: inventoryActivate ( locationId:$locationId ,inventoryItemId:"gid://shopify/InventoryItem/48822744875227" ,available:317 ) { ...inventoryFields } } fragment inventoryFields on InventoryActivatePayload { inventoryLevel { location { name } item { id, sku } quantities(names: ["available"]) { quantity } } userErrors { field message } }
This works on many stores currently, but when trying to perform this mutation on a new store we’re working with, we get this error:
"Not allowed to set available quantity when the item is already active at the location."
During development of converting all our REST to GraphQL, we found we get this error on version 2025-04 and found that we get this same error and have to migrate to the inventorySetQuantities
mutation.
But why are we getting this error that occurs in 2025-04 when we call the 2024-01 endpoint? Is it that we’re grandfathered in for now on the existing stores, but on the new store, since this version is not supported, it behind the scenes is using the latest api version? (Is there a way, in the response maybe, to request the API version used to verify?)