After you file

https://www.irs.gov/payments/direct-pay-help#q13

I lost my Direct Pay confirmation number, can I retrieve it? 
Unfortunately, the Direct Pay application cannot currently retrieve your confirmation number once you leave the application.