Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to ProductVariantSetInput

ProductVariantSetInput

input_object

The input fields for specifying a product variant to create or update.

•

The value of the barcode associated with the product.

•

The compare-at price of the variant.

•

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

•

The inventory item associated with the variant, used for unit cost.

•

Whether customers are allowed to place an order for the product variant when it's out of stock. Defaults to DENY.

•

Additional customizable information about the product variant.

•

The custom properties that a shop owner uses to define product variants.

•

The order of the product variant in the list of product variants. The first position in the list is 1.

•

The price of the variant.

•

Whether a product variant requires components. The default value is false. If true, then the product variant can only be purchased as a parent bundle with components and it will be omitted from channels that don't support bundles.

•

The SKU for the variant. Case-sensitive string.

•

Whether the variant is taxable.

•

The tax code associated with the variant.

Show
deprecated fields Deprecated
Anchor to harmonizedSystemCodeharmonizedSystemCode
•
StringDeprecated

The Harmonized System code (or HS Tariff code) for the variant. Inventory fields should be updated via inventory APIs

•
IDDeprecated

The ID of the media to associate with the variant. In 2024-10 and newer versions, use file instead.

•
BooleanDeprecated

Whether the variant requires shipping. Inventory fields should be updated via inventory APIs

•
FloatDeprecated

The weight of the variant. Inventory fields should be updated via inventory APIs

•
WeightUnitDeprecated

The unit of weight that's used to measure the variant. Inventory fields should be updated via inventory APIs


Was this section helpful?

Anchor to Input objects using this inputInput objects using this input

•
INPUT OBJECT

A list of variants associated with the product.


Was this section helpful?