---
title: "InventoryItemUpdateInput"
description: "Input fields for updating the inventory item."
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-update-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/inventory/inputs/inventory-item-update-input.md'
---
# InventoryItemUpdateInput

Input fields for updating the inventory item.

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

## Type Signature

`InventoryItemUpdateInput`

## Input Fields

* `countryCodeOfOrigin`

  [CountryCode](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/enums/country-code.md)

  ISO 3166-1 alpha-2 code for the item's country of origin.

* `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.

* `harmonizedSystemCode`

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

  Harmonized system code for the inventoryItem object. This number must be between six and twelve digits long.

* `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.

## Schema Definition

```graphql
input InventoryItemUpdateInput { 
	countryCodeOfOrigin: CountryCode
	tracked: Boolean
	harmonizedSystemCode: String
	cost: Decimal 
}
```

## Argument from

* [Mutation](https://developer.shopline.com/docs/admin-graph-ql-api/inventory/mutations/inventory-item-update.md).inventoryItemUpdate

  更新库存对象

## 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).

