-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData2.asmx
-
MPS Version: From 5.5.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 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 |
|
StockID |
Number |
Yes |
- |
- |
- |
Stock identification number in the system. Obtained using the GetDealerStocks method |
|
SupplyModelID |
Number |
Yes |
- |
- |
- |
Material identification number in the system. Obtained using the GetSupplyModels method |
|
QuantityToRemove |
Number |
Yes |
- |
- |
- |
Quantity of available items to be removed |
|
Comment |
Text |
No |
- |
- |
255 |
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.