Skip to main content
Anchor to GiftCardProductVariantSetInput

GiftCardProductVariantSetInput

input_object

The input fields for specifying a gift card product variant to create or update with the giftCardProductSet 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.

•String

The value of the barcode associated with the product.

•FileSetInput

The file to associate with the variant.

Complexity cost: 0.6 per variant file.

Any file specified here must also be specified in the files input for the product.

•ID

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

•[MetafieldInput!]

Additional customizable information about the product variant.

Complexity cost: 0.4 per variant metafield.

•[VariantOptionValueInput!]!
required

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

•Int

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

•Money

The price of the variant.

•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.


Was this section helpful?

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 giftCardProductSet 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.


Was this section helpful?