CartItem: Event & {
    personalizationContentId?: string;
    catalogObjectId?: string;
    catalogObjectType?: string;
    cartEventId: string;
    lineItemId: string;
    price?: number;
    quantity?: number;
    imageUrl?: string;
    name?: string;
    totalProductAmount?: number;
    adjustedTotalProductAmount?: number;
}

Used in conjunction with a Cart event, this event provides details at the item level (e.g., cart item or wish list item).

Type declaration

  • Optional personalizationContentId?: string

    The identifier, provided by the personalization service provider, of the recommended product associated with this event.

  • Optional catalogObjectId?: string

    Unique identifier of the catalog object (e.g., product)

  • Optional catalogObjectType?: string

    Type of the catalog object (e.g., Product) associated to the cart item.

  • cartEventId: string

    Event id of the Cart event to which this cartItem event is associated with.

  • lineItemId: string

    Unique identifier of the line item for the cart. This is solely what is used to identify items across events.

  • Optional price?: number

    The list price of each item.

  • Optional quantity?: number

    The absolute quantity of the line item, after the event, specified by lineItemId. This is NOT a change (delta) in quantity from a previous event.

  • Optional imageUrl?: string

    The URL of the image that will be used when reporting on the product.

  • Optional name?: string

    Name of the product.

  • Optional totalProductAmount?: number

    Amount of the products for the entire line item (price book unit price * quantity), not taking into account adjustments.

  • Optional adjustedTotalProductAmount?: number

    Adjusted (i.e., accounting for promotions) amount of the products for the entire line item (adjusted unit price * quantity).