Skip to main content
Version: 3.x

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

Sort gift cards.

Added in Saleor 3.1

giftCards.filter ● GiftCardFilterInput input

Filtering options for gift cards.

Added in Saleor 3.1

giftCards.search ● String scalar

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

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

giftCards.after ● String scalar

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

giftCards.first ● Int scalar

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

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


Was this page helpful?