> 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: Accounts ## Article: Introduction ## Article Link: https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/accounts/introduction.md ## Article Content: --- title: Introduction --- # Introduction The Loyalty Accounts API allows you to create and manage your customer loyalty accounts. With the Loyalty Accounts API, you can: - [Create](https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/accounts/create-account.md) a loyalty account for a site contact. - Manually [adjust points](https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/accounts/adjust-points.md) in a loyalty account. - Set up functions that allow loyalty accounts to [earn points](https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/accounts/earn-points.md) through their actions. To use the Loyalty Accounts API, import `{ accounts }` from the `wix-loyalty.v2` module. ```javascript import { accounts } from 'wix-loyalty.v2'; ``` ## Before you begin It’s important to note the following points before starting to code: - To create a new loyalty account, a customer must first be a site contact with a contact ID. ## Terminology - **Account ID:** Every loyalty account gets a new account ID which is different from that customer's contact ID and member ID. - **Transaction:** A loyalty transaction includes any activity that changes a loyalty account point balance, such as adjusting, earning, or redeeming loyalty points. ## Permissions information Functions in the Loyalty Accounts API are restricted and only run if you elevate permissions using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.

Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.