Products
The LiSA Player sends messages in response to various user interactions with products.
The player distinguishes different types of product interactions.
This message is sent by the LiSA Player to the host app / environment.
Properties
Along with all standard Message properties, a Product Interaction message includes the following additional properties:
mediaItemId
stringRequired.
The mediaItemId property uniquely identifies the Media Item from which this message originates.
mediaItemType
MediaItemTypeRequired.
The mediaItemType property specifies the type of Media Item from which this message originates.
Refer to MediaItemType for detailed information.
messageType
LiteralRequired.
The messageType property specifies the distinct type of message.
productBrand
StringOptional.
The productBrand property represents the localized name of the product's brand, if available.
productCurrency
StringOptional.
The productCurrency property specifies the currency code (ISO 4217, 3-letter format) of the product price.
productId
StringRequired.
The productId property is the internal LiSA product identifier.
- This ID is unique within the LiSA system and is used for internal product tracking. 
- Note: Do not confuse this with - productReference, which may refer to an external or merchant-specific product identifier.
productOriginalPrice
NumberOptional.
The productOriginalPrice property represents the original price of the product, if the product price is discounted.
productPrice
NumberOptional.
The productPrice property represents the effective price of the product, which may be either the original price or the sale price, depending on availability.
productReference
StringOptional.
The productReference property represents an external or merchant-specific identifier for the product.
- This ID is provided by the merchant or host system and may differ from the internal - productId.
- It is used to reference the product in external systems, such as e-commerce platforms or inventory databases. 
productTitle
StringRequired.
The productTitle property represents the localized name of the product.
progress
MediaProgressRequired.
The progress property is an object that holds additional metadata related to the media playback progress of the current media item.
Please refer to MediaProgress for detailed information.
variantId
StringOptional.
The variantId property is the internal LiSA product variant identifier.
- This ID is unique within the LiSA system and is used for internal product variant tracking. 
- Note: Do not confuse this with - variantReference, which may refer to an external or merchant-specific product variant identifier.
variantReference
StringOptional.
The variantReference property represents an external or merchant-specific identifier for the product variant.
- This ID is provided by the merchant or host system and may differ from the internal - variantId.
- It is used to reference the product variant in external systems, such as e-commerce platforms or inventory databases. 
Legacy Properties
If your integration uses LiSA Player Version 1, none of the properties described above will be available.
For LiSA Player Version 2, legacy properties can be ignored.
action
StringRequired.
The distinct type of product interaction.
⚠️ Please use messageType instead.
additional
AdditionalProductDataRequired.
The additional property contains metadata related to product interactions.
Please refer to AdditionalProductData for detailed information. ⚠️ Please use dedicated product-related properties instead.
first
BooleanRequired.
The first property indicates, whether the message represents the first product interaction of a distinct type per product in the current visitor's session.
⚠️ This property is no longer supported in Player Version 2.
item
ProductItemRequired.
The item property describes a limited set of product properties relevant to a specific product interaction.
Please refer to ProductItem for detailed information.
⚠️ Please use dedicated product-related properties instead.
target
LiteralRequired.
The distinct target of product interaction.
⚠️ Please use messageType instead.
Type Definition
interface ProductMessage extends Omit<
  Message,
  'messageType' | 'sender'
> {
  mediaItemId: string;
  mediaItemType: MediaItemType;
  messageType:
    | 'lsc:product:add-to-cart'
    | 'lsc:product:add-to-wishlist'
    | 'lsc:product:click'
    | 'lsc:product:emoji'
    | 'lsc:product:impresssion';
  productBrand?: string;
  productCurrency?: string;
  productId: string;
  productOriginalPrice?: number;
  productPrice?: number;
  productReference?: string;
  productTitle: string;
  variantId?: string;
  variantReference?: string;
  progress: MediaProgress;
  sender: 'LiSA';
}AdditionalProductData — Legacy
AdditionalProductData — LegacyIn addition to the standard Additional Data properties, the additional property contains metadata related to product interactions.
action
StringOptional.
The action property represents the action target of a carousel item interaction. Depending on the use-case it can either be a URL or a serialized JSON object, containing parameters required to execute upon the interaction in the host app / environment.
id
StringOptional.
The id property represents the unique identifier of the product as specified in the customer's e-commerce system.
variantId
StringOptional.
The variantId property represents the unique identifier of the selected product variant as specified in the customer's e-commerce system.
interface AdditionalProductData extends AdditionalData {
  action?: string;
  id?: string;
  variantId?: string;
}ProductItem — Legacy
ProductItem — LegacyThe ProductItem property describes a limited set of product properties relevant to a specific product interaction.
data
ProductItemDataRequired.
The distinct type of product interaction. Please refer to ProductItemData for detailed information.
id
StringRequired.
The id property is the internal LiSA product identifier.
- This ID is unique within the LiSA system and is used for internal product tracking. 
- Note: Do not confuse this with - data.origin.id, which may refer to an external or merchant-specific product identifier.
type
LiteralRequired.
product
interface ProductItem {
  data: ProductItemData;
  id: string;
  type: 'product';
}ProductItemData — Legacy
ProductItemData — Legacyorigin
ProductOriginOptional.
The productOrigin property is an object that specifies essential details about the product's origin within the merchant's e-commerce system.
Please refer to ProductOrigin for detailed information.
interface ProductItemData {
  origin?: ProductOrigin;
}ProductOrigin — Legacy
ProductOrigin — Legacyid
StringOptional.
The id property represents an external or merchant-specific identifier for the product.
- This ID is provided by the merchant or host system and may differ from the LiSA-internal product identifier. 
interface ProductOrigin {
  id?: string;
}Last updated
