InsertCounters

Web Service URL: https://[SERVER_ADDRESS]/CountersWS/CountersData.asmx [ GLOBAL ]  [ GLOBAL2 ]  [ USA ] [ EURO ]
MPS Version: From 5.3.0.

Description

This method inserts meter readings for the specified printer.

Syntax

public void InsertCounters(string dealerName, string dealerUserEmail, string dealerUserPassword, int enterpriseID, int printerDeviceID, string dateTimeRead, string countersList)

Parameters

  • dealerName: Provider name;

  • dealerUserEmail: Provider user email;

  • dealerUserPassword: Encrypted user password;

  • enterpriseID: Company identifier;

  • printerDeviceID: Printer identifier;

  • dateTimeRead: Date and time the meters were read. This date cannot be more than 24 hours ahead of the server time. (Format yyyy-MM-dd HH:mm:ss);

  • countersList: List of counters serialized in JSON format. Example: [{“CounterTypeID”:1,“CounterMono”:200,“CounterColor”:0,“CounterTotal”:200},{“CounterTypeID”:2,“CounterMono”:0,‘CounterColor’:0,“CounterTotal”:0}]

Properties recognized for each counter contained in the list of counters in the countersList parameter:

Property name

Description

CounterTypeID

Types of counters that can be entered:

1 - Life (must always be entered);

2 - Print;

6 - Copy;

7 - Duplex;

8 - Fax Received;

10 - A3.

CounterMono

Value for the mono counter;

CounterColor

Value for the color counter;

CounterTotal

Value for the total counter;

Example of return received

This method has no return. It only informs if an insertion error occurs. The way to collect this error can be seen here.

Possible errors returned

Click here to check the possible errors that may be returned and learn about their causes.

Restrictions

To execute this method, the user must:

  • Monitor the company to which the printer belongs;

  • Have full permission in the Printers Area.