To get an invoice for your ticket, please go to your Deutschlandticket module, click on "See more," then on "See all my tickets." There, you will have the option to download the invoice for your D-Ticket.