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
- barcode (String)
- file (FileSetInput)
- id (ID)
- metafields ([MetafieldInput!])
- optionValues ([VariantOptionValueInput!]!)
- position (Int)
- price (Money)
- published (Boolean)
- sku (String)
- Anchor to barcodebarcode•String
The value of the barcode associated with the product.
- 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.- •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.
- 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 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 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.