how to get quote id before ordering M2

Am I struggling to find what event should I use to get the appointment ID?
I want to save some data in db, do I want to save the client session ID and the quote ID before placing an order?

Can anyone suggest which one should I use?