GetCategory
Request Parameters:
URL: ../Api/Client/GetCategory
Header:
Content-Type:application/json
Required Parameters : CustomerGUID
Case-1. Exception parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId":"",
"LanguageId":"",
"LoadSubCategories":""
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId":"1",
"LanguageId":"1",
"LoadSubCategories":"true"
}
Response :
{
"Status": 1,
"Message": "",
"Data": {
"CurrentCategoryId": 0,
"Categories": [
{
"Name": "Computers",
"SeName": "computers",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [
{
"Name": "Desktops",
"SeName": "desktops",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000002_desktops_450.jpg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000002_desktops_100.jpg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000002_desktops.jpg",
"Title": "Show products in category Desktops",
"AlternateText": "Picture for category Desktops",
"CustomProperties": {}
},
"Id": 2,
"CustomProperties": {}
},
{
"Name": "Notebooks",
"SeName": "notebooks",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000003_notebooks_450.jpg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000003_notebooks_100.jpg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000003_notebooks.jpg",
"Title": "Show products in category Notebooks",
"AlternateText": "Picture for category Notebooks",
"CustomProperties": {}
},
"Id": 3,
"CustomProperties": {}
},
{
"Name": "Software",
"SeName": "software",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000004_software_450.jpg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000004_software_100.jpg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000004_software.jpg",
"Title": "Show products in category Software",
"AlternateText": "Picture for category Software",
"CustomProperties": {}
},
"Id": 4,
"CustomProperties": {}
}
],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000001_computers_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000001_computers_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000001_computers.jpeg",
"Title": "Show products in category Computers",
"AlternateText": "Picture for category Computers",
"CustomProperties": {}
},
"Id": 1,
"CustomProperties": {}
},
{
"Name": "Electronics",
"SeName": "electronics",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [
{
"Name": "Camera & photo",
"SeName": "camera-photo",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000006_camera-photo_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000006_camera-photo_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000006_camera-photo.jpeg",
"Title": "Show products in category Camera & photo",
"AlternateText": "Picture for category Camera & photo",
"CustomProperties": {}
},
"Id": 6,
"CustomProperties": {}
},
{
"Name": "Cell phones",
"SeName": "cell-phones",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000007_cell-phones_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000007_cell-phones_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000007_cell-phones.jpeg",
"Title": "Show products in category Cell phones",
"AlternateText": "Picture for category Cell phones",
"CustomProperties": {}
},
"Id": 7,
"CustomProperties": {}
},
{
"Name": "Others",
"SeName": "others",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000008_accessories_450.jpg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000008_accessories_100.jpg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000008_accessories.jpg",
"Title": "Show products in category Others",
"AlternateText": "Picture for category Others",
"CustomProperties": {}
},
"Id": 8,
"CustomProperties": {}
}
],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000005_electronics_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000005_electronics_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000005_electronics.jpeg",
"Title": "Show products in category Electronics",
"AlternateText": "Picture for category Electronics",
"CustomProperties": {}
},
"Id": 5,
"CustomProperties": {}
},
{
"Name": "Apparel",
"SeName": "apparel",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [
{
"Name": "Shoes",
"SeName": "shoes",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000010_shoes_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000010_shoes_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000010_shoes.jpeg",
"Title": "Show products in category Shoes",
"AlternateText": "Picture for category Shoes",
"CustomProperties": {}
},
"Id": 10,
"CustomProperties": {}
},
{
"Name": "Clothing",
"SeName": "clothing",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000011_clothing_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000011_clothing_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000011_clothing.jpeg",
"Title": "Show products in category Clothing",
"AlternateText": "Picture for category Clothing",
"CustomProperties": {}
},
"Id": 11,
"CustomProperties": {}
},
{
"Name": "Accessories",
"SeName": "accessories",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000012_apparel-accessories_450.jpg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000012_apparel-accessories_100.jpg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000012_apparel-accessories.jpg",
"Title": "Show products in category Accessories",
"AlternateText": "Picture for category Accessories",
"CustomProperties": {}
},
"Id": 12,
"CustomProperties": {}
}
],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000009_apparel_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000009_apparel_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000009_apparel.jpeg",
"Title": "Show products in category Apparel",
"AlternateText": "Picture for category Apparel",
"CustomProperties": {}
},
"Id": 9,
"CustomProperties": {}
},
{
"Name": "Digital downloads",
"SeName": "digital-downloads",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000013_digital-downloads_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000013_digital-downloads_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000013_digital-downloads.jpeg",
"Title": "Show products in category Digital downloads",
"AlternateText": "Picture for category Digital downloads",
"CustomProperties": {}
},
"Id": 13,
"CustomProperties": {}
},
{
"Name": "Books",
"SeName": "books",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000014_book_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000014_book_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000014_book.jpeg",
"Title": "Show products in category Books",
"AlternateText": "Picture for category Books",
"CustomProperties": {}
},
"Id": 14,
"CustomProperties": {}
},
{
"Name": "Jewelry",
"SeName": "jewelry",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000015_jewelry_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000015_jewelry_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000015_jewelry.jpeg",
"Title": "Show products in category Jewelry",
"AlternateText": "Picture for category Jewelry",
"CustomProperties": {}
},
"Id": 15,
"CustomProperties": {}
},
{
"Name": "Gift Cards",
"SeName": "gift-cards",
"NumberOfProducts": null,
"IncludeInTopMenu": true,
"SubCategories": [],
"PictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000016_gift-cards_450.jpeg",
"ThumbImageUrl": "https://localhost:44369/images/thumbs/0000016_gift-cards_100.jpeg",
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000016_gift-cards.jpeg",
"Title": "Show products in category Gift Cards",
"AlternateText": "Picture for category Gift Cards",
"CustomProperties": {}
},
"Id": 16,
"CustomProperties": {}
}
],
"CustomProperties": {}
},
"ValidationMessage": [],
"ErrorMessage": null
}