- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
BaseProductVariant
Properties#
id
stringThe variant's ID.
title
null | stringThe variant's title.
sku
null | stringThe variant's SKU.
barcode
null | stringThe variant's barcode.
ean
null | stringThe variant's EAN.
upc
null | stringThe variant's UPC.
allow_backorder
null | booleanWhether the variant can be ordered even if it's out of stock.
manage_inventory
null | booleanWhether Medusa manages the variant's inventory. If disabled, the variant
is always considered in stock.
hs_code
null | stringThe variant's HS code.
origin_country
null | stringThe variant's origin country.
mid_code
null | stringThe variant's MID code.
material
null | stringThe variant's material.
weight
null | numberThe variant's weight.
length
null | numberThe variant's length.
height
null | numberThe variant's height.
width
null | numberThe variant's width.
options
null | BaseProductOptionValue[]The variant's values for the product's options.
options
null | BaseProductOptionValue[]created_at
stringThe date the variant was created.
updated_at
stringThe date the variant was updated.
deleted_at
null | stringThe date the variant was deleted.
inventory_quantity
numberOptionalThe variant's inventory quantity if
manage_inventory
is enabled.variant_rank
null | numberOptionalThe variant's ranking among its siblings.
The variant's product.
product_id
stringOptionalThe ID of the product that the variant belongs to.
The variant's calculated price for the provided context.
metadata
null | Record<string, unknown>OptionalKey-value pairs of custom data.
Was this page helpful?