ProductVariantReq
constructor
Properties
titlestringRequiredThe title of the Product Variant.
An array of product variant prices. A product variant can have different prices for each region or currency code.
skustringThe unique SKU of the Product Variant.
eanstringThe EAN number of the item.
upcstringThe UPC number of the item.
barcodestringA generic GTIN field of the Product Variant.
hs_codestringThe Harmonized System code of the Product Variant.
inventory_quantitynumberThe amount of stock kept of the Product Variant.
Default: 0
allow_backorderbooleanWhether the Product Variant can be purchased when out of stock.
manage_inventorybooleanWhether Medusa should keep track of the inventory of this Product Variant.
weightnumberThe wieght of the Product Variant.
lengthnumberThe length of the Product Variant.
heightnumberThe height of the Product Variant.
widthnumberThe width of the Product Variant.
origin_countrystringThe country of origin of the Product Variant.
mid_codestringThe Manufacturer Identification code of the Product Variant.
materialstringThe material composition of the Product Variant.
metadataRecord<string, unknown>An optional set of key-value pairs with additional information.
optionsProductVariantOptionReq[]An array of Product Option values that the variant corresponds to. The option values should be added into the array in the same index as in the options field of the product.Default: []
optionsProductVariantOptionReq[]options field of the product.[]Was this section helpful?