# Checkout discount method

When the discount is applied to products and customers add product to checkout page to purchase, the order will be processed with a discount code applied directly in the order.&#x20;

Sami Wholesale uses **Draft order API** as checkout method. The discount will be shown at checkout as below:&#x20;

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

With this Checkout discount metho&#x64;**,** all products in the order will receive **one discount code** that matches the discount shown on the **front store**. You can find automatically generated discount codes at **Shopify** **Discounts** folder:&#x20;

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

***This discount code cannot be edited or deleted. If removed, the customer’s order will no longer have the discount applied.***

***

The **Draft Order API** checkout method will create draft orders in your store whenever a customer proceeds to checkout on the storefront.&#x20;

Each draft order will include an order tag named ***‘samita-wholesale’***. However, please note that no discounts are applied to these draft orders when viewed in **Shopify Draft Orders**

<figure><img src="/files/uJFSOVyURRb8D4k8hlUq" 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/checkout-discount-method.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.
