If you are on Steam, you can find your codes by right clicking FFXIV in your Library, then going Manage>CD keys, it will show you a list of all your keys ever, and the newest one should be at the bottom of the list.

You probably had to do it this way before, but if you are like me, remembering this one thing you did in 30 seconds several years ago may not be the easiest thing...