-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData2.asmx
-
MPS Version: From 5.34.0
Description
This method assigns a Supplier to supply a stock item or updates the Replenishment Point.
Syntax
public string SetStockToSupplier(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 |
|
StockID |
Number |
Yes |
- |
- |
- |
Stock ID. Obtained via the GetDealerStocks method |
|
SupplierID |
Number |
Yes |
- |
- |
- |
Supplier ID |
|
DeliveryDays |
Number |
Yes |
- |
- |
1 - 99 |
Replenishment Lead Time (days) |
Return Value
If successful, the return value is: [{“Set”:true}].
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 their reasons.
Restrictions
-
To execute this method, the specified user must be a Full Stock Administrator or a Restricted Stock Administrator and must be the specified Stock Manager.