Skip to main content
ESC

Searching...

Quick Links

Type to search • Press to navigate • Enter to select

Keep typing to search...

No results found

No documentation matches ""

Redemption Code Expiration

Configure how long redemption codes remain valid.

Dec 5, 2025

When a staff member generates a redemption code for a reward, it doesn't last forever. By default, codes expire after 3 days to prevent misuse. You can customize this duration to fit your business needs.

Changing the Expiration Period

The expiration time is defined in minutes within your environment settings.

  1. Open your .env file in the root directory
  2. Find or add the CODE_TO_REDEEM_POINTS_VALID_MINUTES setting

Default Setting (3 Days)

# 60 minutes * 24 hours * 3 days = 4320 minutes
CODE_TO_REDEEM_POINTS_VALID_MINUTES=4320

Examples

Set to 24 Hours:

CODE_TO_REDEEM_POINTS_VALID_MINUTES=1440

Set to 7 Days:

CODE_TO_REDEEM_POINTS_VALID_MINUTES=10080

Important Notes

  • The value must be an integer representing total minutes.
  • Changes take effect immediately for new codes. Existing codes retain their original expiration time.
  • If you change this setting, you may need to clear your configuration cache:
    php artisan config:clear