They like them to be 7 years old and up but there is no actual law stating age.Just the amphur officer's opinion.
They let my son do it because he could clearly answer questions and understand what he was being asked and he could write his full name in Thai to sign his name.
If the child can't do either, they will not issue the document.