Skip to main content
Skip to main content

ProductVariantReq

constructor


Properties

allow_backorderboolean
Whether the Product Variant can be purchased when out of stock.
barcodestring
A generic GTIN field of the Product Variant.
eanstring
The EAN number of the item.
heightnumber
The height of the Product Variant.
hs_codestring
The Harmonized System code of the Product Variant.
inventory_quantitynumber
The amount of stock kept of the Product Variant.

Default: 0

lengthnumber
The length of the Product Variant.
manage_inventoryboolean
Whether Medusa should keep track of the inventory of this Product Variant.
materialstring
The material composition of the Product Variant.
metadataRecord<string, unknown>
An optional set of key-value pairs with additional information.
mid_codestring
The Manufacturer Identification code of the Product Variant.
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: []

origin_countrystring
The 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.
skustring
The unique SKU of the Product Variant.
titlestringRequired
The title of the Product Variant.
upcstring
The UPC number of the item.
weightnumber
The wieght of the Product Variant.
widthnumber
The width of the Product Variant.
Was this section helpful?