Get Product By Category
Request Parameters:
Retrieve the list of product by category.
URL: ../Api/Client/GetProductByCategory
Header:
Content-Type:application/json
Required Parameters :
[Note: If you are a guest customer pass "CustomerGUID":"00000000-0000-0000-0000-000000000000",then in response you will get your Guest CustomerGUId]
Case-1. Exception parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "",
"LanguageId": "",
"CurrencyId": "",
"CategoryId":"",
"CatalogPagingResponse":
{
"PageSize": "8",
"PageNumber": "1",
"OrderBy": "0"
}
}
Response :
{
"Status": 0,
"Message": "Request cannot be empty",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-2. Incorrect Parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"LanguageId": "1",
"CurrencyId": "1",
"CategoryId":"50",
"CatalogPagingResponse":
{
"PageSize": "8",
"PageNumber": "1",
"OrderBy": "0"
}
}
Response :
{
"Status": 0,
"Message": "Category is empty or deleted",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-3. Success Response :
Parameter:
{
"ApiSecretKey": "i99b98d117m116a112o98k115c111",
"CustomerGUID": "496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId": "1",
"CurrencyId": "1",
"LanguageId": "1",
"CategoryId": "2",
"SpecIds": [
10
],
"MinPrice": "1000",
"MaxPrice": "",
"CatalogPagingResponse": {
"PageSize": "2",
"PageNumber": "1",
"OrderBy": "0"
}
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"Categories": null,
"Topics": null,
"BlogEnabled": false,
"RecentlyAddedProductsEnabled": false,
"ForumEnabled": false,
"Name": null,
"Description": null,
"MetaKeywords": null,
"MetaDescription": null,
"MetaTitle": null,
"SeName": null,
"PictureModel": null,
"PagingFilteringContext": {
"AllowProductSorting": true,
"AvailableSortOptions": [
{
"Disabled": false,
"Group": null,
"Selected": true,
"Text": "Position",
"Value": "0"
},
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Name: A to Z",
"Value": "5"
},
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Name: Z to A",
"Value": "6"
},
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Price: Low to High",
"Value": "10"
},
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Price: High to Low",
"Value": "11"
},
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Created on",
"Value": "15"
}
],
"AllowProductViewModeChanging": false,
"AvailableViewModes": null,
"AllowCustomersToSelectPageSize": false,
"PageSizeOptions": null,
"OrderBy": 0,
"ViewMode": null,
"FirstItem": 1,
"HasNextPage": false,
"HasPreviousPage": false,
"LastItem": 0,
"PageIndex": 0,
"PageNumber": 1,
"PageSize": 2,
"TotalItems": 0,
"TotalPages": 0
},
"FeaturedProducts": null,
"Products": [],
"SpecificationFilter": null,
"PriceRangeFilters": null,
"FilteredItems": [],
"CustomerGuid": "6c6b37a8-e3f1-48e4-b0c6-45c3d5001dca",
"Message": null
},
"ValidationMessage": [],
"ErrorMessage": null
}