Inventory Activate Payload
Return type for mutation.
Anchor to FieldsFields
- 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.
Anchor to Mutations with this payloadMutations with this payload
- •mutation
Activates an inventory item at a
Locationby creating anthat tracks stock quantities. This enables you to manage inventory for aat the specified location.When you activate an inventory item, you can set its initial quantities. The
availableargument sets the quantity that's available for sale.argument sets the total physical quantity at the location. If you don't specify quantities, thenavailableanddefault to zero.CautionAs of version
2026-01, this mutation supports an optional idempotency key using the@idempotentdirective. As of version2026-04, the idempotency key is required and must be provided using the@idempotentdirective. For more information, see the idempotency documentation.Learn more about managing inventory quantities and states.
- Anchor to inventoryItemIdinventory•ID!
Item Id required The ID of the inventory item to activate.
- Anchor to locationIdlocation•ID!
Id required The ID of the location of the inventory item being activated.
- Anchor to availableavailable•Int
The initial available quantity of the inventory item being activated at the location.
- Anchor to onHandon•Int
Hand The initial on_hand quantity of the inventory item being activated at the location.
- Anchor to stockAtLegacyLocationstock•Boolean
At Legacy Location Default:false Allow activation at or away from fulfillment service location with sku sharing off. This will deactivate inventory at all other locations.
Arguments