---
displayed_sidebar: homepage
---

import ParameterTypes from "@site/src/components/ParameterTypes"

# AdminPostProductsProductVariantsReq

## Properties

<ParameterTypes parameters={[
  {
    "name": "allow_backorder",
    "type": "`boolean`",
    "description": "Whether the product variant can be purchased when out of stock.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "barcode",
    "type": "`string`",
    "description": "A generic GTIN field of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "ean",
    "type": "`string`",
    "description": "The EAN number of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "height",
    "type": "`number`",
    "description": "The height of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "hs_code",
    "type": "`string`",
    "description": "The Harmonized System code of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "inventory_quantity",
    "type": "`number`",
    "description": "The amount of stock kept of the product variant.",
    "optional": true,
    "defaultValue": "0",
    "expandable": false,
    "children": []
  },
  {
    "name": "length",
    "type": "`number`",
    "description": "The length of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "manage_inventory",
    "type": "`boolean`",
    "description": "Whether Medusa should keep track of the inventory of this product variant.",
    "optional": true,
    "defaultValue": "true",
    "expandable": false,
    "children": []
  },
  {
    "name": "material",
    "type": "`string`",
    "description": "The material composition of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "metadata",
    "type": "`Record<string, unknown>`",
    "description": "An optional set of key-value pairs with additional information.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "mid_code",
    "type": "`string`",
    "description": "The Manufacturer Identification code of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "options",
    "type": "[ProductVariantOptionReq](medusa.ProductVariantOptionReq.mdx)[]",
    "description": "An array of Product Option values that the variant corresponds to.",
    "optional": true,
    "defaultValue": "[]",
    "expandable": false,
    "children": [
      {
        "name": "option_id",
        "type": "`string`",
        "description": "The ID of the Product Option.",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "value",
        "type": "`string`",
        "description": "A value to give to the Product Option.",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      }
    ]
  },
  {
    "name": "origin_country",
    "type": "`string`",
    "description": "The country of origin of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "prices",
    "type": "[ProductVariantPricesCreateReq](medusa.ProductVariantPricesCreateReq.mdx)[]",
    "description": "An array of product variant prices. A product variant can have different prices for each region or currency code.",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": [
      {
        "name": "amount",
        "type": "`number`",
        "description": "The price amount.",
        "optional": false,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "currency_code",
        "type": "`string`",
        "description": "The 3 character ISO currency code the price will be used in. This is only required if `region\\_id` is not provided.",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "max_quantity",
        "type": "`number`",
        "description": "The maximum quantity required to be added to the cart for the price to be used.",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "min_quantity",
        "type": "`number`",
        "description": "The minimum quantity required to be added to the cart for the price to be used.",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      },
      {
        "name": "region_id",
        "type": "`string`",
        "description": "The ID of the Region the price will be used in. This is only required if `currency\\_code` is not provided.",
        "optional": true,
        "defaultValue": "",
        "expandable": false,
        "children": []
      }
    ]
  },
  {
    "name": "sku",
    "type": "`string`",
    "description": "The unique SKU of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "title",
    "type": "`string`",
    "description": "The title of the product variant.",
    "optional": false,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "upc",
    "type": "`string`",
    "description": "The UPC number of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "weight",
    "type": "`number`",
    "description": "The wieght of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  },
  {
    "name": "width",
    "type": "`number`",
    "description": "The width of the product variant.",
    "optional": true,
    "defaultValue": "",
    "expandable": false,
    "children": []
  }
]} expandUrl="https://docs.medusajs.com/development/entities/repositories#retrieving-a-list-of-records"/>
