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

# Enter a Code

> Code entry loyalty rule. Reward users for entering promotional or secret codes.

<head>
  <script type="application/ld+json">
    {JSON.stringify({
            "@context": "https://schema.org",
            "@type": "TechArticle",
            "headline": "Enter a Code",
            "description": "Code entry loyalty rule. Reward users for entering promotional or secret codes.",
            "author": {"@type": "Organization", "name": "Snag Solutions", "url": "https://www.snagsolutions.io/"},
            "publisher": {"@type": "Organization", "name": "Snag Solutions", "url": "https://www.snagsolutions.io/", "logo": {"@type": "ImageObject", "url": "https://assets.snagsolutions.io/public/docs/snag-logo-dark-no-bg.svg"}},
            "mainEntityOfPage": "https://docs.snagsolutions.io/loyalty/rules/code-entry"
          })}
  </script>
</head>

## **Overview**

This loyalty rule allows admins to reward users based on the entry of a specific code. This rule is useful for rewarding users for joining certain community events e.g twitter spaces.

<Frame>
  ![Snag admin enter a code rule configuration form](https://assets.snagsolutions.io/public/docs/rules/code-entry.png)
</Frame>

## **Rule Configuration Fields**

### **Reward**

* **Type of Reward**: Choose between "Points" or "Multiplier".

* **Points**: Users will get the defined no of points.

* **Multiplier**: Users will get the multiplier of the defined amount.

### **Basic Settings**

* **Update Cadence**: The Code Entry rule rewards users **immediately** upon successful entry of the code.
* **User Reward Frequency**: This is a one-time reward that users can claim after linking their accounts, helping to build a connected community across platforms.

### **Custom Settings**

* Skip the multiplier for this rule
* **Link**: Provide a URL for users to take further action.
* **Platform**: This lets you choose from specific list of platforms of which icon will be shown in the rule card for better user experience.
  * available platforms:
    * discord
    * epic games
    * instagram
    * steam
    * telegram
    * tiktok
    * twitch
    * twitter/X
    * youtube
* **Promo Code**: Define the promo code that users need to enter to earn the reward.

**Call to Action (Optional)**

This will show a call to action in our loyalty rule.

* **Link**: Provide a URL for users to take further action.
* **Button Text**: Define the button label.

## Use cases

* **Event attendance** -- Share a code during a Twitter Space, Discord voice chat, or AMA and reward attendees who enter it
* **Newsletter rewards** -- Include a hidden code in your email newsletter to reward engaged readers
* **Partner activations** -- Distribute codes through partners or influencers to track which channels drive engagement
* **Scavenger hunts** -- Hide codes across your website, social channels, or community for gamified discovery

## Code types

You can configure three types of promo codes:

| Type              | Description                                                     |
| ----------------- | --------------------------------------------------------------- |
| **Single code**   | One shared code that all users enter (e.g., `SNAG2024`)         |
| **CSV upload**    | Upload a CSV of unique codes -- each user gets a different code |
| **Auto-generate** | Snag generates a set of unique codes for distribution           |

<Info>
  With unique codes (CSV or auto-generated), each code can only be redeemed once. This prevents sharing and ensures each reward goes to a unique user.
</Info>

## Related pages

<CardGroup cols={2}>
  <Card title="Rules Configuration" icon="gear" href="/loyalty/rules-configuration">
    See full configuration options for all loyalty rules.
  </Card>

  <Card title="Multipliers" icon="arrow-up-right-dots" href="/loyalty/multipliers">
    Boost rewards with multipliers.
  </Card>
</CardGroup>
