---
title: "Create your first OneCode discount"
description: "Step-by-step guide to creating a OneCode discount code with a product discount and free shipping."
url: https://docs.onecodediscounts.com/en/articles/3-create-your-first-onecode-discount
collection: "Getting started"
updated: 2026-11-06
language: en
---

# Create your first OneCode discount

Step-by-step guide to creating a OneCode discount code with a product discount and free shipping.

**In short:** Open OneCode: Stackable Discounts, click **Create discount**, choose a code or automatic discount, add one or more discount types, set any conditions, then click **Save discount**.

This guide creates a code called **SUMMER25** that gives 20% off the Summer Collection plus free shipping. It takes about two minutes.

## Steps

1.  In your Shopify admin, open **Apps** then **OneCode Discounts**.
    
2.  Click **Create discount** at the top right.
    

![The OneCode home page before any discounts are created, with the Create discount button at the top right](https://staticfiles.us.gleap.ai/p6ae440349b260bc5e19963ea/f4kXPgoxV1yaFqeb7EJdgNy2YCfgPy3e495GmWfzYplKZGslI6wq93taZSZUNrNpX1dEjoZkdpk.png "The OneCode home page before any discounts are created, with the Create discount button at the top right")

3.  Under **Discount Method**, keep **Discount code** selected and type `SUMMER25` in the **Discount code** field. Or click **Generate** for a random code. If you want the discount to apply without a code, choose **Automatic discount** and give it a **Title** instead. Customers see that title at checkout.
    

![The Discount Method card with Discount code selected and SUMMER25 typed in](https://staticfiles.us.gleap.ai/p6ae440349b260bc5e19963ea/zJPjPJ4KCUJgioWO8n9pNOAyjIiCNQmTxdOmt5gPlACZzLqFPgyKCMOtIxzGLqRFt4nRQD6LjLV.png "The Discount Method card with Discount code selected and SUMMER25 typed in")

4.  Under **Discount Types**, click **Add Discount Type**.
    
5.  A new discount type starts as a **Product Discount** with **Value Type** set to **Percentage**. Type `20` in **Percentage**.
    
6.  Set **Target** to **Specific Collections**, click **Browse** and pick the Summer Collection.
    
7.  Click **Add Discount Type** again. Set **Discount Type** to **Shipping Discount** and keep **Value Type** as **Free Shipping**.
    
8.  Leave **Rate Selection** on **All Rates** to make every shipping option free, or pick **Cheapest Rate** or **Select Rates**.
    

Click the arrow next to a discount type to fold it away. Folded, the two discount types look like this:

![Two discount types: a 20% product discount on the Summer Collection and free shipping on all rates](https://staticfiles.us.gleap.ai/p6ae440349b260bc5e19963ea/LWccuUWmdTVPEQPLKEdJ4O6DxSJEFewUxZoJg3khFju2SkvdjhYHs5LSwOB1z7xP1hFey9kRrOe.png "Two discount types: a 20% product discount on the Summer Collection and free shipping on all rates")

9.  Optional: to add a rule such as "only when the cart is $100 or more", click **Add Condition** under **Global Conditions**. See [Global conditions vs per-discount conditions](https://jxngqfpxd.us.gleap.help/en/articles/10).
    
10.  Check **Active dates**. The discount starts straight away unless you change **Start date**. Tick **Set end date** if it should stop on a date.
     
11.  Click **Save discount** at the bottom of the page (or **Save** in the bar at the top). You're taken back to the OneCode home page and the new code appears in the list.
     

## Test it

Open your online store, add an item from the Summer Collection to the cart and go to checkout. Enter `SUMMER25`. You should see 20% off that item and free shipping. If it doesn't apply, see [Why isn't my discount applying?](https://jxngqfpxd.us.gleap.help/en/articles/36).

## Good to know

-   Nothing is applied until you add at least one discount type. Saving without one shows "Please add at least one discount type".
    
-   The summary on the right updates as you build, so you can check the discount before saving.
    
-   New discounts combine with your other product, order and shipping discounts by default. Change this in **Combinations**. See [How OneCode discounts combine with your other discounts](https://jxngqfpxd.us.gleap.help/en/articles/20).
    
-   You can't switch a discount between code and automatic after saving. Create a new discount instead.
    
-   When you edit a discount later, there's no button at the bottom. Save your changes with **Save** in the bar at the top of the page.

## Related

- [What is OneCode?](https://docs.onecodediscounts.com/en/articles/1-what-is-onecode.md)
- [How much does OneCode cost?](https://docs.onecodediscounts.com/en/articles/2-how-much-does-onecode-cost.md)
- [How OneCode decides which discounts apply](https://docs.onecodediscounts.com/en/articles/4-how-onecode-decides-which-discounts-apply.md)
- [Create and edit discounts with Sidekick](https://docs.onecodediscounts.com/en/articles/41-create-and-edit-discounts-with-sidekick.md)
