Update inventory available quantity but onHand changes

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

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

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

Hey @BrownTheFlower :waving_hand: - 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). 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 :slight_smile:

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