Skip to main content
object

Requires read_gift_cards access scope.

Represents an issued gift card.

Anchor to Fields and connectionsFields and connections

•MoneyV2!non-null

The gift card's remaining balance.

•DateTime!non-null

The date and time at which the gift card was created.

•Customer

The customer who will receive the gift card.

•DateTime

The date and time at which the gift card was deactivated.

•Boolean!non-null

Whether the gift card is enabled.

•Date

The date at which the gift card will expire.

•ID!non-null

A globally-unique ID.

•MoneyV2!non-null

The initial value of the gift card.

•String!non-null

The final four characters of the gift card code.

•String!non-null

The gift card code. Everything but the final four characters is masked.

•String

The note associated with the gift card, which isn't visible to the customer.

•Order

The order associated with the gift card. This value is null if the gift card was issued manually.

•GiftCardRecipient

The recipient who will receive the gift card.

•String

The theme template used to render the gift card online.

•GiftCardTransactionConnection

The transaction history of the gift card.

•DateTime!non-null

The date and time at which the gift card was updated.


Was this section helpful?

•query

Returns a gift card resource by ID.

•query

Returns a list of gift cards.


Was this section helpful?

•mutation

Create a gift card.

Arguments

•GiftCardCreateInput!required

The input fields to create a gift card.


Fields

•GiftCard

The created gift card.

•String

The created gift card's code.

•[GiftCardUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Deactivate a gift card. A deactivated gift card cannot be used by a customer. A deactivated gift card cannot be re-enabled.

Arguments

•ID!required

The ID of the gift card to deactivate.


Fields

•GiftCard

The deactivated gift card.

•[GiftCardDeactivateUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Send notification to the customer of a gift card.

Arguments

•ID!required

The ID of the gift card to send.


Fields

•GiftCard

The gift card that was sent.

•[GiftCardSendNotificationToCustomerUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Send notification to the recipient of a gift card.

Arguments

•ID!required

The ID of the gift card to send.


Fields

•GiftCard

The gift card that was sent.

•[GiftCardSendNotificationToRecipientUserError!]!non-null

The list of errors that occurred from executing the mutation.

•mutation

Update a gift card.

Arguments

•ID!required

The ID of the gift card to be updated.

•GiftCardUpdateInput!required

The input fields to update the gift card.


Fields

•GiftCard

The updated gift card.

•[UserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

•interface

Was this section helpful?
OSZAR »