-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData2.asmx
-
MPS Version: From 5.7.0
Description
This method assigns a Distribution Center to supply a Customer Stock.
Syntax
public string SetStockToDistributionCenter(string properties)
Setting Properties
The content of string properties must be text in JSON format containing the properties listed below. For example:
{"DealerName":"dealer","DealerUserEmail":"user@example.com","DealerUserPassword":"k1BAv1w=="}
You don't need to worry about whether property names are uppercase or lowercase; 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 |
|
SourceStockID |
Número |
Yes |
- |
- |
- |
Customer Stock ID. Obtained via the GetDealerStocks method (StockTypeID = 2) |
|
DestStockID |
Number |
Yes |
- |
- |
- |
Distribution Center ID. Obtained via the GetDealerStocks method (StockTypeID = 1) |
|
DeliveryDays |
Number |
Yes |
- |
- |
1 - 365 |
Replenishment Lead Time (days) |
|
LoadSecurity |
Logical |
Yes |
- |
- |
- |
Indicates whether printer demands from this Customer Stock must be considered when forecasting the safety stock for this Distribution Center |
Return
No value is returned unless an error occurs.
Click here to learn more about the return format.
Possible errors returned
Click here to view the possible errors that may be returned and learn their reasons.
Restrictions
-
To execute this method, the specified user must be an Administrator at the provider and an Inventory Administrator.