--- title: InventoryQuantityInput - GraphQL Admin description: The input fields for the quantity to be set for an inventory item at a location. api_version: 2025-10 api_name: admin type: input-object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/input-objects/InventoryQuantityInput md: https://shopify.dev/docs/api/admin-graphql/latest/input-objects/InventoryQuantityInput.md --- # Inventory​Quantity​Input input\_object The input fields for the quantity to be set for an inventory item at a location. ## Fields * compare​Quantity [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int) The current quantity to be compared against the persisted quantity. * inventory​Item​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) non-null Specifies the inventory item to which the quantity will be set. * location​Id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) non-null Specifies the location at which the quantity will be set. * quantity [Int!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int) non-null The quantity to which the inventory quantity will be set. *** ## Input objects using this input * [Inventory​Set​Quantities​Input.quantities](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/InventorySetQuantitiesInput#fields-quantities) INPUT OBJECT The input fields required to set inventory quantities. *** ## Map ### Input objects using this input * [Inventory​Set​Quantities​Input.quantities](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/InventorySetQuantitiesInput#fields-quantities)