-
Web Service URL: https://[SERVER_ADDRESS]/SupplierOrdersWS/SupplierOrdersData.asmx
-
MPS Version: From 5.3.0
Description
This method returns a list of approved demands with a fulfillment status of Normal that can be fulfilled by the specified supplier.
Syntax
public string GetSupplyDemands(int supplierID, string supplierUserEmail, string supplierUserPassword, string enterpriseName, string stockName, string fieldsList)
Parameters
-
supplierID: Supplier ID for which demands will be searched;
-
supplierUserEmail: Supplier contact email;
-
supplierUserPassword: Encrypted password for the supplier contact;
-
enterpriseName: Filters only demands from the specified company. If left blank, it will return demands from all companies that the supplier can serve;
-
stockName: Filters only the demands made by the specified stock. If left blank, it will return demands from all requesters that the supplier can serve;
-
fieldsList: List of fields to be returned by the method. They must be specified separated by the ‘;’ character. Example: SupplyDemandID;EnterpriseID;StockID;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 |
|
SupplyDemandID |
Demand identifier in the system |
|
SupplyDemandTypeID |
Demand type identifier, which can be: 1 - Security Demand 2 - Forecast Demand 3 - Printer Demand 4 - User Demand |
|
SupplyDemandTypeName |
Description of the demand type name (SecurityDemand, ForecastDemand, PrinterDemand, or UserDemand) |
|
EnterpriseID |
Identifier of the company requesting the demand or 0 when the demand belongs to a Distribution Center |
|
EnterpriseName |
Name of the company or blank when the demand belongs to a Distribution Center |
|
StockID |
Identifier of the stock requesting the demand |
|
StockName |
Name of the stock requesting the demand |
|
DeliveryDays |
Delivery time between the requesting stock and the specified supplier |
|
ExpectedReceivingDate |
Date expected by the requester for receipt of the demand |
|
SupplyModelID |
Identifier of the requested supply model |
|
PrinterDeviceID |
Identifier of the printer for which the demand is reserved, or 0 when the demand is for safety and therefore not reserved for any printer |
|
UTCCreatedDate |
Date the demand was created |
|
UTCApprovedDate |
Date the demand was approved |
Click here to learn more about the return format.
Possible error messages
Click here to see the possible error messages that may be returned and learn the reasons behind them.
Restrictions
-
There are no restrictions on calling this method.