Skip to main content

Variant

type Variant {
id: ID!
attributes: [ProductAttributeValue!]
barcodeList: [String!]
bundleSettings: BundleSettingsModel
fileId: String
hsCode: String
images: [ProductImage!]
isActive: Boolean!
prices: [ProductPrice!]!
sellIfOutOfStock: Boolean
sku: String
stocks: [ProductStockLocation!]
unit: VariantUnitModel
variantValueIds: [VariantValueRelation!]
weight: Float
}

Fields

idID!required

List of variant attributes.

barcodeList[String!]

List of barcode for the variant.

bundleSettingsBundleSettingsModel

Show the product bundle settings.

fileIdString

Id of product file.

hsCodeString

Hs code of the variant.

List of images for variant.

isActiveBoolean!required

Whether the variant is active or not.

prices[ProductPrice!]!required

List of prices for the variant.

sellIfOutOfStockBoolean

Whether to sell if variant is out of stock or not.

SKU of the variant.

Translations for the product.

List of variant value ids.

weightFloat

Weight of the variant.