---
title: "SelectedOption"
description: >
  Attributes customers use to pick a product variant. Products may offer multiple options, such as different colors or sizes.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/selected-option'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/selected-option.md'
---
# SelectedOption

Attributes customers use to pick a product variant. Products may offer multiple options, such as different colors or sizes.

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

## Type Signature

`SelectedOption`

## Fields

* `name`

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

  The name of the product option.

* `value`

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

  The value of the product option

## Schema Definition

```graphql
type SelectedOption { 
	name: String!
	value: String! 
}
```

## Field from

* [ProductVariant](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/product-variant.md).selectedOptions

  A list of options configured for the variant.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

