> 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: Transactions ## Article: Introduction ## Article Link: https://dev.wix.com/docs/velo/apis/wix-loyalty-v2/transactions/introduction.md ## Article Content: --- title: Introduction --- # Introduction The Loyalty Transactions API allows you to retrieve transactions related to account activity in your site's loyalty program. With the Loyalty Transactions API, you can: - [Query transactions](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/transactions/query-loyalty-transactions.md) to retrieve a list of loyalty transactions. - [Get transaction details](https://dev.wix.com/docs/velo/api-reference/wix-loyalty-v2/transactions/get-loyalty-transaction.md) for individual transactions. Transactions are created when loyalty accounts perform various actions: - Earning points by making purchases. - Redeeming points for rewards. - Adjusting points balances. - Refunding points for previously redeemed rewards. - Points expiration. To use the Loyalty Transactions API, import `{ transactions }` from the `wix-loyalty.v2` module: ```javascript import { transactions } from 'wix-loyalty.v2'; ``` ## Before you begin It's important to note the following points before starting to code: - Transactions are read-only. You cannot create or modify transactions through this API. - The site must have a loyalty program set up to use this API. ## Terminology - **Transaction:** A record of an action that affects a loyalty account's point balance. - **Earning transaction:** A transaction that increases an account's point balance, typically from a purchase. - **Redemption transaction:** A transaction that decreases an account's point balance, usually when claiming a reward. - **Adjustment transaction:** A manual change to an account's point balance, often for customer service purposes. - **Refund transaction:** A transaction that reverses a previous redemption, returning points to the account. - **Expiration transaction:** A transaction that removes points from an account due to the loyalty program's expiration policy.