How you make your profit is not the real issue. In some states, opening an online business is as simple as finding a location (your bedroom counts) and filing a business name (also called a DBA, short for "doing business as," or “fictitious name statement”) with the local county clerk. You may also need a home-occupation permit if you’re running your business from home. In other states, especially if you’ll be at all involved with the sale or exchange of any tangible items -- anything that you can touch or eat-- you need a retail trade or sales tax license.
Because the requirements for licensing (and the names given to the licenses) vary from state to state, you’ll want to check with your local county clerk to determine exactly what’s required.
Note that that’s an issue separate and apart from whether you should incorporate your business or file as an limited liability company (LLC), which you would do through your state’s Secretary of State office.
The woman at the head of the U.S. home decor empire and the man at the head of the gigantic Chinese ecommerce platform have risen to become titans of business by bowing at the altar of the middle class.