Skip to main content

Material Monthly Price

The PostAddMaterialMonthlyPrice endpoint is responsible for registering the monthly price of a material in the MIMS system and can be viewed on screen CST003.


How to register material monthly price

HTTP POST Request

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

Input Parameters

ParameterTypeRequiredDescription
BranchNoString(25)YesExternal code of the branch
PeriodString(40)YesPeriod (format: Month + Year)
MaterialNoString(25)YesExternal code of the material
PriceFloatYesMaterial price
OverwriteIfExistsBooleanNoFlag indicating that data should be overwritten if the record already exists

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution

Request Example

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddMaterialMonthlyPrice"' \
--header 'Content-Type: application/json' \
--data '{
"BranchNo": "FIL123",
"Period": "02-2024",
"MaterialNo": "MAT456",
"Price": 75.50,
"OverwriteIfExists": true
}'

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}

🐞 Possible Errors

CodeMessage
MMP‑001The informed Period is invalid! The period must be in format "MM/YYYY"
MMP‑002The informed Period is blocked!