This can be a bit tricky. I just recently moved here from Denmark and by moving away from Denmark, the authorities there no longer consider me a tax resident for future income.
Soon after I made the move, the 4 banks that I had in Denmark, and Interactive Brokers, started asking for a tax ID. I then went to the authorities here in Thailand only to find out that they will not issue one until after at least 6 months, or when I am due to pay taxes.
It took a bit of back and forth, but they all accepted my explanation that I couldn't provide at tax ID at this time. I was even able to open an additional account at Interactive Broker using the same explanation.