How to confirm what you heard in Japanese: 〜ですね and 〜でしたっけ
Confirm a detail you just heard with desu ne and ask for a reminder with deshita kke, with polite alternatives.

In short
Repeat a detail with 〜ですね when you think you heard it and want confirmation. Use 〜でしたっけ when you are trying to remember a previously known detail. For a first-time question, a plain polite question with ですか works well.
Think about what you already know. If someone just said “room three,” repeat room three with ですね. If you were told the room yesterday and cannot recall it, say the room you tentatively remember or ask which room it was.
- Read back a detail 三番の部屋ですね。 さんばんのへやですね
You heard room three and want to confirm it.
- Ask for a reminder 三番の部屋でしたっけ。 さんばんのへやでしたっけ
You were given the information earlier and think it was room three.
- Ask which one again 部屋は何番でしたっけ。 へやはなんばんでしたっけ
You remember being told a room number. Ask the other person to refresh your memory.
- Ask the first time 部屋は何番ですか。 へやはなんばんですか
This is a straightforward question for new information.
What you will hear back
- はい、三番です。Yes, room three.
- いいえ、二番です。No, room two.
Easy to get wrong
Saying only はい when the number was unclearRead back the number you heard or ask for it again so the other person can catch a mistake.
If hearing was the problem and no number came through, ask 部屋の番号をもう一度お願いします. Then repeat the answer. In a more formal exchange this sequence makes the request easy to understand.