-
Web Service URL: https://[SERVER_ADDRESS]/GeneralWS/GeneralData2.asmx
-
MPS Version: From 5.34.0
Description
This method assigns a user as the person responsible for a stock item, or updates the user's permissions for that stock item.
Syntax
public string SetStocksResponsible(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 number. Obtained via the GetDealerStocks method |
|
UserAccountID |
Number |
Yes |
- |
- |
- |
User account ID in the system. Obtained via the GetDealerAccounts method |
|
PermissionAccessID |
Number |
Yes |
- |
- |
- |
Permission type ID number (1 - Low, 5 - Restricted, 9 - Full) |
Return
If successful, the return is: [{“Set”:true}].
Click here to learn more about the return format.
Possible errors returned
Click here to see the possible errors that may be returned and learn their reasons.
Restrictions
-
To execute this method, the specified user must have full permission for Stock Administration in the provider.