Profile : Current Transaction

Attributes based on Transaction

Profile : Current Transaction(currentTxn)
The currentTxn profile returns the details of a transaction. We generally use this profile to write rules on transactions, basket size, custom fields, and so on. Refer to the table below for all the supported attributes of customerTxn.

Attributes - KPI (Transaction/Basket)

The below grouping of attributes is based on the key Performance Indicator of transactions/basket.

AttributesDescriptionLink
basketSum()The sum of value of the items matching the inventory attribute.Learn More
basketSumRegex()The sum of the value of the items matching the inventory attribute RegEx.Learn More
basketQty()The total quantity of items in the bill matches the inventory. Learn More
basketQtyRegex()The quantity of items in the bill matches the regular expression.Learn More
basketcount()Number of products in the transaction of the given inventory type, irrespective of quantity.Learn More
basketcountRegex()Number of products whose item attribute matches the given regular expression.
basketIncludes()Products contained in the transaction.Learn More
basketExcludes()Products not contained in the transaction.Learn More
basketSumIfReturns the sum of the amount of line items that satisfies a specific condition. Learn More
basketCountIfReturns the count of line items of the basket that satisfies a specific condition. Learn More
basketQtyIfReturn the sum of quantities of qualifying line items in the basket. Learn More
basketSizeTotal number of items in the bill - irrespective of quantity of each item.Learn More
basketSumGrossThe sum of the gross amount of each line item in a basket with a specific attribute.Learn More
basketSumRegexGrossThe sum of the gross amount of each line item in the basket
whose product attribute values match the given regular expression.
Learn More

Attribute - Transaction Number

AttributesDefinitionLink
numberTransaction number or ID.Learn More

Attribute - Date

AttributeDefinitionLink
datedate of the TransactionLearn More

Attributes - Custom Field (Transaction)

The below grouping of attributes is based on custom fields created at the transaction level.

AttributesDefinitionLink
customFieldValueIncludesReturns True if input custom field value matches with bill's custom fields.Learn More
customFieldValueExcludesReturns False if input custom field value matches with bill's custom fields.Learn More

Attributes - Transaction Value

AttributesDefinitionLink
valueTotal value of the transactionLearn More

Attributes - Discount

AttributesDefinitionLink
discountDiscounted value on the transactionLearn More

Attributes - Note

AttributesDefinitionLink
noteTransaction level notes specified by the cashier during the transactionLearn More