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