gift Card Product Set
Requires access scope. Also: The user must have a permission to create products.
Creates or updates a
gift card
product. This mutation is specifically designed for gift card products and automatically sets
the 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,
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: false
to receive a
object instead. Use the
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't be changed after the product is created.
Arguments
- identifier (ProductSetIdentifiers)
- input (GiftCardProductSetInput!)
- synchronous (Boolean)
- Anchor to identifieridentifier•Product
Set Identifiers Specifies the identifier that will be used to lookup the resource.
- Anchor to inputinput•Gift
Card Product Set Input! required The properties of the gift card product to create or update.
- Anchor to synchronoussynchronous•BooleanDefault:true
Whether the mutation should be run synchronously or asynchronously.
If
true, the mutation will return the updatedproduct. Iffalse, the mutation will return a.Defaults to
true.
- product (Product)
- productSetOperation (ProductSetOperation)
- userErrors ([GiftCardProductSetUserError!]!)
- Anchor to productproduct•Product
The gift card product object.
- Anchor to productSetOperationproduct•Product
Set Operation Set Operation The product set operation, returned when run in asynchronous mode.
- Anchor to userErrorsuser•[Gift
Errors Card Product Set User Error!]! non-null The list of errors that occurred from executing the mutation.