Redemption Code Management
Create, distribute, and maintain redemption codes for user quota, and safely remove invalid records.
- Only Admin and Root can access this page. In the sidebar, go to “Admin” → “Redemption Codes”.
- Create and distribute quota redemption codes in batches, manage their names, quotas, expiration times, and enabled status, and remove invalid codes.
- Before anyone can create redemption codes, Root must confirm the payment compliance terms. See Permission and Compliance Prerequisites.
Tip
- Redemption codes are single-use quota credentials. When a user redeems a code on the Wallet page, the quota is credited to their balance.
- Set the quota and expiration time when creating a code. The site's billing settings determine the unit used to display quota.
- Admin and Root have the same permissions on this page. “Admin Permissions” has no settings for redemption codes.
- “System Settings” → “Site & Branding” → “Sidebar Modules” → “Admin Area” controls menu visibility only. Hiding the menu does not revoke admin permissions.
- To prevent a specific Admin from using redemption codes, change their account role or enforce access controls at the deployment level. For example, downgrade the account to a regular user.
Redemption Code Management Overview
- Redemption Code Management – Redemption Code List

The list shows all redemption codes on the site in descending order by ID. You can perform the following actions.
- Create Redemption Codes
- Copy and Distribute Redemption Codes
- Edit Redemption Codes
- Enable or Disable Redemption Codes
- Delete Redemption Codes
- Delete Invalid Redemption Codes
Tip
If you see an error while creating or editing a redemption code, or a user reports a failed redemption, see Frequently Asked Questions.
Field reference
| Field | Definition | Requirements and Limits | Notes |
|---|---|---|---|
| ID | The unique identifier of the redemption code record. | Generated by the system. | — |
| Name | The batch or purpose identifier entered when creating the code. | Set in the create or edit drawer. | — |
| Status | Whether the code can currently be redeemed. | The system determines the status based on whether the code is enabled, whether it has been redeemed, and when it expires. | “Unused”, “Disabled”, “Used”, or “Expired”. See Redemption Code Status. |
| Redemption Code | The full code the user enters to redeem quota. | Generated by the system and cannot be changed. | The code is masked by default. Click the masked value to open the “Full Code” pop-up. Hover over the copy icon on the right to see “Copy Code”. |
| Quota | The quota credited to the user's balance after a successful redemption. | Set in the create or edit drawer. | Formatted according to the site's current quota display settings. Larger values are abbreviated. |
| Created At | The time the redemption code was created. | Recorded automatically by the system and cannot be changed. | Displayed in the browser's local time zone. |
| Expires | The expiration time of the redemption code. | Set in the create or edit drawer. | Displayed in the browser's local time zone. If unset, the column displays “Never”. Past expiration times appear in red. |
| Redeemed By | The user who redeemed the code. | Recorded automatically by the system. | Displays “-” for an unredeemed code and “User …” for a redeemed code. Hover to see “User ID: …” and “Redeemed: …”. |
Common Operations
The following procedures cover creating, copying and distributing, editing, enabling and disabling, and deleting redemption codes, in the order you typically use them.
Create Redemption Codes
- Redemption Code Management – Create Redemption Codes

- Redemption Code Management – Redemption Codes Created

