# 2025-05-26: Cart Service - adding items as separate lines to a cart

## Overview

The cart service now allows adding items to cart as separate lines. This means the same product can appear in the cart multiple times, enabling you to apply external discounts or fees to individual items. To add item as a separate line, specify `keepAsSeparateLine` property in the `Adding a product to cart` request.

## Added 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)              | Added the `keepAsSeparateLine` attribute. |
| [Adding multiple products to cart](https://developer.emporix.io/api-references/api-guides/checkout/cart/api-reference/cart-items#post-cart-tenant-carts-cartid-itemsbatch) | Added the `keepAsSeparateLine` attribute. |

## Known problems

Quotes do not support separate line items yet.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.emporix.io/changelog/archive/changelog-2025/2025-05-26-separate-lines.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
