﻿---
title: GiftCardProductSetUserError - GraphQL Admin
description: Defines errors for GiftCardProductSet mutation.
api_version: 2026-07
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/GiftCardProductSetUserError
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/objects/GiftCardProductSetUserError.md
api_name: admin
api_type: graphql
type: object
---

# Gift​Card​Product​Set​User​Error

object

Defines errors for GiftCardProductSet mutation.

## Fields

* code

  [Gift​Card​Product​Set​User​Error​Code](https://shopify.dev/docs/api/admin-graphql/latest/enums/GiftCardProductSetUserErrorCode)

  The error code.

* field

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

  The path to the input field that caused the error.

* message

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

  non-null

  The error message.

***

## Map

No referencing types

***

## Mutations

* [gift​Card​Product​Set](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet)

  mutation

  Creates or updates a [`gift card`](https://shopify.dev/docs/api/admin-graphql/latest/objects/GiftCard) product. This mutation is specifically designed for gift card products and automatically sets the `giftCard` field to `true`, applies gift card variant defaults (non-taxable, no shipping required, inventory untracked), and omits fields that aren't relevant to gift cards.

  For list fields like [`variants`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet#arguments-input.fields.variants), the mutation performs a full replacement: it creates new entries, updates existing ones, and removes any entries not included in the input. For all other fields, only included fields change and omitted fields remain unchanged.

  You can run the mutation synchronously to receive the updated product immediately, or asynchronously by setting [`synchronous`](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet#arguments-synchronous)`: false` to receive a [`ProductSetOperation`](https://shopify.dev/docs/api/admin-graphql/latest/objects/ProductSetOperation) object instead. Use the [`productOperation`](https://shopify.dev/docs/api/admin-graphql/latest/queries/productOperation) query to check the status and retrieve the product details when running asynchronously.

  ***

  **Note:** The \<a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet#arguments-input.fields.issuanceCurrency">\<code>\<span class="PreventFireFoxApplyingGapToWBR">issuance\<wbr/>Currency\</span>\</code>\</a> and \<a href="https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet#arguments-input.fields.crossCurrencyRedeemable">\<code>\<span class="PreventFireFoxApplyingGapToWBR">cross\<wbr/>Currency\<wbr/>Redeemable\</span>\</code>\</a> fields can only be set during product creation. They can\&#39;t be changed after the product is created.

  ***

  * identifier

    [Product​Set​Identifiers](https://shopify.dev/docs/api/admin-graphql/latest/input-objects/ProductSetIdentifiers)

    ### Arguments

    Specifies the identifier that will be used to lookup the resource.

  * input

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

    required

    The properties of the gift card product to create or update.

  * synchronous

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

    Default:true

    Whether the mutation should be run synchronously or asynchronously.

    If `true`, the mutation will return the updated `product`. If `false`, the mutation will return a `productSetOperation`.

    Defaults to `true`.

  ***

***

## GiftCardProductSetUserError Mutations

### Mutated by

* [gift​Card​Product​Set](https://shopify.dev/docs/api/admin-graphql/latest/mutations/giftCardProductSet)

***

## Interfaces

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)

  interface

***

## GiftCardProductSetUserError Implements

### Implements

* [Displayable​Error](https://shopify.dev/docs/api/admin-graphql/latest/interfaces/DisplayableError)
