Request Parameters:


Apply filters to category.


URL: ../Api/Client/ApplyFilter


Header:

Content-Type: application/json


Required Parameters :


Case-1. Exception parameters :
Parameter:
{

    "ApiSecretKey": "i99b98d117m116a112o98k115c111",

    "CustomerGUID": "496DBB2A-F9EB-4522-A804-B108693B69CE",

    "StoreId": "1",

    "LanguageId": "1",

    "CurrencyId": "1",

    "CategoryId": 1,

    "SpecIds": [

        8,

        9

    ],

    "MinPrice": "",

    "MaxPrice": "",

    "CatalogPagingResponse": {

        "PageSize": "3",

        "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":"65",

       "SpecIds":[6,8],

       "MinPrice":"0",

       "MaxPrice":"15000",

       "CatalogPagingResponse":

       {

           "PageSize": "3",

           "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",

    "LanguageId": "1",

    "CurrencyId": "1",

    "CategoryId": 1,

    "SpecIds": [

        8,

        9

    ],

    "MinPrice": "",

    "MaxPrice": "",

    "CatalogPagingResponse": {

        "PageSize": "3",

        "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": "http://localhost:15536/api/Client/ApplyFilter?orderby%3D0="
                },
                {
                    "Disabled": false,
                    "Group": null,
                    "Selected": false,
                    "Text": "Name: A to Z",
                    "Value": "http://localhost:15536/api/Client/ApplyFilter?orderby%3D5="
                },
                {
                    "Disabled": false,
                    "Group": null,
                    "Selected": false,
                    "Text": "Name: Z to A",
                    "Value": "http://localhost:15536/api/Client/ApplyFilter?orderby%3D6="
                },
                {
                    "Disabled": false,
                    "Group": null,
                    "Selected": false,
                    "Text": "Price: Low to High",
                    "Value": "http://localhost:15536/api/Client/ApplyFilter?orderby%3D10="
                },
                {
                    "Disabled": false,
                    "Group": null,
                    "Selected": false,
                    "Text": "Price: High to Low",
                    "Value": "http://localhost:15536/api/Client/ApplyFilter?orderby%3D11="
                },
                {
                    "Disabled": false,
                    "Group": null,
                    "Selected": false,
                    "Text": "Created on",
                    "Value": "http://localhost:15536/api/Client/ApplyFilter?orderby%3D15="
                }
            ],
            "AllowProductViewModeChanging": false,
            "AvailableViewModes": null,
            "AllowCustomersToSelectPageSize": false,
            "PageSizeOptions": null,
            "OrderBy": 0,
            "ViewMode": null,
            "FirstItem": 1,
            "HasNextPage": true,
            "HasPreviousPage": false,
            "LastItem": 3,
            "PageIndex": 0,
            "PageNumber": 1,
            "PageSize": 3,
            "TotalItems": 4,
            "TotalPages": 2
        },
        "FeaturedProducts": null,
        "Products": [
            {
                "Id": 4,
                "ProductType": "SimpleProduct",
                "Name": "Apple MacBook Pro 13-inch",
                "ShortDescription": "A groundbreaking Retina display. A new force-sensing trackpad. All-flash architecture. Powerful dual-core and quad-core Intel processors. Together, these features take the notebook to a new level of performance. And they will do the same for you in everything you create.",
                "FullDescription": "<p>With fifth-generation Intel Core processors, the latest graphics, and faster flash storage, the incredibly advanced MacBook Pro with Retina display moves even further ahead in performance and battery life.* *Compared with the previous generation.</p>\r\n<p>Retina display with 2560-by-1600 resolution</p>\r\n<p>Fifth-generation dual-core Intel Core i5 processor</p>\r\n<p>Intel Iris Graphics</p>\r\n<p>Up to 9 hours of battery life1</p>\r\n<p>Faster flash storage2</p>\r\n<p>802.11ac Wi-Fi</p>\r\n<p>Two Thunderbolt 2 ports for connecting high-performance devices and transferring data at lightning speed</p>\r\n<p>Two USB 3 ports (compatible with USB 2 devices) and HDMI</p>\r\n<p>FaceTime HD camera</p>\r\n<p>Pages, Numbers, Keynote, iPhoto, iMovie, GarageBand included</p>\r\n<p>OS X, the world's most advanced desktop operating system</p>",
                "SeName": "apple-macbook-pro-13-inch",
                "ProductPrice": {
                    "OldPrice": null,
                    "Price": "$1,620.00",
                    "DisableBuyButton": false,
                    "DisableWishlistButton": false,
                    "AvailableForPreOrder": false,
                    "PreOrderAvailabilityStartDateTimeUtc": null,
                    "IsRental": false,
                    "ForceRedirectionAfterAddingToCart": false,
                    "DisplayTaxShippingInfo": false,
                    "Form": null,
                    "CustomProperties": {}
                },
                "DefaultPictureModel": {
                    "ImageUrl": "http://localhost:15536/images/thumbs/0000024_apple-macbook-pro-13-inch_415.jpeg",
                    "ThumbImageUrl": "http://localhost:15536/images/thumbs/0000024_apple-macbook-pro-13-inch_100.jpeg",
                    "FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000024_apple-macbook-pro-13-inch.jpeg",
                    "Title": "Show details for Apple MacBook Pro 13-inch",
                    "AlternateText": "Picture of Apple MacBook Pro 13-inch",
                    "Form": null,
                    "CustomProperties": {}
                },
                "ReviewOverviewModel": {
                    "ProductId": 4,
                    "RatingSum": 4,
                    "TotalReviews": 1,
                    "AllowCustomerReviews": true,
                    "Form": null,
                    "CustomProperties": {}
                },
                "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
                "Message": null
            },
            {
                "Id": 8,
                "ProductType": "SimpleProduct",
                "Name": "HP Envy 6-1180ca 15.6-Inch Sleekbook",
                "ShortDescription": "HP ENVY 6-1202ea Ultrabook Beats Audio, 3rd generation IntelĀ® CoreTM i7-3517U processor, 8GB RAM, 500GB HDD, Microsoft Windows 8, AMD Radeon HD 8750M (2 GB DDR3 dedicated)",
                "FullDescription": "The UltrabookTM that's up for anything. Thin and light, the HP ENVY is the large screen UltrabookTM with Beats AudioTM. With a soft-touch base that makes it easy to grab and go, it's a laptop that's up for anything.<br /><br /><b>Features</b><br /><br />- Windows 8 or other operating systems available<br /><br /><b>Top performance. Stylish design. Take notice.</b><br /><br />- At just 19.8 mm (0.78 in) thin, the HP ENVY UltrabookTM is slim and light enough to take anywhere. It's the laptop that gets you noticed with the power to get it done.<br />- With an eye-catching metal design, it's a laptop that you want to carry with you. The soft-touch, slip-resistant base gives you the confidence to carry it with ease.<br /><br /><b>More entertaining. More gaming. More fun.</b><br /><br />- Own the UltrabookTM with Beats AudioTM, dual speakers, a subwoofer, and an awesome display. Your music, movies and photo slideshows will always look and sound their best.<br />- Tons of video memory let you experience incredible gaming and multimedia without slowing down. Create and edit videos in a flash. And enjoy more of what you love to the fullest.<br />- The HP ENVY UltrabookTM is loaded with the ports you'd expect on a world-class laptop, but on a Sleekbook instead. Like HDMI, USB, RJ-45, and a headphone jack. You get all the right connections without compromising size.<br /><br /><b>Only from HP.</b><br /><br />- Life heats up. That's why there's HP CoolSense technology, which automatically adjusts your notebook's temperature based on usage and conditions. It stays cool. You stay comfortable.<br />- With HP ProtectSmart, your notebook's data stays safe from accidental bumps and bruises. It senses motion and plans ahead, stopping your hard drive and protecting your entire digital life.<br />- Keep playing even in dimly lit rooms or on red eye flights. The optional backlit keyboard[1] is full-size so you don't compromise comfort. Backlit keyboard. Another bright idea.<br /><br />",
                "SeName": "hp-envy-6-1180ca-156-inch-sleekbook",
                "ProductPrice": {
                    "OldPrice": null,
                    "Price": "$1,387.00",
                    "DisableBuyButton": false,
                    "DisableWishlistButton": false,
                    "AvailableForPreOrder": false,
                    "PreOrderAvailabilityStartDateTimeUtc": null,
                    "IsRental": false,
                    "ForceRedirectionAfterAddingToCart": false,
                    "DisplayTaxShippingInfo": false,
                    "Form": null,
                    "CustomProperties": {}
                },
                "DefaultPictureModel": {
                    "ImageUrl": "http://localhost:15536/images/thumbs/0000030_hp-envy-6-1180ca-156-inch-sleekbook_415.jpeg",
                    "ThumbImageUrl": "http://localhost:15536/images/thumbs/0000030_hp-envy-6-1180ca-156-inch-sleekbook_100.jpeg",
                    "FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000030_hp-envy-6-1180ca-156-inch-sleekbook.jpeg",
                    "Title": "Show details for HP Envy 6-1180ca 15.6-Inch Sleekbook",
                    "AlternateText": "Picture of HP Envy 6-1180ca 15.6-Inch Sleekbook",
                    "Form": null,
                    "CustomProperties": {}
                },
                "ReviewOverviewModel": {
                    "ProductId": 8,
                    "RatingSum": 5,
                    "TotalReviews": 1,
                    "AllowCustomerReviews": true,
                    "Form": null,
                    "CustomProperties": {}
                },
                "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
                "Message": null
            },
            {
                "Id": 7,
                "ProductType": "SimpleProduct",
                "Name": "HP Spectre XT Pro UltraBook",
                "ShortDescription": "HP Spectre XT Pro UltraBook / Intel Core i5-2467M / 13.3 / 4GB / 128GB / Windows 7 Professional / Laptop",
                "FullDescription": "<p>Introducing HP ENVY Spectre XT, the Ultrabook designed for those who want style without sacrificing substance. It's sleek. It's thin. And with Intel. Corer i5 processor and premium materials, it's designed to go anywhere from the bistro to the boardroom, it's unlike anything you've ever seen from HP.</p>",
                "SeName": "hp-spectre-xt-pro-ultrabook",
                "ProductPrice": {
                    "OldPrice": null,
                    "Price": "$1,282.50",
                    "DisableBuyButton": false,
                    "DisableWishlistButton": false,
                    "AvailableForPreOrder": false,
                    "PreOrderAvailabilityStartDateTimeUtc": null,
                    "IsRental": false,
                    "ForceRedirectionAfterAddingToCart": false,
                    "DisplayTaxShippingInfo": false,
                    "Form": null,
                    "CustomProperties": {}
                },
                "DefaultPictureModel": {
                    "ImageUrl": "http://localhost:15536/images/thumbs/0000028_hp-spectre-xt-pro-ultrabook_415.jpeg",
                    "ThumbImageUrl": "http://localhost:15536/images/thumbs/0000028_hp-spectre-xt-pro-ultrabook_100.jpeg",
                    "FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000028_hp-spectre-xt-pro-ultrabook.jpeg",
                    "Title": "Show details for HP Spectre XT Pro UltraBook",
                    "AlternateText": "Picture of HP Spectre XT Pro UltraBook",
                    "Form": null,
                    "CustomProperties": {}
                },
                "ReviewOverviewModel": {
                    "ProductId": 7,
                    "RatingSum": 4,
                    "TotalReviews": 1,
                    "AllowCustomerReviews": true,
                    "Form": null,
                    "CustomProperties": {}
                },
                "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
                "Message": null
            }
        ],
        "SpecificationFilter": null,
        "PriceRangeFilters": null,
        "FilteredItems": [
            {
                "SpecificationAttributeId": 2,
                "SpecificationAttributeName": "Intel Core i5",
                "SpecificationAttributeOptionId": 6,
                "SpecificationAttributeOptionName": "Intel Core i5",
                "Selected": false
            },
            {
                "SpecificationAttributeId": 2,
                "SpecificationAttributeName": "Intel Core i7",
                "SpecificationAttributeOptionId": 7,
                "SpecificationAttributeOptionName": "Intel Core i7",
                "Selected": false
            },
            {
                "SpecificationAttributeId": 3,
                "SpecificationAttributeName": "4 GB",
                "SpecificationAttributeOptionId": 8,
                "SpecificationAttributeOptionName": "4 GB",
                "Selected": true
            },
            {
                "SpecificationAttributeId": 3,
                "SpecificationAttributeName": "8 GB",
                "SpecificationAttributeOptionId": 9,
                "SpecificationAttributeOptionName": "8 GB",
                "Selected": true
            },
            {
                "SpecificationAttributeId": 3,
                "SpecificationAttributeName": "16 GB",
                "SpecificationAttributeOptionId": 10,
                "SpecificationAttributeOptionName": "16 GB",
                "Selected": false
            }
        ],
        "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
        "Message": null
    },
    "ValidationMessage": [],
    "ErrorMessage": null
}