Skip to main content

giftCards

List of gift cards.

Requires MANAGE_GIFT_CARDpermission.
giftCards(
sortBy: GiftCardSortingInput
filter: GiftCardFilterInput
search: String
before: String
after: String
first: Int
last: Int
): GiftCardCountableConnection

Arguments

giftCards.sortBy ● GiftCardSortingInput input gift-cards

Sort gift cards.

Added in Saleor 3.1

giftCards.filter ● GiftCardFilterInput input gift-cards

Filtering options for gift cards.

Added in Saleor 3.1

giftCards.search ● String scalar miscellaneous

Search gift cards by email and name of user, who created or used the gift card, and by code.

Added in Saleor 3.15
This API is currently in Feature Preview and can be subject to changes at later point.

giftCards.before ● String scalar miscellaneous

Return the elements in the list that come before the specified cursor.

giftCards.after ● String scalar miscellaneous

Return the elements in the list that come after the specified cursor.

giftCards.first ● Int scalar miscellaneous

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

giftCards.last ● Int scalar miscellaneous

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

Type

GiftCardCountableConnection object gift-cards