I know how important it's to accurately organize your transactions. QuickBooks Online automatically sets up a chart of account for you with different account types to categorize transactions. I'll be happy to point you in the right direction with this.
When it comes to whether you should record a transaction, how to record it, and how to categorize it, your accountant is the best resource for more information and proper guidance. For that matter, I'd strongly encourage you to reach out to an accountant to ensure that everything's lining up correctly in your books. You can easily invite an accountant to your books or find one in your area. Just head to the My Accountant tab to get started, then select Find a pro to help.