> 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`). > - 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/velo/apis/wix-loyalty-v2/introduction.md ## Article Content: # Introduction The Loyalty API allows you to manage a customized loyalty program that lets customers earn loyalty points. With the Loyalty API, you can: - [Activate](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/programs/activate-loyalty-program.md) and [manage](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/programs/update-loyalty-program.md) a loyalty program. - [Create](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/accounts/create-account.md) new loyalty accounts for customers. - [Adjust points](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/accounts/adjust-points.md) in individual loyalty accounts. - Manage the [loyalty rewards](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/rewards/update-reward.md) and [loyalty coupons](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/coupons/introduction.md) that points can be redeemed for. - Manage [loyalty tiers](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/tiers/update-tier.md) and [update](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/tiers/update-tiers-program-settings.md) the global settings for a tiers program. For more information, see [Wix Loyalty Program: An Overview](https://support.wix.com/en/article/wix-loyalty-program-an-overview). To use the wix-loyalty API, import `wixLoyalty` from the `wix-loyalty.v2` module. ```javascript import wixLoyalty from 'wix-loyalty.v2'; ``` ## Before you begin It’s important to note the following points before starting to code: - A Wix Loyalty Program must first be installed through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/) or the [Wix App Market](https://www.wix.com/app-market/loyalty) before the Loyalty APIs can be used. - A loyalty program only works with certain apps, such as Wix Bookings, Wix Events, Wix Pricing Plans, Wix Restaurants, or Wix Stores. One of those must be installed on your site before the loyalty program can be used. - A customer with a loyalty account can’t earn or redeem points while the loyalty program is in `"DRAFT"` status. You can change the program’s status to `"ACTIVE"` through your [dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Floyalty-accounts/wizard/) or with the [`activateLoyaltyProgram()`](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/programs/activate-loyalty-program.md) function.