ProductVariantInput
input
Input fields used to specify the variant to be created or updated.
Fields
The SKU of the product variant, a case-sensitive string.
The variant's original price, using the store's default currency.
The variant's Harmonized System (HS) code or tariff code.
Indicates the variant to update, or creates a new product variant if it does not exist.
The measurement unit for the weight of the variant. If
weight_unit is not specified, the store's default measurement unit will be applied.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.
Whether the product variant requires shipping.
The product variant's weight in the unit defined by weight_unit.
The barcode value linked to the product.
Inventory items linked to the variant. Utilized for unit cost.
The product variant's price, using the store's default currency.
Custom properties used by the merchant to define the product variant.
Whether the variant is taxed when sold.
Whether the product variant can be ordered when inventory is depleted.
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.
The inventory quantity at each location storing the variant. Supported only as input for the
productVariantCreate mutation.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?