Skip to main content

GiftCardAssignUser Object

Restrict a gift card so only the given customer can use it.

Added in Saleor 3.23.

Requires the MANAGE_GIFT_CARDpermission.

Triggers the following webhook events:

  • GIFT_CARD_UPDATED (async): A gift card was updated.
type GiftCardAssignUser {
giftCard: GiftCard
giftCardErrors: [GiftCardError!]! @deprecated
errors: [GiftCardError!]!
}

Fields​

giftCard ● GiftCard​

The assigned gift card.

errors ● [GiftCardError!]!​

Show deprecatedHide deprecated

giftCardErrors ● [GiftCardError!]!​

DEPRECATED

Use errors field instead.

Returned By​

giftCardAssignUser mutation