Prerequisite
- Root has confirmed the current version of the payment compliance terms. See Permission and Compliance Prerequisites.
Procedure
- Click “Create Code” in the upper-right corner of the page.
- In the “Create Redemption Codes” drawer, enter the name, quota, expiration time, and quantity.
- Click “Save Changes”.
- In the “Redemption Codes Created” dialog, select “Save as File” if you need to keep a distribution list, then choose the file format and which fields to include.
- Click “Done”.
Keep redemption codes secure
A full redemption code is a transferable quota credential. Keep full codes out of public screenshots, group chats, support tickets, logs, and code repositories. After creating a batch, record the recipients and the batch, and restrict access to plaintext copies of unused codes.
“Redemption Codes Created” dialog
| Control | When Shown | Description |
|---|---|---|
| Save as File | — | Unchecked by default. |
| Save as TXT, Save as Markdown | When “Save as File” is selected | Selects the file format. “Save as TXT” is selected by default. TXT files contain one redemption code per line. The name, redemption code, and quota appear in that order, separated by tabs, with no header row. Markdown files contain a table with the column headers “Name”, “Code”, and “Quota”. |
| Include Name, Include Quota | When “Save as File” is selected | Both are selected by default. Clear a checkbox to omit that field from the file. |
| Done | — | If “Save as File” is selected, downloads a file whose name starts with redemption-codes- and then closes the dialog. Otherwise, it only closes the dialog. |
Important
- “Successfully created … redemption codes” appears below the dialog title.
- Clicking × in the upper-right corner or pressing Esc closes the dialog without downloading the file.
- This dialog appears only once after the codes are created successfully. The list has no file export option. See Copy and Distribute Redemption Codes.
Configuration fields
The drawer has no sections. The table lists the fields in the order they appear.
| Field | Definition | Requirements and Limits | Default |
|---|---|---|---|
| Name | Identifies the batch or purpose of the redemption code. | Enter 1–20 characters. If the length is outside this range, “Name must be between 1 and 20 characters” appears below the field. When creating codes, you can leave this field blank to use the displayed quota value (such as $10) as the name when you save. | Blank |
| Quota (…) | The quota added when each code is successfully redeemed. | Must be greater than 0. The unit in the label follows the site's quota display settings, as in “Quota (USD)”. If you enter a negative number, “Quota must be a positive number” appears below the field. If you enter 0, “Redemption code quota must be greater than 0” appears when you save. | 10 |
| Expiration Time | The time when the redemption code becomes invalid. | Use “Never”, “1 Month”, “1 Week”, or “1 Day” to set it quickly. The last three options are relative to the current time. Leave the field blank for no expiration. If the time is in the past, “Expiration time cannot be earlier than the current time” appears when you save. | Blank (never expires) |
| Quantity | The number of redemption codes to create at once. | Enter 1–100. If the value is outside this range, “Count must be between 1 and 100” appears below the field. Clearing the field or entering 0 creates one code. | 1 |
Copy and Distribute Redemption Codes
Copy a single code
- Click the copy icon in the “Redemption Code” column of the target row. The tooltip reads “Copy Code”.
Copy codes in bulk
- Select the redemption codes you want to copy on the current page.
- Click the copy icon in the bulk action bar at the bottom of the page. The tooltip reads “Copy Selected Codes”.
Copy format
Bulk copying puts one redemption code on each line.
名称<Tab>完整兑换码Tip
- Click a masked redemption code to see its full value in the “Full Code” pop-up.
- This page has no redemption code import or list export option.
- You can save a file only once, from the “Redemption Codes Created” dialog.
- Handle copied content and saved files in a controlled environment. Avoid storing full redemption codes long-term in regular spreadsheets or shared documents.
Edit Redemption Codes
- Redemption Code Management – Update a Redemption Code

Procedure
- Click the edit icon in the target row.
- In the “Update Redemption Code” drawer, change the name, quota, or expiration time.
- Click “Save Changes”.
Tip
- Only “Unused” codes can be edited. The edit icon is grayed out for all other statuses.
- Enable a “Disabled” code before editing it. See Enable or Disable Redemption Codes.
The “Update Redemption Code” drawer uses the same fields as the “Create Redemption Codes” drawer, with the differences listed below. See Configuration fields.
Drawer differences
| Item | “Create Redemption Codes” Drawer | “Update Redemption Code” Drawer |
|---|---|---|
| Where to open | “Create Code” in the upper-right corner of the page | Edit icon at the end of the row |
| Name left blank | Uses the displayed quota value as the name when you save | Prevents saving and shows “Name must be between 1 and 20 characters” below the field |
| Quantity | Shown, defaults to 1 | Hidden |
| After saving | Opens the “Redemption Codes Created” dialog | Displays “Redemption code updated successfully” |
Enable or Disable Redemption Codes
Procedure
- Click the ⋯ menu in the target row.
- Select “Disable” or “Enable”.
Tip
- The menu shows “Disable” for “Unused” codes and “Enable” for “Disabled” codes.
- The menu shows only “Delete” for “Used” and “Expired” codes.
- The action is submitted immediately without a confirmation dialog.
- If a “Disabled” code has passed its expiration time, enabling it changes its status to “Expired”. The code remains unavailable for redemption.
Delete Redemption Codes
Delete a single code
- Click the ⋯ menu in the target row and select “Delete”.
- Click “Delete” in the “Are you sure?” confirmation dialog.
Delete codes in bulk
- Select the redemption codes you want to delete on the current page.
- Click the red delete icon in the bulk action bar at the bottom of the page. The tooltip reads “Delete Selected Redemption Codes”.
- Click “Delete” in the “Delete … redemption codes?” confirmation dialog.
Important
- You can delete codes in any status, including “Unused” codes.
- Deletion is permanent. Use “Disable” if you only need to pause distribution.
Delete Invalid Redemption Codes
- Redemption Code Management – Delete Invalid Redemption Codes

