> 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: Program

# Type: Program Object

# Link: https://dev.wix.com/docs/api-reference/crm/loyalty-program/loyalty-program-management/program/program-object.md

## Description: A loyalty program allows sites to maintain customer reward accounts. Wix users can create a
loyalty program to increase customer retention. Read more about the [loyalty program](https://support.wix.com/en/article/wix-loyalty-program-an-overview).

## Schema:

```json
 Type: Program Object | type: LoyaltyProgram
 Description: A loyalty program allows sites to maintain customer reward accounts. Wix users can create a
loyalty program to increase customer retention. Read more about the [loyalty program](https://support.wix.com/en/article/wix-loyalty-program-an-overview).
       - name: name  | type: string | description: Program name.
           - name: value  | type: string | description: 
       - name: pointDefinition  | type: PointDefinition | description: Details about the program's collectible unit.
           - name: customName  | type: string | description: Display name for the program's collectible unit.  It's recommended to use a plural, for example `"Stars"`.  In contrast to a custom name, the default `"Points"` name is translated and adjusted to singular based on circumstances.  Default: `"Points"`.
           - name: icon  | type: Image | description: Details about the points icon.
               - name: id  | type: string | description: WixMedia image ID.
               - name: url  | type: string | description: Image URL.
               - 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: status  | type: string | description: Program status. Customers can only earn or redeem points while the program is `"ACTIVE"`.  Default: `"DRAFT"`
           enum: UNKNOWN, DRAFT, ACTIVE, PAUSED
       - name: createdDate  | type: string | description: Date and time the program was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the program was updated.
       - name: pointsExpiration  | type: PointsExpiration | description: Configuration for the points expiration feature.
           - name: status  | type: string | description: Status of the points expiration feature.
               enum: DISABLED, ENABLED
           - name: monthsOfInactivity  | type: number | description: How many months a member should be inactive to lose the collected points.
           - name: expiringPointsPercentage  | type: number | description: Percentage of points that a member loses after being inactive.
       - name: premiumFeatures  | type: PremiumFeatures | description: Information about the available program premium features.
           - name: loyaltyProgram  | type: boolean | description: Whether there are any loyalty program premium features.
           - name: tiers  | type: boolean | description: Whether this loyalty program includes tiers.
           - name: pointsExpiration  | type: boolean | description: Whether this loyalty program includes point expiration.
       - name: assignPointsForOldOrders  | type: boolean | description: Whether to assign points for orders that were created more than 30 days before they were updated or paid.  By default (`false`), points are not assigned to such orders. This guards against retroactively awarding points for orders that predate an earning rule. Enable this (`true`) for sites where customers legitimately order far in advance and pay later (for example, bookings paid on the day of the session or manual payments).  Default: `false`

```