LiSA Social Commerce
Developers
Developers
  • Developers
  • Guides
    • Integration Guide
      • Web Integration
      • App Integration
        • Android
          • Communication
          • Storage
          • File Downloads
          • Theming
        • iOS
          • Communication
          • Storage
          • File Downloads
          • Theming
        • React Native
          • Communication
          • Storage
          • File Downloads
          • Theming
        • Picture in Picture
      • Entrypoints
        • Query Parameter (v1)
    • Player Communication
      • Message API Reference
        • App
          • App — Heartbeat
          • App — Message Acknowledge
          • App — Message Error
          • App — Listen
        • CTA
          • CTA — Link in Comments
          • CTA — Sponsor Badge
        • Cart — View Cart
        • Comments — Join
        • Media
          • Media — Complete
          • Media — Pause
          • Media — Progress
          • Media — Resume
        • Media Item
          • Media Item — Emoji
          • Media Item — Impression
        • Player
          • Player — Dismiss
          • Player — Native Picture-in-Picture (PiP)
          • Player — Pass Visual Viewport
          • Player — Request Visual Viewport
          • Player — UI Transition
        • Products
          • Products — Add to Cart
          • Products — Add to Wishlist
          • Products — Click
          • Products — Close Product List
          • Products — Emoji
          • Products — Emoji State Update
          • Products — Impression
          • Products — Open Product List
        • Stickers
          • Stickers — Activate
          • Stickers — Click
          • Stickers — Expire
          • Stickers — Impression
          • Stickers — Publish
          • Stickers — Unlock
          • Stickers — Unpublish
          • Stickers — Update
          • Stickers — Voucher Claim
        • Visitor — Pass User Context
        • Shared Legacy Message Properties
    • Products
      • Product Update Notification API
  • Widgets
    • Content Hub
    • Quick Start Guide
    • Appearance
      • Markup
      • Responsive design
    • Configuration options
      • Autoplay
      • Channel
      • Client
      • Data
      • Debug
      • Host node
      • Layout
      • Language
      • On
      • Player
      • Query string
      • Quick view
      • Sections
      • Store
      • Template
    • API reference
      • Library API reference
      • Player API reference
      • Quick View API reference
    • Customisations
      • Template
      • Bring your own template
      • Type definitions
    • Examples
    • Type definitions
      • Asset
      • Product
      • Other
    • Promo Widget
      • Quick Start Guide
      • Configuration options
        • Autoplay
        • Channel
        • Countdown (deprecated)
        • Enabled
        • Image modifier
        • Lead time
        • Live (deprecated)
        • Position
        • Replay (deprecated)
        • Show ID
        • URL
  • Media Player Introduction
    • Picture-in-Picture Mode
  • Analytics
  • REST API
    • Authentication
    • Rate limits
    • Response status and error codes
    • API Documentation
Powered by GitBook
On this page
  • Properties
  • Type Definition
  1. Guides
  2. Player Communication
  3. Message API Reference

Products

PreviousPlayer — UI TransitionNextProducts — Add to Cart

Last updated 29 days ago

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 , a Product Interaction message includes the following additional properties:

Name
Type
Description

mediaItemId

Required.

The mediaItemId property uniquely identifies the Media Item from which this message originates.

mediaItemType

Required.

messageType

Required.

The messageType property specifies the distinct type of message.

productBrand

Optional.

The productBrand property represents the localized name of the product's brand, if available.

productCurrency

Optional.

The productCurrency property specifies the currency code (ISO 4217, 3-letter format) of the product price.

productId

Required.

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

Optional.

The productOriginalPrice property represents the original price of the product, if the product price is discounted.

productPrice

Optional.

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

Optional.

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

Required.

The productTitle property represents the localized name of the product.

progress

Required.

variantId

Optional.

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

Optional.

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.

Name
Type
Description

action

Required.

additional

Required.

The additional property contains metadata related to product interactions.

first

Required.

item

Required.

target

Required.


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

Name
Type
Description

action

Optional.

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

Optional.

The id property represents the unique identifier of the product as specified in the customer's e-commerce system.

variantId

Optional.

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

The ProductItem property describes a limited set of product properties relevant to a specific product interaction.

Name
Type
Description

data

Required.

The distinct type of product interaction. Please refer to ProductItemData for detailed information.

id

Required.

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

Required.

product

interface ProductItem {
  data: ProductItemData;
  id: string;
  type: 'product';
}

ProductItemData — Legacy

The ProductItemData object contains additional properties that are generally non-essential for most use cases.

  • As these are legacy properties, we do not recommend using them.

  • Instead, we encourage relying on the distinct properties available in the Product Interaction messages for better clarity and consistency.

Name
Type
Description

origin

Optional.

interface ProductItemData {
  origin?: ProductOrigin;
}

ProductOrigin — Legacy

Name
Type
Description

id

Optional.

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;
}

The mediaItemType property specifies the type of Media Item from which this message originates. Refer to for detailed information.

The progress property is an object that holds additional metadata related to the media playback progress of the current media item. Please refer to for detailed information.

The distinct type of product interaction. Please use messageType instead.

Please refer to for detailed information. Please use dedicated product-related properties instead.

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.

The item property describes a limited set of product properties relevant to a specific product interaction. Please refer to for detailed information. Please use dedicated product-related properties instead.

The distinct target of product interaction. Please use messageType instead.

In addition to the standard properties, the additional property contains metadata related to product interactions.

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 for detailed information.

string
MediaItemType
Literal
String
String
String
Number
Number
String
String
MediaProgress
String
String
String
AdditionalProductData
Boolean
ProductItem
Literal
String
String
String
ProductItemData
String
Literal
ProductOrigin
String
⚠️
⚠️
⚠️
⚠️
AdditionalProductData
⚠️
ProductItem
ProductOrigin
Add to Cart
Add to Wishlist
Click
Close Product List
Emoji
Emoji State Update
Impression
Open Product List
Message properties
MediaItemType
Additional Data
MediaProgress