Product Option
Requires access scope.
A product attribute that customers can choose from, such as "Size", "Color", or "Material". Product objects use options to define the different variations available for purchase. Each option has a name and a set of possible values that combine to create objects.
The option includes its display position, associated values, and optional for structured data. Options support translations for international selling and track which objects that variants actively use versus unused values that exist without associated variants.
Anchor to FieldsFields
- •ID!non-null
A globally-unique ID.
- Anchor to linkedMetafieldlinked•Linked
Metafield Metafield The metafield identifier linked to this option.
- Anchor to namename•String!non-null
The product option’s name.
- Anchor to optionValuesoption•[Product
Values Option Value!]! non-null Similar to values, option_values returns all the corresponding option value objects to the product option, including values not assigned to any variants.
- Anchor to positionposition•Int!non-null
The product option's position.
- Anchor to translationstranslations•[Translation!]!non-null
The published translations associated with the resource.
- Anchor to localelocale•String!required
Filters translations locale.
- Anchor to marketIdmarket•ID
Id Filters translations by market ID. Use this argument to retrieve content specific to a market.
Arguments
- Anchor to valuesvalues•[String!]!non-null
The corresponding value to the product option name.