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 Type | Example URL |
|---|---|
| POST | {{url_base}}/PostAddIndirectCost |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddIndirectCost" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| BranchNo | String(25) | Yes | External branch code |
| Period | String(40) | Yes | Period (Month + Year) |
| OperationalCostNo | String(25) | No | Operational expense code |
| PeriodValue | Float | Yes | Period expenses |
| OverwriteIfExists | Boolean | No | Flag indicating that data should be overwritten if the record already exists |
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information on method execution |
| IndirectCostCode | Integer | Yes | Internal 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
| Code | Message |
|---|---|
| AIC‑001 | The 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! |