Retrieve a list of all Categories
Call
GET /rest/categories.json
Response
<!-- { "success":"1", "status":"Categories successfully retrieved", "categories":{ "0":{ "81":{ "id":"81", "name":"External Hard Drives", "parent_id":"0", "resellers_categories_name":null, "resellers_categories_url":null }, "80":{ "id":"80", "name":"Car Chargers", "parent_id":"0", "resellers_categories_name":null, "resellers_categories_url":null }, "78":{ "id":"78", "name":"Laptops & Tablets", "parent_id":"0", "resellers_categories_name":null, "resellers_categories_url":null }, "77":{ "id":"77", "name":"PCs", "parent_id":"0", "resellers_categories_name":null, "resellers_categories_url":null }, "76":{ "id":"76", "name":"Networking", "parent_id":"0", "resellers_categories_name":null, "resellers_categories_url":null }, "75":{ "id":"75", "name":"Software", "parent_id":"0", "resellers_categories_name":null, "resellers_categories_url":null } }, "55":{ "59":{ "id":"59", "name":"Media Cards", "parent_id":"55", "resellers_categories_name":null, "resellers_categories_url":null }, "56":{ "id":"56", "name":"USB pen drives", "parent_id":"55", "resellers_categories_name":null, "resellers_categories_url":null } }, "73":{ "58":{ "id":"58", "name":"Other", "parent_id":"73", "resellers_categories_name":null, "resellers_categories_url":null }, "55":{ "id":"55", "name":"Storage", "parent_id":"73", "resellers_categories_name":null, "resellers_categories_url":null }, "53":{ "id":"53", "name":"PSUs", "parent_id":"73", "resellers_categories_name":null, "resellers_categories_url":null } } } }
Retrieve the details for one Category
Pass the Category id you wish to fetch the properties for along with the URL.
Call
GET /rest/categories/{id}.json
Comments
0 comments
Please sign in to leave a comment.