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

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/introduction.md

## Article Content:

# About Accounts

Customer loyalty accounts are essential to building successful reward programs. Wix provides a set of APIs that enable you to create and manage loyalty accounts across sites.

These APIs allow you to provide full loyalty account management:

- [Accounts](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/accounts/introduction.md): Create and manage customer loyalty accounts, track point balances, and handle point earning, adjusting, and redemption across all customer interactions.
- [Imports](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/imports/introduction.md): Import existing loyalty data from external sources, enabling seamless migration from other loyalty platforms while maintaining customer point balances and history.
- [Social Media](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/social-media/introduction.md): Track and reward customers for following social media channels, integrating social engagement with your loyalty program.
- [Transactions](https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/transactions/introduction.md): Access comprehensive transaction history and audit trails for all loyalty account activities including point earning, redemption, adjustments, and refunds.

## Before You Begin

It's important to note the following before starting to code:

- A site must have the [Wix Loyalty Program](https://www.wix.com/app-market/web-solution/loyalty) app installed.
- For social media integrations, channels must be enabled in the dashboard before customers can follow them.
- Import files must be in CSV format with required email and points balance fields, and have a maximum size of 10MB.

## Terminology

- **Loyalty Account**: A customer account that tracks loyalty points balance, transaction history, and tier status within a site's loyalty program.
- **Transaction**: A record of loyalty account activity including point earning, redemption, adjustments, refunds, and expirations.
- **Import**: A batch process for uploading loyalty data from external sources, typically used for migrating from other loyalty platforms.
- **Social Media Channel**: External social platforms (Facebook, Instagram, etc.) that customers can follow to earn loyalty points.