Anchor to GiftCardUserErrorGift
objectGift Card User Error
Requires access scope.
Represents an error that happens during the execution of a gift card mutation.
Anchor to FieldsFields
- code (GiftCardErrorCode)
- field ([String!])
- message (String!)
- Anchor to codecode•Gift
Card Error Code The error code.
- Anchor to fieldfield•[String!]
The path to the input field that caused the error.
- Anchor to messagemessage•String!non-null
The error message.
Was this section helpful?
Anchor to MutationsMutations
- giftCardCreate (GiftCardCreatePayload)
- •mutation
Creates a new
with a specified initial value. You can assign the gift card to aCustomeror 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 theinput object.- Anchor to inputinput•Gift
Card Create Input! required The input fields to create a gift card.
Arguments
Was this section helpful?