---
title: "SelectItemInput"
description: "商品行选择信息"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/inputs/select-item-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/inputs/select-item-input.md'
---
# SelectItemInput

商品行选择信息

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

## Type Signature

`SelectItemInput`

## Input Fields

* `variantId`

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

   商品 skuId

* `select`

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

  true 选中 / false 取消选中

* `id`

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

  商品行ID

## Schema Definition

```graphql
input SelectItemInput { 
	variantId: ID
	select: Boolean!
	id: ID! 
}
```

## Input field from

* [CartItemSelectInput](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/cart/inputs/cart-item-select-input.md).selectItems

  商品行选择信息

## Error Handling

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

