Cart Line Details

The details of the initial amount, adjusted price, and details of all applied discounts and promotions to cart line items within the cart.

JSON example 

This example shows a sample response.

1"cartLineDetails": [
2          {
3            "appliedCartLinePromotionDetails": [
4              {
5                "cartLineItemAmountAfterDiscount": 95,
6                "cartLineItemAmountBeforeDiscount": 100,
7                "cartLineItemDiscountAmount": 5,
8                "couponCode": "PIZZA5",
9                "currencyIsoCode": "USD",
10                "displayName": "5 % off on Pizza",
11                "isAutomatic": false,
12                "promotionId": "0c8xx00000005NtAAI"
13              }
14            ],
15            "cartLineItemAmountAfterDiscount": 66.36,
16            "cartLineItemAmountBeforeDiscount": 100,
17            "cartLineItemId": "abcd1",
18            "cartLineItemQuantity": 2,
19            "cartLineProduct": "Pizza",
20            "totalCartLineItemDiscountAmount": 33.64,
21            "totalCartLinePromotionsDiscountAmount": 5,
22            "totalCartPromotionsDistributedDiscountAmount": 28.64
23          },
24          {
25            "appliedCartLinePromotionDetails": [
26              {
27                "cartLineItemAmountAfterDiscount": 9,
28                "cartLineItemAmountBeforeDiscount": 10,
29                "cartLineItemDiscountAmount": 1,
30                "currencyIsoCode": "USD",
31                "displayName": "Get 10% off on Burger + Voucher",
32                "isAutomatic": true,
33                "promotionId": "0c8xx00000004y5AAA"
34              },
35              {
36                "cartLineItemAmountAfterDiscount": 4.5,
37                "cartLineItemAmountBeforeDiscount": 9,
38                "cartLineItemDiscountAmount": 4.5,
39                "currencyIsoCode": "USD",
40                "displayName": "Buy 1 Pizza, Get 1 Burger Free",
41                "isAutomatic": true,
42                "promotionId": "0c8xx00000006TdAAI"
43              }
44            ]
45          }
46        ]
Property NameTypeDescriptionFilter Group and VersionAvailable Version
applied​CartLine​PromotionDetailsApplied Cart Line Promotion Details[]Details of the line or cross line promotions applied.Big, 65.065.0
cartLine​ItemAmount​AfterDiscountDoubleUpdated price of the line items after the current promotions are applied.Big, 65.065.0
cartLine​ItemAmount​BeforeDiscountDoublePrice of the line item before the current promotions are applied.Big, 65.065.0
cartLine​ItemIdStringThe ID of cart line item on which promotions are applied.Big, 65.065.0
cartLine​ItemQuantityIntegerQuantity of the cart line item on which promotions are applied.Big, 65.065.0
cartLine​ProductStringProduct on which promotions are applied.Big, 65.065.0
totalCart​LineItem​DiscountAmountDoubleTotal amount of discounts applied to the line item, including discount from applied line or cross line promotions. and cart line. The distributed amount is only from cart level promotions.Big, 65.065.0
totalCart​LinePromotions​DiscountAmountDoubleTotal amount of discount from all line or cross line promotions.Big, 65.065.0
totalCart​Promotions​Distributed​DiscountAmountDoubleThe prorated amount of the total monetary discount from cart promotions that a discount distribution service applies to an individual line item.Big, 65.065.0