- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
ProductVariant - Product Module Data Models Reference
This documentation provides a reference to the ProductVariant data model. It belongs to the Product Module.
id
PrimaryKeyModifier<IdProperty>The ID of the product variant.
title
TextPropertyThe title of the product variant
allow_backorder
BooleanPropertyWhether customers can purchase this variant even if it's out of stock.
manage_inventory
BooleanPropertyWhether Medusa manages the variant's inventory. If disabled, the variant is always considered in stock.
The associated options.
sku
TextPropertyOptionalThe SKU of the product variant
barcode
TextPropertyOptionalThe barcode of the product variant
ean
TextPropertyOptionalThe EAN of the product variant
upc
TextPropertyOptionalThe UPC of the product variant
hs_code
TextPropertyOptionalThe HS code of the product variant
origin_country
TextPropertyOptionalThe origin country of the product variant
mid_code
TextPropertyOptionalThe MID code of the product variant
material
TextPropertyOptionalThe material of the product variant
weight
NumberPropertyOptionalThe weight of the product variant
length
NumberPropertyOptionalThe length of the product variant
height
NumberPropertyOptionalThe height of the product variant
width
NumberPropertyOptionalThe width of the product variant
metadata
JSONPropertyOptionalHolds custom data in key-value pairs.
variant_rank
NumberPropertyOptionalThe variant's rank among its siblings.
The associated product.
Was this page helpful?