Answered by ZUPAN | Nov. 20, 2019 12:08
Your itinerary is definitely eligible for 24 hour visa free transit and you don't need any kind of visa.
Please, keep in mind to print out your flight tickets and to have those printouts with you. Also, you will declare at check-in in Kuala Lumpur airport that you will travel to Munich via Beijing using 24 hour visa free transit. After a short inspection of your tickets, you will be allowed to board the plane.
Upon arrival in Beijing, you will apply for a temporary entry permit at 24 hour visa free transit counter. Assuming that you are flying on a single ticket, you can apply for a temporary entry permit upon your landing at 24 hour visa free transit counter to be allowed to exit the airport. Also, since your layover is very long and probably during the night hours, you are advised to book your accommodation in advance and to present a confirmation printout of your accommodation booking. Anyway, you should know that the issuing of a temporary entry permit is always upon discretion of immigration authorities on a day of your arrival.