Formal — to staff
Vending · Machine
You
すみません、この自動販売機で商品が出てこなくて、お金も戻ってこないのですが。
すみません、このじどうはんばいきでしょうひんがでてこなくて、おかねももどってこないのですが。
Excuse me, the item didn't come out of this vending machine, and my money wasn't returned.
Romaji: Sumimasen, kono jidō-hanbaiki de shōhin ga dete konakute, okane mo modotte konai no desu ga. / Reply Romaji: Taihen mōshiwake gozaimasen. Sugu tantō o yobimasu node, shōshō omachi kudasai.
Reply
大変申し訳ございません。すぐ担当を呼びますので、少々お待ちください。
たいへんもうしわけございません。すぐたんとうをよびますので、しょうしょうおまちください。
We are very sorry. We'll call the person in charge immediately, so please wait a moment.
Gesture & etiquette
Point to the vending machine and then to the item/money slot, slight bow.
Do not hit or forcefully shake the vending machine. Look for contact information on the machine itself if no staff are nearby.