Gift Card Product Variant Set Input
The input fields for specifying a gift card product variant to create or update with the
mutation.
Include an
id
to update an existing variant, or omit it to create a new one. Gift card variant defaults are
applied automatically, meaning variants are set to non-taxable, don't require shipping, and their inventory is untracked.
Anchor to FieldsFields
- barcodes ([BarcodeInput!])
- file (FileSetInput)
- id (ID)
- metafields ([MetafieldInput!])
- optionValues ([VariantOptionValueInput!]!)
- position (Int)
- price (Money)
- published (Boolean)
- sku (String)
- barcode (String): deprecated
- Anchor to barcodesbarcodes•[Barcode
Input!] The barcodes to associate with the product variant. Replaces the entire barcode set. A variant accepts up to 20 barcodes, and a given variant input can't set both
barcodeandbarcodes. Refer to theobject for how these barcodes are returned.Show input fields
- Anchor to filefile•File
Set Input The file to associate with the variant.
Complexity cost: 0.6 per variant file.
Any file specified here must also be specified in the
filesinput for the product.Show input fields
- •ID
Specifies the product variant to update or create a new variant if absent.
- Anchor to metafieldsmetafields•[Metafield
Input!] Additional customizable information about the product variant.
Complexity cost: 0.4 per variant metafield.
Show input fields
- Anchor to optionValuesoption•[Variant
Values Option Value Input!]! required The custom properties that a shop owner uses to define product variants.
Show input fields
- 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 publishedpublished•Boolean
Indicates whether the product variant is created as published or unpublished. This option is only available for new product variants.
- •String
The SKU for the variant. Case-sensitive string.
- Anchor to barcodebarcode•StringDeprecated
Anchor to Input objects using this inputInput objects using this input
- •INPUT OBJECT
The input fields for creating or updating a gift card product with the
mutation.For list fields like
variants, the mutation creates new entries, updates existing ones, and deletes any entries not included in the input. All other fields update only when explicitly provided, leaving omitted fields unchanged.