inventory Level
Retrieves an inventory level
by its ID. An inventory level exists for an inventory item at each location
that stocks it. Each inventory level has a quantities
field to read the inventory quantity by name. Quantity names represent the inventory states
that merchants use to track inventory.
The and Location objects each have an field. Use it to find the ID of an
inventory level.
Learn more about inventory object relationships.
Arguments
- id (ID!)
- •ID!required
The ID of the
to return.
Anchor to Possible returnsPossible returns
- InventoryLevel (InventoryLevel)
- Anchor to InventoryLevelInventory•Inventory
Level Level The quantities of an inventory item at a specific location. Each inventory level connects one
to oneLocation, tracking multiple quantity states like available, on-hand, incoming, and committed.The
quantitiesfield provides access to different inventory states. Learn more about inventory states and relationships.Show fields
- Anchor to canDeactivatecan•Boolean!
Deactivate non-null Whether the inventory items associated with the inventory level can be deactivated.
- Anchor to createdAtcreated•Date
At Time! non-null The date and time when the inventory level was created.
- Anchor to deactivationAlertdeactivation•String
Alert Describes either the impact of deactivating the inventory level, or why the inventory level can't be deactivated.
- •ID!non-null
A globally-unique ID.
- Anchor to itemitem•Inventory
Item! non-null Inventory item associated with the inventory level.
Show fields
- Anchor to locationlocation•Location!non-null
The location associated with the inventory level.
Show fields
- Anchor to quantitiesquantities•[Inventory
Quantity!]! non-null The quantity of an inventory item at a specific location, for a quantity name.
Show fields
- Anchor to namesnames•[String!]!required
The names of the requested inventory quantities.
Arguments
- Anchor to updatedAtupdated•Date
At Time! non-null The date and time when the inventory level was updated.
- Anchor to scheduledChangesscheduled•Inventory
Changes Scheduled Change Connection! non-nullDeprecated Show fields
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to queryquery•String
A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
- Anchor to sortKeysort•Scheduled
Key Change Sort Keys Default:ID Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.
Show enum values
Arguments