Docs
Dashboard

ProductVariantsCreateInput

Input

Represents the input for creating a new product variant.

#

Fields


attributeValues
[ProductVariantAttributeValueInput!]

List of attribute values applied to the product variant.

barcode
String

The barcode of the product variant.

metadata
[KeyValuePairOfStringAndStringInput!]

Metadata associated with the product variant.

metafields
[MetafieldInput!]

Metafield values assigned to the product variant.

name
String!

The name of the product variant.

sku
String!

The stock keeping unit (SKU) of the product variant.

status
VariantStatus

The status of the product variant.

Possible enum values
  • ACTIVE

    The variant is available through published catalog experiences.

  • DRAFT

    The variant is retained as a draft and is not published.

weight
ProductVariantWeightInput

Specifies the weight of a variant