Skip to main content

Indirect Cost

The PostAddIndirectCost endpoint is responsible for registering monthly operational expenses (indirect cost) in the MIMS system.


How to register monthly operational expenses value​

HTTP POST Request

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

Input Parameters​

ParameterTypeRequiredDescription
BranchNoString(25)YesExternal branch code
PeriodString(40)YesPeriod (Month + Year)
OperationalCostNoString(25)NoOperational expense code
PeriodValueFloatYesPeriod expenses
OverwriteIfExistsBooleanNoFlag indicating that data should be overwritten if the record already exists

Return​

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information on method execution
IndirectCostCodeIntegerYesInternal monthly operational expense code generated in the MIMS system

Request Example​

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddIndirectCost"' \
--header 'Content-Type: application/json' \
--data '{
"BranchNo": "BR001",
"Period": "202502",
"OperationalCostNo": "OP001",
"PeriodValue": 3000.00,
"OverwriteIfExists": true
}'

Response Example​

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

🐞 Possible Errors​

CodeMessage
AIC‑001The Indirect Cost for Period (PeriodNo) [value sent in request], Operational Cost Center (OperationalCostNo) [value sent in request] and Branch (BranchNo) [value sent in request] informed already exists!