If you are not here, you need a reservation and a signature or seal to get it.
In fact, in principle, Japanese people don't have ID cards or anything like that. They have to prove their identity, either by getting a driver's license/passport or by going to the district/city service office (equivalent to our district/county government) to issue a certificate.