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.

•[BarcodeInput!]

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 barcode and barcodes. Refer to the ProductVariantBarcode object for how these barcodes are returned.

Show input fields
•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.

Show input fields
•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.

Show input fields
•[VariantOptionValueInput!]!
required

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

Show input fields
•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.

•String
Deprecated

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?