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

# Creating a Discount Code

> Steps to create a Discount Code record

## Creating a Discount Code

A Discount Code is a `Discount_Code__c` record that staff and customers can apply at checkout to reduce the price of eligible products.

<Steps>
  <Step title="Open the Discount Codes list">
    In the App Launcher, search for **Discount Codes**. The App Launcher is the grid icon in the top-left of Salesforce that you use to find apps and records.

    <Frame caption="Searching for Discount Codes in the App Launcher">
      <img src="https://mintcdn.com/fusionspan/4u-JGPkRA8QDMGYi/images/end-user-guides/4855136327/image-20260316-172424.png?fit=max&auto=format&n=4u-JGPkRA8QDMGYi&q=85&s=46e164c10a6488af000ba477d3592be6" alt="The App Launcher search showing the Discount Codes result" width="369" height="329" data-path="images/end-user-guides/4855136327/image-20260316-172424.png" />
    </Frame>
  </Step>

  <Step title="Start a new Discount Code">
    Click **New** in the Discount Codes list view.

    <Frame caption="The New button on the Discount Codes list view">
      <img src="https://mintcdn.com/fusionspan/4u-JGPkRA8QDMGYi/images/end-user-guides/4855136327/image-20260316-172528.png?fit=max&auto=format&n=4u-JGPkRA8QDMGYi&q=85&s=3fd5022deee396db212179137303af75" alt="The Discount Codes list view with the New button" width="1898" height="470" data-path="images/end-user-guides/4855136327/image-20260316-172528.png" />
    </Frame>
  </Step>

  <Step title="Enter the Discount Code details">
    Give it a Name, a Discount Percentage, and a Code.

    * The Start Date, End Date, and usage-limit fields are optional.
    * You do not have to mark it as **Is Active** right away. You can do this later.

    <Frame caption="Entering the Discount Code field values on the new record">
      <img src="https://mintcdn.com/fusionspan/4u-JGPkRA8QDMGYi/images/end-user-guides/4855136327/image-20251010-163225.png?fit=max&auto=format&n=4u-JGPkRA8QDMGYi&q=85&s=016eb2de6d4e4e3afe966a9f15854118" alt="The new Discount Code record with the Name, Discount Percentage, and Code fields filled in" width="1118" height="806" data-path="images/end-user-guides/4855136327/image-20251010-163225.png" />
    </Frame>
  </Step>

  <Step title="Save">
    Click **Save**.

    <Info>
      fusionCore supports percentage discounts only. The **Type** (`Type__c`) field is required and its only value is **Percentage** — flat-amount discounts are not supported.
    </Info>
  </Step>
</Steps>

## Discount Code Fields Quick Reference

| **Field Name**                                           | **Purpose**                                                                           |
| -------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| Code\* (`Code__c`)                                       | The code a customer enters to apply the discount                                      |
| Type\* (`Type__c`)                                       | The kind of discount being configured; the only value is **Percentage**               |
| Is Active (`Is_Active__c`)                               | If checked, denotes that the Discount Code is active                                  |
| Discount Percentage (`Discount_Percentage__c`)           | The percentage taken off the price of each eligible product                           |
| Start Date (`Start_Date__c`)                             | The date on which this discount becomes available                                     |
| End Date (`End_Date__c`)                                 | The date on which this discount stops being available                                 |
| Overall Usage Limit (`Overall_Usage_Limit__c`)           | The total number of times the code can be redeemed across all orders and customers    |
| Organization Usage Limit (`Organization_Usage_Limit__c`) | The maximum number of times a single organization (Account) customer can use the code |
| Individual Usage Limit (`Individual_Usage_Limit__c`)     | The maximum number of times a single individual (Contact) customer can use the code   |

\*Indicates a required field

## Tips for Working with Discount Codes

* The Start Date and End Date determine the window during which the Discount Code is available. This is independent of whether the **Is Active** checkbox is checked.
* The **Type** field only offers **Percentage** as a picklist value.
* The three usage limits are independent counts, not related totals. **Overall Usage Limit** is the total number of redemptions allowed across all orders and customers. **Organization Usage Limit** caps how many times a single organization (Account) customer can use the code, and **Individual Usage Limit** caps how many times a single individual (Contact) customer can use it. Which per-customer limit applies is chosen by the order's Customer Type.

<Warning>
  An **Overall Usage Limit** of `0` blocks the code entirely, because zero redemptions are allowed. Leave the field blank for unlimited overall use.
</Warning>

## Limitations and Common Pitfalls

* **Discounts are percentage only.** There is no flat-amount discount; the value is always a percentage (`Discount_Percentage__c`).
* **An Overall Usage Limit of 0 blocks the code.** A zero overall limit is treated as fully exhausted, so the code cannot be applied at all.
* **Used codes are locked.** Once a code has been applied to any order, you cannot change its discount percentage or delete it.
