Adding a Reseller

This method creates a new reseller from an existing template on the Parallels Pro Control Panel server.

Method

public void AddReseller (Reseller reseller, string username, string password)

Parameters

  • reseller, which is the Reseller object with details of reseller to be added
  • username, which is the username of the service provider
  • password, which is the password of the service provider

Return Value

none

Note: Before running this method, the Parallels Pro Control Panel must contain a template for adding a new reseller. If a template does not exist, you must create a new template using the Parallels Pro Control Panel. For instructions on creating a new template, please refer to the online Help available in the Parallels Pro Control Panel by clicking General Help in the Help section on the left navigation panel.

Example Code:

Reseller res = new Reseller();

res.DisplayName = "myreseller.com";

//Reseller name has to be prefixed with "reseller."

res.Name = "reseller." + "myreseller.com";

res.ShortName = "myreseller.com";

res.TemplateName = "Gold Reseller Plan";

res.ContactPhone = "0123456789";

res.ContactEmail = "blackhole@ensim.com";

res.FullName = "Test Reseller";

res.UserName = "admin";

res.Password = "ensim123";

res.Email = "user@example1.com";

w.AddReseller(res, "admin", "ensim123");