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.
| Property | Type | Description | Required |
|---|---|---|---|
| parentId | string | The ID of the parent product | Yes |
| attributes | SelectedAttribute[] | The attributes of the variation | Yes |
| price | double | The price of the variation | Yes |
| salePrice | double | The sale price of the variation | Yes |
| stockQuantity | int | The quantity of the variation | No |
| sku | string | The SKU of the variation | No |