Feature Pack 7

Get child categories based on the parent category unique ID

The following example shows how to get child categories based on the parent category unique ID.

Request


GET /wcs/resources/store/11051/categoryview/byParentCategory/10351 HTTP/1.1
Host: testserver.mycompany.com
Content-Type: application/json

Response


HTTP/1.1 200 OK
Content-Type: application/json

{
   "CatalogGroupView": [
      {
         "identifier": "Lounge Chairs",
         "name": "Lounge Chairs",
         "parentCatalogGroupID": [
            "10351"
         ],
         "productsURL": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10354",
         "resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10354",
         "shortDescription": "Get away from your worries in these cozy chairs",
         "thumbnail": "images\/catalog\/furniture\/FULO_sm.jpg",
         "uniqueID": "10354"
      },
      {
         "identifier": "Office Chairs",
         "name": "Office Chairs",
         "parentCatalogGroupID": [
            "10351"
         ],
         "productsURL": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10355",
         "resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10355",
         "shortDescription": "Make your stressful work day lighter with these comfortable chairs",
         "thumbnail": "images\/catalog\/furniture\/FUOF_sm.jpg",
         "uniqueID": "10355"
      },
      {
         "identifier": "Desks",
         "name": "Desks",
         "parentCatalogGroupID": [
            "10351"
         ],
         "productsURL": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10356",
         "resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10356",
         "shortDescription": "For work or home use",
         "thumbnail": "images\/catalog\/furniture\/FUDE_sm.jpg",
         "uniqueID": "10356"
      },
      {
         "identifier": "Coffee Tables",
         "name": "Coffee Tables",
         "parentCatalogGroupID": [
            "10351"
         ],
         "productsURL": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10357",
         "resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10357",
         "shortDescription": "Functional yet stylish coffee tables",
         "thumbnail": "images\/catalog\/furniture\/FUCO_sm.jpg",
         "uniqueID": "10357"
      },
      {
         "identifier": "Table Lamps",
         "name": "Table Lamps",
         "parentCatalogGroupID": [
            "10351"
         ],
         "productsURL": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/productview\/byCategory\/10358",
         "resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/categoryview\/byId\/10358",
         "shortDescription": "Lamps to add spotlighting",
         "thumbnail": "images\/catalog\/furniture\/FUTA_sm.jpg",
         "uniqueID": "10358"
      }
   ],
   "MetaData": [
		{
			"metaData": "1"
		}
	],
	"recordSetComplete": "false",
	"recordSetCount": "5",
	"recordSetStartNumber": "0",
	"recordSetTotal": "10",
	"resourceId": "http:\/\/testserver.mycompany.com\/wcs\/resources\/store\/11051\/categoryview\/byParentCategory\/10351",
	"resourceName": "categoryview"
}