“Delete Invalid” runs a site-wide cleanup regardless of the current search, filters, or selection.
Codes removed
- “Used” redemption codes.
- “Disabled” redemption codes.
- Redemption codes that are still enabled but have passed their expiration time according to the server clock.
Procedure
- Click “Delete Invalid” in the upper-right corner of the page.
- Click “Delete Invalid” in the “Delete invalid redemption codes?” confirmation dialog.
Important
- Cleanup is permanent.
- Cleanup also removes “Disabled” codes. If you plan to re-enable any of those codes, hold off on using “Delete Invalid”.
Rules and Behavior
Code creation and redemption depend on payment compliance. The system also checks each code at redemption time.
Permission and Compliance Prerequisites
Compliance rules
- Root must confirm the current version of the payment compliance terms under “System Settings” → “Billing & Payments” → “Payment Gateway”. Once Root confirms the terms, admins can create redemption codes and users can see the redemption option on the Wallet page. See Payment Compliance Confirmation.
- The compliance status must be “Confirmed”, and the confirmed version must match the current version of the terms.
- Only Root can confirm the terms, using a console session. An access token cannot substitute for that session.
- If compliance is unconfirmed or the terms version does not match, admins can still view, edit, enable, disable, and delete existing codes. The system rejects code creation and user redemption requests.
Redemption Rules
Users enter their code in the “Have a redemption code?” section of the Wallet page. For instructions, see Wallet.
Validation and results
- Only “Unused” codes can be redeemed. The code must be enabled and within its validity period according to the server clock.
- Each code can be redeemed at most once, even if requests are repeated or submitted concurrently.
- After a successful redemption, the code status changes to “Used”, and the system records who redeemed it and when.
- The system credits the quota to the user's balance and adds a “Top-up” entry to their usage log. The entry includes only the redemption code ID.
- All failed redemptions show the same message to the user, “Redemption failed. Please try again later.” See Frequently Asked Questions.
Action Reference
Page Controls and Filters
- Redemption Code Management – Search and Filters

