The product variant-related input fields.
Fields
inventoryItem ● InventoryItemInput
Input information for inventory items corresponding to the product variant.
More
taxable ● Boolean
Indicates whether the variant is subject to tax.
  • true: Tax is required.
  • false: Tax is not required.
Default value: true
inventoryPolicy ● ProductVariantInventoryPolicy
Indicates whether the variant is allowed to be oversold.
More
weight ● Float
The weight of the variant. The value must be greater than 0,and rounded up to two decimal places.
mediaId ● ID
The unique ID of the media associated with the product variant. This field is used to link or create media during a mutation. If the media ID is not associated with the product, the system will automatically synchronize the media to the product's media library.
Maximum length: 64
inventoryQuantities ● [InventoryLevelInput!]non-null
The total inventory quantity of the product variant across all storage locations. This field is only supported as an input parameter for the productVariantCreate mutation.
More
mediaSrc ● [String!]non-null
The URL of the media resource for the product variant.
harmonizedSystemCode ● String
The variant's Harmonized System (HS) code or tariff code.
requiresShipping ● Boolean
Indicates whether the variant requires shipping.
  • true: Shipping is required.
  • false: Shipping is not required.
Default value: true
price ● Money
The selling price of the variant. The value is rounded to two decimal places.
Default value: 0
options ● [String!]non-null
Product variant options.
id ● ID
The unique ID of the product variant. It is used to specify the product variant to be updated. If the specified product variant does not exist, the system will create a new one.
Maximum length: 64
sku ● String
The product SKU.
Maximum length: 255
barcode ● String
The barcode of the variant.
Maximum length: 255
weightUnit ● WeightUnit
The unit of weight for the variant.
More
compareAtPrice ● Money
The original price of the variant. The value is rounded to two decimal places.
Default value: 0
Map
Input field from
ProductVariantInput
Was this article helpful to you?