Formal — to staff
Vending · Machine
You
すみません、こちらの自動販売機でお金を入れたのですが、商品が出てこなくて。
すみません、こちらのじどうはんばいきでおかねをいれたのですが、しょうひんがでてこなくて。
Excuse me, I put money into this vending machine, but the product didn't come out.
Romaji: Sumimasen, kochira no jidouhanbaiki de okane o ireta no desu ga, shouhin ga dete konakute. / Reply Romaji: Moushiwake gozaimasen. Dono shouhin o gokounyuu saremashita ka? Sugu ni kakunin itashimasu.
Reply
申し訳ございません。どの商品をご購入されましたか?すぐに確認いたします。
もうしわけございません。どのしょうひんをごこうにゅうされましたか?すぐにかくにんいたします。
We apologize. Which product did you purchase? We will check immediately.
Gesture & etiquette
Point to the vending machine, perhaps indicate the slot where money goes in and the product comes out.
Keep the tone polite and objective, not accusatory. Have the exact amount inserted ready if asked.