If you get the code, you need to go to the Mystery Gift inside the game and choose Receive Gift and Get with Code, you can input the code there.
In the Nintendo Account, it's at the bottom
《シリアルコードはこちら》
XXXX XXXX XXXX XXXX 
※シリアルコードには0(ゼロ)、1(イチ)、B(ビー)、I(アイ)、O(オー)、V(ブイ)は使用していません。