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
| Name | Type | Description |
|---|---|---|
active | Boolean | Whether gift card generation is active for this product. |
codeLength | Int | Length of the generated gift card code when prefix is not provided. |
prefix | String | Prefix for the gift card code. If provided, a single gift card is created with this prefix as the ID. |
singleSpending | Boolean | Whether the gift card can only be used once. This field is deprecated; use spendingLimit instead. |