---
title: "ProductOption"
description: "商品规格，例如颜色、尺寸、和材质。"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-option'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-option.md'
---
# ProductOption

商品规格，例如颜色、尺寸、和材质。

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

## Fields

* `valuesImages`

  [[KeyValue]](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/key-value.md)

  规格值与对应图片 URL 的映射关系。

* `name`

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

  规格的名称。

* `id`

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

  规格的唯一标识 ID。

* `values`

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

  规格值列表。

* `optionValues`

  [[ProductOptionValue]!](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product-option-value.md)

  商品规格值列表。

* `hideSingleValueOption`

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

  表明是否隐藏单值规格。
  
  - `true`：隐藏
  - `false`：显示

## Field from

* [Product](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/products/objects/product.md).options

