GetTotalStockItemsAvailable

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

  • MPS Version: From 5.3.0

Description

This method returns the quantity of items available in stock. For Distribution Centers, these are items that have already been received and are not committed (Available), and for Customer Stocks, these are items that have already been received, even if they are committed (Safety and Replenishment).

Syntax

public string GetTotalStockItemsAvailable(string dealerName, string dealerUserEmail, string dealerUserPassword, int stockID, string fieldsList)

Parameters

  • dealerName: Name of the provider;

  • dealerUserEmail: Email address of the provider user;

  • dealerUserPassword: Encrypted user password;

  • stockID: Identification of the stock from which the quantity of items will be returned;

  • fieldsList: List of fields that will be returned by the method. They must be specified, separated by the character ‘;’. Example: PrinterDeviceID;SiteID;SiteName.

    • When no field is specified, the response will contain the fields that are in bold in the table below.

Recognized return fields in fieldsList

Field name

Description

SupplyModelID

Supply model identifier (material) in the system

SupplyModelFullName

Full name of the supply model (material) based on the nomenclature defined by the provider

BrandName

Name of the material manufacturer

SupplySubFunctionType

Material type name

SupplyColor

Material color

PartNumber

Material PartNumber

Capacity

Material capacity

Description

Material description provided by the provider

InternalCode

Internal material code provided by the provider

SupplyModelQuality

Material quality

Available

Quantity of items available in stock

Click here to learn more about the format of the returns.

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 informed must be responsible for Low, Restricted, or Full for the stock in question.