Skip to main content

ItemProductGiftCardInput Input

Description

Input fields for gift card configuration when creating a product item that generates gift cards.

Declaration

input ItemProductGiftCardInput {
active: Boolean
codeLength: Int
prefix: String
singleSpending: Boolean
}

Fields

NameTypeDescription
activeBooleanWhether gift card generation is active for this product.
codeLengthIntLength of the generated gift card code when prefix is not provided.
prefixStringPrefix for the gift card code. If provided, a single gift card is created with this prefix as the ID.
singleSpendingBooleanWhether the gift card can only be used once. This field is deprecated; use spendingLimit instead.