# Buy X items specified to get a discount on Y items. (Buy X Get Y - Bx Gy)

Video walkthrough of a Buy X to get Y discount with an example&#x20;

{% embed url="<https://drive.google.com/file/d/1g1KBbPxYgW-p9XmKOrWBRJ3UKrci4dA7/view?usp=sharing>" %}

This discount offers a 100% discount on "The Collection Snowboard: Hydrogen" when the following conditions are met:

1. The cart subtotal is greater than, 1000.
2. The cart contains all the specified products: Hydrogen, Liquid, or Oxygen from "The Collection Snowboard."
3. The discount applies specifically to "The Collection Snowboard: Hydrogen" and only if there is exactly one unit of it in the cart.

**Example Scenario:**

If a customer's cart has a subtotal of 3700 and includes:

* 1 unit of Hydrogen (1200)
* 2 units of Liquid (1600)
* 1 unit of Oxygen (900)

The discount will apply, making the Hydrogen snowboard free, and the customer will pay, 2500 instead of 3700.

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


---

# 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://help.dollarlabs.io/dollarlabs-ultimate-discounts/discount-engine-v1/examples-v1/product-discount-examples-v1/buy-x-items-specified-to-get-a-discount-on-y-items.-buy-x-get-y-bx-gy.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.
