SBProductVariant
This object represents a product variant in your business. Product variants allow you to define different versions of the same product with unique attributes like size, color, or other characteristics.
Attribute | Description | Type | Required |
---|---|---|---|
id | Unique identifier of the variant | integer | Yes |
productId | ID of the parent product | integer | Yes |
name | Name of the variant | string | No |
slug | URL-friendly identifier | string | No |
taxable | Whether the variant is taxable | boolean | No |
weight | Weight of the variant | decimal | No |
weightUnit | Unit of weight measurement | string | No |
price | Current price | decimal | Yes |
initialPrice | Original/initial price | decimal | No |
sku | Stock Keeping Unit | string | No |
upc | Universal Product Code | string | No |
gtin | Global Trade Item Number | string | No |
createdAt | Creation timestamp | datetime | Yes |
updatedAt | Last update timestamp | datetime | No |