Anchor to giftCardCreategift
mutationgift Card Create
Requires access scope.
Creates a new 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 field on the input object.
Anchor to Arguments
Arguments
- Anchor to inputinput•Gift
Card Create Input! required The input fields to create a gift card.
Was this section helpful?
- Anchor to giftCardgift•Gift
Card Card The created gift card.
- Anchor to giftCardCodegift•String
Card Code The created gift card's code.
- Anchor to userErrorsuser•[Gift
Errors Card User Error!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?