---
title: InventoryActivatePayload - GraphQL Admin
description: Return type for `inventoryActivate` mutation.
api_version: 2025-07
api_name: admin
type: payload
api_type: graphql
source_url:
html: https://shopify.dev/docs/api/admin-graphql/2025-07/payloads/inventoryactivatepayload
md: https://shopify.dev/docs/api/admin-graphql/2025-07/payloads/inventoryactivatepayload.md
---
# InventoryActivatePayload
payload
Return type for `inventoryActivate` mutation.
## Fields
* inventoryLevel
[InventoryLevel](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/InventoryLevel)
The inventory level that was activated.
* userErrors
[\[UserError!\]!](https://shopify.dev/docs/api/admin-graphql/2025-07/objects/UserError)
non-null
The list of errors that occurred from executing the mutation.
***
## Mutations with this payload
* [inventoryActivate](https://shopify.dev/docs/api/admin-graphql/2025-07/mutations/inventoryActivate)
mutation
Activates an inventory item at a [`Location`](https://shopify.dev/docs/api/admin-graphql/latest/objects/Location) by creating an [`InventoryLevel`](https://shopify.dev/docs/api/admin-graphql/latest/objects/InventoryLevel) that tracks stock quantities. This enables you to manage inventory for a [`ProductVariant`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariant) at the specified location.
When you activate an inventory item, you can set its initial quantities. The [`available`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryActivate#arguments-available) argument sets the quantity that's available for sale. [`onHand`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/inventoryActivate#arguments-onHand) argument sets the total physical quantity at the location. If you don't specify quantities, then `available` and `onHand` default to zero.
***
**Caution:** As of version \2026-01\, this mutation supports an optional idempotency key using the \@idempotent\ directive. As of version \2026-04\, the idempotency key is required and must be provided using the \@idempotent\ directive. For more information, see the \idempotency documentation\.
***
Learn more about [managing inventory quantities and states](https://shopify.dev/docs/apps/build/orders-fulfillment/inventory-management-apps/manage-quantities-states).
* inventoryItemId
[ID!](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID)
required
### Arguments
The ID of the inventory item to activate.
* locationId
[ID!](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/ID)
required
The ID of the location of the inventory item being activated.
* available
[Int](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/Int)
The initial available quantity of the inventory item being activated at the location.
* onHand
[Int](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/Int)
The initial on\_hand quantity of the inventory item being activated at the location.
* stockAtLegacyLocation
[Boolean](https://shopify.dev/docs/api/admin-graphql/2025-07/scalars/Boolean)
Default:false
Allow activation at or away from fulfillment service location with sku sharing off. This will deactivate inventory at all other locations.
***
***
## Map
### Mutations with this payload
* [inventoryActivate](https://shopify.dev/docs/api/admin-graphql/2025-07/types/inventoryActivate)