ProductVariantReq
Properties
allow_backorderbooleanWhether the Product Variant can be purchased when out of stock.
barcodestringA generic GTIN field of the Product Variant.
eanstringThe EAN number of the item.
heightnumberThe height 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
lengthnumberThe length of the Product Variant.
manage_inventorybooleanWhether Medusa should keep track of the inventory of this Product Variant.
materialstringThe material composition of the Product Variant.
metadataRecord<string, unknown>An optional set of key-value pairs with additional information.
mid_codestringThe Manufacturer Identification code of the Product Variant.
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.origin_countrystringThe country of origin 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.
titlestringRequiredThe title of the Product Variant.
upcstringThe UPC number of the item.
weightnumberThe wieght of the Product Variant.
widthnumberThe width of the Product Variant.
Was this section helpful?