LoadStock - MPS

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

  • MPS Version: From 5.5.0

Description

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

Syntax

public string LoadStock(string properties)

Setting Properties

The content of string properties must be text in JSON format containing the properties listed below. For example:

{"DealerName":"dealer","DealerUserEmail":"user@example.com","DealerUserPassword":"k1BAv1w=="}

You don't need to worry about whether property names are uppercase or lowercase; the Web Service is Case-Insensitive.

Properties accepted by the method

Property

Type

Required

Allows null

Allows empty

Maximum size

Description

DealerName

Text

Yes

-

-

-

Provider Name

DealerUserEmail

Text

Yes

-

-

-

Provider User Email

DealerUserPassword

Text

Yes

-

-

-

Encrypted User Password

StockID

Number

Yes

-

-

-

Stock ID in the system. Obtained via the GetDealerStocks method

SupplierID

Number

Yes

-

-

-

ID of the supplier that will replenish the specified stockID

SupplyModelsIDsAndQuantityList

Text

Yes

-

-

-

Set of supply models and quantities for each, separated by ‘;’ and ‘|’.
Example: SupplyModelID1;Amount1|SupplyModelID2;Amount2|.
The allowed quantity for each supply model in the same call is a minimum of 1 and a maximum of 1000; otherwise, the error ERR_DATA_AMOUNTOUTOFRANGE will be returned

Return

Click here to learn more about the return format.

Possible return errors

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

Restrictions

  • To execute this method, the specified user must:

    • Be Fully Responsible for the stockID in question;

    • Have full permission for Authorize Demands and Plan Demands;

    • Have full permission for Forward Orders;

    • Be responsible for demand planning for the stockID in question;

    • Be 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 blocks (DisabledMPSReserve = 0, DisabledMPSSending = 0, and DisabledMPSReceiving = 0).