Skip to main content

OptionValue in Storefront API

A new type called ProductOptionValue has been added to the new storefront API and is nested as a new field optionValues on the ProductOption type.

As of 2024-07, you can use the optionValues field to fetch the option values associated with an option. This field deprecates the existing [values] (https://shopify.dev/docs/api/storefront/2024-04/objects/ProductOptionValue) and provides richer option value information including swatches.

Was this section helpful?