Newer Version Available
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 2 "cartLineDetails": [ 3 { 4 "appliedCartLinePromotionDetails": [ 5 { 6 "cartLineItemAmountAfterDiscount": 95, 7 "cartLineItemAmountBeforeDiscount": 100, 8 "cartLineItemDiscountAmount": 5, 9 "couponCode": "PIZZA5", 10 "currencyIsoCode": "USD", 11 "displayName": "5 % off on Pizza", 12 "isAutomatic": false, 13 "promotionId": "0c8xx00000005NtAAI" 14 } 15 ], 16 "cartLineItemAmountAfterDiscount": 66.36, 17 "cartLineItemAmountBeforeDiscount": 100, 18 "cartLineItemId": "abcd1", 19 "cartLineItemQuantity": 2, 20 "cartLineProduct": "Pizza", 21 "totalCartLineItemDiscountAmount": 33.64, 22 "totalCartLinePromotionsDiscountAmount": 5, 23 "totalCartPromotionsDistributedDiscountAmount": 28.64 24 }, 25 { 26 "appliedCartLinePromotionDetails": [ 27 { 28 "cartLineItemAmountAfterDiscount": 9, 29 "cartLineItemAmountBeforeDiscount": 10, 30 "cartLineItemDiscountAmount": 1, 31 "currencyIsoCode": "USD", 32 "displayName": "Get 10% off on Burger + Voucher", 33 "isAutomatic": true, 34 "promotionId": "0c8xx00000004y5AAA" 35 }, 36 { 37 "cartLineItemAmountAfterDiscount": 4.5, 38 "cartLineItemAmountBeforeDiscount": 9, 39 "cartLineItemDiscountAmount": 4.5, 40 "currencyIsoCode": "USD", 41 "displayName": "Buy 1 Pizza, Get 1 Burger Free", 42 "isAutomatic": true, 43 "promotionId": "0c8xx00000006TdAAI" 44 } 45 ] 46 } 47 ]
| Property Name | Type | Description | Filter Group and Version | Available Version |
|---|---|---|---|---|
| appliedCartLinePromotionDetails | Applied Cart Line Promotion Details[] | Details of the line or cross line promotions applied. | Big, 65.0 | 65.0 |
| cartLineItemAmountAfterDiscount | Double | Updated price of the line items after the current promotions are applied. | Big, 65.0 | 65.0 |
| cartLineItemAmountBeforeDiscount | Double | Price of the line item before the current promotions are applied. | Big, 65.0 | 65.0 |
| cartLineItemId | String | The ID of cart line item on which promotions are applied. | Big, 65.0 | 65.0 |
| cartLineItemQuantity | Integer | Quantity of the cart line item on which promotions are applied. | Big, 65.0 | 65.0 |
| cartLineProduct | String | Product on which promotions are applied. | Big, 65.0 | 65.0 |
| totalCartLineItemDiscountAmount | Double | Total 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.0 | 65.0 |
| totalCartLinePromotionsDiscountAmount | Double | Total amount of discount from all line or cross line promotions. | Big, 65.0 | 65.0 |
| totalCartPromotionsDistributedDiscountAmount | Double | The prorated amount of the total monetary discount from cart promotions that a discount distribution service applies to an individual line item. | Big, 65.0 | 65.0 |