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 product variant.
heightnumber
The height of the product variant.
hs_codestring
The Harmonized System code of the product variant.
idstring
The id of an existing product variant. If provided, the details of the product variant will be updated. If not, a new product variant will be created.
inventory_quantitynumber
The amount of stock kept of the product variant.
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.

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.
titlestring
The title of the product variant.
upcstring
The UPC number of the product variant.
weightnumber
The weight of the product variant.
widthnumber
The width of the product variant.
Was this section helpful?