SetContractPrinterData

  • Web Service URL: https://[SERVER_ADDRESS]/ContractsWS/ContractsData.asmx

  • MPS Version: Starting from 5.5.0

Description

Updates data related to an existing contract printer. If the printer is not in the contract flow, it will be inserted into the flow.

Syntax

public string SetContractPrinterData(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. Obtained using the GetEnterprises method

PrinterDeviceID

Number

Yes

-

-

-

Printer ID number. Obtained using the GetPrinters method

PrinterDeviceName

Text

No

Yes

-

-

Printer name

AssetNumber

Text

No

Yes

-

255

Asset number

IsPartnerPrinter

Logical

No

Yes

-

-

Whether the printer belongs to the partner (true) or not (false). If left blank or no information is provided, the way the printer is registered will not be changed.

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.