Skip to main content

Product Variation

Class name: ProductVariation

Variations of a product are used to represent different options of the same product, such as size, color, etc. Each variation can have its own attributes and pricing.

PropertyTypeDescriptionRequired
parentIdstringThe ID of the parent productYes
attributesSelectedAttribute[]The attributes of the variationYes
pricedoubleThe price of the variationYes
salePricedoubleThe sale price of the variationYes
stockQuantityintThe quantity of the variationNo
skustringThe SKU of the variationNo