-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData.asmx
-
MPS Version: From 5.3.0
Description
This method can be used to insert or modify a printer's department. It is possible to update the site and department at the same time using this method.
Syntax
public void SetSiteDivisionToPrinter(string dealerName, string dealerUserEmail, string dealerUserPassword, int enterpriseID, int printerDeviceID, int siteID, int siteDivisionID)
Parameters
-
dealerName: Provider name;
-
dealerUserEmail: Provider user email;
-
dealerUserPassword: Encrypted user password;
-
enterpriseID: Identifier of the company in the MPS Portal to which the printer belongs;
-
printerDeviceID: Identifier of the printer that will have its accounting monitoring changed;
-
siteID: Identifier of the site that will be assigned or maintained on the printer;
-
siteDivisionID: Identifier of the department that will be assigned to the printer. To remove the department from the printer, simply pass the value -1.
Return
Click here to learn more about the return format.
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 with the provider.