-
Web Service URL: https://[SERVER_ADDRESS]/SupplierOrdersWS/SupplierOrdersData.asmx
-
MPS Version: From 5.16.0
Description
This method modifies the demand supply model and, if necessary, creates new demands to utilize the capacity of the originally generated demand.
Syntax
public string ChangeSupplyDemand(int supplierID, string supplierUserEmail, string supplierUserPassword, int supplyDemandID, int newSupplyModelID)
Parameters
-
supplierID: The supplier ID for which demands will be searched;
-
supplierUserEmail: The supplier contact's email address;
-
supplierUserPassword: The supplier contact's encrypted password;
-
supplyDemandID: The ID of the demand to be modified;
-
newSupplyModelID: The ID of the supply model to be applied to the demand.
Return fields
|
Field name |
Description |
|
SupplyDemandID |
Demand identifier in the system |
|
SupplyDemandTypeID |
Demand type identifier, which can be: 2 - Scheduling Demand 3 - Supply Demand (running low) 4 - Service Portal 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 response format.
Possible error responses
Click here to see the possible errors that may be returned and learn the reasons behind them.
Restrictions
-
To modify demands, they cannot be related to safety;
-
If the provider is configured in basic mode, it will only modify existing demands without creating new ones;
-
If necessary, any new demands created will be forecast-related.