AdminPostProductsProductVariantsVariantReq
Properties
titlestringThe title of the product variant.
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.
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 weight 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.
pricesProductVariantPricesUpdateReq[]An array of product variant prices. A product variant can have different prices for each region or currency code.
pricesProductVariantPricesUpdateReq[]optionsProductVariantOptionReq[]An array of Product Option values that the variant corresponds to.Default: []
optionsProductVariantOptionReq[][]Was this section helpful?