Skip to main content

GiftCardDeactivate

Deactivate a gift card.

Requires MANAGE_GIFT_CARDpermission.

Triggers the following webhook events:

  • GIFT_CARD_STATUS_CHANGED (async): A gift card was deactivated.
type GiftCardDeactivate {
giftCard: GiftCard
giftCardErrors: [GiftCardError!]! @deprecated
errors: [GiftCardError!]!
}

Fields

GiftCardDeactivate.giftCard ● GiftCard object gift-cards

Deactivated gift card.

GiftCardDeactivate.giftCardErrors ● [GiftCardError!]! deprecated non-null object gift-cards

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

GiftCardDeactivate.errors ● [GiftCardError!]! non-null object gift-cards

Returned By

giftCardDeactivate mutation