You are not obliged to supply any information from your photo identification card when you book a train ticket online. However, you must travel with one of the identification documents in the cases of emergency.