It allows you:
to get the Project Details list of one indicated Project
to create
to update
to delete
Columns that can be used as filters:
Organization
OrganizationValue
Project - mandatory for all actions as parameter
Active
Line
Actions can be done:
list
create
update
delete
URL: https://api.socratecloud.com/webapi/rest/project/line/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"OrganizationValue": "Demo",
"Created": "2014-09-05 15:09:13+0300",
"CreatedBy": "SuperUser",
"Updated": "2014-09-05 15:27:32+0300",
"UpdatedBy": "SuperUser",
"Active": true,
"Line": 20,
"DateTrx": "2014-09-05 00:00:00+0300",
"ProductCategory": "Services",
"Product": "Inspecting",
"ProductName": "Inspecting",
"ListPrice": 100,
"Discount": 50,
"PlannedPrice": 50,
"Description": "some description",
"PlannedDate": "2014-09-13 00:00:00+0300",
"PlannedQty": 3,
"PlannedAmt": 150,
"Activity": "Testing",
"IsPrinted": true
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/project/line/create/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Project={project_name}
Method: POST
Return: project value for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Demo SRL",
"OrganizationValue": "Demo",
"Active": true,
"DateTrx": "2014-09-05 15:27:55+0300",
"ProductCategory": "Services",
"Product": "Fixing",
"ListPrice": 0,
"Discount": 0,
"PlannedPrice": 0,
"Description": "new line",
"PlannedDate": "2014-09-13 00:00:00+0300",
"PlannedQty": 0,
"Activity": "Fixing",
"IsPrinted": true
}
URL: https://api.socratecloud.com/webapi/rest/project/line/update/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Project={project_name}&Line={line_no}
Method: POST
Return: project value for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Demo SRL",
"OrganizationValue": "Demo",
"Active": true,
"DateTrx": "2014-09-05 15:27:55+0300",
"ProductCategory": "Services",
"Product": "Fixing",
"ListPrice": 0,
"Discount": 0,
"PlannedPrice": 0,
"Description": "new line",
"PlannedDate": "2014-09-13 00:00:00+0300",
"PlannedQty": 0,
"Activity": "Fixing",
"IsPrinted": true
}
URL: https://api.socratecloud.com/webapi/rest/project/line/delete/{version}?startRow={0}&endRow={100}&accessToken={access_token}&Project={project_name}&Line={line_no}
Method: POST
Return: 'Deleted' for success or error message (start with "ERROR: ")