GetStocksFromSuppliers

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

  • MPS Version: From 5.34.0

Description

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

Syntax

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

SupplierID

Number

No

-

-

-

Supplier ID

StockID

Number

No

-

-

-

Stock ID. Obtained 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

Company Name

StockFullAddress

Full Stock Address

SupplierID

Identifier of the Supplier supplying this stock

SupplierName

Name of the Supplier supplying this stock

SupplierFullAddress

Full Supplier Address

DeliveryDays

Replenishment Time (days)

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.