It allows you:
to get the unit of measure conversion of product.
to insert new unit of measure conversion of one product
to process (update) existing unit of measure conversion of one product
to delete existing unit of measure conversion of one product
Columns that can be used as filters:
ID
Product
ProductName
Active
Actions can be done:
list
insert
update
delete
URL: https://api.socratecloud.com/webapi/rest/uom_conversion/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"ID": "1234689",
"Organization": "*",
"Created": "2014-03-20 15:32:31+0200",
"CreatedBy": "Demo",
"Updated": "Demo_Admin",
"UpdatedBy": "Demo_Admin",
"Active": true,
"Product": "A1",
"ProductName": "A1",
"UOMCode": "EA",
"UOMCodeTo": "6Pac",
"DivideRate": 6,
"MultiplyRate": 0.166666666667,
"UPC": null,
"SKU": null
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/uom_conversion/create/{version}?accessToken={access_token}&Product={product_value}
Method: POST
Return: 'C_UOM_Conversion_ID' for success or error message (start with "ERROR: ")
Data format:
{
"Active": true,
"UOMTo": "6Pac",
"DivideRate": 6,
"UPC": null,
"SKU": null
}
URL: https://api.socratecloud.com/webapi/rest/uom_conversion/update/{version}?accessToken={access_token}&ID={C_UOM_Conversion_ID}
Method: POST
Return: 'C_UOM_Conversion_ID' for success or error message (start with "ERROR: ")
You can update only the following attributes. If you want to change "UOMTo", you must delete the existing record and insert a new one.
Data format:
{
"Active": true,
"DivideRate": 6,
"UPC": null,
"SKU": null
}
URL: https://api.socratecloud.com/webapi/rest/uom_conversion/delete/{version}?accessToken={access_token}&ID={C_UOM_Conversion_ID}
Method: POST
Return: 'Deleted' for success or error message (start with "ERROR: ")