Input fields used to specify the variant to be created or updated.
Fields
sku ● String
The SKU of the product variant, a case-sensitive string.
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.
id ● ID
Indicates the variant to update, or creates a new product variant if it does not exist.
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
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.
requiresShipping ● Boolean
Whether the product variant requires shipping.
weight ● Float
The product variant's weight in the unit defined by weight_unit.
barcode ● String
The barcode value linked to the product.
inventoryItem ● InventoryItemInput
Inventory items linked to the variant. Utilized for unit cost.
More
price ● Money
The product variant's price, using the store's default currency.
options ● [String!]non-null
Custom properties used by the merchant to define the product variant.
taxable ● Boolean
Whether the variant is taxed when sold.
inventoryPolicy ● ProductVariantInventoryPolicy
Whether the product variant can be ordered when inventory is depleted.
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.
inventoryQuantities ● [InventoryLevelInput!]non-null
The inventory quantity at each location storing the variant. Supported only as input for the productVariantCreate mutation.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Map
Input field from
ProductVariantInput
Was this article helpful to you?