You will get the code for this pokemon on you 3ds game sun and moon or ultra sun and moon
Not sure it it works outside the US
Thanks for looking