# Update inventory available quantity but onHand changes

**URL:** <https://community.shopify.dev/t/update-inventory-available-quantity-but-onhand-changes/13374>\
**Category:** GraphQL Admin API Troubleshooting\
**Tags:** general-gql-troubles\
**Created:** [April 11, 2025, 8:36am UTC](https://community.shopify.dev/t/update-inventory-available-quantity-but-onhand-changes/13374 "2025-04-11T08:36:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrownTheFlower](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/browntheflower/32/4300_2.png) [@BrownTheFlower](https://community.shopify.dev/u/BrownTheFlower)\
**Post date:** [April 11, 2025, 8:36am UTC](https://community.shopify.dev/t/update-inventory-available-quantity-but-onhand-changes/13374/1 "2025-04-11T08:36:04Z")

</div>

i’m using inventorySetQuantities to update my inventory quantity. I saw name field (only accepts ‘available’ or ‘on\_hand’) on input but when i pass one of them, they updated both

```auto
mutation UpdateProductQuantity {
      inventorySetQuantities(
        input: {
          name: "${name}",
          reason: "correction"
          quantities: [
            {
              inventoryItemId: "${inventoryId}"
              locationId: "${locationId}",
              quantity: ${quantity}
            }
          ],
          ignoreCompareQuantity: true
        }
      ) {
        inventoryAdjustmentGroup {
          id
          reason
          changes {
            name
            delta
            quantityAfterChange
          }
        }
        userErrors {
          field
          message
        }
      }
    }

```

this is the changes on above response  
 ![image](https://global.discourse-cdn.com/shopifycommunity/original/2X/0/03f3978f446ed2fcc05d30529d95966e047c65ce.png)

And im using inventoryActive in case this is not stocked. Should i use this for above case.

---

<div class="post-metadata">

**Author:** ![Alan\_G](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/alan_g/32/5321_2.png) [@Alan\_G](https://community.shopify.dev/u/Alan_G)\
**Post date:** [April 11, 2025, 4:44pm UTC](https://community.shopify.dev/t/update-inventory-available-quantity-but-onhand-changes/13374/2 "2025-04-11T16:44:25Z")

</div>

Hey @BrownTheFlower 👋 - hopefully I’m understanding correctly, but are you just concerned that both fields are updating at the same time? If so, I can confirm this is expected behaviour ([a bit more info here](https://help.shopify.com/en/manual/products/inventory/managing-inventory-quantities/inventory-states#on-hand)). Basically, when you edit the **On hand** quantity, your **Available** quantity changes by the same amount. The same rules for the Merchant Admin UI apply within the API there.

Hope this helps - let me know if I can clarify anything on our end 🙂

---

<div class="post-metadata">

**Author:** ![Liam-Shopify](https://sea1.discourse-cdn.com/shopifycommunity/user_avatar/community.shopify.dev/liam-shopify/32/6_2.png) [@Liam-Shopify](https://community.shopify.dev/u/Liam-Shopify)\
**Post date:** [April 18, 2025, 5:47am UTC](https://community.shopify.dev/t/update-inventory-available-quantity-but-onhand-changes/13374/3 "2025-04-18T05:47:47Z")

</div>

Hi @BrownTheFlower - are you still experiencing an issue here or can I mark this as solved?
