The very first legal nastygram this blog ever received – 17 years ago, if memory serves – was from Avis over posting a list of their discount codes. There was nothing wrong about such a posting, of course.
People have long used discount codes to reduce the cost of their car rentals. Some they may be eligible for, others that are for employees of specific companies or members of specific associations that they aren’t eligible for.