“Vaccine” in Chinese is 疫苗 (yìmiáo).
我接种了流感疫苗。
I had a flu shot.
Example sentence from Tatoeba (CC BY 2.0).