---
title: "ProductOptionValue"
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/products-and-collections/objects/product-option-value'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/objects/product-option-value.md'
---
# ProductOptionValue

产品选项的名称，例如，“红色”、“蓝色”和“绿色”用于“颜色”选项。

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

## Type Signature

`ProductOptionValue`

## Fields

* `id`

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

  通用唯一标识符

* `name`

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

  产品选项的名称

## Schema Definition

```graphql
type ProductOptionValue { 
	id: ID!
	name: String! 
}
```

## Field from

* [ProductOption](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/products-and-collections/objects/product-option.md).optionValues

  表示返回产品所有的选项值对象

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

