I know for a fact that promotional codes expire, because I mailed Nintendo one time, and with their response, they gave me a commemorative picture, but also they gave a Pokemon Omega Ruby/Alpha Sapphire Demo code (Unfortunately it came right around the time the demo released, but it was still super cool)
Download codes I don't think expire, and E-shop codes are the same as cash, they don't expire.