get the train ID from the reservation request