-
Web Service URL: https://[SERVER_ADDRESS]/SupplierOrdersWS/SupplierOrdersData.asmx
-
MPS Version: From 5.16.0
Description
This method returns a list of locations served by the Distribution Center.
Syntax
public string GetReplenishments(int supplierID, string supplierUserEmail, string supplierUserPassword, int stockID string fieldsList)
Parameters
-
dealerName: Provider name;
-
dealerUserEmail: Provider user's email address;
-
dealerUserPassword: Encrypted user password;
-
stockID: Stock identifier (Distribution Center);
-
fieldsList: List of fields to be returned by the method. They must be specified separated by the ‘;’ character. Example: StockID;StockName;StockTypeID;EnterpriseName.
-
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 |
System stock ID |
|
StockName |
Stock name |
|
StockTypeID |
Stock type ID (1 - Distribution center, 2 - Customer stock) |
|
EnterpriseID |
Company identifier in the system |
|
EnterpriseName |
Company name |
|
Street |
Street where the stock is located |
|
Number |
Stock location number |
|
Neighborhood |
Neighborhood where the stock is located |
|
PostalCode |
ZIP code where the stock is located |
|
AdditionalInfo |
Stock address details |
|
CityName |
City where the stock is located |
|
StateName |
State where the stock is located |
|
CountryName |
Country where the stock is located |
|
DeliveryDays |
Number of days it takes for the Distribution Center to fulfill demands at the supplied stock location |
|
ForecastControl |
Indicates whether the Distribution Center can generate a forecast based on printer consumption and maintain the requesting stock’s safety stock (0 - Does not generate a forecast, 1 - Generates a forecast) |
Click here to learn more about the response format.
Possible errors returned
Click here to view the possible errors that may be returned and learn the reasons for them.
Restrictions
-
The stock entered must be of the Distribution Center type;
-
To execute this method, the specified user must be responsible for the stock.