Profile : currentTxn
Attributes : points, promisedPoints
Sub-Attributes: pointsForUser, pointsForUserGroup, promisedPointsForUser, promisedPointsForUserGroup
Operators: <,>,<=,>=
Syntax: currentTxn.points.[Operators][Points]
Example: currentTxn.points >= 10.
Meaning: Total regular points earned for the transaction.
| Example 1: Issue coupons if the total regular redeemable points for the current transaction exceed 100. |
|---|
| currentTxn.points > 100 |
| Example 2: Issue a reward if the user specifically earned at least 50 points in this transaction. |
|---|
| currentTxn.pointsForUser >= 50 |
| Example 3: Trigger a benefit when the user’s group is allocated more than 200 points in the current transaction. |
|---|
| currentTxn.pointsForUserGroup > 200 |
| Example 4: Trigger a message if the promised (non-redeemable) points for this transaction are at least 300. |
|---|
| currentTxn.promisedPoints >= 300 |
| Example 5: Trigger a message if promised points allocated specifically to the user exceeds 100. |
|---|
| currentTxn.promisedPointsForUser > 100 |
| Example 6: Trigger a message when a user’s group is promised exactly 500 points in a transaction. |
|---|
| currentTxn.promisedPointsForUserGroup == 500 |
Profile: currentTxn
Attributes: currencyAwarded, promisedCurrencyAwarded
Sub-Attributes: currencyAwardedForUser, currencyAwardedForUserGroup, promisedCurrencyAwardedForUser, promisedCurrencyAwardedForUserGroup
Operators: <,>,<=,>=
Syntax: currentTxn.currencyAwarded("currencyIdentifier") [Operator] [Value]
Example: currentTxn.currencyAwarded("miles") >= 100.
Meaning: Alternate currency points awarded in the current transaction for the specified currency identifier.
| Attribute | Description |
|---|
currencyAwarded(currencyIdentifier) | Total redeemable alternate currency points awarded for the given currency identifier in the current transaction. Includes both user and user group points when UserGroup2 is enabled. |
currencyAwardedForUser(currencyIdentifier) | Redeemable alternate currency points awarded to the individual user for the given currency identifier in the current transaction. |
currencyAwardedForUserGroup(currencyIdentifier) | Redeemable alternate currency points awarded to the user’s group (UserGroup2) for the given currency identifier in the current transaction. |
promisedCurrencyAwarded(currencyIdentifier) | Total promised (non-redeemable) alternate currency points awarded for the given currency identifier in the current transaction. Includes both user and user group points when UserGroup2 is enabled. |
promisedCurrencyAwardedForUser(currencyIdentifier) | Promised alternate currency points awarded to the individual user for the given currency identifier in the current transaction. |
promisedCurrencyAwardedForUserGroup(currencyIdentifier) | Promised alternate currency points awarded to the user’s group (UserGroup2) for the given currency identifier in the current transaction. |
| Example 1: Issue a reward if the user earns more than 100 miles in the current transaction. |
|---|
| currentTxn.currencyAwarded("miles") > 100 |
| Example 2: Trigger a benefit when the user individually earns at least 50 cashback points. |
|---|
| currentTxn.currencyAwardedForUser("cashback") >= 50 |
| Example 3: Trigger a benefit when the user’s group earns more than 200 miles. |
|---|
| currentTxn.currencyAwardedForUserGroup("miles") > 200 |
| Example 4: Trigger a message if promised miles for this transaction are at least 300. |
|---|
| currentTxn.promisedCurrencyAwarded("miles") >= 300 |
| Example 5: Trigger a message if promised cashback points for the user exceed 100. |
|---|
| currentTxn.promisedCurrencyAwardedForUser("cashback") > 100 |
| Example 6: Trigger a message when a user’s group is promised exactly 500 miles. |
|---|
| currentTxn.promisedCurrencyAwardedForUserGroup("miles") == 500 |