You can use the Trade Debtors account when categorizing deposits in QuickBooks Online. However, if you're matching them to an invoice, select the Match option, and the account/category used is based on what was used on the invoice.
Here's how to match transaction:
Click on the Transactions tab.
Click on Bank transactions.
Select the bank account where the transaction was downloaded.
Locate the transaction and look for matches found and in the Category or Match column.
Review the Suggested matches making sure it is the correct transaction.
If the suggested transaction matches click on Match.
if not choose Find other matches.
QuickBooks now knows the downloaded record is the same one you already entered. It connects the two so there are no duplicates.
If you have not manually created a transaction in QBO, then categorise the transaction and can allocate it to Trade Debtors account.
Check this link to learn more about how to match transactions and reconciliation in QBO: