---
title: "InventoryItemUpdateInput"
description: "更新库存对象的输入字段。"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/inventory/inputs/inventory-item-update-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/inventory/inputs/inventory-item-update-input.md'
---
# InventoryItemUpdateInput

更新库存对象的输入字段。

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

## Type Signature

`InventoryItemUpdateInput`

## Input Fields

* `harmonizedSystemCode`

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

  库存项目的统一系统代码。该数字必须是 6 到 12 位之间的数字。

* `cost`

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

  以店铺默认货币计算的库存项目单位成本

* `countryCodeOfOrigin`

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

  按照 ISO 3166-1 alpha-2 规范，标明该库存项目来源地的国家/地区代码

* `tracked`

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

  指示库存项目的追踪状态，追踪状态的值为 true 时，才能调整产品的库存水平

## Schema Definition

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

## Argument from

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

  更新库存对象

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

