> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Gift Card Products

# Type: Gift Card Product Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/gift-cards/gift-card-products/gift-card-product-object.md

## Description: A gift card product is a template that defines what a purchasable gift card looks like, including
its name, description, image, available denominations, and expiration policy.
When a customer buys a gift card, an individual gift card instance is created
based on the product's configuration.

## Schema:

```json
 Type: Gift Card Product Object | type: GiftCardProduct
 Description: A gift card product is a template that defines what a purchasable gift card looks like, including
its name, description, image, available denominations, and expiration policy.
When a customer buys a gift card, an individual gift card instance is created
based on the product's configuration.
       - name: id  | type: string | description: Gift card product ID.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the gift card product is updated. To prevent conflicting changes, the current revision must be passed when updating the gift card product.  Ignored when creating a gift card product.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the gift card product was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the gift card product was last updated.
       - name: name  | type: string | description: Gift card product name.
       - name: description  | type: string | description: Gift card product description.
       - name: image  | type: Image | description: Gift card product image. Only images from the Wix Media Manager are supported. To use an external image, first upload it to the Wix Media Manager.  When setting the image, you must provide at least `id`, `width`, and `height`. The `id` is the file name from the image URL. For example, for `https://static.wixstatic.com/media/5cc69183e7954e2c9760fa2383870992.jpg`, the `id` is `5cc69183e7954e2c9760fa2383870992.jpg`.
           - name: id  | type: string | description: WixMedia image ID.
           - name: url  | type: string | description: WixMedia image ID.
           - name: height  | type: number | description: Original image height.
           - name: width  | type: number | description: Original image width.
           - name: altText  | type: string | description: Image alt text.
           - name: filename  | type: string | description: Image filename.
       - name: expirationType  | type: string | description: Expiration type for gift cards created from this product.
           enum: NONE, FIXED, RELATIVE
       - name: presetVariants  | type: Array<PresetVariant> | description: List of preset variants with predefined denominations that buyers can choose from. A product can have both preset variants and a custom variant.  When updating, the entire list is replaced. There's no way to update an individual preset variant.
           - name: id  | type: string | description: Preset variant ID.
           - name: price  | type: MultiCurrencyPrice | description: Price the buyer pays for the gift card. The currency is the site's default currency.
               - name: amount  | type: string | description: Amount.
               - name: convertedAmount  | type: string | description: Converted amount.
               - name: formattedAmount  | type: string | description: Amount formatted with currency symbol.
               - name: formattedConvertedAmount  | type: string | description: Converted amount formatted with currency symbol.
           - name: value  | type: MultiCurrencyPrice | description: Balance loaded onto the gift card. Can differ from `price` to support promotional pricing. For example, a gift card with a `value` of $50 could have a `price` of $45.
           - name: image  | type: Image | description: Variant-level image that overrides the product-level image. Only images from the Wix Media Manager are supported. To use an external image, first upload it to the Wix Media Manager.  When setting the image, you must provide at least `id`, `width`, and `height`. The `id` is the file name from the image URL. For example, for `https://static.wixstatic.com/media/5cc69183e7954e2c9760fa2383870992.jpg`, the `id` is `5cc69183e7954e2c9760fa2383870992.jpg`.
       - name: customVariant  | type: CustomVariant | description: Custom variant that allows buyers to choose their own gift card amount within a defined range. A product can have both preset variants and a custom variant.
           - name: minValue  | type: MultiCurrencyPrice | description: Minimum gift card amount a buyer can choose. The currency is the site's default currency.
           - name: maxValue  | type: MultiCurrencyPrice | description: Maximum gift card amount a buyer can choose. The currency is the site's default currency.
           - name: image  | type: Image | description: Variant-level image that overrides the product-level image. Only images from the Wix Media Manager are supported. To use an external image, first upload it to the Wix Media Manager.  When setting the image, you must provide at least `id`, `width`, and `height`. The `id` is the file name from the image URL. For example, for `https://static.wixstatic.com/media/5cc69183e7954e2c9760fa2383870992.jpg`, the `id` is `5cc69183e7954e2c9760fa2383870992.jpg`.
       - name: extendedFields  | type: ExtendedFields | description: Custom field data for the gift card product object.  [Extended fields](https://dev.wix.com/docs/build-apps/develop-your-app/extensions/backend-extensions/schema-plugins/about-schema-plugin-extensions.md) must be configured in the app dashboard before they can be accessed with API calls.
           - name: namespaces  | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).
       - ONE-OF:
           - name: fixedExpirationDate  | type: string | description: Fixed expiration date for all gift cards created from this product.
           - name: relativeExpirationDate  | type: RelativeExpirationDate | description: Expiration period relative to the date of purchase.
               - name: value  | type: number | description: Number of time periods until expiration. For example, a `value` of `6` with a `period` of `MONTHS` means the gift card expires 6 months after purchase.
               - name: period  | type: string | description: Unit of time for the expiration period.
                   enum: DAYS, WEEKS, MONTHS, YEARS

```