GetStocksFromDistributionCenters

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

  • MPS Version: From 5.40.0

Description

This method returns a list of stocks that are supplied by distribution centers.

Syntax

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

No

-

-

-

Stock number. Retrieved via the GetDealerStocks method

DistributionCenterID

Number

No

-

-

-

Stock number for the Distribution Center type. 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

StockID

Stock ID in the system

TypeID

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

StockName

Stock Name

EnterpriseName

Stock Company Name

StockFullAddress

Full Stock Address

DistributionCenterID

Identifier of the Supplier supplying this stock

DistributionCenterName

Name of the Distribution Center supplying this stock

DistributionCenterFullAddress

Full Distribution Center Address

DeliveryDays

Replenishment Time (days)

LoadSecurity

Indicates whether the Distribution Center performs customer stock forecasting

Click here to learn more about the error formats.

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 or be responsible for stock at the provider.