There's instructions in that link I posted to the Nintendo site.. but basically you just have to use the Mystery Gift option when you start the game up and then start the game and go to a PokeMart to collect it.
If you don't have the Mystery Gift option heres instructions on how to activate it.