---
title: GiftCardProductVariantSetInput - GraphQL Admin
description: >-
  The input fields for specifying a gift card product variant to create or
  update with the

  [`giftCardProductSet`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet)

  mutation.


  Include an

  [`id`](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductSetVariantInput#field-GiftCardProductSetVariantInput.fields.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.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductVariantSetInput
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductVariantSetInput.md
api_name: admin
api_type: graphql
type: input-object
---

# Gift​Card​Product​Variant​Set​Input

input\_object

The input fields for specifying a gift card product variant to create or update with the [`giftCardProductSet`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet) mutation.

Include an [`id`](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductSetVariantInput#field-GiftCardProductSetVariantInput.fields.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.

## Fields

* barcodes

  [\[Barcode​Input!\]](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/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`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductVariantBarcode) object for how these barcodes are returned.

* file

  [File​Set​Input](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/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

  [ID](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID)

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

* metafields

  [\[Metafield​Input!\]](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/MetafieldInput)

  Additional customizable information about the product variant.

  Complexity cost: 0.4 per variant metafield.

* option​Values

  [\[Variant​Option​Value​Input!\]!](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/VariantOptionValueInput)

  required

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

* position

  [Int](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Int)

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

* price

  [Money](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Money)

  The price of the variant.

* published

  [Boolean](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean)

  Indicates whether the product variant is created as published or unpublished. This option is only available for new product variants.

* sku

  [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  The SKU for the variant. Case-sensitive string.

* barcode

  [String](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String)

  Deprecated

***

## Input objects using this input

* [Gift​Card​Product​Set​Input.variants](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductSetInput#fields-variants)

  INPUT OBJECT

  The input fields for creating or updating a gift card product with the [`giftCardProductSet`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet) mutation.

  For list fields like [`variants`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet#arguments-input.fields.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.

***

## Map

### Input objects using this input

* [Gift​Card​Product​Set​Input.variants](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/GiftCardProductSetInput#fields-variants)
