Skip to main content

GiftCardBulkCreate

Create gift cards.

Added in Saleor 3.1
Requires MANAGE_GIFT_CARDpermission.

Triggers the following webhook events:

  • GIFT_CARD_CREATED (async): A gift card was created.
  • NOTIFY_USER (async): A notification for created gift card.
type GiftCardBulkCreate {
count: Int!
giftCards: [GiftCard!]!
errors: [GiftCardError!]!
}

Fields

GiftCardBulkCreate.count ● Int! non-null scalar miscellaneous

Returns how many objects were created.

GiftCardBulkCreate.giftCards ● [GiftCard!]! non-null object gift-cards

List of created gift cards.

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

Returned By

giftCardBulkCreate mutation