-
Web Service URL: https://[SERVER_ADDRESS]/ContractsWS/ContractsData.asmx
-
MPS Version: Starting from 5.11.0
Description
Adds a printer, which is already in a contract flow, to a specific contract.
Syntax
public string SetContractPrinterToContract(string properties)
Assembling properties
The content of string properties must be text in JSON format containing the properties below. For example:
{"DealerName":"dealer","DealerUserEmail":"user@example.com","DealerUserPassword":"k1BAv1w=="}
There is no need to worry about uppercase or lowercase property names, as the Web Service is Case-Insensitive.
Properties accepted by the method
|
Property |
Type |
Required |
Allows null |
Allows empty |
Maximum size |
Description |
|
DealerName |
Text |
Yes |
- |
- |
- |
Provider name |
|
DealerUserEmail |
Text |
Yes |
- |
- |
- |
Provider user email |
|
DealerUserPassword |
Text |
Yes |
- |
- |
- |
Encrypted user password |
|
EnterpriseID |
Number |
Yes |
- |
- |
- |
Company ID number in the system. Obtained using the GetEnterprises method |
|
PrinterDeviceID |
Number |
Yes |
- |
- |
- |
Printer ID number in the system. Obtained using the GetPrinters method |
|
ContractID |
Number |
Yes |
- |
- |
- |
Contract ID number in the system. Obtained using the RetrieveContracts method |
|
ActionDate |
Date and Hour |
No |
- |
- |
- |
Date and hour of insertion (yyyy-MM-dd HH:mm) |
Information
If the ActionDate is not specified or is earlier than the latest date among the following dates: contract start date, last closing date, or the current printer history date. The latest date among these will be used.
Return
If successful, the return is: [{“Result”:true}].
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 on the provider.