Which specific visa are you asking about? I've gotten category M for many of my expat staff in Bangkok. "Legally residing in Thailand" for us meant show work permit.
Just buy a 24hr refundable ticket on a different carrier, print a copy, and cancel it immediately after purchase. Your outbound carrier is unlikely to call and verify ticket validity when being shown a printed ticket.