Formal — to staff
Vending · Machine
You
すみません、こちらの自動販売機でお金が戻ってきてしまって、商品が出てきません。
すみません、こちらのじどうはんばいきでおかねがもどってきてしまって、しょうひんがでてきません。
Excuse me, my money was returned at this vending machine, and the product didn't come out.
Romaji: Sumimasen, kochira no jidōhanbaiki de okane ga modotte kite shimatte, shōhin ga dete kimasen. / Reply Romaji: Ara, mōshiwake gozaimasen. Dono shōhin o gokōnyū saremashita ka? Kakunin shimasu node, shōshō omachi kudasai.
Reply
あら、申し訳ございません。どの商品をご購入されましたか?確認しますので、少々お待ちください。
あら、もうしわけございません。どのしょうひんをごこうにゅうされましたか?かくにんしますので、しょうしょうおまちください。
Oh dear, I apologize. Which product did you try to purchase? Please wait a moment while I check.
Gesture & etiquette
Point to the vending machine, show the returned money.
Do not bang on the machine aggressively. If no staff are visible, look for a contact number on the machine.