ProductVariantReq
constructor
Properties
allow_backorder
booleanWhether the Product Variant can be purchased when out of stock.
barcode
stringA generic GTIN field of the Product Variant.
ean
stringThe EAN number of the item.
height
numberThe height of the Product Variant.
hs_code
stringThe Harmonized System code of the Product Variant.
inventory_quantity
numberThe amount of stock kept of the Product Variant.
Default: 0
length
numberThe length of the Product Variant.
manage_inventory
booleanWhether Medusa should keep track of the inventory of this Product Variant.
material
stringThe material composition of the Product Variant.
metadata
Record<string, unknown>An optional set of key-value pairs with additional information.
mid_code
stringThe Manufacturer Identification code of the Product Variant.
options
ProductVariantOptionReq[]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: []
options
ProductVariantOptionReq[]options
field of the product.[]
origin_country
stringThe 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.
sku
stringThe unique SKU of the Product Variant.
title
stringRequiredThe title of the Product Variant.
upc
stringThe UPC number of the item.
weight
numberThe wieght of the Product Variant.
width
numberThe width of the Product Variant.
Was this section helpful?