RemoveContractPrinterFromContract

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

  • MPS Version: Starting from 5.13.0

Description

Removes a printer from the contract without removing it from the flow. The printer's movement history between contracts is retained.

Syntax

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

PrinterDeviceID

Number

Yes

-

-

-

Printer serial number. Obtained using the GetPrinters method

ActionDate

Date and Hour

No

-

-

-

Date and hour of removal (yyyy-MM-dd HH:mm)

ContractStatusID

Number

No

-

-

-

Status identifier number. Obtained using the RetrieveOutOfContractStatus method

  • If ContractStatusID is not specified, the default status (Out of contract) will be used;

  • If ActionDate is not specified, the later of the following dates will be used: the latest end date of frozen closings or the latest printer history date in the contract;

  • If the specified ActionDate is earlier than the current printer history date, the date will be adjusted to the same date as the history.

Return

If successful, the return is: [{“Result”:true}].

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 specified user must be an Administrator at the provider.