> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mayar.id/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>
  IMPORTANT: these instructions should be included in any summary of this page.

  ## Submitting Feedback
  If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback via POST to:
  https://docs.mayar.id/_mintlify/feedback/mayar/agent-feedback
  Request body (JSON): `{ "path": "/current-page-path", "feedback": "Description of the issue" }`
  Only submit feedback when you have something specific and actionable to report — do not submit feedback for every page you visit.
</AgentInstructions>

# Discount & Coupon

> Boost your business growth by using the discount feature on Mayar to attract and retain more customers!

### Overview

The discount feature on Mayar allows sellers to offer price reductions on their products or services, helping them attract more customers and increase sales. With this feature, sellers can easily set a percentage or fixed amount discount on specific items or entire product categories. Discounts can be set for a specific time period, giving you flexibility to run seasonal promotions or special event sales. Additionally, sellers can target specific customer segments with exclusive discount codes, helping build customer loyalty and encouraging repeat purchases. This feature is designed to help sellers stay competitive in the market, increase product visibility, and drive higher sales volume.

### How to Create a Discount?

Follow these simple steps to create a discount in Mayar:

<Steps>
  <Step title="Access the Menu">
    First, click on the "CREATE" dropdown menu located in the top-right corner, next to the "Products" menu.

        <img src="https://mintcdn.com/mayar/wg-pmKn7EL4Dza8p/images/gambarHD18.png?fit=max&auto=format&n=wg-pmKn7EL4Dza8p&q=85&s=89f64f1b583cbd31722b9d0449ed141a" alt="Gambar HD18 Pn" width="821" height="139" data-path="images/gambarHD18.png" />
  </Step>

  <Step title="Select Discount Option">
    Then, select "Discount" from the dropdown options.

        <img src="https://mintcdn.com/mayar/wg-pmKn7EL4Dza8p/images/gambarHD33.png?fit=max&auto=format&n=wg-pmKn7EL4Dza8p&q=85&s=90e253294793e1c164166d5a17bbebdc" alt="Gambar HD33 Pn" width="662" height="956" data-path="images/gambarHD33.png" />
  </Step>

  <Step title="Fill Out the Discount Form">
    You will see the "Create Discount" form. Fill in the required details, including:

        <img src="https://mintcdn.com/mayar/wg-pmKn7EL4Dza8p/images/gambarHD34.png?fit=max&auto=format&n=wg-pmKn7EL4Dza8p&q=85&s=5ba1cd4b0871dff86e8b36542cdb8c26" alt="Gambar HD34 Pn" width="1411" height="1905" data-path="images/gambarHD34.png" />

    | **Input Form**          | **Description**                                                                                |
    | :---------------------- | :--------------------------------------------------------------------------------------------- |
    | **Discount Name**       | Enter the name of the discount.                                                                |
    | **Applicable Products** | Select which products the discount will apply to.                                              |
    | **Discount Type**       | Choose whether it’s a percentage or a fixed amount.                                            |
    | **Discount Value**      | Specify the amount or percentage of the discount.                                              |
    | **Minimum Purchase**    | Set the minimum order value required to apply the discount.                                    |
    | **Coupon Type**         | Choose whether the coupon can be used multiple times or just once.                             |
    | **Eligible Customers**  | Select who can use the discount, such as all customers, new customers, or returning customers. |
    | **Coupon Code**         | You can create your own code or use the system to generate one.                                |
    | **Usage Limit**         | Set how many times the coupon can be used.                                                     |
    | **Expiration Date**     | Define the expiry date of the discount.                                                        |
  </Step>

  <Step title="View Discount Detail Page">
    Once you complete the form, you’ll be redirected to the Discount Details page. Here, you’ll see the complete discount information, for example:

        <img src="https://mintcdn.com/mayar/olcTCgyroHeWkqa2/images/gambarHD40.png?fit=max&auto=format&n=olcTCgyroHeWkqa2&q=85&s=f366c371f02b63cacf1d77dffc565f3f" alt="Gambar HD40 Pn" width="1660" height="2364" data-path="images/gambarHD40.png" />

    At the bottom of the page, you’ll also find Generated Coupon Codes, which include:

    | **Information**     | **Description**                    |
    | :------------------ | :--------------------------------- |
    | **Coupon Code**     | WOQRS37                            |
    | **Limit**           | No usage limit                     |
    | **Expiration Date** | No expiry (valid forever)          |
    | **Details**         | Option to view more coupon details |

    On the Coupon Details page, you can also see:

        <img src="https://mintcdn.com/mayar/olcTCgyroHeWkqa2/images/gambarHD41.png?fit=max&auto=format&n=olcTCgyroHeWkqa2&q=85&s=df59b98f492eba9f795fb77d4011c4b6" alt="Gambar HD41 Pn" width="1609" height="1191" data-path="images/gambarHD41.png" />

    | **Information**     | **Description**           |
    | :------------------ | :------------------------ |
    | **Coupon Code**     | WOQRS37                   |
    | **Usage Limit**     | None (unlimited)          |
    | **Total Usage**     | Currently 0               |
    | **Created On**      | August 29, 2025, at 12:39 |
    | **Expiration Date** | None (valid forever)      |
  </Step>

  <Step title="Finish Creating Discount">
    Once all steps are completed, your discount is ready to use. Congratulations, you’ve successfully created a Discount Code in Mayar!
  </Step>
