> 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/discount-classes.md).

# Discount classes

Discount classes are only available on Unified Discount Engine (v2) and not on Discount Engine (v1) and other functions offered by Dollarlabs. This is based on the unified discounts architecture detailed by [Shopify](https://shopify.dev/docs/api/functions/latest/discount?example=create-combined-multi-type-discounts).

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

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

This functionality basically enables brands to do product, order and shipping discounts all through a single function.

> Apply three discount types in one Function: 10% off the entire order, 20% off the most expensive item in the cart, and free shipping on all deliveries.

One such example is shared above which is easy to configure with Dollarlabs: Ultimate Discounts.


---

# 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/discount-classes.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.
