It varies from office to office. I have never needed to go to Hua Hin Immigration on my return from abroad. Just go in and do my 90 day and nothing is said.
Jim Davis do it online on your phone then save the TDAC on your photo gallery. Normally they do not request it as it will show on their system when coming through Immigration.
You must apply to the embassy or consulate of the specific country that is your main destination (where you stay longest). If visiting multiple countries for equal durations, then apply to the country of first entry.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.