It allows you:
to get the Unit of Measure list to use with API 'Products';
create new Unit of Measure
update or delete existing Unit of Measure
Columns that can be used as filters:
Language (eg: ”ro_RO”, ”en_EN”, ”bg_BG” etc) - if it is null or unprovided then the english is the base language for all fields.
Organization
UOMCode
Name
Active
Actions can be done:
list
create
update
delete
URL: https://api.socratecloud.com/webapi/rest/uom/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "*",
"Created": "2018-08-21 13:31:39+0300",
"CreatedBy": "Ionut Ursuleanu",
"Updated": "2018-08-21 13:33:18+0300",
"UpdatedBy": "Ionut Ursuleanu",
"Active": true,
"UOMCode": "XYZ",
"Symbol": "XYZ",
"Name": "XYZ",
"Description": "-^-^-",
"Precision": 3
}
],
"totalRows": 13
}
URL: https://api.socratecloud.com/webapi/rest/uom/create/{version}?accessToken={access_token}
Method: POST
Return: unit of measure name for success or error message (start with "ERROR: ")
Data format:
{
"Active": true,
"UOMCode": "XYZ",
"Symbol": "XYZ",
"Name": "XYZ",
"Description": "Desc",
"Precision": 3
}
URL: https://api.socratecloud.com/webapi/rest/uom/update/{version}?accessToken={access_token}&Name={uom_name}
Method: POST
Return: unit of measure name for success or error message (start with "ERROR: ")
Data format:
{
"Active": true,
"UOMCode": "XYZ",
"Symbol": "XYZ",
"Name": "XYZ",
"Description": "-^-^-",
"Precision": 3
}
URL: https://api.socratecloud.com/webapi/rest/uom/delete/{version}?accessToken={access_token}&Name={uom_name}
Method: POST
Return: 'Deleted' for success or error message (start with "ERROR: ")