ProductVariantInput

Show definition
input ProductVariantInput {
  barcode: String
  compareAtPrice: Money
  fulfillmentServiceId: ID
  harmonizedSystemCode: String

  # Specifies the product variant to update or create a new variant if absent.
  id: ID
  imageId: ID
  inventoryManagement: ProductVariantInventoryManagement
  inventoryPolicy: ProductVariantInventoryPolicy

  # Create only field. Use inventory_quantity_adjustment for updates.
  inventoryQuantity: Int

  # Deprecated: Use the `inventoryAdjustQuantity` mutation instead. This argument
  # is deprecated: Use the `inventoryAdjustQuantity` mutation instead.
  inventoryQuantityAdjustment: Int

  # Create only field. Inventory quantities at each location the variant is stocked at.
  inventoryQuantities: [InventoryLevelInput!]
  metafields: [MetafieldInput!]
  options: [String!]
  position: Int
  price: Money

  # Create only required field. Specifies the product on which to create the variant.
  productId: ID
  requiresShipping: Boolean
  sku: String
  taxable: Boolean

  # This argument is deprecated: Variant title is not a writable field; it is generated from the selected variant options.
  title: String
  taxCode: String
  weight: Float
  weightUnit: WeightUnit
}

Input Fields

barcode   (String)

compareAtPrice   (Money)

fulfillmentServiceId   (ID)

harmonizedSystemCode   (String)

id   (ID)

Specifies the product variant to update or create a new variant if absent.

imageId   (ID)

inventoryManagement   (ProductVariantInventoryManagement)

inventoryPolicy   (ProductVariantInventoryPolicy)

inventoryQuantities   ([InventoryLevelInput!])

Create only field. Inventory quantities at each location the variant is stocked at.

inventoryQuantity   (Int)

Create only field. Use inventory_quantity_adjustment for updates.

inventoryQuantityAdjustment   (Int)

Deprecated: Use the inventoryAdjustQuantity mutation instead. This argument is deprecated: Use the inventoryAdjustQuantity mutation instead.

metafields   ([MetafieldInput!])

options   ([String!])

position   (Int)

price   (Money)

productId   (ID)

Create only required field. Specifies the product on which to create the variant.

requiresShipping   (Boolean)

sku   (String)

taxCode   (String)

taxable   (Boolean)

title   (String)

This argument is deprecated: Variant title is not a writable field; it is generated from the selected variant options.

weight   (Float)

weightUnit   (WeightUnit)