> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/products/llms.txt)
> Source: https://docs.saleor.io/api-reference/products/inputs/product-variant-create-input

# ProductVariantCreateInput Input Type

No description

```graphql
input ProductVariantCreateInput {
  attributes: [AttributeValueInput!]!
  sku: String
  name: String
  trackInventory: Boolean
  weight: WeightScalar
  preorder: PreorderSettingsInput @deprecated
  quantityLimitPerCustomer: Int
  metadata: [MetadataInput!]
  privateMetadata: [MetadataInput!]
  externalReference: String
  product: ID!
  stocks: [StockInput!]
}
```

<a id="fields"></a>

### Fields

<a id="attributes"></a>

#### [`attributes`](#attributes) ● [`[AttributeValueInput!]!`](/api-reference/attributes/inputs/attribute-value-input.md)

List of attributes specific to this variant.

<a id="sku"></a>

#### [`sku`](#sku) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Stock keeping unit.

<a id="name"></a>

#### [`name`](#name) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Variant name.

<a id="track-inventory"></a>

#### [`trackInventory`](#track-inventory) ● [`Boolean`](/api-reference/miscellaneous/scalars/boolean.md)

Determines if the inventory of this variant should be tracked. If false, the quantity won't change when customers buy this item. If the field is not provided, `Shop.trackInventoryByDefault` will be used.

<a id="weight"></a>

#### [`weight`](#weight) ● [`WeightScalar`](/api-reference/miscellaneous/scalars/weight-scalar.md)

Weight of the Product Variant.

<a id="quantity-limit-per-customer"></a>

#### [`quantityLimitPerCustomer`](#quantity-limit-per-customer) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.

<a id="metadata"></a>

#### [`metadata`](#metadata) ● [`[MetadataInput!]`](/api-reference/miscellaneous/inputs/metadata-input.md)

Fields required to update the product variant metadata. Can be read by any API client authorized to read the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

<a id="private-metadata"></a>

#### [`privateMetadata`](#private-metadata) ● [`[MetadataInput!]`](/api-reference/miscellaneous/inputs/metadata-input.md)

Fields required to update the product variant private metadata. Requires permissions to modify and to read the metadata of the object it's attached to.

Warning: never store sensitive information, including financial data such as credit card details.

<a id="external-reference"></a>

#### [`externalReference`](#external-reference) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

External ID of this product variant.

<a id="product"></a>

#### [`product`](#product) ● [`ID!`](/api-reference/miscellaneous/scalars/id.md)

Product ID of which type is the variant.

<a id="stocks"></a>

#### [`stocks`](#stocks) ● [`[StockInput!]`](/api-reference/products/inputs/stock-input.md)

Stocks of a product available for sale.

Show deprecatedHide deprecated

<a id="preorder"></a>

#### [`preorder`](#preorder) ● [`PreorderSettingsInput`](/api-reference/products/inputs/preorder-settings-input.md)

DEPRECATED

Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.

Determines if variant is in preorder.

<a id="member-of"></a>

### Member Of

[`productVariantCreate`](/api-reference/products/mutations/product-variant-create.md) mutation
