Buying a German train ticket for somebody else
Since 1 October 2016, one passenger will be shown on German train tickets issued by Deutsche Bahn (DB). This passenger must present a valid ID such as a passport, government-issued ID or Bahn card.
This means that whoever is listed on the ticket must be present on the train for the ticket to be valid. If you are booking a German train ticket for someone else, you will need to make certain that their name, not yours, is the one listed on the ticket.
The first passenger you enter will be the one listed on the ticket. Even if you are not travelling, it's okay to enter your own name and information into the Contact Details section, as this info will not be on the ticket.
The passenger whose name is shown on the ticket must show valid ID such as a passport, government-issued ID, or Bahn card.