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