It allows you:
to insert new comment lines (one by one) into an existing sales order
to update comment lines (one by one) from an existing sales order
to view comment lines from an existing sales order
Prerequisites:
In order to use this API Method for PUT there must be accomplished the following requirements in SocrateCloud:
to have an open Sales Order (document status: Draft, In Progress)
Columns that can be used as filters:
OrderNo
Mandatory Parameters when inserting order comment lines:
OrderNo
Actions can be done:
list
insert
update
URL: https://api.socratecloud.com/webapi/rest/order/comments/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&OrderNo={order_doc_no}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"C_Order_ID": 1141572,
"C_OrderComment_ID": 1001036,
"Comments": "test1"
},
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/order/comments/create/{version}?accessToken={access_token}&OrderNo={document_no}
Method: POST
Return: line no for success or error message (start with "ERROR: ")
Data format:
{
"Comments":"Test"
}
URL: https://api.socratecloud.com/webapi/rest/order/comments/update/{version}?accessToken={access_token}&C_OrderComment_ID={C_OrderComment_ID}
Method: POST
Return: line no for success or error message (start with "ERROR: ")
Data format:
{
"Comments":"Test"
}