Formal — to staff
Vending · Machine · Issue
You
すみません、この自動販売機がお金だけ吸い込んで、何も出てきませんでした。
すみません、このじどうはんばいきがおかねだけすいこんで、なにもでてきませんでした。
Excuse me, this vending machine took my money, but nothing came out.
Romaji: Sumimasen, kono jidō-hanbaiki ga okane dake suikonde, nani mo dete kimasen deshita. / Reply Romaji: Ara, mōshiwake gozaimasen. Dochira no nomimono desu ka? Henkin itashimasu node shōshō omachi kudasai.
Reply
あら、申し訳ございません。どちらの飲み物ですか?返金いたしますので少々お待ちください。
あら、もうしわけございません。どちらののみものですか?へんきんいたしますのでしょうしょうおまちください。
Oh, I apologize. Which drink was it? I will issue a refund, please wait a moment.
Gesture & etiquette
Point to the vending machine, show hands empty/palms up.
If no nearby shop, look for a contact number on the machine (usually in Japanese) and be prepared that resolving it might be difficult without Japanese speaking ability. Take a photo of the machine and the problem if possible.