There is no definitive answer to this question as it depends on how you define each term. Generally speaking, ecommerce can be either retail or wholesale depending on the type of products or services being sold and the target customer base.
If we define retail as sales made to individual consumers, then ecommerce that sells direct to consumers would be considered retail. This would include things like selling clothes or electronics through an online store.
Conversely, if we define wholesale as sales made to businesses or other organizations, then ecommerce that sells to these types of customers would be considered wholesale. An example of this would be selling software or office supplies to businesses through an online store.
Ultimately, it is up to the individual or organization running the ecommerce business to decide whether it is retail or wholesale. There is no right or wrong answer, and it can even be a mix of both depending on the products and customers being served.