In order to do this you needed to register for the Pokemon Trainer Club Newsletter before today’s distribution. The emails containing codes started being sent out this morning in the US (and it looks like they are continuing to be sent so keep checking that inbox). It should have a big picture of Darkrai at the top of the message and below you will find the codes. Just want to make sure nobody saw the email as spam because the codes are in there.