Skip to main content

ProductGiftCard Object

Description​

Gift card configuration for product items.

Declaration​

type ProductGiftCard {
active: Boolean
codeLength: Int
prefix: String
singleSpending: Boolean
generateVoucherOnSale: Boolean
}

Fields​

NameTypeDescription
activeBooleanWhether gift card generation is active for this product.
codeLengthIntLength of the gift card code to generate.
prefixStringPrefix to add to generated gift card codes.
singleSpendingBooleanWhether the gift card can only be used once.
generateVoucherOnSaleBooleanWhether to automatically generate a voucher when the product is sold.