About a year ago my account was hacked. I didnt notice straight away as i wasnt playing minecraft much at the time. However when i came to log in i was unable to and found my account had been hacked. I recovered the account within an hour and changed my name back and continued playing. Now over a year later I go to get my code to download windows 10 edition so i can do crossplay with some friends on a realm and try to activate my code. Upon activating the code it says "code has already been redeemed". I waited for an hour and then tried again because the store can be weird at times but i still was unable to activate my code. I then phoned up Xbox live support, and after being on hold for over an hour listening to the halo 5 soundtrack and them trying to sell me games that were 5 years old i eventually got put through to a real person. I gave them all the relevant details, explained the situation, gave them my code and they checked for where it had been activated. They confirmed my suspicions and told me that the code had been activated in the USA whereas i live in the UK. I was then put on another 30 minute hold while the guy i was speaking to tried to connect me to his superior to sort it out. He then hung up the call after telling me that his superior was on his lunch break but that they would email me if they could do anything about it. Low and behold they couldn't so i am now stuck with a code that I cant use and i wont be able to play with my friends on their realm over the weekend like i planned.
TLDR : account hacked, code for windows 10 edition stolen, called xbox, they were useless but confirmed that it had been activated in USA, i dont know what to do now.