Skip to main content
Skip to main content

ProductVariantReq

constructor


Properties

titlestringRequired
The title 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.
eanstring
The EAN number of the item.
upcstring
The UPC number of the item.
barcodestring
A generic GTIN field 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

allow_backorderboolean
Whether the Product Variant can be purchased when out of stock.
manage_inventoryboolean
Whether Medusa should keep track of the inventory of this Product Variant.
weightnumber
The wieght of the Product Variant.
lengthnumber
The length of the Product Variant.
heightnumber
The height of the Product Variant.
widthnumber
The width of the Product Variant.
origin_countrystring
The country of origin of the Product Variant.
mid_codestring
The Manufacturer Identification code of the Product Variant.
materialstring
The material composition of the Product Variant.
metadataRecord<string, unknown>
An optional set of key-value pairs with additional information.
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: []

Was this section helpful?