| Action | Location | Description |
|---|---|---|
| Delete Invalid | Upper-right corner of the page | Removes all used, disabled, and expired redemption codes on the site. See Delete Invalid Redemption Codes. |
| Create Code | Upper-right corner of the page | Opens the “Create Redemption Codes” drawer. You can create up to 100 codes at once. See Create Redemption Codes. |
| Search box | Toolbar above the list | Shows the placeholder “Filter by name or ID...” and searches automatically as you type. The search term is stored in the page URL. |
| Status | Toolbar above the list | Select one of “Unused”, “Disabled”, “Used”, or “Expired”. You can search at the top of the pop-up. “Clear Filters” appears at the bottom when a status is selected. The selection is stored in the page URL. |
| Reset | To the left of “View” | Appears when a search term or status filter is active. Clears both. |
| View | Right side of the toolbar above the list | Under “Toggle Columns”, show or hide the ID, Name, Status, Redemption Code, Quota, Created At, Expires, and Redeemed By columns. Refreshing the page resets column visibility. |
| Pagination | Bottom of the list | Displays “Total: …”. “Rows per Page” supports 10, 20, 30, 40, 50, or 100 rows. The default is 20 on desktop and 10 on mobile. The page number and rows per page are stored in the page URL. |
Tip
- A numeric search term matches an exact ID or a name that starts with that number. Other search terms match only the beginning of a name.
- The “Status” filter uses the server clock to determine whether a code has expired.
- The column headers do not support sorting.
Row Actions
| Action | Location | Description |
|---|---|---|
| Edit | Edit icon at the end of the row | Hover to see “Edit”. Available only for “Unused” codes and grayed out for all other statuses. See Edit Redemption Codes. |
| Enable, Disable | ⋯ menu at the end of the row | “Disable” appears for “Unused” codes, and “Enable” appears for “Disabled” codes. Clicking either submits the action immediately. See Enable or Disable Redemption Codes. |
| Delete | ⋯ menu at the end of the row | Available for all statuses. See Delete Redemption Codes. |
| Copy Code | Copy icon in the “Redemption Code” column | Copies the full redemption code. See Copy and Distribute Redemption Codes. |
| Full Code | Masked value in the “Redemption Code” column | Click to open the “Full Code” pop-up and reveal the entire redemption code. |
Bulk Actions
The bulk action bar appears at the bottom of the page when you select rows.
| Action | Location | Description |
|---|---|---|
| Select | Checkbox at the start of each row | The “Select All” checkbox in the header selects rows on the current page only. |
| Clear Selection | × on the left side of the bulk action bar | Hover to see “Clear Selection (Escape)”. You can also press Esc when the action bar has focus. “... redemption codes selected” appears next to it. |
| Copy | Copy icon on the right side of the bulk action bar | Hover to see “Copy Selected Codes”. After copying, “Codes copied!” appears. See Copy and Distribute Redemption Codes. |
| Delete | Red delete icon on the right side of the bulk action bar | Hover to see “Delete Selected Redemption Codes”. See Delete Redemption Codes. |
Status Reference
Redemption Code Status
The “Status” column in the redemption code list shows the following statuses.
| Status | Meaning | Notes |
|---|---|---|
| Unused | The code is enabled, has yet to expire, and is available for redemption. | Green. Can be edited, disabled, or deleted. |
| Disabled | An admin has suspended use of the code. Once re-enabled, it can be redeemed if it is still valid. | Gray, with the entire row grayed out. Can be enabled or deleted. This status appears even if the code has passed its expiration time. |
| Used | The code has been redeemed by a user and credited to their balance. It cannot be redeemed again. | Gray, with the entire row grayed out. Can only be deleted. |
| Expired | The code is enabled, but its expiration time has passed. | Yellow, with the entire row grayed out. Can only be deleted. The list uses the browser clock to display this status. The “Status” filter, “Delete Invalid”, and user redemption use the server clock, so the display and server behavior may briefly differ. |
Saving and When Changes Take Effect
Redemption codes are stored only in the database and are never cached. The actions below take effect on each node starting with the next redemption request.
| Action | How to Save | When It Takes Effect |
|---|---|---|
| Create redemption codes | Click “Save Changes” in the “Create Redemption Codes” drawer. The “Redemption Codes Created” dialog opens. When you create one code, “Redemption code created successfully” appears. When you create multiple codes, “Successfully created … redemption codes” appears. | The codes can be redeemed immediately. |
| Edit | Click “Save Changes” in the “Update Redemption Code” drawer. “Redemption code updated successfully” appears. | Takes effect immediately for future redemptions. Completed redemptions are unaffected. |
| Enable or disable | Select the action in the ⋯ menu to submit it immediately without a confirmation dialog. “Redemption code enabled” or “Redemption code disabled” appears. | Takes effect immediately. Previously credited quota is unaffected. |
| Delete one, delete in bulk, or delete invalid codes | Confirm in the confirmation dialog. Deleting one code shows “Redemption code deleted successfully”. Bulk deletion shows “Successfully deleted … redemption codes”. Deleting invalid codes shows “Successfully deleted … invalid redemption codes”. | Takes effect immediately. Deleted codes cannot be redeemed or restored. Previously credited quota stays in the user's balance. |
| Expiration | No action required. | The code can no longer be redeemed once the expiration time is reached according to the server clock. The list displays “Expired” based on the browser clock. |
Important Notes
- Treat full redemption codes as quota credentials. For guidance on distribution and storage, see Create Redemption Codes.
- Deletion is permanent. Use “Disable” to pause distribution. “Delete Invalid” removes all disabled codes on the site. See Delete Invalid Redemption Codes.
- Audit records. Creating, editing, enabling, disabling, or deleting codes generates audit records. This includes single deletions, bulk deletions, and cleanup of invalid codes. These records are available on the Audit Logs page and are excluded from “Usage Logs”.
- Server-side error logs contain raw redemption codes. The redemption entry in the usage log includes only the code ID. If redemption fails, the server error log records the raw code the user submitted. Deployment operators should restrict access to logs and protect or mask the codes according to their compliance requirements.
- User redemption is subject to the critical endpoint rate limit. Redemption requests from the same IP address share a counter with operations such as sign-in, registration, password reset, and top-up order creation. By default, the limit is 20 requests per 1,200 seconds. The system rejects requests above the limit. With Redis enabled, all nodes share the counter. Otherwise, each node counts separately.
- Environment variables control rate limiting.
CRITICAL_RATE_LIMITsets the request count (default 20), andCRITICAL_RATE_LIMIT_DURATIONsets the window in seconds (default 1200).CRITICAL_RATE_LIMIT_ENABLEdefaults totrue. Set it tofalseto disable rate limiting. The service reads all three variables at startup, so changes require a restart. This page has no corresponding settings. See Security and Limits Configuration.
Frequently Asked Questions
Related Documentation
- Confirm the payment compliance terms and set the Quota display unit in Billing and Payment Configuration.
- Learn how users can add funds with redemption codes on the Wallet page.
- Manage account roles and administrator permissions in User Management.
- Look up when redemption codes were created, edited, enabled, disabled, or deleted in the Audit Log.
- Review the environment variables and which requests count toward rate limits for key endpoints in Security and Limits Configuration.
How is this guide?
Last updated on
User Management
Manage user accounts, roles, groups, quotas, login bindings, security credentials, and subscriptions.
Subscription Management
Create and maintain subscription plans, configure validity periods, quota reset cycles, group benefits, and payment methods, and manage whether plans are published.