The majority of suppliers and distributors have existing programs in place to work with e-commerce stores. Most often these are referred to as dealer programs.
A store owner reaches out to the supplier and requests to become an authorized dealer.
If you are approved, you fill out the required paperwork (credit application, resale number, basic store info, etc.) and you are accepted into their dealer program.