How do I link my xbox warthuder account to my gaijin account?

Hi, I was wondering how I could link my Xbox war thunder account to my gaijin account. I want to do this so when I purchase anything it will automatically go to my war thunder account. Can anyone help?