AdminPostProductsProductVariantsReq
The details of the product variant to create.
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 product variant.
upcstringThe UPC number of the product variant.
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.
Default: true
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.Default: []
optionsProductVariantOptionReq[][]Was this section helpful?