UpdateSupplyDemand

  • Web Service URL: https://[SERVER_ADDRESS]/SupplierOrdersWS/SupplierOrdersData.asmx

  • MPS Version: From 5.31.0

Description

This method changes the demand-supply model.

Syntax

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

Response

Click here to learn more about the response format.

Possible errors returned

Click here to see the possible errors that may be returned and learn the reasons behind them.

Restrictions

  • To modify demands, they cannot be safety-related.