Tell the officer when you go to stamp out in person or BEFORE you go thru the eDeparture gates) you need a re-entry permit
You can only get to the re-entry permit desk if you're flying out internationally, it is open
****
although there might not be someone at the desk and you need to ask an officer to get someone for you
If you have the form, copies, photo you can pay "regular price" 1000baht single or 3800baht multiple
BUT
You can just pay 200baht more (1200baht single/4000baht multiple) and not need anything but your passport ๐