You either get it from codes or by scanning a special E-Reader card that was given out through a Nintendo Event.
If you get it using a code, you have to use a second set of codes that makes the ticket work. I think the FAQ says something about the Eon Ticket...