GetStocksPlanningPermissions

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

  • MPS Version: Froma 5.34.0

Description

This method returns a list of stock items and the users with permission to plan their demands.

Syntax

public string GetStocksPlanningPermissions(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

UserAccountID

Número

No

-

-

-

User ID number. Retrieved via the GetDealerAccounts method

StockID

Número

No

-

-

-

Stock ID number. Retrieved via the GetDealerStocks method

FieldsList

Text

No

Yes

Yes

-

List of fields to be returned by the method. They must be specified separated by the ‘;’ character. Example: “StockID;TypeID;StockName”. When no fields are specified, the response will contain the fields shown in bold in the table below

Return fields recognized in FieldsList

Field name

Description

AccountID

User account ID in the system

FullName

User's full name

Email

User's access email

CellPhone

User's mobile phone number

Phone

User's landline number

Language

User's language

StockID

Stock ID in the system

StockName

Stock name

Description

Stock description

TypeID

Stock type ID (1 - Distribution center, 2 - Customer stock)

FullAddress

Full stock address

Click here to learn more about the response format.

Possible errors returned

Click here to see the possible errors that may be returned and learn the reasons behind them.

Restrictions

  • To execute this method, the specified user must have full permissions in Inventory Administration on the provider.