Every money you bring into Thailand (ATM withdrawals, credit card payments, etc.) has to be taxed if you stay longer than 180 days. There are tax-free allowances and similar rules. There are tax service companies that support you with the tax return and with applying for a tax ID.
If you are not tax-resident anywhere else, it can actually be beneficial to handle your taxes in Thailand.
In 2024 I brought more than 400,000 Baht into Thailand (via ATM, credit card, etc.), stayed in the country for more than 180 days, applied for a tax ID and filed the tax return.
I paid 4,000 Baht in taxes — so it’s really not much at all.
If you bring in only small amounts, you won’t have to pay anything..