Input fields used to specify the product variants to be created as part of a bulk mutation.
Fields
id ● ID
Identifies the product variant to be updated or deleted.
mediaId ● ID
The media ID associated with the variant, used exclusively for media image creation mutations. If this media ID does not exist in the product, it will be automatically synced to the product media.
compareAtPrice ● Money
The variant's original price, using the store's default currency.
harmonizedSystemCode ● String
The variant's Harmonized System (HS) code or tariff code.
requiresShipping ● Boolean
Whether the product variant requires shipping.
sku ● String
The SKU of the product variant, a case-sensitive string.
taxable ● Boolean
Whether the variant is taxed when sold.
inventoryPolicy ● ProductVariantInventoryPolicy
Whether the product variant can be ordered when inventory is depleted.
More
price ● Money
The product variant's price, using the store's default currency.
inventoryItem ● InventoryItemInput
Inventory items linked to the variant. Utilized for unit cost.
More
inventoryQuantities ● [InventoryLevelInput!]non-null
The inventory quantity at each location storing the variant. Supported only as input for the productVariantCreate mutation.
More
mediaSrc ● [String!]non-null
The media's URL linked to the product variant. This field is exclusively used in the media image creation mutation, and it will be automatically linked and synced to the product media.
weight ● Float
The product variant's weight in the unit defined by weight_unit.
options ● [String!]non-null
Custom properties used by the merchant to define the product variant.
barcode ● String
The barcode value linked to the product.
weightUnit ● WeightUnit
The measurement unit for the weight of the variant. If weight_unit is not specified, the store's default measurement unit will be applied.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Was this article helpful to you?