QuickBooks
QuickBooks Online, connected
Connect once and invoices, customers and payments go to QuickBooks Online by themselves, and payments taken in QuickBooks come back here. Nothing to download or import. Connect QuickBooks Online
Files to import yourself
For QuickBooks Desktop, or if you'd rather import by hand. Don't import files for a period that already went to QuickBooks Online through the connection, or it'll be there twice.
Export
4 invoices, 4 payments, 0 expenses and 4 customers in this period.
Download for QuickBooks Online (.zip of CSV files)The zip has customers, invoices, payments and expenses as CSV files, and a README with where each one goes in QuickBooks Online (the gear icon > Import data, and Banking > Upload from file). Export each period once, so nothing comes in twice.
QuickBooks Self-Employed or Solopreneur
Intuit doesn't let other software connect to these two (the QuickBooks Online connection needs Simple Start or higher), but they take a file of transactions. This one has every payment you took in the dates you pick (and your expenses, if you tick the box): the date, who it was, and the amount. In QuickBooks: Transactions, then import older transactions, and pick the file. If the bank account those payments land in is already connected to QuickBooks, skip this: the deposits are already coming in, and importing would count them twice.