Skip to main content

Item

Overview

The Item object describes a product or service purchased as part of a transaction. It is used to inform the loyalty engine about what was bought, and supports features such as benefit calculation, reporting, segmentation, and reward logic.

When to Use This Object

Include an Item object in your transaction payload whenever:

  • A purchasable product or service is being recorded
  • You need to enable benefit or discount calculations per item
  • Reporting or analysis requires categorization of line items

Field Reference

FieldTypeRequiredDescription
lineIdstringYesUnique identifier for the item line within the transaction
codestringYesProduct or service code (SKU, PLU, or internal identifier)
namestringYesDescriptive name of the product or service
departmentCodestringYesCategory or department identifier
departmentNamestringYesHuman-readable name of the category or department
quantitynumberYesNumber of units purchased
grossAmountnumberYesPre-discount price in smallest currency unit (e.g., cents or kuruş)
netAmountnumberYesFinal price after all discounts have been applied
tagsstring[]NoOptional flags or labels for business logic (e.g., ["promo"])
actionstringNoIndicates the operation type (e.g., "sale", "return")

Sample Payload

{
"lineId": "1",
"code": "LATTE001",
"name": "Latte",
"departmentCode": "DRINKS",
"departmentName": "Beverages",
"quantity": 1,
"grossAmount": 1500,
"netAmount": 1500,
"action": "sale",
"tags": ["coffee", "hot"]
}
  • Submitting itemized transaction data via /transaction
  • Associating benefits or discounts with specific items
  • Enabling rule-based segmentation by category or tag