The culture surrounding vending machines is very different between Japan and America. Check out the JapanTimes article linked below to learn about how one Japanese photographer, Eiji Ohashi, explores the relationship the people of Japan have with vending machines.
In Japanese vending machine is 自動販売機 (Jidohanbaiki) but is often shortened in conversation to 自販機 (Jihanki)
For an in depth understanding of Japan’s vending machines and their history watch the following short documentary from NHK world’s series Begin Japanology. Did you know that you can get hot drinks and even fresh, hot food from a Vending Machine?