# Set up priority order of discount rule

{% hint style="warning" %}
**Note**:&#x20;

These steps can be applied for both discount types of the app (**Multiple Wholesale pricing** and **Multiple Volume pricing**) In this case, we take the wholesale pricing as an example:&#x20;
{% endhint %}

### Apply the newest wholesale pricing to products

The app allows users to create multiple wholesale pricing plans and volume pricing plans. Sometimes this case happens: Multiple discount rules are applied to one product.&#x20;

So how does it work? Which discount will be prioritized to apply to the product?&#x20;

There are 3 options for you:&#x20;

* **Apply to oldest wholesale pricings**&#x20;
* **Apply to newest wholesale pricings**&#x20;
* **Auto apply wholesale pricing has more priority**&#x20;

If you want to apply the newly created wholesale pricing, please follow the steps below:&#x20;

**Steps to manage**

1. From the app admin page, click on the **Settings** section in the Navigation bar > **General**&#x20;
2. In the **Multiple Wholesale Pricings** section, select **Apply to newest wholesale pricings**
3. &#x20;Click **Save**

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

***

### Auto apply wholesale pricing has more priority

The discount rule with more detail related to customers/products will be prioritized.

**Steps to manage**

1. From the app admin page, click on the **Settings** section in the Navigation bar > **General:**
2. In the **Multiple Wholesale Pricing** section, select the option **Auto apply volume pricing has more priority**&#x20;
3. Click **Save**

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

### Diagram of discount priority

Please view the diagram below for more details

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

> ### **Need support?**
>
> If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [support@samita.io](https://help.samita.io/support@samita.io)


---

# 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://docs.samita.io/samita-wholesale-b2b/setting/set-up-priority-order-of-discount-rule.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.
