> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarlabs-ultimate-discounts/unified-discount-engine-v2/targets.md).

# Targets

This is where you define which items in the user's cart receive a discount when the rules are met. The default is set to \`All\` meaning that all items in the cart would get the discount.&#x20;

But you can choose between any of the cart groups that you've defined earlier.

<figure><img src="/files/m80AvNSGPuP4e2VgD4GJ" alt=""><figcaption></figcaption></figure>

***

## How to limit the discounts given to the user&#x20;

1. Limit discount by Qty of items&#x20;
2. Limit discount based on lines&#x20;
3. Limit discount based on amount :hourglass: (Q3 - 2025)

***

### Limit discount to only X quantity of items in a group

Yes - we support offering complex conditions like 10% off on 5 items from "Toys" collection, for example. This is supported via a feature called "Maximum Quantity" which you can set up through this dropdown.

<figure><img src="/files/yfxyynUeABmBj3wJtgkH" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
You can also setup negative quantity limits to build rules like all items from X group except N gets the discount.&#x20;
{% endhint %}

***

### Limit discount to only X line items&#x20;

We also support setting a limit on the number of line items that get the discount if eligible. This setting can be configured both on a per discount config level or across the entire function as well, acting as a safety net.

You can enable by heading to the setting icon in the discount config > Line limit.

<figure><img src="/files/5kzqoa5spM0H9UX4h1kM" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

<figure><img src="/files/JwjKbUpWt79bGwDIpxki" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

<figure><img src="/files/dcZisvgKtTUMuNN9rjCx" alt=""><figcaption><p>Example of per discount config line limit setup</p></figcaption></figure>

You can also set up a global line limit to set a line limit for the entire function, as a safety net.

<figure><img src="/files/exjTUS8eXdpdsFfbH2cS" alt=""><figcaption></figcaption></figure>

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://help.dollarlabs.io/dollarlabs-ultimate-discounts/unified-discount-engine-v2/targets.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.
