Generate Vouchers

Script to generate unique voucher codes for a given prize and save them as a CSV file on the desktop.

Input

The default setup only requires prize_id and already has predefined values for expiry timestamp that is 1 year from when the script window is opened and 100 vouchers. Both of these values can be changed if required.

Example Input:

{
  "prize": "bqtr523e",
  "expiry": "1787840190000",
  "vouchersNumber": 100
}

Example Output:

A CSV named vouchers_current-timestamp.csv will be save to the users Desktop with the following content:

voucher;experience;expiryDate
A1B2C3;bqtr523e;1787840190000
D4E5F6;bqtr523e;1787840190000
...