Product Variant Set Input
The input fields for specifying a product variant to create or update.
Anchor to FieldsFields
- Anchor to barcodebarcode•String
The value of the barcode associated with the product.
- Anchor to compareAtPricecompare•Money
At Price The compare-at price of the variant.
- •ID
Specifies the product variant to update or create a new variant if absent.
- Anchor to inventoryIteminventory•Inventory
Item Item Input The inventory item associated with the variant, used for unit cost.
- Anchor to inventoryPolicyinventory•Product
Policy Variant Inventory Policy Whether customers are allowed to place an order for the product variant when it's out of stock. Defaults to
.
- Anchor to metafieldsmetafields•[Metafield
Input!] Additional customizable information about the product variant.
- Anchor to optionValuesoption•[Variant
Values Option Value Input!]!required The custom properties that a shop owner uses to define product variants.
- Anchor to positionposition•Int
The order of the product variant in the list of product variants. The first position in the list is 1.
- Anchor to priceprice•Money
The price of the variant.
- Anchor to requiresComponentsrequires•Boolean
Components Whether a product variant requires components. The default value is
false
. Iftrue
, 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.- •String
The SKU for the variant. Case-sensitive string.
- Anchor to taxabletaxable•Boolean
Whether the variant is taxable.
- Anchor to taxCodetax•String
Code The tax code associated with the variant.
- Anchor to mediaIdmedia•IDDeprecated
Id
Anchor to Input objects using this inputInput objects using this input
- •INPUT OBJECT
A list of variants associated with the product.