It allows you:
to get the Product SubCategory list to use with API 'Products'.
create new product subcategories
update product subcategories
Columns that can be used as filters:
Organization
Value
Name
ProductCategory
Active
AttributeSet
Actions can be done:
list
create
update
URL: https://api.socratecloud.com/webapi/rest/product/subcategory/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Caussade HU",
"Created": "2014-05-14 12:59:22",
"CreatedBy": "SuperUser",
"Updated": "2014-05-14 12:59:22",
"UpdatedBy": "SuperUser",
"Active": true,
"Value": "s1",
"Name": "subcategory 1",
"Description": null,
"ProductCategory": "SomeCategory",
"AttributeSet": null
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/product/subcategory/create/{version}?accessToken={access_token}&ProductCategory={product_category_name}
Method: POST
Return: subcategory name for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Demo SRL",
"Active": true,
"Name": "subcategory 2",
"Description": null,
"ProductCategory": "SomeCategory",
"AttributeSet": null
}
URL: https://api.socratecloud.com/webapi/rest/product/subcategory/update/{version}?accessToken={access_token}&Name={subcategory_name}&ProductCategory={product_category_name}
Method: POST
Return: subcategory name for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Demo SRL",
"Active": true,
"Name": "subcategory 2",
"Description": null,
"ProductCategory": "SomeCategory",
"AttributeSet": null
}