> 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

# Type: Loyalty Transaction Object

# Link: https://dev.wix.com/docs/api-reference/crm/loyalty-program/accounts/transactions/loyalty-transaction-object.md

## Description: Loyalty transaction.

## Schema:

```json
 Type: Loyalty Transaction Object | type: LoyaltyTransaction
 Description: Loyalty transaction.
       - name: id  | type: string | description: Transaction ID.
           - name: value  | type: string | description: 
       - name: accountId  | type: string | description: Account ID.
       - name: createdDate  | type: string | description: Date and time the transaction was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: amount  | type: number | description: The number of points earned, adjusted, redeemed, or expired in the transaction.  + `EARN`: Number of points earned by a customer taking an action. + `REDEEM`: The number of points redeemed by a customer for a reward. + `ADJUST`: The number of points adjusted to a customer's balance. + `REFUND`: The number of points refunded for a previously redeemed reward. + `EXPIRE`: The number of points that expired due to customer inactivity for a configured period.
       - name: transactionType  | type: string | description: Type of transaction.
           enum: UNKNOWN, EARN, REDEEM, ADJUST, REFUND, EXPIRE, EARN_ATTEMPT
       - name: description  | type: string | description: Transaction description.
       - name: idempotencyKey  | type: string | description: Unique identifier, generated by the client. Used to recognize repeated attempts of the same request. Only present when manually adding points with [Earn Points](https://dev.wix.com/docs/rest/crm/loyalty-program/accounts/earn-points.md).
       - ONE-OF:
           - name: earnInfo  | type: EarnInfo | description: Information on points earned.
               - name: appId  | type: string | description: ID of the app that generated the earned points.
               - name: activityType  | type: string | description: Activity type.
               - name: orderId  | type: string | description: Order ID.
               - name: limitApplied  | type: boolean | description: Whether the points amount was adjusted by an earn points limit provider.
               - ONE-OF:
                   - name: followedSocialMedia  | type: FollowedSocialMedia | description: Details on following on social media.
                       - name: channel  | type: string | description: Social media channel. For example, `"FACEBOOK"` or `"INSTAGRAM"`.
           - name: redeemInfo  | type: RedeemInfo | description: Information on points redeemed.
               - name: rewardId  | type: string | description: ID of the reward that was redeemed.
               - name: rewardType  | type: string | description: Type of reward that was redeemed.
               - name: referenceEntityId  | type: string | description: ID of the specific item that was redeemed in this transaction.  Each reward that's redeemed has a unique `referenceEntityId`.
           - name: adjustInfo  | type: AdjustInfo | description: Information on points adjusted.
               - name: appId  | type: string | description: ID of the app that initiated the points adjustment.
               - name: amountBefore  | type: number | description: Amount before adjustment.
               - name: amountAfter  | type: number | description: Amount after adjustment.
           - name: refundInfo  | type: RefundInfo | description: Information on points refunded.
               - name: appId  | type: string | description: ID of the app that refunded points.
               - name: refundedTransactionId  | type: string | description: ID of the transaction that was refunded.
           - name: expireInfo  | type: ExpireInfo | description: Information on points expired.
               - name: amountBefore  | type: number | description: Amount before expiration.
               - name: amountAfter  | type: number | description: Amount after expiration.
           - name: earnAttemptInfo  | type: EarnAttemptInfo | description: Information on a limited earn attempt recorded with 0 points.
               - name: appId  | type: string | description: ID of the app that generated the earn operation.
               - name: activityType  | type: string | description: Activity type.
               - name: orderId  | type: string | description: Order ID.

```