It allows you:
to insert new approved budgets
to view approved budgets
to update approved budget
Columns that can be used as filters (at least one of them must be completed because project is mandatory):
Project_ID
ProjectValue
ProjectName
Actions can be done:
list
create
update
delete
URL: https://api.socratecloud.com/prds/rest/approved_budget/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Project_ID={Project_ID}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization_ID": 1000052,
"Organization": "Test A SRL",
"Created": "2020-02-11 14:18:33+0200",
"CreatedBy": "TESTBEBE_Admin",
"Updated": "2020-02-11 14:44:18+0200",
"UpdatedBy": "TESTBEBE_Admin",
"Active": true,
"Project_ID": 1000646,
"ProjectValue": "I-Depozit A-12",
"ProjectName": "Constructie hala proprie = Depozit A-12",
"ApprovedBudget_ID": 1000004,
"DocumentNo": "CB 1000000",
"DateTrx": "2020-01-06 00:00:00+0200",
"ApprovedValue": 1000,
"Currency_ID": 102,
"Currency": "EUR",
"AvailableValue": 15,
"Deviation": 5,
"Description": "Prima cerere aprobată"
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/prds/rest/approved_budget/create/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: POST
Return: document no for success or error message (start with "ERROR: "). Document will be in "Completed" status.
Data format:
{
"Organization_ID": null,
"Organization": "Test A SRL",
"Active": false,
"Project_ID": 1000646,
"ProjectValue": null,
"ProjectName": null,
"DocumentNo": null,
"DateTrx": null,
"ApprovedValue": null,
"Currency_ID": null,
"Currency": null,
"Deviation": null,
"Description": null
}
URL: https://api.socratecloud.com/prds/rest/approved_budget/update/{version}?startRow={0}&endRow={100}&accessToken={access_token}&DocumentNo={documentNo}
Method: POST
Return: document no for success or error message (start with "ERROR: "). Document will be in "Completed" status.
Data format:
{
"Organization_ID": null,
"Organization": "Test A SRL",
"Active": false,
"Project_ID": 1000646,
"ProjectValue": null,
"ProjectName": null,
"DocumentNo": null,
"DateTrx": null,
"ApprovedValue": null,
"Currency_ID": null,
"Currency": null,
"Deviation": null,
"Description": null
}
URL: https://api.socratecloud.com/prds/rest/approved_budget/delete/{version}?&accessToken={access_token}&DocumentNo={documentNo}
Method: POST
Return: 'Deleted' for success or error message (start with "ERROR: ")