Skip to main content

Información del stock de productos

The GetStockInfo endpoint returns product stock information from the MIMS system.


How to query product stock information​

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/GetStockInfo
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetStockInfo"

Input Parameters​

ParameterTypeRequiredDescription
ProductListGetStockInfoProductListNoList of all products that will be returned in the search result

📝 GetStockInfoProductList Object​

The GetStockInfoProductList object represents the list of products to be queried.

Input Parameters​

ParameterTypeRequiredDescription
ProductNoString(25)YesExternal code of the product

Return​

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
StockInfoDataListGetStockInfoDataListYesList of objects with stock information

📝 GetStockInfoDataList Object​

The GetStockInfoDataList object represents stock information for a product.

Return Parameters​

ParameterTypeRequiredDescription
ProductCodeString(4)YesProduct production code
ProductNoString(25)YesExternal code of the product
AvailableUnitsIntegerYesAvailable units
AvailableWeightFloatYesAvailable weight
UnavailableUnitsIntegerYesUnavailable units
UnavailableWeightFloatYesUnavailable weight
TotalUnitsIntegerYesTotal units
TotalWeightFloatYesTotal weight
ProductionOrderUnitsIntegerYesUnits scheduled for production
ProductionOrderWeightFloatYesWeight scheduled for production
ProductionUnitsIntegerYesProduced units
ProductionWeightFloatYesProduced weight
SalesOrderUnitsIntegerYesSold units
SalesOrderWeightFloatYesSold weight
QAHoldUnitsIntegerYesSequestrated units
QAHoldWeightFloatYesSequestrated weight
DistributionCenterNoString(25)YesExternal code of the product distribution center

Request Example​

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetStockInfo"' \
--header 'Content-Type: application/json' \
--data '{
"ProductList": [
{
"ProductNo": "PROD123"
},
{
"ProductNo": "PROD456"
}
]
}'

Response Example​

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"StockInfoDataList": [
{
"ProductCode": "P001",
"ProductNo": "PROD123",
"AvailableUnits": 100,
"AvailableWeight": 250.5,
"UnavailableUnits": 20,
"UnavailableWeight": 50.0,
"TotalUnits": 120,
"TotalWeight": 300.5,
"ProductionOrderUnits": 50,
"ProductionOrderWeight": 125.0,
"ProductionUnits": 80,
"ProductionWeight": 200.0,
"SalesOrderUnits": 30,
"SalesOrderWeight": 75.0,
"QAHoldUnits": 10,
"QAHoldWeight": 25.0,
"DistributionCenterNo": "DC001"
}
]
}