AdjustStockQuantity

  • Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData.asmx

  • MPS Version: From 5.3.0

Description

This method adjusts the quantity of items available in stock. In Customer Stocks, it is possible to remove items that are available and reserved for printers. In Distribution Centers, only items that are available can be removed.

Items will be removed in the following order:

  • First, items without serial numbers and without reservations;

  • Then, items with serial numbers and without reservations;

  • Then, items without serial numbers and with reservations;

  • Then, items with serial numbers and with reservations.

Syntax

public string AdjustStockQuantity(string dealerName, string dealerUserEmail, string dealerUserPassword, int stockID, int supplyModelID, int quantityToRemove, string comment)

Parameters

  • dealerName: Provider name;

  • dealerUserEmail: Provider user email;

  • dealerUserPassword: Encrypted user password;

  • stockID: Stock identification number in the system;

  • supplyModelID: Material identification number in the system;

  • quantityToRemove: Quantity of available items to be removed;

  • comment: Additional explanation of the reason for the stock adjustment.

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 responsible for the stock in question, either Restricted or Complete.