Inventory Level
Requires access scope.
The quantities of an inventory item that are related to a specific location. Learn more about the relationships between inventory objects.
Anchor to Fields and connectionsFields and connections
- Anchor to canDeactivatecan•Boolean!non-null
Deactivate 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.
- Anchor to locationlocation•Location!non-null
The location associated with the inventory level.
- Anchor to quantitiesquantities•[Inventory
Quantity!]!non-null Quantities for the requested names.
- Anchor to scheduledChangesscheduled•Inventory
Changes Scheduled Change Connection!non-null Scheduled changes for the requested quantity names.
- Anchor to updatedAtupdated•Date
At Time!non-null The date and time when the inventory level was updated.
Anchor to MutationsMutations
- •mutation
Activate an inventory item at a location.
- Anchor to availableavailable•Int
The initial available quantity of the inventory item being activated at the location.
- Anchor to inventoryItemIdinventory•ID!required
Item Id The ID of the inventory item to activate.
- Anchor to locationIdlocation•ID!required
Id The ID of the location of the inventory item being activated.
- Anchor to onHandon•Int
Hand The initial on_hand quantity of the inventory item being activated at the location.
- Anchor to stockAtLegacyLocationstock•BooleanDefault:false
At Legacy Location Allow activation at or away from fulfillment service location with sku sharing off. This will deactivate inventory at all other locations.
Arguments
- Anchor to inventoryLevelinventory•Inventory
Level Level The inventory level that was activated.
- Anchor to userErrorsuser•[User
Errors Error!]!non-null The list of errors that occurred from executing the mutation.
Fields
- •mutation
Modify the activation status of an inventory item at locations. Activating an inventory item at a particular location allows that location to stock that inventory item. Deactivating an inventory item at a location removes the inventory item's quantities and turns off the inventory item from that location.
- Anchor to inventoryItemIdinventory•ID!required
Item Id The ID of the inventory item to modify the activation status locations for.
- Anchor to inventoryItemUpdatesinventory•[Inventory
Item Updates Bulk Toggle Activation Input!]!required A list of pairs of locations and activate status to update for the specified inventory item.
Arguments
- Anchor to inventoryIteminventory•Inventory
Item Item The inventory item that was updated.
- Anchor to inventoryLevelsinventory•[Inventory
Levels Level!] The activated inventory levels.
- Anchor to userErrorsuser•[Inventory
Errors Bulk Toggle Activation User Error!]!non-null The list of errors that occurred from executing the mutation.
Fields