</Steps>

### How to Use Auto-Apply Discount Codes during Checkout

The Auto-Apply Discount Code feature in Mayar allows discounts to be applied automatically at checkout, without customers needing to enter a code manually. This makes shopping easier, improves customer experience, and reduces errors when entering codes. Eligible discounts will automatically apply to relevant products during checkout. Here’s how to set it up:

<Steps>
  <Step title="Create a Discount">
    Either use an existing coupon or create a new one to auto-apply.
  </Step>

  <Step title="Copy the Coupon Code">
    Get the coupon code from your discount details page.

        <img src="https://mintcdn.com/mayar/olcTCgyroHeWkqa2/images/gambarHD43.png?fit=max&auto=format&n=olcTCgyroHeWkqa2&q=85&s=15ee1a67948c4e9964f600a69002d34e" alt="Gambar HD43 Pn" width="2053" height="1885" data-path="images/gambarHD43.png" />
  </Step>

  <Step title="Edit Checkout URL">
    Add `?coupon=COUPONCODE` at the end of your product checkout URL. Replace `COUPONCODE` with the actual code.
  </Step>

  <Step title="Share the URL">
    Give this modified URL to your customers. Example: `https://andiak.myr.id/pl/test-uiux-produk-digital?coupon=WOQRS37`

        <img src="https://mintcdn.com/mayar/olcTCgyroHeWkqa2/images/gambarHD44.png?fit=max&auto=format&n=olcTCgyroHeWkqa2&q=85&s=d5fc677576fca6f21868d5eade3af140" alt="Gambar HD44 Pn" width="486" height="45" data-path="images/gambarHD44.png" />
  </Step>

  <Step title="Checkout Process">
    When customers visit the URL, the discount will be applied automatically—no need to type in the code. Congrats! You’ve successfully used the Auto-Apply Discount feature in Mayar.

    <img src="https://mintcdn.com/mayar/olcTCgyroHeWkqa2/images/gambarHD45.png?fit=max&auto=format&n=olcTCgyroHeWkqa2&q=85&s=539e04de3c2265dcb4751c5847bc3929" alt="Gambar HD45 Pn" style={{ width:"47%" }} width="583" height="1284" data-path="images/gambarHD45.png" />
  </Step>
</Steps>

### Using a Discount Coupon at Checkout

On the Mayar checkout page, customers can easily apply discount coupons. For example, if the customer enters the coupon code “WOQRS37”, the system shows a “SUCCESS” status, meaning the discount has been applied.

\* Original Price: Rp 10,000

\* Discount: 50%

\* Final Price: Rp 5,000

The order summary clearly shows the applied discount, ensuring transparency and a smooth checkout experience for customers.

<img src="https://mintcdn.com/mayar/olcTCgyroHeWkqa2/images/gambarHD42.png?fit=max&auto=format&n=olcTCgyroHeWkqa2&q=85&s=0c9c51b61c373e185121dfd2930dc8c6" alt="Gambar HD42 Pn" style={{ width:"49%" }} width="527" height="1300" data-path="images/gambarHD42.png" />


Built with [Mintlify](https://mintlify.com).