Variant Document (Data API 16.6)

Document representing a product variation.

Property Type Constraints Description
ats Decimal   Inventory "Available to Sell" of the product.
default_product_variation Boolean    
image Image   URL to the preview image.
in_stock Boolean   true if the product is in stock, or false if not.
link String mandatory=true, minLength=1, nullable=false The URL addressing the product.
online Boolean   If the product is currently online. true if online false if not
orderable Boolean   A flag indicating whether the variant is orderable.
price Decimal   The sales price of the variant.
price_currency String   Currency code for the price of the product.
product_id String mandatory=true, maxLength=100, minLength=1, nullable=false The id (SKU) of the variant.
searchable SiteSpecific<Boolean>    
variation_values Map[String, String]   The actual variation attribute id - value pairs.
X OCAPI obsolete versions 13.x and 14.x will be end of life in 2020 and versions 15.x and 16.x in 2021. For dates and more information, see the OCAPI versioning and deprecation policy and this Knowledge Article.
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.