---
title: "Enter a Code"
description: "Code entry loyalty rule. Reward users for entering promotional or secret codes."
keywords: ["promo code loyalty", "code entry rewards", "redemption code Web3", "secret code engagement"]
---

> **For AI agents:** the complete documentation index is at [llms.txt](https://docs.snagsolutions.io/llms.txt). Append `.md` to any page URL for its markdown version.

import RewardWithMultiplierFixedAmount from '/snippets/rules/reward-with-multiplier-fixed-amount.mdx'

## **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**

<RewardWithMultiplierFixedAmount />

### **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

<Columns 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>
</Columns>
