AdminPostProductsProductVariantsReq
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 product variant.
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.
Default: true
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.
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 product variant.
weightnumberThe wieght of the product variant.
widthnumberThe width of the product variant.
Was this section helpful?