Skip to main content
Skip to main content

AdminPostProductsProductVariantsReq

The details of the product variant to create.

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 product variant.
upcstring
The UPC number of the product variant.
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.

Default: true

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.

Default: []

Was this section helpful?