You can assign a specific income account for products and services.
To do so:
- Click the Gear icon, then choose Products and services.
- Select Edit just beside the product or service or click New.
- Scroll down and under Income Account drop-down, select the appropriate account.
- Click Save and close.
Feel free to check this article for reference: Use Products and Services in QuickBooks Online.