Formal — to staff
Vending · Machine · Trouble
You
すみません、この自動販売機でお金を入れたのに、商品が出てこないんです。
すみません、このじどうはんばいきでおかねをいれたのに、しょうひんがでてこないんです。
Excuse me, I put money into this vending machine, but the product didn't come out.
Romaji: Sumimasen, kono jidōhanbaiki de okane o ireta noni, shōhin ga dete konai n desu. / Reply Romaji: Mōshiwake gozaimasen. Dochira no shōhin ka owakari ni narimasu ka? Henkin itashimasu.
Reply
申し訳ございません。どちらの商品かお分かりになりますか?返金いたします。
もうしわけございません。どちらのしょうひんかおわかりになりますか?へんきんいたします。
I apologize. Do you remember which product it was? We will refund you.
Gesture & etiquette
Point to the vending machine and make a 'no product' gesture with your hands.
Do not aggressively shake the machine. Politely explain the situation to staff nearby (e.g., convenience store, restaurant).