---
title: "Dynamic Discount Codes"
description: "What is a Dynamic Discount Code and How Can It Help Me?"
url: https://help.getsaral.com/en/articles/265-dynamic-discount-codes
collection: "Settings & Preferences"
updated: 2026-05-30
language: en
---

# Dynamic Discount Codes

What is a Dynamic Discount Code and How Can It Help Me?

If you’re reading this, you’ve likely been struggling with your discount codes leaking online, which is messing up your affiliate program attribution and eating into your margins.

Coupon codes are the go-to method for tracking affiliate and influencer generated sales, but leakage through coupon-sharing tools and sites like Honey, RetailMeNot, and more can turn your tracking into a nightmare! But guess what?  
  
You can finally put an end to this chaos with SARAL’s **Dynamic Discount Codes!**

### **What Are Dynamic Discount Codes and How Do They Prevent Code Leakage?**

**Dynamic Discount Codes (DDCs)** are designed to protect your margins and ensure accurate affiliate attribution by preventing coupon code leakage.

**Here’s how they work:**

-   **Randomly generated via link**: Each time a customer clicks an affiliate link, a **unique code** is automatically generated and applied at checkout.
    
-   **Non-identifiable format:** Unlike static codes like **ALISON20**, DDCs use randomized strings (e.g., **GWQNNOHJKS**) that are hard to share or guess.
    
-   **Expiry limits**: Each code is time-limited — it’s cached for 1 hour and can be reused multiple times within that window. After 1 hour, it expires (and is deleted from Shopify if unused), reducing the chance of misuse.
    
-   **Single-use**: Codes are **valid for one-time use**, preventing repeated redemptions.
    

![](https://storage.crisp.chat/users/helpdesk/website/d83fdd333af8c000/dynamic-code-checkout_iitb49.png)

### **How Do I Generate a Dynamic Discount Code in SARAL?**

It’s a simple 2 step process:

1.  Create a dynamic discount code template in your [Preferences](https://app.getsaral.com/dashboard/settings?tab=preferences) > Discount Code Templates and create a new template. Make sure to enable the **“Dynamic”** option during setup.
    
2.  Generate a Code When Onboarding an Influencer  
    When adding a new influencer, simply select your dynamic template. SARAL will automatically generate a **unique, single-use** code each time a customer purchases through their affiliate link.
    

> **Info:** Generating a Dynamic Discount Code will **not delete your existing influencer codes**.
> You’ll still have the option to use **regular discount codes** if preferred.

**Here’s a quick tutorial:**

### **How to Delete Dynamic Discount Codes**

Let's say you’re finally finished with your dynamic discount campaign and want to stop their usage, turning them off is simple:

1.  Go to Settings > General > scroll to the bottom and find Discount Code Templates.
    
2.  Under ⚡ Dynamic Codes, click **Delete** under Actions.
    

![](https://storage.crisp.chat/users/helpdesk/website/d83fdd333af8c000/dynamic-1_11ddaq3.png)

**Still have questions?**

Reach out anytime via the support chat at the bottom-right corner of your dashboard, or email us at [support@getsaral.com](mailto:support@getsaral.com). We’re happy to assist!
