It is legal to purchase a product in a shop and resell it online. A permit is not required to be an authorised seller. You don't need a permit to buy an item.
‍