# 2025-07-30: Cart Service - new attributes on item level

## Overview

Two new attributes have been added to cart item:

* `linePrice` - externally calculated total price for the item line (unit price × quantity)
* `lineTax` - externally calculated total tax for the item line, allowed only for external product type

New property was added to `itemCalculatedPrice.price`:

`calculated:INTERNAL/EXTERNAL` - indicates how the line item price was determined.

* `INTERNAL` — means the calculation was done by Emporix using unit price × quantity.
* `EXTERNAL` — means the calculation was done externally with `lineTax`

## Updated endpoints

| Endpoint                                                                                                                                                                    | Description                                                               |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Adding a product to cart](https://developer.emporix.io/api-references/api-guides/checkout/cart/api-reference/cart-items#post-cart-tenant-carts-cartid-items)               | The `linePrice` and `lineTax` attributes have been added.                 |
| [Updating a cart item](https://developer.emporix.io/api-references/api-guides/checkout/cart/api-reference/cart-items#put-cart-tenant-carts-cartid-items-itemid)             | The `linePrice` and `lineTax` attributes have been added.                 |
| [Retrieving cart details by ID](https://developer.emporix.io/api-references/api-guides/checkout/cart/api-reference/carts#get-cart-tenant-carts-cartid)                      | The `linePrice` and `lineTax` attributes have been added in the response. |
| [Retrieving all products added to a cart](https://developer.emporix.io/api-references/api-guides/checkout/cart/api-reference/cart-items#get-cart-tenant-carts-cartid-items) | The `linePrice` and `lineTax` attributes have been added in the response. |

## Known problems

There are no known problems.
