Skip to main content
object

Requires read_gift_cards access scope.

Represents an error that happens during the execution of a gift card mutation.

•GiftCardErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!
non-null

The error message.


Was this section helpful?

•mutation

Creates a new GiftCard with a specified initial value. You can assign the gift card to a Customer or create it without assignment for manual distribution.

You can customize the gift card with an optional code, expiration date, and internal note. If you don't provide a code, the system generates a random 16 character alphanumeric code. The mutation also supports scheduling gift card notifications to recipients, with a personalized message, through the recipientAttributes field on the GiftCardCreateInput input object.

Arguments

•GiftCardCreateInput!
required

The input fields to create a gift card.



Was this section helpful?


Was this section helpful?