> For the complete documentation index, see [llms.txt](https://docs.opensports.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opensports.net/admin-help/payments-and-billing/discounts/how-to-create-discount-codes.md). Agents can also search and read this documentation through its [MCP server](https://docs.opensports.net/~gitbook/mcp).

# How to create discount codes

OpenSports' flexible discounts feature lets you get creative with your discounts to incentivize registration, run promotional campaigns, and reward your members. To set up and manage discounts, you must be set up as a **group admin** (see how to assign admin roles [here](https://docs.opensports.net/admin-help/groups-and-members/admins-and-staff/admin-roles/how-to-assign-admin-roles-to-your-members.md)).

{% embed url="<https://www.loom.com/embed/34849370fe924ac68478af475d6b997d>" %}

### Discount Features

* Discounts can be set to a fixed monetary amount or a percentage of the total price (e.g., $5 off vs. 50% off).

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-3c58f5b9b732cc8d0a263d1bf79d76b503b225c3%2Fcreate-discount-code-type-and-amount.webp?alt=media" alt=""><figcaption></figcaption></figure>

* Usage limits place caps on how many times a specific discount can be redeemed:
  * **Limit total # of discount uses:** set limits on how many times a specific discount can be redeemed across all of your group activities.
  * **Limit # of discount uses per member:** set limits on how many times a group member can redeem a specific discount across all of your group activities.
  * **Limit # of discount uses per activity:** set limits on how many times a specific discount can be redeemed for a single activity/ event.

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-4ea2c5a5d629e225e8395a6f6a54f4bf5e4f56ae%2Fdiscount-code-usage-limits.webp?alt=media" alt=""><figcaption></figcaption></figure>

* Restrict discounts to specific group members or group activities.

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-482cb7b3b6d34a26eb6f9929fa05da36114697d1%2Fdiscount-code-eligibility-and-applicable-events.webp?alt=media" alt=""><figcaption></figcaption></figure>

* Discounts can be limited to a specific duration (e.g., a 1-week promotional discount).
* You can apply discounts automatically or select to manually distribute a discount code to your group members.

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-0974fb702f5ff80e00db631ae7214d1054a1980e%2Fdiscount-code-duration-and-auto-distribution.webp?alt=media" alt=""><figcaption></figcaption></figure>

### How to set up automatic and manual discounts <a href="#how-to-set-up-automatic-and-manual-discounts" id="how-to-set-up-automatic-and-manual-discounts"></a>

{% tabs %}
{% tab title="Web" %}

1. Navigate to your group **Dashboard** from your group home page.
2. In the left-hand menu, click **Discounts**.
3. Here you can view all existing discounts. You will also see the admin and staff discounts that are built into the OpenSports platform here.
   * To filter active vs. internal (i.e., not editable) discounts, click the respective buttons in the top right corner.
4. To create a new discount, click **Create Discount**.
5. Enter the *Discount Code*. This is the unique discount code and must have at least 3 characters. If you share your discount code manually with members, this is the code you will share.
6. Enter an optional *Name of Discount*. This is only visible to group admins and provides additional descriptive information about the discount.
7. Select the discount type by clicking on the respective buttons.
   * **Percentage:** enter the % off the discount offers.
   * **Amount:** enter the dollar amount off the discount offers.
8. Select the discount currency from the dropdown menu.
9. Select discount *Eligibility* by clicking on the respective buttons.
   * **Everyone:** allows any members joining your activities to redeem the discount.
   * **Specific users:** restricts discount use to the specified users. Search for individual users by name.
10. Select whether the discount applies to all events created within your group or to select events.
    * For **Select Events,** you can select if specific events are included or excluded from the discount (search by title). You can also search for event tags to include a group of tagged events in the discount. Read more about event tags [here](https://docs.opensports.net/admin-help/payments-and-billing/discounts/how-to-limit-discounts-to-specific-events.md).
11. Set *Usage Limits* based on your needs.
12. Set discount *Duration* by selecting the discount start date. By default, no end date is set. To set an end date, check the **Set End Date** box and enter the discount end date (i.e., the date and time when the discount becomes inactive).
13. To automatically apply the discount you just created when a member registers for an event, keep the **Apply the code automatically** box checked.
    * Uncheck the box to stop automatically applying the discount code at event registration.
    * If you select to distribute the discount code manually, you must share the code with your members before they register for events. Each user will have to manually enter the discount code at checkout.
14. Review the summary of your discount and click **Save.**
    {% endtab %}

{% tab title="App" %}

1. Navigate to your group home page (Profile > Groups > Tap group name)
2. Tap the three-dot menu in the top right corner.

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-f0102a6b833220a99ba0db9cf9390de4ff129d00%2FScreenshot%202026-09-23%20at%203.51.50%E2%80%AFPM.webp?alt=media" alt=""><figcaption></figcaption></figure>

1. Tap **Discounts.**
2. You will see all group discounts. You will also see the admin and staff discounts that are built into the OpenSports platform here.
3. Tap the ➕ symbol in the top right corner.
4. Enter the *Code*. This is the unique discount code and must have at least 3 characters. If you share your discount code manually with members, this is the code you will share.
5. Enter the optional *Name of Discount*. This is only visible to group admins and provides additional descriptive information about the discount.
6. Select the discount type by tapping on the respective buttons.
   * **Percentage:** enter the % off the discount offers.
   * **Amount:** enter the dollar amount off the discount offers.
7. Select the discount currency from the dropdown menu.
8. To restrict discount use to specific users, toggle *Specify eligible users* on.

* Tap **Add User** to search for and select specific users for whom the discount will apply. When you find the specific user, tap **Select** to include them in the discount (a green check mark next to the user's name means they are eligible for the discount).

11. To restrict which events the discount is applicable to, toggle *Apply to Select Events* on.

* You can select events by event tags or search for specific events to include or exclude from the discount. Read more about event tags [here](https://docs.opensports.net/admin-help/payments-and-billing/discounts/how-to-limit-discounts-to-specific-events.md).
* Specify events by tapping on **Add** next to the different options.

12. Set *Usage Limits* based on your needs. Select from the pre-set options (e.g., unlimited, 10, or 20) or tap **Custom** and enter any number.

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-19c1a17f6f2a0276ea987106f9f4271564515fb4%2FScreenshot%202026-09-23%20at%203.55.46%E2%80%AFPM.webp?alt=media" alt=""><figcaption></figcaption></figure>

13. Set discount *Duration* by selecting the discount start date. By default, no end date is set. To set an end date, check the **Set End Date** box and enter the discount end date (i.e., the date and time when the discount becomes inactive).
14. To automatically apply the discount you just created when a member registers for an event, keep the **Apply the code automatically** box checked.
    * Uncheck the box to stop automatically applying the discount code at event registration.
    * If you select to distribute the discount code manually, you must share the code with your members before they register for events. Each user will have to manually enter the discount code at checkout.

<figure><img src="https://2891648156-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0wiYYBkqAIGYXcHa3EDw%2Fuploads%2Fgit-blob-bade73397dfc85572ab258bec85ff5da07b212e6%2Fdiscount-code-manual-distribution-setting.webp?alt=media" alt="" width="375"><figcaption></figcaption></figure>

15. Review your discount details and click **Save.**
    {% endtab %}
    {% endtabs %}

### Related Articles <a href="#related-articles" id="related-articles"></a>

* [How to use Discounts Reports to track discount and membership performance](https://docs.opensports.net/admin-help/reports-and-analytics/payment-and-registration-reports/how-to-use-discounts-reports-to-track-discount-and-membership-performance.md)
* [Create an early bird discount to increase signups](https://docs.opensports.net/admin-help/payments-and-billing/discounts/create-an-early-bird-discount-to-increase-signups.md)
* [How to limit discounts to specific events](https://docs.opensports.net/admin-help/payments-and-billing/discounts/how-to-limit-discounts-to-specific-events.md) -[How to Create Trackable Discount Links for Ads and Promotions](https://docs.opensports.net/admin-help/payments-and-billing/discounts/how-to-create-trackable-discount-links-for-ads-and-promotions.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.opensports.net/admin-help/payments-and-billing/discounts/how-to-create-discount-codes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
