Vending machine (abbreviation of 自動販売機) — a machine that automatically sells drinks or goods for money.
駅前の自販機でコーヒーを買った。
I bought a coffee at the vending machine in front of the station.
この自販機は現金だけでなく、カードも使えます。
This vending machine accepts not only cash but also cards.
夏は冷たい飲み物を売る自販機がよく利用される。
In summer, vending machines that sell cold drinks are frequently used.