---
title: "InventoryLevelInput"
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-level-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/inventory/inputs/inventory-level-input.md'
---
# InventoryLevelInput

用于录入库存数量的输入字段。

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

## Type Signature

`InventoryLevelInput`

## Input Fields

* `availableQuantity`

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

  特定位置的库存项目的可用数量

* `locationId`

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

  位置的 ID

## Schema Definition

```graphql
input InventoryLevelInput { 
	availableQuantity: Int!
	locationId: ID! 
}
```

## Input field from

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

  存储变体的每个位置的库存数量。仅支持作为`productVariantCreate` 突变的输入。

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

  存储变体的每个位置的库存数量。仅支持作为`productVariantCreate` 突变的输入

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

