Hello @ShopifyDevSup
I am looking into the same, not sure why we have to use inventoryAdjustQuantities instead of inventoryBulkAdjustQuantityAtLocation if both does the same.
mutation MyMutation {
inventoryAdjustQuantities(
input: {reason: "received", name: "available", changes: [
{delta: 15, inventoryItemId: "gid://shopify/InventoryItem/{id}", locationId: "gid://shopify/Location/{id}"},
{delta: -10, inventoryItemId: "gid://shopify/InventoryItem/{id}", locationId: "gid://shopify/Location/{id}"}
]},
) {
userErrors {
field
message
}
inventoryAdjustmentGroup {
createdAt
id
changes {
item {
inventoryLevels(first: 100) {
nodes {
item {
sku
}
}
}
}
}
}
}
}
And I am not exactly sure how to get the response with quantity, SKU and barcode. I am getting same SKU twice in the inventoryLevels response.
Thanks,
Lily