-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData.asmx
-
MPS Version: From 5.3.0
Description
This method registers a new department at a specific site of a provider's company.
Syntax
public string ImportSiteDivision(string dealerName, string dealerUserEmail, string dealerUserPassword, int enterpriseID, int siteID, string siteDivisionName)
Parameters
-
dealerName: Provider name;
-
dealerUserEmail: Provider user email;
-
dealerUserPassword: Encrypted user password;
-
enterpriseID: ID of the company to which the department being registered belongs;
-
siteID: ID of the site to which the department is being registered;
-
siteDivisionName: Name of the department being registered.
Characters not allowed in parameters and the error that will be returned
|
Parameter |
Unsupported characters |
Error |
|
siteDivisionName |
,|'+ |
ERR_DATA_INVALIDSITEDIVISIONNAME |
Return
If successful, the return is: [{“SiteDivisionID”:number}], where number is the identifier number in the newly entered department.
Click here to learn more about the format of returns.
Possible errors returned
Click here to check the possible errors that may be returned and learn about their reasons.
Restrictions
-
To execute this method, the user must be an Administrator at the provider.