Pollo Tropical, a fast food chain that serves Latin food like chicken, rice, beans, plantains, etc. has been doing a “rate us” campaign and offering a FREE 1/4 Chicken rice and beans with any purchase of equal or greater value after completing a phone or online survey. This translates into getting 2 meals for about $4.
After doing the survey a few times and getting our FREE meal, we noticed that there is no validation system on the coupon code. So to save us the trouble of doing the 5 minute survey every time, we decided to analyze how the code gets generated and “crack the code” or discover the algorithm used to generate the code based on the receipt number. Working with 3 real samples we came up with the following mapping:
The receipt ID is composed of 20 numbers
If we index the numbers of the receipt ID [1 based] and do a matrix style mapping to the coupon code, the result will be the following :
Where MM is the two digit Month of when the survey was taken and DD is the two digit day of when the survey was taken. Following the example in the image above, the coupon code would be:
Fairly easy huh! Now to make it even more convenient we put together a script that generates the coupon code from the receipt ID. You can find the script here. For added convenience we use the date as the issue date of the receipt just in case you have an old receipt laying around.
Try it out and let us know if you encounter any issues!