- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
AdminCreateProductVariant
Properties#
title
stringThe variant's title.
prices
AdminCreateProductVariantPrice[]The variant's prices.
prices
AdminCreateProductVariantPrice[]sku
stringOptionalThe variant's SKU.
ean
stringOptionalThe variant's EAN.
upc
stringOptionalThe variant's UPC.
barcode
stringOptionalThe variant's barcode.
hs_code
stringOptionalThe variant's HS code.
mid_code
stringOptionalThe variant's MID code.
allow_backorder
booleanOptionalWhether the variant can be ordered even if it's out of stock.
manage_inventory
booleanOptionalWhether Medusa manages the variant's inventory. If disabled,
the variant is always considered in stock.
variant_rank
numberOptionalThe variant's ranking among its sibling variants.
weight
numberOptionalThe variant's weight.
length
numberOptionalThe variant's length.
height
numberOptionalThe variant's height.
width
numberOptionalThe variant's width.
origin_country
stringOptionalThe variant's origin country.
material
stringOptionalThe variant's material.
metadata
Record<string, unknown>OptionalKey-value pairs of custom data.
The variant's inventory items. It's only
available if manage_inventory
is enabled.
manage_inventory
is enabled.options
Record<string, string>OptionalThe variant's values for the associated product's options.
Was this page helpful?