Skip to main content
Anchor to GiftCardProductSetInput

GiftCardProductSetInput

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.

•[ID!]

The IDs of collections that this product will be a member of.

Anchor to crossCurrencyRedeemablecrossCurrencyRedeemable
•Boolean

Whether gift cards fulfilled from this product are redeemable in any payment currency supported by the store.

Note This value can't be changed after the product is created.

•String

The description of the product, with HTML tags. For example, the description might include bold <strong></strong> and italic <i></i> text.

•[FileSetInput!]

The files to associate with the product.

Complexity cost: 1.9 per file.

Anchor to giftCardTemplateSuffixgiftCardTemplateSuffix
•String

The theme template that's used when customers view a gift card in a store.

•String

A unique, human-readable string that's used to identify the product in URLs. A handle can contain letters, hyphens (-), and numbers, but no spaces. If no handle is explicitly provided, then the title is used to construct the product's handle. For example, if a product is titled "Black Sunglasses" and no handle is provided, then the handle black-sunglasses is generated (unless that handle is already taken, in which case a suffix is added to make the handle unique).

•CurrencyCode

The issuance currency for gift cards fulfilled from this product.

Note This value can't be changed after the product is created.

•[MetafieldInput!]

The metafields to associate with this product.

Complexity cost: 0.4 per metafield.

•[OptionSetInput!]

List of custom product options and option values (maximum of 3 per product).

•String

The product type that merchants define.

•Boolean

Whether a redirect is required after a new handle has been provided. If true, then the old handle is redirected to the new one automatically.

•SEOInput

The SEO title and description that are associated with a product.

•ProductStatus

The status of the product.

•[String!]

A list of searchable keywords that are associated with the product. For example, a merchant might apply the sports and summer tags to products that are associated with sportwear for summer.

Updating tags overwrites any existing tags that were previously added to the product. To add new tags without overwriting existing tags, use the tagsAdd mutation.

•String

The theme template that's used when customers view a product in a store.

•String

The name for the product that displays to customers. If no handle is explicitly provided, then the title is used to construct the product's handle. For example, if a product is titled "Black Sunglasses" and no handle is provided, then the handle black-sunglasses is generated.

•[GiftCardProductVariantSetInput!]

A list of variants associated with the gift card product.

Complexity cost: 0.2 per variant.

•String

The name of the product's vendor.


Was this section helpful?

Anchor to Mutations using this inputMutations using this input


Was this section helpful?