LoadStock

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

  • MPS Version: From 5.3.0

Description

This method adds items to a Customer Stock or Distribution Center of the specified provider.

Syntax

public string LoadStock(string dealerName, string dealerUserEmail, string dealerUserPassword, int stockID, int supplierID, string supplyModelsIDsAndQuantityList)

Parameters

  • dealerName: Provider name;

  • dealerUserEmail: Provider user email;

  • dealerUserPassword: Encrypted user password;

  • stockID: Identification of the Customer Stock or Distribution Center that will be supplied with the added items;

  • supplierID: Identification of the supplier that will supply the specified stockID;

  • supplyModelsIDsAndQuantityList: Set of supply models and quantities of each to supply the stock, separated by ‘;’ and ‘|’. Example: SupplyModelID1;Amount1|SupplyModelID2;Amount2|.

    • The quantity allowed for each supply model in the same call is a minimum of 1 and a maximum of 1,000. Otherwise, the error ERR_DATA_AMOUNTOUTOFRANGE will be returned.

Return

Click here to learn more about the return format.

Possible errors returned

Click here to check the possible errors that may be returned and learn about their reasons.

Restrictions

  • To execute this method, the user must be:

    • Fully responsible for the stockID in question;

    • Have full permission to Authorize Demands and Plan Demands;

    • Have full permission to Forward Orders;

    • Responsible for demand planning for the stockID in question;

    • Responsible for generating orders from the specified supplier.

  • This method can only be used when the provider is not configured to operate in basic mode;

  • The specified supplier must have a relationship with the specified stockID;

  • The supplier cannot have flow locks (DisabledMPSReserve = 0, DisabledMPSSending = 0, and DisabledMPSReceiving = 0).