---
title: "InventoryItemInput"
description: "Input fields for inventory items."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/inputs/inventory-item-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/inputs/inventory-item-input.md'
---
# InventoryItemInput

Input fields for inventory items.

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Input

## Type Signature

`InventoryItemInput`

## Input Fields

* `cost`

  [Decimal](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/decimal.md)

  The unit cost related to inventory items, in the store's default currency.

* `tracked`

  [Boolean](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  Indicates the tracking status of the inventory item. The inventory level can only be adjusted when the tracking status is true.

## Schema Definition

```graphql
input InventoryItemInput { 
	cost: Decimal
	tracked: Boolean 
}
```

## Input field from

* [ProductVariantInput](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/product-variant-input.md).inventoryItem

  Inventory items linked to the variant. Utilized for unit cost.

* [ProductVariantsBulkInput](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/inputs/product-variants-bulk-input.md).inventoryItem

  Inventory items linked to the variant. Utilized for unit cost.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

